Skip to content

V2.2.0 beta1 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ build/
node_modules
datafog_debug.log
sotu_2023.txt
/examples/*
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 5.12.0
hooks:
- id: isort
args: [--profile=black]

- repo: https://github.com/psf/black
rev: 24.2.0
Expand Down
1 change: 0 additions & 1 deletion examples/scan_output.json

This file was deleted.

667 changes: 0 additions & 667 deletions examples/sotu_2023.txt

This file was deleted.

13 changes: 10 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
'https://huggingface.co/beki/en_spacy_pii_fast/resolve/main/en_spacy_pii_fast-any-py3-none-any.whl'
pandas==2.2.1
# spacy==3.4.4
# thinc==8.1.0
presidio_analyzer==2.2.353
pandas==2.2.1
pytest==8.0.2
Requests==2.31.0
spacy
aiohttp==3.8.2
yarl==1.8.1
frozenlist==1.3.1
en_spacy_pii_fast



7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# package using pip, navigate to the directory that contains the setup.py file and type pip install .

from setuptools import setup
from src.datafog.__about__ import __version__

# Read README for the long description
with open("README.md", "r") as f:
long_description = f.read()

setup(
name="datafog",
version=__version__,
version="2.2.0",
author="Sid Mohan",
author_email="sid@datafog.ai",
description="Scan, redact, and manage PII in your documents before they get uploaded to a Retrieval Augmented Generation (RAG) system.",
Expand All @@ -21,9 +20,9 @@
"pytest==8.0.2",
"Requests==2.31.0",
"spacy==3.4.4",
'en_spacy_pii_fast @ https://huggingface.co/beki/en_spacy_pii_fast/resolve/main/en_spacy_pii_fast-any-py3-none-any.whl',

"en_spacy_pii_fast",
],
python_requires=">=3.10",
classifiers=[
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
Expand Down
2 changes: 1 addition & 1 deletion src/datafog/__about__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SSOT for the package version
__version__ = "2.2.0-beta1"
__version__ = "2.2.0"
1 change: 0 additions & 1 deletion src/datafog/pii_tools/PresidioEngine/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class CustomSpacyRecognizer(LocalRecognizer):

ENTITIES = [
"LOCATION",
"PERSON",
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
envlist = py3
envlist = py310, py311
isolated_build = True

[testenv]
deps =
pytest
pytest-codeblocks
pytest-cov
-rrequirements.txt
extras = all
commands =
pytest {posargs} --codeblocks