A GraphQL API for Nextline
Project description
nextline-graphql
A GraphQL API for Nextline
Nextline allows line-by-line execution of concurrent Python scripts by multiple users simultaneously from web browsers. Nextline is being developed as a DAQ sequencer of the Observatory Control System (OCS).
Packages
- nextline: (Python) the core functionality. imported in nextline-graphql.
- nextline-graphql: (Python) this package. the GraphQL API
- nextline-web: (JavaScript) the client website
How to run the Nextline GraphQL API
The section shows how to run the Nextline GraphQL API server. How to run the client website will be described elsewhere.
As a Docker container
Docker images of the Nextline GraphQL API server are created as ghcr.io/simonsobs/nextline-graphql. These images are created by the Dockerfile.
Use, for example, the following comand to run as a Docker container.
docker run -p 8080:8000 ghcr.io/simonsobs/nextline-graphql
If you access to the API server with a web browser, you will see the GraphQL playground: http://localhost:8080/.
from PyPI
It is also possible to install with pip and run.
pip install nextline-graphql
uvicorn --factory --port 8080 nextlinegraphql:create_app
Check with a web browser at http://localhost:8080/.
Check out code for development
This section shows an example way to check out code from GitHub for development.
python -m venv venv
source venv/bin/activate
git clone git@github.com:simonsobs/nextline.git
git clone git@github.com:simonsobs/nextline-graphql.git
pip install -e ./nextline/"[tests,dev]"
pip install -e ./nextline-graphql/"[tests,dev]"
To run
uvicorn --port 8080 --factory --reload --reload-dir nextline-graphql --reload-dir nextline nextlinegraphql:create_app
License
- Nextline is licensed under the MIT license.
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nextline_graphql-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 661f037de1923e1ebc901211f136e020b5f62935af5a32e2f58cb0d31c252abf |
|
MD5 | 77b5cd48753c27e992bee3dffd0c7a28 |
|
BLAKE2b-256 | a4e2f31a0d829300da3173b691f856f7329685a3d40ea650c25178635cefb662 |