A typed, handwrited and powerful spacetraders API wrapper
Project description
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)
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
astrotraders-1.0.2.tar.gz
(17.3 kB
view details)
Built Distribution
File details
Details for the file astrotraders-1.0.2.tar.gz
.
File metadata
- Download URL: astrotraders-1.0.2.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1037-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5ac6d24b8a4f4b4e1feb303dab6ba261d319cd862d7e91cecdf04e468dd43e |
|
MD5 | 7e57808cbcfb5278f0389fa020900f65 |
|
BLAKE2b-256 | 1eed2fbf18a7dfa670d4857c028ccc1915603a45569bad8d098bc7ab59af395d |
File details
Details for the file astrotraders-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: astrotraders-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1037-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e73545f11539698401de03a56593c491642cc6a89ee716de6c05313c37763fa |
|
MD5 | db9ff94a0d54988bcec85489d70dda26 |
|
BLAKE2b-256 | 3f8df458c909c8270e92b576c9319213a0c2baaea62257151eb6ff6a213d07ad |