constrainedrandom


Nameconstrainedrandom JSON
Version 1.1.2 PyPI version JSON
download
home_page
SummaryA library for creating and solving constrained randomization problems
upload_time2023-11-15 16:43:04
maintainer
docs_urlNone
author
requires_python>=3.8.3
licenseMIT License Copyright (c) 2023 Imagination Technologies Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords constrained constraint random randomization verification
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `constrainedrandom`

A package for creating and solving constrained randomization problems.

Use this package to create SystemVerilog-style "declarative" randomizable objects in Python.

This is achieved by providing wrappers around the Python [`random`](https://docs.python.org/3/library/random.html) and [`constraint`](https://pypi.org/project/python-constraint/) packages, and aims to be as efficient as possible in a language like Python.


## Installation

```bash
$ pip install constrainedrandom
```

## Documentation

[Read the docs here](https://constrainedrandom.readthedocs.io/en/latest/)

To build the documentation yourself:
```bash
$ cd docs
$ make html
```

The index page is at `docs/_build/html/index.html` - you can open this in a web browser.

## Releases/versioning

Releases are created using tags from the repository and can be found on [PyPI](https://pypi.org/project/constrainedrandom/).

Versioning attempts to follow [Semantic Versioning](https://semver.org/).

## Contributions

Please feel free to contribute to the project, following these guidelines:
- Please contribute by creating a fork and submitting a pull request.
- Pull requests should be as small as possible to resolve the issue they are trying to address.
- Pull requests must respect the goals of the library, as stated in the documentation.
- Pull requests should maintain backwards compatibility at least as far as Python 3.8.
- Pull requests should pass all the tests in the `tests/` directory. Run `python -m tests`.
- Pull requests should take care not to make performance worse except for cases which require bug fixes. Run `python -m tests` and `python -m benchmarks`.
- Pull requests should update the documentation for any added/changed functionality.

## `TODO`
  - Add proper CI using tox or similar, testing Python versions 3.8..current
  - Add equivalent SystemVerilog testcases for benchmarking.

## Contact the author(s)

Will Keen - william.keen@imgtec.com

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "constrainedrandom",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.3",
    "maintainer_email": "",
    "keywords": "constrained,constraint,random,randomization,verification",
    "author": "",
    "author_email": "Will Keen <william.keen@imgtec.com>",
    "download_url": "https://files.pythonhosted.org/packages/3d/62/5c1c8f6ece71b0f4d8a5f23afe7f1013676406e2be250efbd7a10778dac7/constrainedrandom-1.1.2.tar.gz",
    "platform": null,
    "description": "# `constrainedrandom`\n\nA package for creating and solving constrained randomization problems.\n\nUse this package to create SystemVerilog-style \"declarative\" randomizable objects in Python.\n\nThis is achieved by providing wrappers around the Python [`random`](https://docs.python.org/3/library/random.html) and [`constraint`](https://pypi.org/project/python-constraint/) packages, and aims to be as efficient as possible in a language like Python.\n\n\n## Installation\n\n```bash\n$ pip install constrainedrandom\n```\n\n## Documentation\n\n[Read the docs here](https://constrainedrandom.readthedocs.io/en/latest/)\n\nTo build the documentation yourself:\n```bash\n$ cd docs\n$ make html\n```\n\nThe index page is at `docs/_build/html/index.html` - you can open this in a web browser.\n\n## Releases/versioning\n\nReleases are created using tags from the repository and can be found on [PyPI](https://pypi.org/project/constrainedrandom/).\n\nVersioning attempts to follow [Semantic Versioning](https://semver.org/).\n\n## Contributions\n\nPlease feel free to contribute to the project, following these guidelines:\n- Please contribute by creating a fork and submitting a pull request.\n- Pull requests should be as small as possible to resolve the issue they are trying to address.\n- Pull requests must respect the goals of the library, as stated in the documentation.\n- Pull requests should maintain backwards compatibility at least as far as Python 3.8.\n- Pull requests should pass all the tests in the `tests/` directory. Run `python -m tests`.\n- Pull requests should take care not to make performance worse except for cases which require bug fixes. Run `python -m tests` and `python -m benchmarks`.\n- Pull requests should update the documentation for any added/changed functionality.\n\n## `TODO`\n  - Add proper CI using tox or similar, testing Python versions 3.8..current\n  - Add equivalent SystemVerilog testcases for benchmarking.\n\n## Contact the author(s)\n\nWill Keen - william.keen@imgtec.com\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Imagination Technologies Ltd.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A library for creating and solving constrained randomization problems",
    "version": "1.1.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/imaginationtech/constrainedrandom/issues",
        "Homepage": "https://github.com/imaginationtech/constrainedrandom"
    },
    "split_keywords": [
        "constrained",
        "constraint",
        "random",
        "randomization",
        "verification"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "096bf079f9c2e85efd592523b43a26dfd8a3dc025daf0e80b8f3ab207c3deb69",
                "md5": "15a6007d066f78cf0872771cdcd874b5",
                "sha256": "5683fd2ae6b48b657687c29d71046148fa2c8e0dfd90d69b12933f916cf26969"
            },
            "downloads": -1,
            "filename": "constrainedrandom-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "15a6007d066f78cf0872771cdcd874b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.3",
            "size": 30007,
            "upload_time": "2023-11-15T16:43:03",
            "upload_time_iso_8601": "2023-11-15T16:43:03.342958Z",
            "url": "https://files.pythonhosted.org/packages/09/6b/f079f9c2e85efd592523b43a26dfd8a3dc025daf0e80b8f3ab207c3deb69/constrainedrandom-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d625c1c8f6ece71b0f4d8a5f23afe7f1013676406e2be250efbd7a10778dac7",
                "md5": "30a4225dcefaf367d68eea569292fa4c",
                "sha256": "ee0c7b00b1fc27522243a43bc4f2df9678e5137daf6493076c2a0df00777a885"
            },
            "downloads": -1,
            "filename": "constrainedrandom-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "30a4225dcefaf367d68eea569292fa4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.3",
            "size": 52283,
            "upload_time": "2023-11-15T16:43:04",
            "upload_time_iso_8601": "2023-11-15T16:43:04.580510Z",
            "url": "https://files.pythonhosted.org/packages/3d/62/5c1c8f6ece71b0f4d8a5f23afe7f1013676406e2be250efbd7a10778dac7/constrainedrandom-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-15 16:43:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "imaginationtech",
    "github_project": "constrainedrandom",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "constrainedrandom"
}
        
Elapsed time: 0.15977s