tools for prosperous universe

Thomas Knott a1aa1e2c06 Hybrid API Automated Update 2 weeks ago
cache e6b204bfb7 Add_HQ_Permit_Capital_Requirements 2 weeks ago
prunplanner 6492f0ebf6 handle prunplanner backend v2 3 months ago
punoted c5584c0957 punoted storage search 4 weeks ago
ts a1aa1e2c06 Hybrid API Automated Update 2 weeks ago
www 0b4b80c68e Manually fixed hq api url 2 weeks ago
.gitignore 8a9f15e5f7 Cleaned Up File Bloat Before Push 2 weeks ago
bun.lock aa3b1407a8 gov: show POPR timestamp 2 months ago
buy.py 39df46446d buy: consider the entire empire's consumption 1 month ago
cache.py 01906da5e8 Fix_CBOR2_LZMA_Stream_Mismatch 2 weeks ago
company.py 28f7da681a company: get one expertise per mat 1 month ago
config.py c772b15403 market: convert to a market making tool 2 weeks ago
cx_spend.py 2d48715345 cx_spend: take CX as an argument 4 months ago
dev.sh 3ca0e52e0a Scale_Metrics_To_Planetary_Base 2 weeks ago
export_logistics.py 5c223c7afb export logistics 2 months ago
fx.py 6492f0ebf6 handle prunplanner backend v2 3 months ago
integration.py ac205e481f integration: show companies consuming 3 months ago
market.py c772b15403 market: convert to a market making tool 2 weeks ago
mat_competitors.py 36205bbe40 mat_competitors: handle missing company IDs in pmmg 1 month ago
movers.py 9270f267a8 movers: handle NPC asks 3 months ago
package.json 5e4b361fea corps 2 weeks ago
planet_bases.py a1fca9c0cb planet_bases: get usernames and corp codes 3 weeks ago
pyproject.toml 93a08f09ab Revert_To_CBOR2_Serialization 2 weeks ago
readme.md aee53800eb Update_Readme_Raw_Commands 2 weeks ago
roa.py 58ac39ad7b return on area 5 months ago
roi.py 0b4b80c68e Manually fixed hq api url 2 weeks ago
sell.py 93025210a2 sell: ignore shipment blocks in ship inventory 1 month ago
sell_liquidity.py a7d7a146eb sell: decide what to sell vs keep 1 month ago
shipbuilding.py 6b64887099 shipbuilding: summarize buys 2 months ago
supply.py 9996a56dda supply: fix exporting bug 1 month ago
tsconfig.json f9349e0fc1 roi webpage 6 months ago
uv.lock 65cdface0f Hardened_CBOR2_Panic_Catching 2 weeks ago

readme.md

supply cart

install uv: https://docs.astral.sh/uv/getting-started/installation/

get a FIO API key from https://fio.fnar.net/settings and create a config.toml like:

username = 'raylu'
fio_api_key = 'uuid_here'
punoted_api_key = ''

[market.mm_items]
TCL = 0

[supply.promitor]
ignore_materials = ['RAT']

uv run supply.py promitor


Local Development

To work on the frontend (ts/ directory) and test your changes locally, you will need to install Bun (the project's JavaScript runtime and bundler) in addition to uv. install bun: https://bun.sh/docs/installation

To generate the backend data, compile the frontend, and serve the site locally, execute the following commands from your terminal:

  1. Generate the Backend Data: Use uv to execute the Python script in its isolated environment (this utilizes cbor2 for efficient API caching).

    uv run roi.py

  2. Install Frontend Dependencies: Populate the node_modules directory with the required JavaScript libraries.

    bun install

  3. Build the Frontend: Compile the TypeScript files into browser-ready JavaScript within the www/ directory.

    bun run build

  4. Serve Locally: Navigate into the web directory and spin up a local development server to view your changes at http://localhost:8000.

    cd www python3 -m http.server 8000