tigereye
========
.. image:: https://img.shields.io/pypi/v/tigereye.svg
:target: https://pypi.python.org/pypi/tigereye
.. image:: https://img.shields.io/travis/grnydawn/tigereye.svg
:target: https://travis-ci.org/grnydawn/tigereye
All-in-one data utility for Python users
* Free software: MIT license
* Documentation: https://grnydawn.github.io/tigereyedocs.
-----------------
What is tigereye?
-----------------
Tigereye is a portable command-line utility for creating plots from various sources of data. It advocates incremental plotting that you can immediately see the effect of changes made in command-line. Until satisfied, you can generate plots through a very quick cycle of "change-run-see". In addition, tigereye can read data of various formats, compactly modify them on command-line, and output modified data as the form of plots as well as texts. Tigereye also supports importing both of plots and data that could be created independently.
------------
Installation
------------
Dependencies
============
Tigereye extensively uses pandas_, numpy_ and matplotlib_ Python packages. Before using tigereye, the three Python packages need to be installed. You can check if the packages are available locally on your computer by running following commands. You should see three numbers similar to "2.2.2" per each commands below. If not, please visit corresponding package site and follow installation direction to install.
.. code-block:: text
$ python -c "import numpy; print(numpy.__version__)"
$ python -c "import pandas; print(pandas.__version__)"
$ python -c "import matplotlib; print(matplotlib.__version__)"
You can install tigereye either using pip Python package manager or using source code from github repositiory. You may get a stable version from using pip and a latest version from using source code.
Installing tigereye using pip
=============================
.. code-block:: text
$ pip install tigereye
$ tigereye --version
Installing tigereye from github repository
==========================================
.. code-block:: text
$ git clone https://github.com/grnydawn/tigereye.git
$ cd tigereye
$ python setup.py install
$ tigereye --version
----------------
Simple examples
----------------
The simplest tigereye plot
==========================
.. code-block:: text
$ tigereye "[1,2,4]"
A title is added.
=================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16"
Labels are added into x and y axes.
===================================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12"
Data is generated using numpy.
==============================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.sin(D[0].values)" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ D[0].values, D[1].values, label='line1'"
Plot is generated using a template .
====================================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.cos(D[0].values)" \
"--import-task" \
"https://raw.githubusercontent.com/grnydawn/tigereye/master/template/basic/sample1.tgr?name=sinplot@X=D[0].values, Y=D[1].values" \
-t "'My Plot'"
Data is read from a local file.
===============================
.. code-block:: text
$ echo $'1,2,3\n4,5,6\n7,8,9' > simple.csv
$ tigereye simple.csv \
--data-format "csv@delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@row0, row2, label='line-1'" \
-p "bar@ row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Data is read from online.
===============================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--data-format "csv@ delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ row0, row2, label='line-1'" \
-p "bar,@row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Multi-page PDF file is generated .
==================================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--pdf-bind "'sample.pdf'" \
--data-format "csv@ delimiter=',', header=None" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
--calc "npages = D.shape[0]" \
--pages "npages" \
-p "plot@ numpy.arange(npages), D.values[page_num, :], label='line-%d'%page_num" \
-t "'Page-%d'%page_num" \
-g \
-l
---------------
Further reading
---------------
tigereye_ Documentation
--------------
Acknowledgment
--------------
Tigereye extensively uses matplotlib_ and numpy_. The packages have vastly accepted by community with reasons. Tigereye could be considered as a wrapper of several well-known Python packages including matplotlib_ and numpy_.
.. _matplotlib: https://matplotlib.org/
.. _numpy: http://www.numpy.org/
.. _pandas: https://pandas.pydata.org/
.. _tigereye: https://grnydawn.github.io/tigereyedocs
=======
History
=======
0.1.2 (2018-06-24)
------------------
* First release on PyPI.
Metadata
Release files for tigereye 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tigereye-0.2.1.tar.gz | 9.5 kB | Without provenance | Details for tigereye-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tigereye-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tigereye-0.2.1-py2.py3-none-any.whl |
Total release size: 20.9 kB
Release files / tigereye-0.2.1.tar.gz
| Download URL | tigereye-0.2.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
244254a563dbd54ce3c72a72471d09af60e66000288e5d9012606adc44aefe0d
|
|
BLAKE2b-256 checksum How to use checksums |
0679825ca4f6487e786fc6d9796ffe7f19fd53263410093c18de5842a52fc54e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.12
|
Release files / tigereye-0.2.1-py2.py3-none-any.whl
| Download URL | tigereye-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a8de0ec178816813c239c9d8aee119d33fb750569bc8266d0d49aacd9878c682
|
|
BLAKE2b-256 checksum How to use checksums |
5af4c570e4ee7b3f09e5c1b897bd6b77881da7940d745a78de7fabd9aa299699
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.12
|
Security for tigereye 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.