Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
pipestat_reader - web API generator for pipeline results
Pipestat reader is a Python package that is an extension of pipestat.
Pipestat can be used to collect pipeline results and store them in either a YAML-formatted file or in a database. If the results are stored in the database, then pipestat reader can be used to automatically generate a web API to query these results.
Usage
- Create a
pipestat.PipestatManagerobject
import pipestat
psm = pipestat.PipestatManager(config="/path/to/config.yaml")
- Pass the objects to the
pipestat_reader.PipestatReaderconstructor
import pipestat_reader
psr = pipestat_reader.PipestatReader(pipestat_managers=[psm])
- Generate a GraphQL schema
graphql_schema = psr.generate_graphql_schema()
- Use the schema in your web application, for example in FastAPI:
from fastapi import FastAPI
from starlette.graphql import GraphQLApp
app = FastAPI(title="test app")
app.mount("/graphql", GraphQLApp(schema=graphql_schema, graphiql=True))
- Retrieve the results reported with pipestat
By POST queries
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query": "{table_name{edges{node{column_name}}}}"}' \
http://0.0.0.0:8000/graphql/
Using the interactive GraphiQL interface at http://0.0.0.0:8000/graphql/
Metadata
Release files for pipestat-reader 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pipestat_reader-0.0.3.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipestat_reader-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / pipestat_reader-0.0.3.tar.gz
| Download URL | pipestat_reader-0.0.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f3f374999428ab36b89f8700b76ab0d11ae57bb6739ac89faf9e1c6fce5a2e3
|
|
BLAKE2b-256 checksum How to use checksums |
ad2e2492537295b6abbbacd9fd7871b1109f6bf15e0f9de4201bc8aa7d5b1920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / pipestat_reader-0.0.3-py3-none-any.whl
| Download URL | pipestat_reader-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ce209a5ec39cdb38b0546ade45428df59ae385c0df055398768bb94f40059be
|
|
BLAKE2b-256 checksum How to use checksums |
b330c1055346205ccae681880053241c78bcc47b2910072f23f504162c4a3574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|