storystructure
A Python package to explore the structure of branching stories. Documentation <https://sellisd.github.io/storystructure/>
Requirements
The module has been developed with python 3.6.6 and the following modules. Other versions might work also but have not been tested:
pathlib2 v.2.2.0
pandas v.0.19.2
numpy v.1.11.3
Installation
pip install storystructure
Example usage
To use the package two input data files are necessary:
An edgelist file with columns source and target
A node attributes file with columns node and attribute. The attribute column must be on of the following values good, bad, pause.
from storystructure.storystructure import storystructure
# create a new object
s = storystructure.storystructure()
# load an edgelist and node attributes
s.loadStory(edges='edgelist.csv',
nodes='nodeAttributes.csv')
s.saveFig('graph'.png') # Make figure
s.simplify() # Removing self loops and double edges
s.makeGraph()
s.savePathStats('allPaths.dat')
An more detailed example is included in the jupyter notebook scripts/Tutorial.ipybn
Metadata
Release files for storystructure 1.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 |
|---|---|---|---|---|
| storystructure-1.0.2.tar.gz | 172.3 kB | Without provenance | Details for storystructure-1.0.2.tar.gz |
Release files / storystructure-1.0.2.tar.gz
| Download URL | storystructure-1.0.2.tar.gz |
|---|---|
| Size | 172.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fdb0cb21108aad1655eec5da93006b76fb424eccb1a00436992a614e9bbe363
|
|
BLAKE2b-256 checksum How to use checksums |
3b424e4c38ebc92ccc9e46fd12f43c9aa73251987c868b34c254b218acdb23f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Security for storystructure 1.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.