Skip to main content

spacestudio™ Scripting API Documentation

Table of contents

1. Installation

2. Connection


Installation

  1. You will need to have both Python and pip installed on your computer.
  2. Install the spacestudio™ constellation client with the following command:
pip install spacestudio-constellation

This will install the spacestudio package, the requests library, used to perform HTTP calls, and the jwt library, used to decode JWTs.

  1. In your Python script, import the library by adding this line at the very top of your file:
import spacestudio
  1. The library has now been imported, you can start using it.

Connection

In order to use the library, you need to be connected. You can do so by calling the connect() function:

spacestudio.connect(url, mail, password, client_id)

You need to replace the parameter url with the URL you have been given in order to use the scripting API, mail with the email address you use to connect to spacestudio™, password with your password and client_id by the client identifier that was provided to you by Exotrail.

From this point on, you will be connected to the API.

Environment variables

Alternatively to writing your url, mail, password and client_id each time you create a new script, these informations can also be saved in an external file, so that the API script needs only to read it. This can be particularly useful for sharing scripts between different users, where each user could keep the sensitive information file private and share only the script.

This can be done by using a .env file, as the one provided as example. This file contains a default url and placeholders for the user's mail, password, and client_id in the form of the variables LOG_BASE_URL, LOG_MAIL, LOG_PASSWORD and CLIENT_ID, respectively. To use this file in your script, you must add the following lines to the start of your script:

  from dotenv import load_dotenv
  load_dotenv()

and the connection can be done by:

  base_url = spacestudio.log_base_url
  mail = spacestudio.log_mail
  password = spacestudio.log_password
  client_id = spacestudio.log_client_id
  spacestudio.connect(base_url, mail, password, client_id)

Metadata

Release files for spacestudio-constellation 3.8.0

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

Source distribution (sdist)

Source distribution for spacestudio-constellation 3.8.0
File Size Uploaded Provenance
spacestudio-constellation-3.8.0.tar.gz 18.5 kB Without provenance Details

Release files / spacestudio-constellation-3.8.0.tar.gz

Download URL spacestudio-constellation-3.8.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b7536997906170a8c74f64deb6349c2c68abbdb03be0b2c69a54e688e206f808
BLAKE2b-256 checksum
How to use checksums
5b672f00e72a9fafc3c17fa5f301cca8088c901de4a54ddc75dc4ac766bd99a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Security for spacestudio-constellation 3.8.0

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.

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