PresidioPY
PresidioPY is a wrapper around requests library to interact with Microsoft Presidio.
Installation
pip install presidiopy
Current support
V1
| /api/v1/fieldTypes | GET | YES |
| /api/v1/templates/:project/:action/:id | GET | NO |
| /api/v1/templates/:project/:action/:id | POST | NO |
| /api/v1/templates/:project/:action/:id | PUT | NO |
| /api/v1/templates/:project/:action/:id | DELETE | NO |
| /api/v1/projects/:project/analyze | POST | YES |
| /api/v1/projects/:project/anonymize | POST | NO |
| /api/v1/projects/:project/anonymize-image | POST | NO |
| /api/v1/projects/:project/schedule-scanner-cronjob | POST | NO |
| /api/v1/projects/:project/schedule-streams-job | POST | NO |
| /api/v1/analyzer/recognizers | GET | YES |
| /api/v1/analyzer/recognizers/:recognizer_name | GET | YES |
| /api/v1/analyzer/recognizers/:recognizer_name | POST | YES |
| /api/v1/analyzer/recognizers/:recognizer_name | PUT | YES |
| /api/v1/analyzer/recognizers/:recognizer_name | DELETE | YES |
Releasing new version
pre-requisites
- Install
sdist: pip install -U sdist
- Install
twine: pip install -U twine
Deploy
- Increase version on setup.py
- Clean
/dist folder.
- Generate new distribution files:
python3 setup.py sdist bdist_wheel
- Push it to PyPi:
python3 -m twine upload dist/*
Check the documentation in case it is necessary: https://packaging.python.org/tutorials/packaging-projects/
The development of this library is sponsored by QueryLayer: The next generation of Data-Sharing.