Hypothesis strategies for generating Python programs, something like CSmith
Hypothesis strategies for generating Python programs, something like CSmith.
This is definitely pre-alpha, but if you want to play with it feel free! You can even keep the shiny pieces when - not if - it breaks.
Get it today with
pip install hypothesmith, or by cloning the GitHub repo.
You can run the tests, such as they are, with
tox on Python 3.6 or later.
0.0.3 - 2019-08-08
Checks validity at statement level, which makes filtering much more efficient. Improved testing, input validation, and code comments.
0.0.2 - 2019-08-07
Improved filtering and fixing of source code generated from the grammar.
This version found a novel bug:
"pass #\\r#\\n" is accepted by the
exec() functions, but not by
0.0.1 - 2019-08-06
Initial release. This is a minimal proof of concept, generating from the
grammar and rejecting it if we get errors from
Cool, but while promising not very useful at this stage.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size hypothesmith-0.0.3-py3-none-any.whl (12.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size hypothesmith-0.0.3.tar.gz (6.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for hypothesmith-0.0.3-py3-none-any.whl