Skip to main content

Lightweight library which implements Markov algorithm (cycle of replacements) for text strings.


Usage:

creating rules

from markalgo import rules
from markalgo import processing

# from text
replacement = rules.create_rules([("Norwegian blue", "parrot"), ("alive", "dead"), ("dead", "no more")])

# or from csv files
with open("notes/cicero.csv") as argumentation:
    replacement = rules.read_all_rules_from_csv_file(argumentation)

processing text…

processing.process_text("This Norwegian blue is alive", replacement)

 *"This parrot is no more"*

…or plain-text files

with open("notes/note.txt") as argumentation:
    processing.process_file()

Metadata

Release files for markalgo 1.0.2

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

Built distribution (wheel)

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

Release files / markalgo-1.0.2-py3-none-any.whl

Download URL markalgo-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b81d4915fe468b6704cb1aa90449ecf8082b6b734f2b9d5c8d9a829fc4b74577
BLAKE2b-256 checksum
How to use checksums
2241ed1d1fa843c97a0c1f3596110da26213395bbc8631d130bbc0fc649eaf55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for markalgo 1.0.2

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