[](https://circleci.com/gh/sketchytechky/graphitty)
[](https://coveralls.io/github/sketchytechky/graphitty?branch=master)
A Python library that convert time series to direction Graph to discover the story within data.

# Installing
To install this package, runs:
pip install git+https://github.com/sketchytechky/graphitty.git
Remember to add the following line to `requirements.txt`
git+https://github.com/sketchytechky/graphitty.git
-----------
# How to use
```
from graphitty.graphitty import Graphitty
import pandas as pd
# Example input data - see test_simple.py for example
df = pd.DataFrame(
[...],
columns=['timestamp','action', 'user_id'])
# Parsing and outputting graph
g = Graphitty(
df,
id_col='user_id',
beahivour_col='action',
ts_col='timestamp')
nx_graph = g.render()
# create the beautiful directional graph
# see https://github.com/chebee7i/nxpd for usage
import nxpd
nxpd.draw(nx_graph, show='ipynb')
```
# Running Tests
Run test with
py.test --pep8
To run test in watch mode
py.test.watch -- --pep8
# same with: ptw -- --pep8
-----------
# Related research
* Information Foraging Theory:Adaptive Interaction with Information - http://www.peterpirolli.com/Professional/About_Me_files/IFT%20Ch%201.pdf
* Jakob Nielson example on how to apply information foraging theory to understand visitor's behaviour
- http://www.useit.com/alertbox/scrolling-attention.html
- https://www.nngroup.com/articles/information-scent/
Metadata
Release files for graphitty 0.0.2
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 |
|---|---|---|---|---|
| graphitty-0.0.2.tar.gz | 6.1 kB | Without provenance | Details for graphitty-0.0.2.tar.gz |
Release files / graphitty-0.0.2.tar.gz
| Download URL | graphitty-0.0.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b80dbdd9b9f406a713ff053b6037f7711bd54af3a26237fc23148e8d6f0850d2
|
|
BLAKE2b-256 checksum How to use checksums |
6afea0568e362f9862b60dfe095531d737f05ae070d7af8030d7c63575497050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for graphitty 0.0.2
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.