Skip to main content

An extension to the Autosubmit package that serves its information as an API

Project description

Autosubmit API

codecov PyPI - Downloads GitHub Actions Workflow Status

Table of Contents

  1. Overview
  2. Installation
  3. Configuration options
  4. How to run tests

Overview

Autosubmit API is a package that consumes the information generated by Autosubmit and serves it as an API.

Distribution: https://pypi.org/project/autosubmit-api/

Full documentation: https://autosubmit-api.readthedocs.io/

Installation

Autosubmit API can be easily installed via pip

pip install autosubmit-api # >=4.0 (recommended)

# Check installation and serving options
autosubmit_api start -h

Start the server:

autosubmit_api start

Configuration options

The Autosubmit API have some configuration options that can be modified by setting their specific environment variable before starting the server. Here are some options:

  • SECRET_KEY: The secret key to encode the JWT tokens from the Authorization Module. Important to be set up on production.
  • AS_API_ROOT_PATH: The root path of the API. This is useful if you are serving it with a reverse proxy. Default is an empty string.

To see the full list go to: https://autosubmit-api.readthedocs.io/en/latest/configuration/

How to run tests

Install pytest

pip install -e .[test]

Run tests:

pytest

You will find the coverage report in htmlcov/index.html

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

autosubmit_api-4.1.2b5.tar.gz (183.1 kB view details)

Uploaded Source

Built Distribution

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

autosubmit_api-4.1.2b5-py3-none-any.whl (245.4 kB view details)

Uploaded Python 3

File details

Details for the file autosubmit_api-4.1.2b5.tar.gz.

File metadata

  • Download URL: autosubmit_api-4.1.2b5.tar.gz
  • Upload date:
  • Size: 183.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autosubmit_api-4.1.2b5.tar.gz
Algorithm Hash digest
SHA256 c11b9db492387651a11a7017a8c5f5dc680a2b12314f6032185310dac77ad475
MD5 d27b300924fc29110e596cda9f1a7ffe
BLAKE2b-256 1b17bb14ded29cdf101506abfe636e3e606afbf66cf81d874a4ba73c82cf2188

See more details on using hashes here.

Provenance

The following attestation bundles were made for autosubmit_api-4.1.2b5.tar.gz:

Publisher: publish.yml on BSC-ES/autosubmit-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autosubmit_api-4.1.2b5-py3-none-any.whl.

File metadata

File hashes

Hashes for autosubmit_api-4.1.2b5-py3-none-any.whl
Algorithm Hash digest
SHA256 9d1456cbba1eb77920375db49476a0c928506ff6c7f46da55aed7a43a28890a6
MD5 a3d7d9588140b4416413185fdd50f041
BLAKE2b-256 a2999cf217b8709677adc2dc48c4c114e995e69726dcd8ded549d37a689c9f04

See more details on using hashes here.

Provenance

The following attestation bundles were made for autosubmit_api-4.1.2b5-py3-none-any.whl:

Publisher: publish.yml on BSC-ES/autosubmit-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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