Skip to main content

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

  1. "Game objects" with data caching and more pythonic usage
  2. 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)

Source distribution for astrotraders 1.0.2
File Size Uploaded
astrotraders-1.0.2.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for astrotraders 1.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page