Skip to main content
=============
PyMarkovChain
=============

PyMarkovChain supplies an easy-to-use implementation of a markov chain text generator.
To use it, you can simply do

#!/usr/bin/env python

from pymarkovchain import MarkovChain
# Create an instance of the markov chain. By default, it uses MarkovChain.py's location to
# store and load its database files to. You probably want to give it another location, like so:
mc = MarkovChain("./markov")
# To generate the markov chain's language model, in case it's not present
mc.generateDatabase("This is a string of Text. It won't generate an interesting database though.")
# To let the markov chain generate some text, execute
mc.generateString()

To store its data, PyMarkovChain simply uses pickle to dump all of its data to disk.
This entails that you have to use the same version of python to store the data and to
restore the data, as pickle is one of those things that have changed from python2 to python3.

See also [code on github](https://github.com/MaxWagner/PyMarkovChain) and [PyPI page](http://pypi.python.org/pypi/PyMarkovChain/).
To install, simply use pip like so:
pip install PyMarkovChain

Metadata

Release files for PyMarkovChain 1.8

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

Source distribution (sdist)

Source distribution for PyMarkovChain 1.8
File Size Uploaded Provenance
PyMarkovChain-1.8.tar.gz 3.9 kB Without provenance Details

Release files / PyMarkovChain-1.8.tar.gz

Download URL PyMarkovChain-1.8.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f8a03fba5d9f390b528991f5e3411188b545aa16a7131cea44c5f9cf1814d08a
BLAKE2b-256 checksum
How to use checksums
57f929f29ec225348684304a199c387ae07c967530057b85f48b224a91fdcb96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyMarkovChain 1.8

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.

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