{"id":24859,"library":"zalgolib","title":"ZalgoLib","description":"A Python library for generating Zalgo text (combining diacritical marks to create corrupted, horror-style text). Current version 0.2.2, updated Oct 2024. Release cadence is low, with no recent commits.","status":"active","version":"0.2.2","language":"python","source_language":"en","source_url":"https://github.com/jivanyatra/zalgolib","tags":["zalgo","text-manipulation","unicode","horror","art"],"install":[{"cmd":"pip install zalgolib","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The main class for generating Zalgo text.","symbol":"Zalgo","correct":"from zalgolib import Zalgo"}],"quickstart":{"code":"from zalgolib import Zalgo\n\nz = Zalgo()\ntext = \"Hello, World!\"\nzalgofied = z.zalgofy(text, intensity=1.0)\nprint(zalgofied)","lang":"python","description":"Create a Zalgo instance and apply default intensity to a string."},"warnings":[{"fix":"Call `random.seed(42)` before `z = Zalgo()`.","message":"The `Zalgo` class uses a global pseudo-random number generator. If you need reproducible output, set `random.seed()` before creating the instance.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use `z.zalgofy(text, intensity=0.5)` or just positional.","message":"The `zalgofy()` method with positional arguments (e.g., `z.zalgofy(text, intensity)`) is the only supported signature. Do not rely on keyword-only arguments as they may change.","severity":"deprecated","affected_versions":"0.2.0+"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from zalgolib import Zalgo`.","cause":"Incorrect import: `import zalgolib` then `zalgolib.Zalgo` used to work in older versions but may break due to lazy loading.","error":"AttributeError: module 'zalgolib' has no attribute 'Zalgo'"},{"fix":"Remove `intensity` from constructor: `Zalgo()` then call `zalgofy(text, intensity=...)`.","cause":"The `Zalgo` constructor does not accept `intensity`; it is only a parameter in `zalgofy()`.","error":"TypeError: __init__() got an unexpected keyword argument 'intensity'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}