Skip to main content

A GraphQL API for Nextline

Project description

PyPI version Test Status codecov

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextline-graphql-0.1.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nextline_graphql-0.1.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file nextline-graphql-0.1.0.tar.gz.

File metadata

  • Download URL: nextline-graphql-0.1.0.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nextline-graphql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4c63b9311d732774bd27e8625ee7865058308a4af00ba437d201fdee1cae134
MD5 dfb871ccbf4afbe9ffce576f46880c5d
BLAKE2b-256 22ed84f38f7fd623f8a481383c880402ccfdac28b6001b51f57e281eb09aebef

See more details on using hashes here.

File details

Details for the file nextline_graphql-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nextline_graphql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for nextline_graphql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e232cbc293db2b89db79a442e01edb782c7273f12fe2cec4d12367fdf75f265
MD5 10695d8653c8021ae265d94e1b472ded
BLAKE2b-256 02fb1138f6416293bb8dff13c0e7dcd6ed08df0dc3c12c88ec04932ef6bf64de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page