Name | filtro JSON |
Version |
0.1.3
JSON |
| download |
home_page | |
Summary | The official filtro python package. |
upload_time | 2023-07-28 09:16:14 |
maintainer | |
docs_url | None |
author | Andrea Pinto |
requires_python | >=3.9,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# filtro-python
The official Python API package for [filtro.ai](https://www.filtro.ai/). Empowering your applications with AI, while safeguarding sensitive data across all third-party models, in just a few lines of Python code.
## ⚙️ Install
```bash
pip install filtro
```
## 🗣️ Usage
```py
from filtro import mask, clear
masked, mapping = mask(
"Hi my name is Giovanni, I work at Google. What's up?"
) # Hi my name is Maria, I work at Marvel. What's up?
from langchain.llms import OpenAI
llm = OpenAI(temperature=0.9)
response = llm(masked) # Hi Maria! Im fine. Yourself?
cleared = clear(response, mapping) # Hi Giovanni! Im fine. Yourself?
```
## 🥽 Examples
The standard discussion
```diff
Hi my name is Gianmarco Rengucci! I am a software engineer at Apple, here in Milan. Whats up?
+[filtro.ai] Hi my name is Terri Clark! I am a manager at Google, here in Singapore. Whats up?
-[chat.openai.com] Hey there Terri! Doing great. Curious to learn more about Google. Tell me more!
+[filtro.ai] Hey there Gianmarco! Doing great. Curious to learn more about Apple. Tell me more!
```
The email and credit cards credentials
```diff
Card number is 1234 5678 9012 3456. You can reach out to richard@gmail.com for questions 🤗
+[filtro.ai] Card number is 6546410405081471.. You can reach out to teresabrooks@example.org for questions 🍖
```
Raw data
{
"_id": null,
"home_page": "",
"name": "filtro",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Andrea Pinto",
"author_email": "andrea@filtro.ai",
"download_url": "https://files.pythonhosted.org/packages/25/23/82cfd4bebfb4a2b9ca2ebec9c7534d7f97932f743c6449318d134e08397b/filtro-0.1.3.tar.gz",
"platform": null,
"description": "# filtro-python\n\nThe official Python API package for [filtro.ai](https://www.filtro.ai/). Empowering your applications with AI, while safeguarding sensitive data across all third-party models, in just a few lines of Python code. \n\n## \u2699\ufe0f Install\n\n```bash\npip install filtro\n```\n\n## \ud83d\udde3\ufe0f Usage\n\n```py\nfrom filtro import mask, clear\n\nmasked, mapping = mask(\n \"Hi my name is Giovanni, I work at Google. What's up?\"\n) #\u00a0Hi my name is Maria, I work at Marvel. What's up?\n\nfrom langchain.llms import OpenAI\nllm = OpenAI(temperature=0.9)\nresponse = llm(masked) #\u00a0Hi Maria! Im fine. Yourself?\n\ncleared = clear(response, mapping) # Hi Giovanni! Im fine. Yourself?\n```\n\n## \ud83e\udd7d Examples\nThe standard discussion\n```diff\nHi my name is Gianmarco Rengucci! I am a software engineer at Apple, here in Milan. Whats up?\n+[filtro.ai] Hi my name is Terri Clark! I am a manager at Google, here in Singapore. Whats up?\n-[chat.openai.com] Hey there Terri! Doing great. Curious to learn more about Google. Tell me more!\n+[filtro.ai] Hey there Gianmarco! Doing great. Curious to learn more about Apple. Tell me more!\n```\n\nThe email and credit cards credentials\n```diff\nCard number is 1234 5678 9012 3456. You can reach out to richard@gmail.com for questions \ud83e\udd17 \n+[filtro.ai] Card number is 6546410405081471.. You can reach out to teresabrooks@example.org for questions \ud83c\udf56\n```\n\n",
"bugtrack_url": null,
"license": "",
"summary": "The official filtro python package.",
"version": "0.1.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36f0a4ef4bc56ed797254caf34ae909f1dcd450025ac60de905384c8dbbbfbd8",
"md5": "b5c699ffe05f3d8e8f283cdf6078211c",
"sha256": "af508f924ce20a3ca6dfa8f1d2aa35fd18433f4b579ed153af1d27ebb92f345b"
},
"downloads": -1,
"filename": "filtro-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5c699ffe05f3d8e8f283cdf6078211c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 2275,
"upload_time": "2023-07-28T09:16:12",
"upload_time_iso_8601": "2023-07-28T09:16:12.850905Z",
"url": "https://files.pythonhosted.org/packages/36/f0/a4ef4bc56ed797254caf34ae909f1dcd450025ac60de905384c8dbbbfbd8/filtro-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "252382cfd4bebfb4a2b9ca2ebec9c7534d7f97932f743c6449318d134e08397b",
"md5": "ff0d528340eb2ea45d0e58f772ab7860",
"sha256": "dd6b57ef794f776851e4afac3cfbc6494b0c0d211f201d508926b5f2225a702a"
},
"downloads": -1,
"filename": "filtro-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "ff0d528340eb2ea45d0e58f772ab7860",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 1774,
"upload_time": "2023-07-28T09:16:14",
"upload_time_iso_8601": "2023-07-28T09:16:14.265423Z",
"url": "https://files.pythonhosted.org/packages/25/23/82cfd4bebfb4a2b9ca2ebec9c7534d7f97932f743c6449318d134e08397b/filtro-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-28 09:16:14",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "filtro"
}