Skip to main content

Percolate API

The API supports the database by providing a REST interface for maintenance tasks or to test the concepts of adding APIs to AI systems. The docker compose master file will include the API so by using docker compose up in the root, you should have an API running on port 5008.

But you can also launch it from here as describe below.

From this folder location (we use port 5000 for dev and 5008 for docker to avoid conflict on ports)

uvicorn percolate.api.main:app --port 5000 --reload
#browse to http://127.0.0.1:5000/docs for swagger

Or from docker - you can use a local docker build. For example

# build with some tag
docker build -t p8-api .
# run it in the background -> this will spit out a container id or you can use a name like p8c
docker run -d -p 5008:5008 --name p8c p8-api
# browse to localhost:5008/docs and you should see the swagger
# troubleshoot launch using the container ID output from the earlier step
docker log p8c

To clean up

#docker stop p8c OR
docker rm -f p8c
#docker system prune -f

Tests

WIP - run tests in the python directory with pytest . - at the moment there is a test application of the schema on a test database that assumes the docker instance is running.

Note on Jupyter

There are a number of notebooks used for illustration and/or testing

git attribute removes contents on commit to avoid checking in output cells.

git config --global filter.strip-notebook-output.clean "jq --indent 1 '.cells[] |= if .outputs then .outputs = [] else . end | .metadata = {}' 2>/dev/null || cat"

Issues encountered

Metadata

Release files for percolate-db 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for percolate-db 0.3.5
File Size Uploaded Provenance Actions
percolate_db-0.3.5.tar.gz 408.7 kB Without provenance Details for percolate_db-0.3.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for percolate-db 0.3.5
File Interpreter ABI Platform Actions
percolate_db-0.3.5-py3-none-any.whl Python 3 none any Details for percolate_db-0.3.5-py3-none-any.whl

Total release size: 895.2 kB

Release files / percolate_db-0.3.5.tar.gz

Download URL percolate_db-0.3.5.tar.gz
Size 408.7 kB
Tags Source
SHA-256 checksum
How to use checksums
450316048619b5a55168555c0394c9c69cae520ce04495212843893894c22044
BLAKE2b-256 checksum
How to use checksums
ee531ff698d1a491d4788e60a14e8d2be41e0c401fb01e16f1c2bf2f0dc35656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.13 Linux/6.11.0-1018-azure

Release files / percolate_db-0.3.5-py3-none-any.whl

Download URL percolate_db-0.3.5-py3-none-any.whl
Size 486.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b3976d49252169ff57b4afca673957fba91329f10a7594ddf16e86162247028
BLAKE2b-256 checksum
How to use checksums
84b1e14ecc9a3e8f863d439f35fe6a047f48da8d590851b3a1cd28ea77fa09d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.13 Linux/6.11.0-1018-azure

Security for percolate-db 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page