Cigam

raw JSON →
0.0.3 verified Mon Apr 27 auth: no python

Cigam (magic spelled backwards) is a lightweight Python library providing simple magic string manipulation and utilities. Current version 0.0.3, with infrequent releases.

pip install cigam
error ModuleNotFoundError: No module named 'cigam'
cause Package not installed or installed in wrong environment.
fix
Run 'pip install cigam' in the correct virtual environment.
error ImportError: cannot import name 'magic' from 'cigam'
cause The submodule was not imported correctly, or the version is very old.
fix
Use 'from cigam import magic' and ensure you have at least version 0.0.2.
gotcha The package is very early stage (v0.0.3) and APIs may change without notice. Do not rely on it for production.
fix Pin to exact version if used, or consider alternatives.
deprecated The module name 'magic' conflicts with the popular 'python-magic' library. This could lead to import errors if both are installed.
fix Ensure only one 'magic' module is in use, or use absolute imports.

A minimal example showing how to import and use the main function from cigam.

from cigam import magic

# Example: reverse a string
result = magic.reverse('hello')
print(result)  # 'olleh'