Skip to main content

Python support for Ball Aerospace COSMOS v5


This project allows accessing the COSMOS v5 API from the python programming language. Additional functionality and support will be added over time.


Code style: black

Installation:

pip install cosmosc2

See the docs, examples for usage

Create a Virtual Python Environment

cd to your project directory and run virtualenv to create the new virtual environment.

The following commands will create a new virtual environment under cosmosc2/venv.

cd cosmosc2
py -m pip install venv
py -m venv venv

Activate the Environment

Now that we have a virtual environment, we need to activate it.

.\venv\Scripts\activate

After you activate the environment, your command prompt will be modified to reflect the change.

Development requirements-dev.txt

Althought requests is required, when doing development work it is helpful to test with pytest, use black, and coverage. These can be found in requirements-dev.txt

> py -m pip install -r requirements-dev.txt

Add Libraries and Create a requirements.txt File

After you activate the virtual environment, you can add packages to it using pip. You can also create a description of your dependencies using pip.

The following command creates a file called requirements.txt that enumerates the installed packages.

py -m pip freeze > requirements.txt

This file can then be used by collaborators to update virtual environments using the following command.

py -m pip install -r requirements.txt

Deactivate the Environment

To return to normal system settings, use the deactivate command.

deactivate

After you issue this command, you’ll notice that the command prompt returns to normal.

Release files for cosmosc2 1.2.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 cosmosc2 1.2.0
File Size Uploaded
cosmosc2-1.2.0.tar.gz 41.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cosmosc2 1.2.0
File Interpreter ABI Platform
cosmosc2-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 92.1 kB

Release files / cosmosc2-1.2.0.tar.gz

Download URL cosmosc2-1.2.0.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2eaae6ecac67c5c493f7d5cc7052696d4ccfb1228569f9d3d27df79cf3137cbd
BLAKE2b-256 checksum
How to use checksums
f10a79f1808e7434e88f310e253f40213e10f8e32cfc119f1acd0122e657c3db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release files / cosmosc2-1.2.0-py3-none-any.whl

Download URL cosmosc2-1.2.0-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e19e3149044a3b0331c406b3db201a19e030eff970c084d369553e70708a870
BLAKE2b-256 checksum
How to use checksums
f594f3176f467d570292deae62181090ea36f9ac085c94463f2eae0683e1cdf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

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