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 and constraint packages, and aims to be as efficient as possible in a language like Python.
Installation
$ pip install constrainedrandom
Documentation
To build the documentation yourself:
$ cd docs
$ make html
The index page is at docs/_build/html/index.html - you can open this in a web browser.
Tests and benchmarks
Please see tests/README.md and benchmarks/README.md for more information.
Releases/versioning
Releases are created using tags from the repository and can be found on PyPI.
Versioning attempts to follow Semantic Versioning.
See CHANGELOG.md for the changes in each release.
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. Runpython -m tests. - Pull requests should take care not to make performance worse except for cases which require bug fixes. Run
python -m testsandpython -m benchmarks. - Pull requests should update the documentation for any added/changed functionality.
- Pull requests should add an entry to the
[Unreleased]section ofCHANGELOG.md.
Contact the author(s)
Will Keen - willkeencodes@gmail.com
Metadata
Release files for constrainedrandom 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| constrainedrandom-1.3.0.tar.gz | 79.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| constrainedrandom-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 116.1 kB
Release files / constrainedrandom-1.3.0.tar.gz
| Download URL | constrainedrandom-1.3.0.tar.gz |
|---|---|
| Size | 79.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50dd5de0e6e7926bb8987efc9b4de4e046ff067eccadd44c4af36167b03ee781
|
|
BLAKE2b-256 checksum How to use checksums |
c316090c1c7829538312696447511ca3e37bd15cd686d5ef11eb0191b1f35ba2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / constrainedrandom-1.3.0-py3-none-any.whl
| Download URL | constrainedrandom-1.3.0-py3-none-any.whl |
|---|---|
| Size | 36.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca872e2d6325ae44a20d0c16a1d4911c33c3d735c16bc4b86eaa526e8d53ea1e
|
|
BLAKE2b-256 checksum How to use checksums |
2272a7978d9c3a60727bf47061b6db79cb8cf888b85c73d9e28a356f99da9b8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|