Library for implementing dfa sampling strategies (pull requests welcome).
Project description
dfa-sampler
Library for implementing dfa sampling strategies (pull requests welcome).
Installation
If you just need to use dfa-sampler
, you can just run:
$ pip install dfa-sampler
For developers, note that this project uses the poetry python package/dependency management tool. Please familarize yourself with it and then run:
$ poetry install
Usage
The dfa
api is centered around the DFA
object.
By default, the DFA
object models a Deterministic Finite Acceptor
,
e.g., a recognizer of a Regular Language.
from dfa_sampler import gen_reach_avoid, gen_mutated_reach_avoid
dfas1 = gen_reach_avoid(n_tokens=3)
dfas2 = gen_mutated_reach_avoid(n_tokens=12)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dfa_sampler-0.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for dfa_sampler-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e72910a93d152c1819e41ccaa5c0c7fcfe99e2bc2dd2e6fb562c3310e90b8357 |
|
MD5 | 67929e84063170c7e94e676e01726a41 |
|
BLAKE2b-256 | f37576b293e73ec89f30d2382db09903340add74e1e7e1e71cb3d54adedd810e |