A python wrapper for the ESA mustlink API
Project description
mustlink
A python wrapper for the WebMUST API (mustlink)
This is a simple wrapper in python for the WebMUST API.
Dependencies
The following dependencies must be met:
- python 3
- matplotlib
- pandas
- pyyaml
- requests
Installation
pip
pip install mustlink
should do the job, although creating a dedicated environment is recommended (see below).
conda
First, clone this repository. If you are using conda, the dependencies can be installed in a new environment using the provided environment file:
conda env create -f environment.yml
The newly created environment can be activated with:
conda activate mustlink
Otherwise, please make sure the dependencies are installed with your system package manager, or a tool like pip. Use of a conda environment or virtualenv is recommended!
The package can then be installed with:
python setup.py install
URL
The URL for the WebMUST instance in use can be specified when instantiating the Must class. If none is given, a default URL is used. For example:
must = mustlink.Must(url='https://mustinstance.com/mustlink')
Authentication
Access to WebMUST needs authentication. This is controlled by a config file which can be pointed to by the config_file parameter when instantiating the Must class, for example:
must = mustlink.Must(config_file='path_to/config.file')
If nothing is specified, a file mustlink.yml is looked for in paths pointed to by the environment variables APPDATA, XDG_CONFIG_HOME or in the .config folder in the user's home directory.
The configuration file should be in YAML format and contain the username and password as follows:
user:
login: "userone"
password: "blah"
Example
The Jupyter notebook included with this repository shows an example of how to use the code. Note that not all API functions are wrapped by this library, but only those that are commonly used. To view the notebook, click here.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mustlink-0.3.2.tar.gz.
File metadata
- Download URL: mustlink-0.3.2.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a08ad583b18d3f0741547b6b26f860ce84bf518d98adc7771d35b1b9dea79de
|
|
| MD5 |
daf71edb311d15c37f1993439c7cb73e
|
|
| BLAKE2b-256 |
fb8f10d104011eb494f8d9c937addbf891f0ea6acdab56c41353b90b41270a33
|
File details
Details for the file mustlink-0.3.2-py3-none-any.whl.
File metadata
- Download URL: mustlink-0.3.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b17e967c8c414f2b924f90c576feeeb32e8c39058e50a45dc6bbbb5f26dd50a9
|
|
| MD5 |
8265431e2a71dcdd6d4d2f595f822682
|
|
| BLAKE2b-256 |
c02f8359a077aa7f043f99b7e80e9b3679acbd2f93151ccf8a1778af568dab1c
|