This is the official Python library for the Myst Platform.
Project description
Myst Python Library
This is the official Python client library for the Myst Platform.
Requirements
- Python version 3.6.2+
Installation
To install the package from PyPI:
$ pip install --upgrade myst
Authentication
The Myst API uses JSON Web Tokens (JWTs) to authenticate requests. The Myst Python library handles the sending of JWTs to the API automatically and currently supports two ways to authenticate to obtain a JWT: through your Google user account or a Myst service account.
Authenticating using your user account
If you don't yet have a Google account, you can create one on the Google Account Signup page.
Once you have access to a Google account, send an email to support@myst.ai
with your email so we can authorize you to use the Myst Platform.
Use the following code snippet to authenticate using your user account:
from myst import Client, GoogleConsoleCredentials
client = Client(credentials=GoogleConsoleCredentials())
The first time you run this, you'll be presented with a web browser and asked to authorize the Myst Python library to make requests on behalf of your Google user account.
Authenticating using a service account
You can also authenticate using a Myst service account. To request a service account, email support@myst.ai
.
To authenticate using a service account, set the MYST_APPLICATION_CREDENTIALS
environment variable to the path to your service account key file and specify use_service_account=True
:
$ export MYST_APPLICATION_CREDENTIALS=</path/to/key/file.json>
from myst import Client, GoogleServiceAccountCredentials
client = Client(credentials=GoogleServiceAccountCredentials())
You can also explicitly pass the path to your service account key:
from pathlib import Path
from myst import Client, GoogleServiceAccountCredentials
client = Client(credentials=GoogleServiceAccountCredentials(Path("/path/to/key/file.json")))
Working with time series
TBD!
Support
For questions or just to say hi, reach out to support@myst.ai
.
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 myst_alpha-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e29efecd15832161c8996d592735f3542dd7b5a08d657b71f8e5955eb4b980 |
|
MD5 | 5345818282a297ef7a921fe48df001d1 |
|
BLAKE2b-256 | 53e2a206d7072b0918562768ef6e025457fcb9b19574a108e17d805b44a1304b |