Skip to main content

A library for creating and solving constrained randomization problems

Project description

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

Read the docs here

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.

Releases/versioning

Releases are created using tags from the repository and can be found on PyPI.

Versioning attempts to follow Semantic Versioning.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

constrainedrandom-1.0.2.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

constrainedrandom-1.0.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file constrainedrandom-1.0.2.tar.gz.

File metadata

  • Download URL: constrainedrandom-1.0.2.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for constrainedrandom-1.0.2.tar.gz
Algorithm Hash digest
SHA256 31dc65ce68df026091f93cc2917e858d661ae61a25819884076ff3afb30f713b
MD5 80f5d6531b9cda87f16d1adc98c68c78
BLAKE2b-256 cd4bb576c7353b46d675c5c6be82b2e7ecbc23d3467d1240d734dbae5668acfc

See more details on using hashes here.

File details

Details for the file constrainedrandom-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for constrainedrandom-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40dc589aef2d80fa70cbcc6beb02723276e46142a923f372e918fdf4c1544864
MD5 ec0bd8be4aae31e379d3925c9dfdb805
BLAKE2b-256 7d491d4defe1fa3bd70b5c07090e2837e956b06ad127d2cd485beeb2241ae5ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page