tools for prosperous universe

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

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