Building a Python API over the truffleHog library.
virtualenv -p python3 venv
if you do not have a venv for the project.source venv/bin/activate
activates the virtual env.pip install -r requirements.txt
installs dependencies required for API, including truffleHog itself.
Runs all tests - python3 -m unittest discover -v
pdoc
is installed when you runpip install -r requirements-dev.txt
- Generate docs with
PYTHONPATH=. pdoc trufflehog_api --all-submodules --html --html-dir=docs/ --overwrite && 'cp' -rf docs/trufflehog_api/* docs/ && rm -rf docs/trufflehog_api
Docs are visible in the /docs/
folder.
Sample client code being applied to usecases can be found in the /examples
folder