| Name | anonymask JSON |
| Version |
0.1.0
JSON |
| download |
| home_page | None |
| Summary | Secure anonymization/de-anonymization library for PII data |
| upload_time | 2025-11-11 22:20:45 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | MIT |
| keywords |
anonymization
pii
privacy
llm
rag
security
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Anonymask Python Package
This package provides Python bindings for the Anonymask core library, enabling secure anonymization and de-anonymization of PII data.
## Installation
```bash
pip install anonymask
```
## Building from Source
1. Ensure you have Rust and Python installed.
2. Clone the repository and navigate to the `anonymask-py` directory.
3. Install dependencies:
```bash
pip install maturin
```
4. Build the package:
```bash
maturin build --release
```
This will compile the Rust code and generate the Python wheel.
## Usage
```python
from anonymask import Anonymizer
anonymizer = Anonymizer(['email', 'phone'])
result = anonymizer.anonymize('Contact john@email.com or call 555-123-4567')
print(result[0]) # "Contact EMAIL_xxx or call PHONE_xxx"
print(result[1]) # {'EMAIL_xxx': 'john@email.com', 'PHONE_xxx': '555-123-4567'}
```
## Publishing to PyPI
1. Ensure you have a PyPI account and are configured (use `~/.pypirc` or environment variables).
2. Update the version in `pyproject.toml`.
3. Build the package: `maturin build --release`.
4. Publish: `maturin publish`.
Note: Maturin handles the build and upload process. Make sure to have your PyPI credentials set up.
Raw data
{
"_id": null,
"home_page": null,
"name": "anonymask",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Gokul Viswanathan <gokulviswanathan25@gmail.com>",
"keywords": "anonymization, PII, privacy, LLM, RAG, security",
"author": null,
"author_email": "Gokul Viswanathan <gokulviswanathan25@gmail.com>",
"download_url": null,
"platform": null,
"description": "# Anonymask Python Package\n\nThis package provides Python bindings for the Anonymask core library, enabling secure anonymization and de-anonymization of PII data.\n\n## Installation\n\n```bash\npip install anonymask\n```\n\n## Building from Source\n\n1. Ensure you have Rust and Python installed.\n2. Clone the repository and navigate to the `anonymask-py` directory.\n3. Install dependencies:\n\n```bash\npip install maturin\n```\n\n4. Build the package:\n\n```bash\nmaturin build --release\n```\n\nThis will compile the Rust code and generate the Python wheel.\n\n## Usage\n\n```python\nfrom anonymask import Anonymizer\n\nanonymizer = Anonymizer(['email', 'phone'])\nresult = anonymizer.anonymize('Contact john@email.com or call 555-123-4567')\n\nprint(result[0]) # \"Contact EMAIL_xxx or call PHONE_xxx\"\nprint(result[1]) # {'EMAIL_xxx': 'john@email.com', 'PHONE_xxx': '555-123-4567'}\n```\n\n## Publishing to PyPI\n\n1. Ensure you have a PyPI account and are configured (use `~/.pypirc` or environment variables).\n2. Update the version in `pyproject.toml`.\n3. Build the package: `maturin build --release`.\n4. Publish: `maturin publish`.\n\nNote: Maturin handles the build and upload process. Make sure to have your PyPI credentials set up.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Secure anonymization/de-anonymization library for PII data",
"version": "0.1.0",
"project_urls": {
"Changelog": "https://github.com/gokul-viswanathan/anonymask/blob/main/CHANGELOG.md",
"Documentation": "https://github.com/gokul-viswanathan/anonymask#readme",
"Homepage": "https://github.com/gokul-viswanathan/anonymask",
"Issues": "https://github.com/gokul-viswanathan/anonymask/issues",
"Repository": "https://github.com/gokul-viswanathan/anonymask.git"
},
"split_keywords": [
"anonymization",
" pii",
" privacy",
" llm",
" rag",
" security"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d9ac9b0b58726d2ce308b43867508dba5ffd11aa2eb23de8b18dbba6c7a66214",
"md5": "3e696d5ff64e967c84d2dc50a21c83b9",
"sha256": "b20abde8e3769806f96452d21124ffc081c67332ccea237af6afdcdc23be5a4e"
},
"downloads": -1,
"filename": "anonymask-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "3e696d5ff64e967c84d2dc50a21c83b9",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8",
"size": 1009657,
"upload_time": "2025-11-11T22:20:45",
"upload_time_iso_8601": "2025-11-11T22:20:45.530371Z",
"url": "https://files.pythonhosted.org/packages/d9/ac/9b0b58726d2ce308b43867508dba5ffd11aa2eb23de8b18dbba6c7a66214/anonymask-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-11-11 22:20:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gokul-viswanathan",
"github_project": "anonymask",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "anonymask"
}