sonata


Namesonata JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/AllenInstitute/sonata
SummarySONATA Data Format API
upload_time2019-10-01 19:17:08
maintainer
docs_urlNone
author
requires_python
license
keywords neuroscience scientific modeling networks simulation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pySONATA

A python library for the SONATA data format

## Installation

```bash
$ python setup.py install

```
*More to come*


## Reading Configuration files
You can parse and validate a config json file using the from_json function in config.py. It will take care of manifest variables, combine links to other parts of the config (simulation.json, circuit.json) and return a completed json in python dictionary.
```python
from config import from_json
cfg = from_json('path/to/config.json')
print(cfg['run']['tstart'])

```
Note:
* You can also pass in a [jsonschema IValidator object](http://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IValidator) which will check if the json file follows the schema. The AIBS BMTK uses our own custom validators, and if desired I can add the code to this repo.


## Reading in Data Files (Nodes and Edges)

* [pySONATA Tutorial](docs/Tutorial%20-%20pySONATA.ipynb)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AllenInstitute/sonata",
    "name": "sonata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "neuroscience,scientific,modeling,networks,simulation",
    "author": "",
    "author_email": "",
    "download_url": "",
    "platform": "any",
    "description": "# pySONATA\n\nA python library for the SONATA data format\n\n## Installation\n\n```bash\n$ python setup.py install\n\n```\n*More to come*\n\n\n## Reading Configuration files\nYou can parse and validate a config json file using the from_json function in config.py. It will take care of manifest variables, combine links to other parts of the config (simulation.json, circuit.json) and return a completed json in python dictionary.\n```python\nfrom config import from_json\ncfg = from_json('path/to/config.json')\nprint(cfg['run']['tstart'])\n\n```\nNote:\n* You can also pass in a [jsonschema IValidator object](http://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IValidator) which will check if the json file follows the schema. The AIBS BMTK uses our own custom validators, and if desired I can add the code to this repo.\n\n\n## Reading in Data Files (Nodes and Edges)\n\n* [pySONATA Tutorial](docs/Tutorial%20-%20pySONATA.ipynb)\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "SONATA Data Format API",
    "version": "0.0.2",
    "split_keywords": [
        "neuroscience",
        "scientific",
        "modeling",
        "networks",
        "simulation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f506fffb658007fb119c07f648a4cb7358dc6f5f6b15ae983357478b437bec3",
                "md5": "63601968613634b4a585c811098d6ab3",
                "sha256": "00590f9491bd1e8d3fec8cae1cf34c09ad339a37d1d8817ad2b51516726c0ef3"
            },
            "downloads": -1,
            "filename": "sonata-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63601968613634b4a585c811098d6ab3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 70932,
            "upload_time": "2019-10-01T19:17:08",
            "upload_time_iso_8601": "2019-10-01T19:17:08.943213Z",
            "url": "https://files.pythonhosted.org/packages/0f/50/6fffb658007fb119c07f648a4cb7358dc6f5f6b15ae983357478b437bec3/sonata-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-10-01 19:17:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "AllenInstitute",
    "github_project": "sonata",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sonata"
}
        
Elapsed time: 0.07014s