A Python service that parses RDF data to JSON.
- pyenv (recommended)
- poetry
- nox
- nox-poetry
pyenv install 3.11.8
pyenv local 3.11.8
pip install poetry==1.7.1
pip install nox==2024.3.2
pip install nox-poetry==1.0.3
poetry install
poetry run uvicorn fdk_rdf_parser_service.app:app --reload --port 8080 --env-file .env.development
docker compose up -d
poetry shell
curl localhost:8080/ping
curl localhost:8080/ready
# Assuming you are in project root:
curl -X POST \
--header "Content-Type: text/turtle" \
--header "X-API-KEY: test-key" \
--header "Accept: application/json" \
--upload-file ./tests/data/dataset0.ttl \
localhost:8080/dataset
Generated by utility session in nox:
nox -s openapi
View in browser (when app is running locally) localhost:8080/openapi.json
nox
nox -s unit_tests
nox -s integration_tests
nox -s contract_tests
Verbose output from sessions for debugging
nox -s tests -- -vvv
nox -s lint
nox -s mypy
nox -s format
nox -s cache
poetry run pytest
nox -s tests -- -vv