mc.py
mc.py is a tiny and trivial Python package which provides you a simple way to generate phrases using Markov chains.
Docs can be found here.
Installation
Just install it using pip or any other package manager you use... Should I seriously teach you this?
pip install mc.py
Simple usage example
More examples can be found here.
import mc
from mc.builtin import validators
generator = mc.PhraseGenerator(
samples=["hello world", "world of cuties", "bruh"]
)
phrase = generator.generate_phrase(
validators=[validators.words_count(minimal=4)]
)
print(phrase)
# >>> "hello world of cuties"
Links
Release files for mc.py 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mc.py-4.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mc.py-4.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / mc.py-4.0.0.tar.gz
| Download URL | mc.py-4.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
310f2e9a48ca69b23d4e538a316575380654ff94a14f6e0e38b85928d5d5ea19
|
|
BLAKE2b-256 checksum How to use checksums |
226ae1a0bb0efde209962308072c022242072c6b2b3758e88a536ec944e6e23e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Linux/5.14.16-arch1-1
|
Release files / mc.py-4.0.0-py3-none-any.whl
| Download URL | mc.py-4.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa9a13bf95fc818cc56d1363f3522b050f5ad92715218701992b23217b151417
|
|
BLAKE2b-256 checksum How to use checksums |
ddb5d14614436935ac514edc01be521088134a206c97e254a27b5b9615bae058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Linux/5.14.16-arch1-1
|