# Working
echo "hello world" | cargo run --bin cli -- --max-token-length 10
# Errors
echo "hello looooooooooooooong password123" | cargo run --bin cli -- --max-token-length 10cargo run --bin web -- --max-token-length 10
I reccomend installing jq and piping the results of curl into jq for better formatting of the result.
# Working
curl localhost:8080/audit -X POST -H "Content-Type: application/json" -d'{"text": "hello world"}' | jq
# Errors
curl localhost:8080/audit -X POST -H "Content-Type: application/json" -d'{"text": "hello looooooooooooooong password123"}' | jqpython -m venv venv
source venv/bin/activate
pip install maturin
maturin develop
pythonfrom auditor_lib import Auditor
auditor = Auditor(["password123"], 9)
# Working
auditor.audit("hello world")\
# Errors
auditor.audit("hello looooooooooooooong password123")Or run python python-examples/auditor_example.py