You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
[INSERT SCREENSHOT OF YOUR SOFTWARE, IF APPLICABLE]
28
17
29
-
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:
18
+
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.
19
+
20
+
## Features
21
+
22
+
* Pythonic interface to NASA's Unity Platform
23
+
* Support for interactive and environment variable-based authorization
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:
31
61
```
32
62
export UNITY_USER=MY_UNITY_USERNAME
33
63
export UNITY_PASSWORD=MY_UNITY_PASSWORD
34
64
```
35
-
36
-
The order of Authentication Parameters is as follows:
37
-
65
+
Order of Authentication Parameters:
38
66
1. Environment variables
39
67
2. Prompt for username and password
40
68
41
-
### Running your first command
69
+
### Usage Examples
42
70
43
71
```
44
72
from unity_sds_client.unity import Unity
@@ -54,19 +82,44 @@ cd = dataManager.get_collection_data(collections[0])
54
82
for dataset in cd:
55
83
print(f'dataset name: {dataset.id}' )
56
84
for f in dataset.datafiles:
57
-
print("\t" + f.location)
85
+
print("" + f.location)
58
86
```
59
87
60
-
## Testing
61
-
To run unit and regression tests:
88
+
### Test Instructions
62
89
63
-
```
64
-
# run all tests and include printouts:
65
-
poetry run pytest -s
90
+
1. Run all tests and include printouts:
91
+
```
92
+
poetry run pytest -s
93
+
```
66
94
67
-
# run non-regression tests:
68
-
poetry run pytest -m "not regression"
95
+
2. Run non-regression tests:
96
+
```
97
+
poetry run pytest -m "not regression"
98
+
```
69
99
70
-
# run regression tests (and include logs)
100
+
3. Run regression tests (and include logs)
101
+
```
102
+
(Not Available Yet)
103
+
```
71
104
72
-
```
105
+
## Changelog
106
+
107
+
See our [CHANGELOG.md](CHANGELOG.md) for a history of our changes.
108
+
109
+
See our [releases page](https://github.com/unity-sds/unity-py/releases) for our key versioned releases.
110
+
111
+
## Frequently Asked Questions (FAQ)
112
+
113
+
No questions yet. Propose a question to be added here by reaching out to our contributors! See support section below.
114
+
115
+
## Contributing
116
+
117
+
Interested in contributing to our project? Please see our: [CONTRIBUTING.md](CONTRIBUTING.md)
118
+
119
+
## License
120
+
121
+
See our: [LICENSE](LICENSE)
122
+
123
+
## Support
124
+
125
+
Please reach out to [@anilnatha](https://github.com/anilnatha), [@mike-gangl](https://github.com/mike-gangl)
0 commit comments