Pokemon game made in Python with open ended requirements from Codecademy

Pokemon game made in Python with open ended requirements from Codecademy.This is one of my first projects utilizing OOP and classes! -This game is a 2 player game run from the terminal-Player can select their pokemon choices at the beginning-Then players can battle and perform 1 of 3 actions: attack opponent, use a potion, or switch out pokemon-intial release has some known bugs (they will be resolved in future iterations):-when pokemon is knocked out, trainer cannot reselect it. Currently, this […]

Read more

Various code metrics for Python code

Radon is a Python tool that computes various metrics from the source code. Radon can compute: McCabe’s complexity, i.e. cyclomatic complexity raw metrics (these include SLOC, comment lines, blank lines, &c.) Halstead metrics (all of them) Maintainability Index (the one used in Visual Studio) Requirements Radon will run from Python 2.7 to Python 3.8 (except Python versions from 3.0 to 3.3) with a single code base and without the need of tools like 2to3 or six. It can also run […]

Read more

Monitoring tool based on radon

Xenon is a monitoring tool based on Radon. It monitors your code’s complexity. Ideally, Xenon is run every time you commit code. Through command line options, you can set various thresholds for the complexity of your code. It will fail (i.e. it will exit with a non-zero exit code) when any of these requirements is not met. Installation With Pip: Or download the source and run the setup file (requires setuptools): $ python setup.py install Xenon is tested with all […]

Read more

McCabe complexity checker for Python

Ned’s script to check McCabe complexity. This module provides a plugin for flake8, the Python code checker. Installation You can install, upgrade, or uninstall mccabe with these commands: $ pip install mccabe $ pip install –upgrade mccabe $ pip uninstall mccabe Standalone script The complexity checker can be used directly: $ python -m mccabe –min 5 mccabe.py (“185:1: ‘PathGraphingAstVisitor.visitIf'”, 5) (“71:1: ‘PathGraph.to_dot'”, 5) (“245:1: ‘McCabeChecker.run'”, 5) (“283:1: ‘main'”, 7) (“203:1: ‘PathGraphingAstVisitor.visitTryExcept'”, 5) (“257:1: ‘get_code_complexity'”, 5) Plugin for Flake8 When both […]

Read more

Inspects Python source files and provides information about type and location of classes, methods etc

About Prospector is a tool to analyse Python code and output information about errors, potential problems, convention violations and complexity. It brings together the functionality of other Python analysis tools such as Pylint, pep8, and McCabe complexity. See the Supported Tools documentation section for a complete list. The primary aim of Prospector is to be useful ‘out of the box’. A common complaint of other Python analysis tools is that it takes a long time to filter    

Read more

A Python application for tracking, reporting on timing and complexity in Python code

A command-line application for tracking, reporting on complexity of Python tests and applications. wily [a]: quick to think of things, having a very good understanding of situations and possibilities, and often willing to use tricks to achieve an aim. Wily uses git to go through each revision (commit) in a branch and run complexity and code-analysis metrics over the code. You can use this to limit your code or report on trends for complexity, length etc. Installation Wily can be […]

Read more

Cohesion: A tool for measuring Python class cohesion

Cohesion is a tool for measuring Python class cohesion. In computer programming, cohesion refers to the degree to which the elements of a module belong together. Thus, cohesion measures the strength of relationship between pieces of functionality within a given module. For example, in highly cohesive systems functionality is strongly related. When cohesion is high, it means that the methods and variables of the class are co-dependent and hang together as a logical whole. Some of the advantages of high […]

Read more

Pretty-print tabular data in Python, a library and a command-line utility

Pretty-print tabular data in Python, a library and a command-line utility. The main use cases of the library are: printing small tables without hassle: just one function call, formatting is guided by the data itself authoring tabular data for lightweight plain-text markup: multiple output formats suitable for further editing or transformation readable presentation of mixed textual and numeric data: smart column alignment, configurable number formatting, alignment by a decimal point Installation To install the Python library and the command line […]

Read more
1 391 392 393 394 395 976