Skip to main content

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)

Source distribution for mc.py 4.0.0
File Size Uploaded
mc.py-4.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mc.py 4.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.1.1

1 release file

3.1.0

1 release file

3.0.7

1 release file

3.0.6

1 release file

3.0.5

1 release file

3.0.4

1 release file

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

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