Autotraders
A spacetraders API focused on automation and ease of use
Usage
First you need a client, which can be generated
from autotraders import session
s = session.get_session("YOUR_TOKEN_HERE")
And now you're all set to use they actual API.
Ships
from autotraders.ship import Ship
from autotraders.session import get_session
# create a session here
session = get_session("YOUR TOKEN HERE")
ship = Ship("SYMBOL-Here", session) # This makes an API request
ships = Ship.all(session) # This also only makes one API request
ship.dock()
ship.refuel()
ship.orbit() # All these functions make API calls (one each), but the line below doesn't make any
print(ship.fuel.current + "/" + ship.fuel.total)
Contract
from autotraders.faction.contract import Contract
from autotraders.session import get_session
# create a session here
session = get_session("YOUR TOKEN HERE")
contract = Contract("id-here", session)
contracts = Contract.all(session)
contract.accept()
print(contract.accepted) # True
contract.deliver("SHIP_SYMBOL", "ALUMINUM_ORE", 30)
contract.fulfill()
print(contract.fulfilled) # True
Metadata
Release files for autotraders 2.3.5
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 |
|---|---|---|---|---|
| autotraders-2.3.5.tar.gz | 19.8 kB | Without provenance | Details for autotraders-2.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autotraders-2.3.5-py3-none-any.whl | Python 3 | none | any | Details for autotraders-2.3.5-py3-none-any.whl |
Total release size: 48.9 kB
Release files / autotraders-2.3.5.tar.gz
| Download URL | autotraders-2.3.5.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18230d1a2128a711010dd13ea064d690883f3f5fea738f8ccb46fe38370b80f3
|
|
BLAKE2b-256 checksum How to use checksums |
9c7419a8d1f985dae79808077fee23206f0d7634857223fa4f464ae9bc802663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / autotraders-2.3.5-py3-none-any.whl
| Download URL | autotraders-2.3.5-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
388ea6a2f503264e2b6126e9200b6dfb88477454a5e9526f2801b7f5d72c033e
|
|
BLAKE2b-256 checksum How to use checksums |
40066ff7da5e51d8ff2ca0c49f7bb30eaa4e9f4d3d0721e2e417e0efdcf5c097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for autotraders 2.3.5
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.