https://github.com/jmoussa/anonymizer-api
My take on an anonymizer RESTful service. A python FastAPI backend over a MongoDB database holds anonymized content converted from a call to the RESTful API.
https://github.com/jmoussa/anonymizer-api
mongodb security tools web-service
Last synced: 10 months ago
JSON representation
My take on an anonymizer RESTful service. A python FastAPI backend over a MongoDB database holds anonymized content converted from a call to the RESTful API.
- Host: GitHub
- URL: https://github.com/jmoussa/anonymizer-api
- Owner: jmoussa
- Created: 2021-03-01T02:56:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T00:29:07.000Z (over 4 years ago)
- Last Synced: 2025-01-20T14:34:51.959Z (12 months ago)
- Topics: mongodb, security, tools, web-service
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anonymizer Application
This application will take user specific data (in JSON format) and anonymize it based on the (`hashed:`) prefix the user will add to their fields in the config.
Then will have the ability to de-anonymize but only small amounts of the data, and with an exclusive set of credentials.
This app uses:
- Anaconda (for Python environemnt management)
- Python FastAPI+WebSockets [docs](https://fastapi.tiangolo.com/)
- Pymongo [docs](https://pymongo.readthedocs.io/en/stable/)
- MongoDB [docs](https://docs.mongodb.com/manual/)
## Setting up and running
I've set it up so that you only need to use the `run` script to start.
Be sure to set the S3 environement variables for access
```bash
conda env create -f environment.yml
conda activate anonymizer
python setup.py develop
cd anonymizer
cp config.template.py config.py # edit config.py with your configuration parameters
./run
```
Currently the `auth` module isn't in use (doesn't really need to be, it's just another layer of security)
__For quick API documentation, navigate to `localhost:8000/docs` after starting the server__