random-partition-py


Namerandom-partition-py JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryGenerate approximately uniformly distributed random integer partitions.
upload_time2023-09-10 13:01:22
maintainerNone
docs_urlNone
authorStefan Volz
requires_python>=3.7
licenseMIT OR Apache-2.0
keywords random partition mathematics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Generate random integer partitions

This is a python wrapper for the rust crate `random-partition` for generating integers partitions with a given number of parts.

# Example

```python
import random_partition_py as rpp

# generates a single partition of 20 into 5 parts
print(rpp.random_partitions(20, 5))

# generates multiple partitions 
print(rpp.random_partitions(20, 5, 3))

# same thing but with an additional seed (note that the seed is kw-only)
print(rpp.random_partitions_seeded(20, 5, 3, seed=0))
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "random-partition-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "random,partition,mathematics",
    "author": "Stefan Volz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/af/ad/846c4d9987e942555d1c16cabdd69debac4022fc19123d4b5979858e6f5f/random_partition_py-0.2.0.tar.gz",
    "platform": null,
    "description": "# Generate random integer partitions\n\nThis is a python wrapper for the rust crate `random-partition` for generating integers partitions with a given number of parts.\n\n# Example\n\n```python\nimport random_partition_py as rpp\n\n# generates a single partition of 20 into 5 parts\nprint(rpp.random_partitions(20, 5))\n\n# generates multiple partitions \nprint(rpp.random_partitions(20, 5, 3))\n\n# same thing but with an additional seed (note that the seed is kw-only)\nprint(rpp.random_partitions_seeded(20, 5, 3, seed=0))\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT OR Apache-2.0",
    "summary": "Generate approximately uniformly distributed random integer partitions.",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/SV-97/random-partition/issues",
        "Homepage": "https://github.com/SV-97/random-partition"
    },
    "split_keywords": [
        "random",
        "partition",
        "mathematics"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "23b6b6d33cede0fb0b22a75292730605eadaf852b3a97bff0771752e751251fd",
                "md5": "20bdc00492ed5283a8e302f68d3eab11",
                "sha256": "81c353e309fba57fdde4fd901f88e1c5ebd9be229a5ac64c62e251781e921c89"
            },
            "downloads": -1,
            "filename": "random_partition_py-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "20bdc00492ed5283a8e302f68d3eab11",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 356481,
            "upload_time": "2023-09-10T13:01:20",
            "upload_time_iso_8601": "2023-09-10T13:01:20.476262Z",
            "url": "https://files.pythonhosted.org/packages/23/b6/b6d33cede0fb0b22a75292730605eadaf852b3a97bff0771752e751251fd/random_partition_py-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "afad846c4d9987e942555d1c16cabdd69debac4022fc19123d4b5979858e6f5f",
                "md5": "e596e05c925869f71d22694f16e059be",
                "sha256": "0e0577745c22d0cd94a92296dd5d87aa06cf4304f31f24b7f85d18363bd7c9dc"
            },
            "downloads": -1,
            "filename": "random_partition_py-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e596e05c925869f71d22694f16e059be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9021,
            "upload_time": "2023-09-10T13:01:22",
            "upload_time_iso_8601": "2023-09-10T13:01:22.889926Z",
            "url": "https://files.pythonhosted.org/packages/af/ad/846c4d9987e942555d1c16cabdd69debac4022fc19123d4b5979858e6f5f/random_partition_py-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-10 13:01:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SV-97",
    "github_project": "random-partition",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "random-partition-py"
}
        
Elapsed time: 1.96402s