### Intro ###
[Markov Chains](https://en.wikipedia.org/wiki/Markov_chain) implementation <br>
### Installation ###
in your terminal:
> pip install markovx
### Examples ###
Adding Chains
```python
from markovx.model import MarkovModel
mx = MarkovModel()
mx.add_one('123456')
mx.add_one('qwerty')
mx.add_many(['admin', 'root', 'user'])
```
Generating Chains
```python
mx.generate(10) # len of tokens in chain
```
```python
mx.generate(10, random_init=True)
# when True first token in chain would be assigned randomly
# when False first token would be assigned based on observed firs tokens
# default to False
```
```python
mx.generate(10, smart_ending=False)
# when False chain wouldn't be terminated before len(chain) == n even if model got to an end token
# when True if model got to an end token while len(chain) < n chain would terminate
# default to True
```
### Contact ###
[Tal Peretz](https://www.linkedin.com/in/tal-per/)
Metadata
Release files for markovx 1.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 | Provenance | Actions |
|---|---|---|---|---|
| markovx-1.0.0.tar.gz | 2.8 kB | Without provenance | Details for markovx-1.0.0.tar.gz |
Release files / markovx-1.0.0.tar.gz
| Download URL | markovx-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea1e807a37ccfb5b4d682f4220ec0dbc4d5c9bfc6ed5382f7e34ad11b82ed06b
|
|
BLAKE2b-256 checksum How to use checksums |
6a9b4e5ba38dd37122a98f5200663016f67c8d8f68922c686305fcc1414fb468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for markovx 1.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.