stanio


Namestanio JSON
Version 0.5.1 PyPI version JSON
download
home_pageNone
SummaryUtilities for preparing Stan inputs and processing Stan outputs
upload_time2024-07-08 19:35:48
maintainerNone
docs_urlNone
authorStan Dev Team
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # StanIO

[![codecov](https://codecov.io/gh/stan-dev/stanio/graph/badge.svg?token=P93MLO21FK)](https://codecov.io/gh/stan-dev/stanio) [![Tests](https://github.com/stan-dev/stanio/actions/workflows/test.yaml/badge.svg)](https://github.com/stan-dev/stanio/actions/workflows/test.yaml)

A set of Python functions for data-wrangling in the formats used by
the [Stan](https://mc-stan.org) probabalistic programming language.

It is primarily developed for use in [cmdstanpy](https://github.com/stan-dev/cmdstanpy).

## Features

- Writing Python dictionaries to Stan-compatible JSON (with optional support for using `ujson` for faster serialization)
- Basic reading of StanCSV files into numpy arrays
- Parameter extraction from numpy arrays based on StanCSV headers
  - e.g., if you have a `matrix[2,3] x` in a Stan program, extracting `x` will give you a `(num_draws, 2, 3)` numpy array

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "stanio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Stan Dev Team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/2c/5b/6e376499c3f9d71e4154b031d059663598534dd038f421e8c643d61afec5/stanio-0.5.1.tar.gz",
    "platform": null,
    "description": "# StanIO\n\n[![codecov](https://codecov.io/gh/stan-dev/stanio/graph/badge.svg?token=P93MLO21FK)](https://codecov.io/gh/stan-dev/stanio) [![Tests](https://github.com/stan-dev/stanio/actions/workflows/test.yaml/badge.svg)](https://github.com/stan-dev/stanio/actions/workflows/test.yaml)\n\nA set of Python functions for data-wrangling in the formats used by\nthe [Stan](https://mc-stan.org) probabalistic programming language.\n\nIt is primarily developed for use in [cmdstanpy](https://github.com/stan-dev/cmdstanpy).\n\n## Features\n\n- Writing Python dictionaries to Stan-compatible JSON (with optional support for using `ujson` for faster serialization)\n- Basic reading of StanCSV files into numpy arrays\n- Parameter extraction from numpy arrays based on StanCSV headers\n  - e.g., if you have a `matrix[2,3] x` in a Stan program, extracting `x` will give you a `(num_draws, 2, 3)` numpy array\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Utilities for preparing Stan inputs and processing Stan outputs",
    "version": "0.5.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/stan-dev/stanio/issues",
        "Homepage": "https://github.com/stan-dev/stanio"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "568737a80e4d5bd453c33262d8fb618b6840fd98d24ed08e046a4a9b10177fa3",
                "md5": "c8810e83b0f3322fdcca7370a256d986",
                "sha256": "99ad590daa5834681245c2b651716ec2e06223853661ada21430c621521c849f"
            },
            "downloads": -1,
            "filename": "stanio-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8810e83b0f3322fdcca7370a256d986",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8065,
            "upload_time": "2024-07-08T19:35:46",
            "upload_time_iso_8601": "2024-07-08T19:35:46.503965Z",
            "url": "https://files.pythonhosted.org/packages/56/87/37a80e4d5bd453c33262d8fb618b6840fd98d24ed08e046a4a9b10177fa3/stanio-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c5b6e376499c3f9d71e4154b031d059663598534dd038f421e8c643d61afec5",
                "md5": "a0acf3ee832576f3dc3ea534b9fefa46",
                "sha256": "348d52f947dec431e118f4b601c4c5296929b86401d4d4dd5aa9373b0d4ae4ac"
            },
            "downloads": -1,
            "filename": "stanio-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a0acf3ee832576f3dc3ea534b9fefa46",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11983,
            "upload_time": "2024-07-08T19:35:48",
            "upload_time_iso_8601": "2024-07-08T19:35:48.029687Z",
            "url": "https://files.pythonhosted.org/packages/2c/5b/6e376499c3f9d71e4154b031d059663598534dd038f421e8c643d61afec5/stanio-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-08 19:35:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stan-dev",
    "github_project": "stanio",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "stanio"
}
        
Elapsed time: 0.34332s