A desktop GUI application for the SpaceTraders API, built in Python using Tkinter. This program allows you to play the game without manually sending API requests. I made this program and built upon my teachers code as part of a Mock NEA
- Python 3.8 or later
requestslibrary
1. Clone or download the repository
git clone https://github.com/your-username/spacetraders-gui.git
cd spacetraders-gui2. Install the requests library
pip install requests3. Run the program
python main.py- To reigster as a new agent, go to Register and create an account
- Create a new agent and copy its token
- Paste into login (The register button doesn't work)
- Select your agent from the dropdown (populated from previous sessions)
- Press Login agent
- Register a new SpaceTraders agent with a callsign and faction
- Log back in with one click using saved credentials
- Tokens are stored locally in
agents.jsonso no need to copy or remember them
- View your agent name, faction, and current credit balance
- Browse all active contracts with deadlines and remaining delivery requirements
- See all your ships with registration, role, frame, status, fuel and cargo
- Dock or undock any ship directly from the ship list
- Select any ship from a dropdown to load its full details
- Ship Info panel — status, system, waypoint, flight mode, fuel level and a visual fuel progress bar
- Ship Controls — dock/undock, refuel, navigate to any waypoint by symbol, and mine resources
- Marketplace — load trade goods at your current waypoint, buy by clicking a row, sell by entering item symbol and quantity
- Status bar shows the result of every action in plain English
- Top agents by credit balance
- Top agents by waypoints charted
- Refreshes automatically every time the tab is opened
spacetraders-gui/
├── main.py # entire application — all logic and UI in one file
└── agents.json # created automatically on first login, stores saved tokens
agents.jsonis created automatically the first time you log in. Do not share this file it contains your authentication tokens.- The program requires an internet connection to communicate with the SpaceTraders API.
- The GUI may briefly freeze during API calls as well as crash - my programming skills aren't the best