Skip to main content

The official filtro python package.

Project description

filtro-python

The official Python API package for 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

pip install filtro

🗣️ Usage

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

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

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 🍖

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filtro-0.1.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

filtro-0.1.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file filtro-0.1.3.tar.gz.

File metadata

  • Download URL: filtro-0.1.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for filtro-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dd6b57ef794f776851e4afac3cfbc6494b0c0d211f201d508926b5f2225a702a
MD5 ff0d528340eb2ea45d0e58f772ab7860
BLAKE2b-256 252382cfd4bebfb4a2b9ca2ebec9c7534d7f97932f743c6449318d134e08397b

See more details on using hashes here.

File details

Details for the file filtro-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: filtro-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for filtro-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 af508f924ce20a3ca6dfa8f1d2aa35fd18433f4b579ed153af1d27ebb92f345b
MD5 b5c699ffe05f3d8e8f283cdf6078211c
BLAKE2b-256 36f0a4ef4bc56ed797254caf34ae909f1dcd450025ac60de905384c8dbbbfbd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page