outfancy


Nameoutfancy JSON
Version 0.7.1 PyPI version JSON
download
home_page
SummaryPython3.11+ library to print tables and line charts in Terminal.
upload_time2023-05-19 21:49:04
maintainer
docs_urlNone
author
requires_python
licenseMIT License
keywords rendering graphical terminal chart graph
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # outfancy

*Table printing and Line plotting in Terminal*

<img src='examples/chart_auto.png'>

## Demonstration
- http://showterm.io/42f0bfa286232758acf18
- http://showterm.io/5a31927cbfdc37e116f8d

## what is it?
Outfancy is a Python3.11+ library to print tables in Terminal. It's a quick way to visualize data when you don't have a GUI and can be integrated easily in your programs. It's written in Python 3.6 and can quickly be installed anywhere using pip.

## installation
### install with pip
```
pip install outfancy
```

## features

- Quick printing of tables.
- LineChart printing with linear interpolation.
- customize the separator used, width, priority of printing for each column.
- rearrange the columns in real time.
- Add labels above the table (can be autogenerated).
- Do Oneline printing, useful for real-time applications (report in screen function).
- Add colors to the field of the tables.

## usage
### In the interpreter
# Table.
```
import outfancy.table
table = outfancy.table.Table()
dataset = [(1, 'Marie'), (2, 'Joseph')]
print(table.render(dataset))
```

# Chart.
```
import outfancy.chart

from math import sin
line_chart = outfancy.chart.LineChart()

dataset = [(i, sin(i)) for i in range(10)]
line_chart.plot(dataset)
print(line_chart.render(color=True))
```

## To do (Colaboration is welcome)
- Translate code to english. (Translated) (the translation need revision from a native english speaker (I speak spanish).
- Improve y_interpolation function on outfancy.chart.LineChart
  Maybe add more kinds of charts on outfancy.chart.
  Maybe on outfancy.table:
     - Checking system on width parameter.
     - Option to cancel the automatical checking of width parameter.

## Others
- https://gist.github.com/carlosplanchon/986c7c11a932a7206bb3 (Funny demo with colors)

## Experimental (Line Chart)
<img src='examples/sin_little_2.png'>
- http://showterm.io/80074a1806e78205339d6

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "outfancy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "rendering,graphical,terminal,chart,graph",
    "author": "",
    "author_email": "\"Carlos A. Planch\u00f3n\" <carlosandresplanchonprestes@gmail.com>",
    "download_url": "",
    "platform": null,
    "description": "# outfancy\n\n*Table printing and Line plotting in Terminal*\n\n<img src='examples/chart_auto.png'>\n\n## Demonstration\n- http://showterm.io/42f0bfa286232758acf18\n- http://showterm.io/5a31927cbfdc37e116f8d\n\n## what is it?\nOutfancy is a Python3.11+ library to print tables in Terminal. It's a quick way to visualize data when you don't have a GUI and can be integrated easily in your programs. It's written in Python 3.6 and can quickly be installed anywhere using pip.\n\n## installation\n### install with pip\n```\npip install outfancy\n```\n\n## features\n\n- Quick printing of tables.\n- LineChart printing with linear interpolation.\n- customize the separator used, width, priority of printing for each column.\n- rearrange the columns in real time.\n- Add labels above the table (can be autogenerated).\n- Do Oneline printing, useful for real-time applications (report in screen function).\n- Add colors to the field of the tables.\n\n## usage\n### In the interpreter\n# Table.\n```\nimport outfancy.table\ntable = outfancy.table.Table()\ndataset = [(1, 'Marie'), (2, 'Joseph')]\nprint(table.render(dataset))\n```\n\n# Chart.\n```\nimport outfancy.chart\n\nfrom math import sin\nline_chart = outfancy.chart.LineChart()\n\ndataset = [(i, sin(i)) for i in range(10)]\nline_chart.plot(dataset)\nprint(line_chart.render(color=True))\n```\n\n## To do (Colaboration is welcome)\n- Translate code to english. (Translated) (the translation need revision from a native english speaker (I speak spanish).\n- Improve y_interpolation function on outfancy.chart.LineChart\n  Maybe add more kinds of charts on outfancy.chart.\n  Maybe on outfancy.table:\n     - Checking system on width parameter.\n     - Option to cancel the automatical checking of width parameter.\n\n## Others\n- https://gist.github.com/carlosplanchon/986c7c11a932a7206bb3 (Funny demo with colors)\n\n## Experimental (Line Chart)\n<img src='examples/sin_little_2.png'>\n- http://showterm.io/80074a1806e78205339d6\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Python3.11+ library to print tables and line charts in Terminal.",
    "version": "0.7.1",
    "project_urls": {
        "repository": "https://github.com/carlosplanchon/outfancy.git"
    },
    "split_keywords": [
        "rendering",
        "graphical",
        "terminal",
        "chart",
        "graph"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b175a30ea778b11bfc1ebcac9c3d27a5a55d245073887f4c7d012d5e6299e359",
                "md5": "95ab3f5f609133969cc15e50a6932c3d",
                "sha256": "20e6e7f5093d5805d15a101b014be3dbb7bdbe0542135be8dd69ea0ad8ab577f"
            },
            "downloads": -1,
            "filename": "outfancy-0.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "95ab3f5f609133969cc15e50a6932c3d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 27617,
            "upload_time": "2023-05-19T21:49:04",
            "upload_time_iso_8601": "2023-05-19T21:49:04.389702Z",
            "url": "https://files.pythonhosted.org/packages/b1/75/a30ea778b11bfc1ebcac9c3d27a5a55d245073887f4c7d012d5e6299e359/outfancy-0.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-19 21:49:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "carlosplanchon",
    "github_project": "outfancy",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "outfancy"
}
        
Elapsed time: 0.34676s