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"

Metadata

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 Provenance Actions
mc.py-4.0.0.tar.gz 4.6 kB Without provenance Details for mc.py-4.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mc.py 4.0.0
File Interpreter ABI Platform Actions
mc.py-4.0.0-py3-none-any.whl Python 3 none any Details for mc.py-4.0.0-py3-none-any.whl

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

Security for mc.py 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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