pokegraph


Namepokegraph JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/starchildluke/pokegraph
SummaryA command-line tool that draws Pokémon base stats graphs in the terminal.
upload_time2023-04-09 10:28:25
maintainer
docs_urlNone
authorstarchildluke
requires_python>=3.7
licenseMIT
keywords python cli cli tool graphs shell terminal pokemon
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pokegraph

A command-line tool that draws basic Pokémon base stat graphs in the terminal, written in Python.

Graph types supported:

**Primary use**

- Bar Graphs

**Available from termgraph**

- Color charts
- Multi-variable
- Stacked charts
- Histograms
- Horizontal or Vertical
- Emoji!


### Examples

```
pokegraph data/pikachu.csv

# Reading data from data/pikachu.csv

hp             : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 35.00
attack         : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 55.00
defense        : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40.00
special-attack : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50.00
special-defense: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50.00
speed          : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 90.00
```

Most results can be copied and pasted wherever you like, since they use standard block characters. However the color charts will not show, since they use terminal escape codes for color. A couple images to show color examples:

```
pokegraph data/pikachu.csv --color yellow
```

<img src="https://github.com/starchildluke/pokegraph/blob/main/pikachu-yellow-base-stats.jpg" alt="Bar chart in yellow" />

### Install

Requires Python 3.7+, install from [PyPI project](https://pypi.org/project/pokegraph/)

```
python3 -m pip install pokegraph
```

Note: Be sure your PATH includes the pypi install directory, for me it is `~/.local/bin/`

### Usage

* Create data file with two columns either comma or space separated.
  The first column is your labels, the second column is a numeric data

* pokegraph [datafile]

* Help: pokegraph -h

```
usage: pokegraph.py [-h] [(optional arguments)] [filename]

draw basic graphs on terminal

positional arguments:
  filename              data file name (comma or space separated). Defaults to stdin.

optional arguments:
  -h, --help            show this help message and exit
  --title TITLE         Title of graph
  --width WIDTH         width of graph in characters default:50
  --format FORMAT       format specifier to use.
  --suffix SUFFIX       string to add as a suffix to all data points.
  --no-labels           Do not print the label column
  --no-values           Do not print the values at end
  --space-between       Print a new line after every field
  --color [COLOR ...]   Graph bar color( s )
  --vertical            Vertical graph
  --stacked             Stacked bar graph
  --histogram           Histogram
  --bins BINS           Bins of Histogram
  --different-scale     Categories have different scales.
  --calendar            Calendar Heatmap chart
  --start-dt START_DT   Start date for Calendar chart
  --custom-tick CUSTOM_TICK
                        Custom tick mark, emoji approved
  --delim DELIM         Custom delimiter, default , or space
  --verbose             Verbose output, helpful for debugging
  --label-before        Display the values before the bars
  --version             Display version and exit
```

### Background

I wanted a quick way to visualize Pokémon base stats instead of having to search in Google and going to Bulbapedia or checking an app. Since I'm always in Terminal anyway, I thought this was work well for my workflow. I then found termgraph which did exactly what I wanted and decided to customise it for my use case, so shout out to [mkaz](https://github.com/mkaz/termgraph/) for creating this awesome tool!

### Contribute

All contributions are welcome, for feature requests or bug reports, use [Github Issues](https://github.com/starchildluke/pokegraph/issues). Pull requests are welcome to help fix or add features.

**Code contributions**: This repository uses the [black code formatter](https://github.com/psf/black) to automatically format the code. A Github Action is setup to lint your code, to avoid failures it is recommended to [setup your editor to auto format on save](https://github.com/psf/black/blob/master/docs/editor_integration.md).

Thanks again to [mkaz](https://github.com/mkaz/)!

### License

MIT License, see [LICENSE.txt](LICENSE.txt)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/starchildluke/pokegraph",
    "name": "pokegraph",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python,CLI,CLI tool,graphs,shell,terminal,pokemon",
    "author": "starchildluke",
    "author_email": "Luke Davis <luke@lukealexdavis.co.uk>",
    "download_url": "https://pypi.python.org/pypi/pokegraph/",
    "platform": "any",
    "description": "# Pokegraph\n\nA command-line tool that draws basic Pok\u00e9mon base stat graphs in the terminal, written in Python.\n\nGraph types supported:\n\n**Primary use**\n\n- Bar Graphs\n\n**Available from termgraph**\n\n- Color charts\n- Multi-variable\n- Stacked charts\n- Histograms\n- Horizontal or Vertical\n- Emoji!\n\n\n### Examples\n\n```\npokegraph data/pikachu.csv\n\n# Reading data from data/pikachu.csv\n\nhp             : \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 35.00\nattack         : \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 55.00\ndefense        : \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 40.00\nspecial-attack : \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 50.00\nspecial-defense: \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 50.00\nspeed          : \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 90.00\n```\n\nMost results can be copied and pasted wherever you like, since they use standard block characters. However the color charts will not show, since they use terminal escape codes for color. A couple images to show color examples:\n\n```\npokegraph data/pikachu.csv --color yellow\n```\n\n<img src=\"https://github.com/starchildluke/pokegraph/blob/main/pikachu-yellow-base-stats.jpg\" alt=\"Bar chart in yellow\" />\n\n### Install\n\nRequires Python 3.7+, install from [PyPI project](https://pypi.org/project/pokegraph/)\n\n```\npython3 -m pip install pokegraph\n```\n\nNote: Be sure your PATH includes the pypi install directory, for me it is `~/.local/bin/`\n\n### Usage\n\n* Create data file with two columns either comma or space separated.\n  The first column is your labels, the second column is a numeric data\n\n* pokegraph [datafile]\n\n* Help: pokegraph -h\n\n```\nusage: pokegraph.py [-h] [(optional arguments)] [filename]\n\ndraw basic graphs on terminal\n\npositional arguments:\n  filename              data file name (comma or space separated). Defaults to stdin.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --title TITLE         Title of graph\n  --width WIDTH         width of graph in characters default:50\n  --format FORMAT       format specifier to use.\n  --suffix SUFFIX       string to add as a suffix to all data points.\n  --no-labels           Do not print the label column\n  --no-values           Do not print the values at end\n  --space-between       Print a new line after every field\n  --color [COLOR ...]   Graph bar color( s )\n  --vertical            Vertical graph\n  --stacked             Stacked bar graph\n  --histogram           Histogram\n  --bins BINS           Bins of Histogram\n  --different-scale     Categories have different scales.\n  --calendar            Calendar Heatmap chart\n  --start-dt START_DT   Start date for Calendar chart\n  --custom-tick CUSTOM_TICK\n                        Custom tick mark, emoji approved\n  --delim DELIM         Custom delimiter, default , or space\n  --verbose             Verbose output, helpful for debugging\n  --label-before        Display the values before the bars\n  --version             Display version and exit\n```\n\n### Background\n\nI wanted a quick way to visualize Pok\u00e9mon base stats instead of having to search in Google and going to Bulbapedia or checking an app. Since I'm always in Terminal anyway, I thought this was work well for my workflow. I then found termgraph which did exactly what I wanted and decided to customise it for my use case, so shout out to [mkaz](https://github.com/mkaz/termgraph/) for creating this awesome tool!\n\n### Contribute\n\nAll contributions are welcome, for feature requests or bug reports, use [Github Issues](https://github.com/starchildluke/pokegraph/issues). Pull requests are welcome to help fix or add features.\n\n**Code contributions**: This repository uses the [black code formatter](https://github.com/psf/black) to automatically format the code. A Github Action is setup to lint your code, to avoid failures it is recommended to [setup your editor to auto format on save](https://github.com/psf/black/blob/master/docs/editor_integration.md).\n\nThanks again to [mkaz](https://github.com/mkaz/)!\n\n### License\n\nMIT License, see [LICENSE.txt](LICENSE.txt)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A command-line tool that draws Pok\u00e9mon base stats graphs in the terminal.",
    "version": "0.1.1",
    "split_keywords": [
        "python",
        "cli",
        "cli tool",
        "graphs",
        "shell",
        "terminal",
        "pokemon"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb17959ec6c679c2ea772dbbb1e4eeacb523d4569882e325d0471c77264b7758",
                "md5": "e680ee5afffdb458de1157e075e6d9aa",
                "sha256": "1cea8a86afe6449c0dd57daee67915ad9af76bcef36850f1939c562bce9182d2"
            },
            "downloads": -1,
            "filename": "pokegraph-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e680ee5afffdb458de1157e075e6d9aa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 14829,
            "upload_time": "2023-04-09T10:28:25",
            "upload_time_iso_8601": "2023-04-09T10:28:25.575818Z",
            "url": "https://files.pythonhosted.org/packages/bb/17/959ec6c679c2ea772dbbb1e4eeacb523d4569882e325d0471c77264b7758/pokegraph-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-09 10:28:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "starchildluke",
    "github_project": "pokegraph",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pokegraph"
}
        
Elapsed time: 0.05671s