{"id":15292148,"url":"https://github.com/kecnry/distl","last_synced_at":"2025-04-13T10:43:07.820Z","repository":{"id":52609192,"uuid":"169152892","full_name":"kecnry/distl","owner":"kecnry","description":"Simplified and Condensed Distributions","archived":false,"fork":false,"pushed_at":"2024-11-08T22:04:35.000Z","size":12404,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T02:07:58.240Z","etag":null,"topics":["distributions","numpy","python"],"latest_commit_sha":null,"homepage":"https://distl.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kecnry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T21:30:22.000Z","updated_at":"2024-11-08T22:04:40.000Z","dependencies_parsed_at":"2022-09-02T13:10:33.035Z","dependency_job_id":null,"html_url":"https://github.com/kecnry/distl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fdistl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fdistl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fdistl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fdistl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kecnry","download_url":"https://codeload.github.com/kecnry/distl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248701976,"owners_count":21148111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributions","numpy","python"],"created_at":"2024-09-30T16:16:46.242Z","updated_at":"2025-04-13T10:43:07.794Z","avatar_url":"https://github.com/kecnry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"http://distl.readthedocs.io\"\u003e\u003cimg src=\"./docs/images/distl.png\" alt=\"distl logo\" width=\"300px\" align=\"center\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\" style=\"text-align:center\"\u003e\u003ci\u003esimplified and condensed distributions\u003c/i\u003e\u003c/p\u003e\n\n\u003cpre align=\"center\" style=\"text-align:center; font-family:monospace; margin: 30px\"\u003e\n  pip install distl\n\u003c/pre\u003e\n\n\n\n[![badge](https://img.shields.io/badge/github-kecnry%2Fdistl-blue.svg)](https://github.com/kecnry/distl)\n[![badge](https://img.shields.io/badge/pip-distl-lightgray.svg)](https://pypi.org/project/distl/)\n![badge](https://img.shields.io/badge/python-2.7+%20%7C%203.6+-blue.svg)\n[![badge](https://img.shields.io/badge/license-GPL3-blue.svg)](https://github.com/kecnry/distl/blob/master/LICENSE)\n[![badge](https://travis-ci.com/kecnry/distl.svg?branch=master)](https://travis-ci.com/kecnry/distl)\n[![badge](https://img.shields.io/codecov/c/github/kecnry/distl)](https://codecov.io/gh/kecnry/distl)\n[![badge](https://readthedocs.org/projects/distl/badge/?version=latest)](https://distl.readthedocs.io/en/latest/?badge=latest)\n\n\n**IMPORTANT**: **distl** is currently still under development, is not yet well-tested, and is subject to significant API changes.  Please keep posted until an official release is ready.\n\nRead the [latest documentation on readthedocs](https://distl.readthedocs.io) or [browse the current documentation](./docs/index.md).\n\n**distl** provides a python object-interface on top of several distribution (random variable) functions in [scipy.stats](https://docs.scipy.org/doc/scipy/reference/stats.html) and allows for:\n\n  - serialization of distributions (so they can be saved to disk or pickled and sent to processors within MPI)\n  - support for units and wrapping\n  - conversion between different types of distributions\n  - math between distributions, handling covariances from multivariate distributions wherever possible\n  - plotting convenience functions\n\n## Getting Started\n\n### Dependencies\n\n**distl** requires the following dependencies:\n\n  - python 2.7+ or 3.6+\n  - scipy 1.0+\n  - numpy 1.10+\n\n\nand the following optional dependencies:\n\n  - matplotlib 2.2+ (required for plotting distributions)\n  - [corner](https://corner.readthedocs.io) (required for plotting multivariate distributions and distribution collections)\n  - astropy 1.0+ (required for units support)\n  - dill (required for saving/loading Function distributions)\n\n\nYou can see the [Travis testing matrix](https://travis-ci.com/kecnry/distl) for\ndetails on what exact versions have been tested and ensured to work.  If you run\ninto any issues with dependencies, please [submit an issue](https://github.com/kecnry/distl/issues/new).\n\n### Installation\n\nTo install the latest release via pip:\n\n```sh\npip install distl\n```\n\nTo install from source locally for a single user:\n\n```sh\npython setup.py build\npython setup.py install --user\n```\n\nOr to install globally:\n\n```sh\npython setup.py build\nsudo python setup.py install\n```\n\n### Import\n\nNow from within python we can import the `distl` package:\n\n```py\nimport distl\n```\n\nand then create, sample from, and plot our first distribution:\n\n```py\ng = distl.gaussian(10, 1)\nprint(g.sample())\nprint(g.sample(10))\ng.plot(show=True)\n```\n\n## Documentation and API Docs\n\nRead the [latest documentation on readthedocs](https://distl.readthedocs.io) or [browse the current documentation](./docs/index.md).\n\n## Contributors\n\n[Kyle Conroy](https://github.com/kecnry)\n\nContributions are welcome!  Feel free to file an issue or fork and create a pull-request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkecnry%2Fdistl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkecnry%2Fdistl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkecnry%2Fdistl/lists"}