SpacePyTraders
The Python SDK to interact with the Space Traders API.
Read the documentation here: https://spacetraders.readthedocs.io/en/latest/
Space Traders is a great way to learn a practice coding. I highly recommend having a go at using the Requests library and interacting with the API yourself as practice but you can install this library to skip the boring work of coding for each API endpoint.
Install
pip install SpacePyTraders
Getting Started
The first installment of this library provides a nice way to use Python and interact with the API without needed to code all the request calls.
Using the Api class provided you can access all the currently possible endpoints of the API. The structure of the classes are organised the same as the Space Traders API. So if you're not sure what class to look under check the docs here or the Space Trader's API here.
from SpacePyTraders import client
USERNAME = "YOUR USERNAME"
TOKEN = "YOUR TOKEN"
api = client.Api(USERNAME,TOKEN)
print(api.account.info())
>>>
{
"user": {
"username": "JimHawkins",
"credits": 0,
"ships": [],
"loans": []
}
}
Metadata
Release files for SpacePyTraders 0.0.6
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 |
|---|---|---|---|---|
| SpacePyTraders-0.0.6.tar.gz | 31.6 kB | Without provenance | Details for SpacePyTraders-0.0.6.tar.gz |
Release files / SpacePyTraders-0.0.6.tar.gz
| Download URL | SpacePyTraders-0.0.6.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27ebb986b1065912b259353b3a595504c7b9491c26f01b384365eec82ddb43fc
|
|
BLAKE2b-256 checksum How to use checksums |
76b0c3f4e67e0b6addda499c6f9fb423a1569dc7fb6e58ab569313377167dc43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Security for SpacePyTraders 0.0.6
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.