astrotraders
A typed, handwrited and powerful library for spacetraders.io game.
SpaceTraders is an API-based game where you acquire and manage a fleet of ships to explore, trade, and fight your way across the galaxy.
This client based on HTTPX and Pydantic.
Install
pip install astrotraders
Usage
Currently, you can use API wrapper which represented by AstroTradersClient class:
from astrotraders import AstroTradersClient
client = AstroTradersClient.set_up(
"token_here",
)
After initializing client you can use API resources, for example:
agent = client.agents.info()
systems = client.systems.list()
contracts = client.contracts.list()
factions = client.factions.list()
# you can use undocumented endpoints!
stats = client.server.stats()
universe = client.systems.all()
TODO
- "Game objects" with data caching and more pythonic usage
- CLI tool for manage fleet (and as example)
Metadata
Release files for astrotraders 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| astrotraders-1.0.2.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| astrotraders-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / astrotraders-1.0.2.tar.gz
| Download URL | astrotraders-1.0.2.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd5ac6d24b8a4f4b4e1feb303dab6ba261d319cd862d7e91cecdf04e468dd43e
|
|
BLAKE2b-256 checksum How to use checksums |
1eed2fbf18a7dfa670d4857c028ccc1915603a45569bad8d098bc7ab59af395d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1037-azure
|
Release files / astrotraders-1.0.2-py3-none-any.whl
| Download URL | astrotraders-1.0.2-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e73545f11539698401de03a56593c491642cc6a89ee716de6c05313c37763fa
|
|
BLAKE2b-256 checksum How to use checksums |
3f8df458c909c8270e92b576c9319213a0c2baaea62257151eb6ff6a213d07ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1037-azure
|