Skip to main content

Python Support for Ball Aerospace COSMOS v5

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmosc2-1.2.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

cosmosc2-1.2.0-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

Details for the file cosmosc2-1.2.0.tar.gz.

File metadata

  • Download URL: cosmosc2-1.2.0.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cosmosc2-1.2.0.tar.gz
Algorithm Hash digest
SHA256 2eaae6ecac67c5c493f7d5cc7052696d4ccfb1228569f9d3d27df79cf3137cbd
MD5 8cd3d4b352b06fafb51aa6708e547130
BLAKE2b-256 f10a79f1808e7434e88f310e253f40213e10f8e32cfc119f1acd0122e657c3db

See more details on using hashes here.

File details

Details for the file cosmosc2-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: cosmosc2-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 50.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cosmosc2-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e19e3149044a3b0331c406b3db201a19e030eff970c084d369553e70708a870
MD5 59f37cae63523c2f9a4696d8dcf709c5
BLAKE2b-256 f594f3176f467d570292deae62181090ea36f9ac085c94463f2eae0683e1cdf9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page