Python package which provides you a simple way to generate phrases using Markov chains
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mc.py-4.0.0.tar.gz.
File metadata
- Download URL: mc.py-4.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.14.16-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
310f2e9a48ca69b23d4e538a316575380654ff94a14f6e0e38b85928d5d5ea19
|
|
| MD5 |
567d4032b1097b2b78f78834d2c6cece
|
|
| BLAKE2b-256 |
226ae1a0bb0efde209962308072c022242072c6b2b3758e88a536ec944e6e23e
|
File details
Details for the file mc.py-4.0.0-py3-none-any.whl.
File metadata
- Download URL: mc.py-4.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.14.16-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9a13bf95fc818cc56d1363f3522b050f5ad92715218701992b23217b151417
|
|
| MD5 |
f044cd9e6bdbfa040ed00e0e71c2e145
|
|
| BLAKE2b-256 |
ddb5d14614436935ac514edc01be521088134a206c97e254a27b5b9615bae058
|