Python support for OpenC3 COSMOS
Project description
Python support for OpenC3 COSMOS v5
This project allows accessing the COSMOS v5 API from the python programming language. Additional functionality and support will be added over time.
Installation:
pip install openc3
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 openc3/venv
.
cd openc3
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
Although 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
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
File details
Details for the file openc3-5.20.0.tar.gz
.
File metadata
- Download URL: openc3-5.20.0.tar.gz
- Upload date:
- Size: 237.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa6ec341b9d818c7b23bbc60ab04c88fb96bca1adc4f4008aebd9ec552aa64a |
|
MD5 | 1398edb2e6044f34db7fa0fde33c25b2 |
|
BLAKE2b-256 | e8cd7c716408bc91ddfb008a4ad9bb09baee6fe57252edfdc18d4e7001c6924c |
File details
Details for the file openc3-5.20.0-py3-none-any.whl
.
File metadata
- Download URL: openc3-5.20.0-py3-none-any.whl
- Upload date:
- Size: 371.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b61461c47407719911ac56320165d90e80a80bb83844715b135cbd878127e9 |
|
MD5 | 88012fc8862b2441a160d0fc84a7508e |
|
BLAKE2b-256 | a91d53e7991c4ede7d72d0e7d495790b62e14e0b12e5cc9fce62e3d85961ef36 |