Skip to main content

dfa-sampler

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

PyPI version License: 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 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)

Metadata

Release files for dfa-sampler 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dfa-sampler 0.1.1
File Size Uploaded
dfa_sampler-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dfa-sampler 0.1.1
File Interpreter ABI Platform
dfa_sampler-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / dfa_sampler-0.1.1.tar.gz

Download URL dfa_sampler-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
17b0cb3020b0a1880a540189de25da1b0e6a26d149cf08a6e137001bbc0222d1
BLAKE2b-256 checksum
How to use checksums
46b6c522d1aa73b1988d2c0049ce5ad92194e0a048e62090457dbf45edac17b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.8 Linux/6.1.84

Release files / dfa_sampler-0.1.1-py3-none-any.whl

Download URL dfa_sampler-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e72910a93d152c1819e41ccaa5c0c7fcfe99e2bc2dd2e6fb562c3310e90b8357
BLAKE2b-256 checksum
How to use checksums
f37576b293e73ec89f30d2382db09903340add74e1e7e1e71cb3d54adedd810e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.8 Linux/6.1.84

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page