Unity-Py
A Python client to simplify interactions with NASA's Unity Platform.
[INSERT SCREENSHOT OF YOUR SOFTWARE, IF APPLICABLE]
Unity-Py provides a seamless way to interact with NASA's Unity Platform using Python. Built to simplify the connection and data retrieval process, this client offers a programmatic interface to Unity's services.
Features
- Pythonic interface to NASA's Unity Platform
- Support for interactive and environment variable-based authorization
Contents
Quick Start
Requirements
- Python
- pip
Development Requirements
Setup Instructions
- Install via pypi:
pip install unity-sds-client - Install from Github:
python -m pip install git+https://github.com/unity-sds/unity-py.git - Building and installing locally using poetry:
git clone https://github.com/unity-sds/unity-py.git cd unity-py poetry install
Run Instructions
Authorization can be handled interactively, in which case you will be prompted for a username/password when calling the Unity() method, or can be handled by way of environment variables:
export UNITY_USER=MY_UNITY_USERNAME
export UNITY_PASSWORD=MY_UNITY_PASSWORD
Order of Authentication Parameters:
- Environment variables
- Prompt for username and password
Usage Examples
from unity_sds_client.unity import Unity
from unity_sds_client.unity_session import UnitySession
from unity_sds_client.unity_services import UnityServices as services
s = Unity()
# set the venue for interacting with venue specific services
# if your venue id is a single string, use the following
s.set_venue_id("unity-sips-test")
# otherwise set the project and venue:
# s.set_project("sbg")
# s.set_venue("dev")
dataManager = s.client(services.DATA_SERVICE)
collections = dataManager.get_collections()
print(collections)
cd = dataManager.get_collection_data(collections[0])
for dataset in cd:
print(f'dataset name: {dataset.id}' )
for f in dataset.datafiles:
print(" " + f.location)
Test Instructions
-
Run all tests and include printouts:
poetry run pytest -s -
Run non-regression tests:
poetry run pytest -m "not regression" -
Run regression tests (and include logs)
(Not Available Yet)
Documentation Generation
poetry install --with docs
poetry run sphinx-apidoc -f -o docs/source/ unity_sds_client
poetry run sphinx-build -M markdown docs/source docs/build
poetry run sphinx-build -M html docs/source docs/build/
Changelog
See our CHANGELOG.md for a history of our changes.
See our releases page for our key versioned releases.
Frequently Asked Questions (FAQ)
No questions yet. Propose a question to be added here by reaching out to our contributors! See support section below.
Contributing
Interested in contributing to our project? Please see our: CONTRIBUTING.md
License
See our: LICENSE
Support
Please reach out to @anilnatha, @mike-gangl
Metadata
Release files for unity-sds-client 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unity_sds_client-0.12.0.tar.gz | 28.4 kB | Without provenance | Details for unity_sds_client-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unity_sds_client-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for unity_sds_client-0.12.0-py3-none-any.whl |
Total release size: 63.0 kB
Release files / unity_sds_client-0.12.0.tar.gz
| Download URL | unity_sds_client-0.12.0.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35739a63ac430b7ab9426c8c2cdf1dad58e30d1e4c031be21cc615f0d574e5d2
|
|
BLAKE2b-256 checksum How to use checksums |
0fe6e5293cb24d05fb3964582f5af5ad39337467f7f9fb0db7818a4ffd8c9cd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / unity_sds_client-0.12.0-py3-none-any.whl
| Download URL | unity_sds_client-0.12.0-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1f1b1d702e14717ed018bcd857a930233bf5899c8738e8d54fbdfb27db5034a
|
|
BLAKE2b-256 checksum How to use checksums |
62b6705eae9a2ab5323f34ae09d9a7f804c303c43ac8aad3b069283194576041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for unity-sds-client 0.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.