{"id":27827,"library":"ghostpii","title":"Ghostpii","description":"Ghostpii is a Python package for private computation using homomorphic encryption. It provides encrypted hash functions, batching for API calls, and data frame optimization for machine learning. Current version: 2.0.0 (Cheetah), requiring Python >=3.6. Maintenance cadence: irregular.","status":"active","version":"2.0.0","language":"python","source_language":"en","source_url":"https://github.com/capnion/ghostpii_client","tags":["homomorphic-encryption","privacy","computation"],"install":[{"cmd":"pip install ghostpii","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct import of module does not expose Ghostpii class; use explicit from import.","wrong":"import ghostpii","symbol":"Ghostpii","correct":"from ghostpii import Ghostpii"},{"note":"","wrong":"","symbol":"encrypted_hash","correct":"from ghostpii import encrypted_hash"}],"quickstart":{"code":"from ghostpii import Ghostpii\nimport os\n\nclient = Ghostpii(api_key=os.environ.get('GHOSTPII_API_KEY', ''))\n# Example: compute encrypted hash\nhash_value = client.encrypted_hash(b\"test data\")\nprint(hash_value)","lang":"python","description":"Initialize a Ghostpii client with API key, then compute an encrypted hash."},"warnings":[{"fix":"Update client code to use new batch endpoints and encrypted hash signature. See migration notes in GitHub release.","message":"Version 2.0.0 (Cheetah) introduced breaking changes: batching for API calls and new homomorphically encrypted hash functions. Code written for v1.x may need updates.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Replace deprecated methods with new equivalents documented in the v2.0.0 release notes.","message":"Some older API methods are deprecated as of v2.0.0. Check deprecation warnings in logs.","severity":"deprecated","affected_versions":">=1.0.0,<2.0.0"},{"fix":"Upgrade Python to at least 3.6.","message":"Requires Python >=3.6; Python 3.5 or older are unsupported and will cause installation errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install ghostpii' and ensure you're using the correct Python environment.","cause":"Package not installed or environment issue.","error":"ModuleNotFoundError: No module named 'ghostpii'"},{"fix":"Use 'from ghostpii import Ghostpii'.","cause":"Wrong import pattern: using 'import ghostpii' instead of 'from ghostpii import Ghostpii'.","error":"ImportError: cannot import name 'Ghostpii' from 'ghostpii'"},{"fix":"Pass bytes data: client.encrypted_hash(b\"your data\")","cause":"Calling encrypted_hash without passing data argument.","error":"TypeError: encrypted_hash() missing required argument: 'data'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}