Metadata-Version: 2.1
Name: dfa-sampler
Version: 0.1.1
Summary: Library for implementing dfa sampling strategies (pull requests welcome).
License: MIT
Author: Marcell Vazquez-Chanlatte
Author-email: mvc@linux.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: dfa (>=4.6.4,<5.0.0)
Requires-Dist: dfa-mutate (>=0.1.3,<0.2.0)
Description-Content-Type: text/markdown

# dfa-sampler
Library for implementing dfa sampling strategies (pull requests welcome).

[![PyPI version](https://badge.fury.io/py/dfa-sampler.svg)](https://badge.fury.io/py/dfa-sampler)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# 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](https://poetry.eustace.io/) 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. 


```python
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)
```

