Skip to main content

gibberishpy

gibberishpy is a Python-based application designed to analyze and identify gibberish in a given string. The application leverages the principles of Markov Chains, a mathematical system that undergoes transitions from one state to other on a state space, to calculate both additive and multiplicative probabilities. gibberishpy allow users to build their own model with custom txt file.

Usage Examples

Build Model

from gibberishpy.scanner import GibberishScanner


if __name__ == "__main__":
    scanner = GibberishScanner()
    scanner.build_model(corpus_path="path/to/corpus.txt", n_gram_size=2)
    scanner.save_model("transition_matrix_2d.tm", encoding="utf-8")

Scan Gibberish

from gibberishpy.scanner import GibberishScanner


if __name__ == "__main__":
    scanner = GibberishScanner()
    scanner.load_model(path="transition_matrix_2d.tm")
    additive_cum_proba, multiplicative_cum_proba = scanner.scan("ldfjgnkdfjnd")
    print(additive_cum_proba)
    print(multiplicative_cum_proba)

    # 0.00022810218978102192
    # 0.0

Metadata

Release files for gibberishpy 1.0.3

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

Source distribution (sdist)

Source distribution for gibberishpy 1.0.3
File Size Uploaded Provenance Actions
gibberishpy-1.0.3.tar.gz 4.9 kB Without provenance Details for gibberishpy-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 10.4 kB

Release files / gibberishpy-1.0.3.tar.gz

Download URL gibberishpy-1.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fd07b6b61f16b1c5330b90756eb71d02077be761f180ffcd026f3ba9831e400
BLAKE2b-256 checksum
How to use checksums
ff4fc559378837090a8c3d8614e3895fe4009aa932171c02c962884c183a8f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / gibberishpy-1.0.3-py3-none-any.whl

Download URL gibberishpy-1.0.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef4312fea849c8fd53696ed14cd122a5d8a2aca4ec8a44c299380c6bee99aacf
BLAKE2b-256 checksum
How to use checksums
e20d273eaba40394a353c8c23ffbe3d44c8b44d94f30eff87260738a610ccf7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for gibberishpy 1.0.3

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