tools for prosperous universe

Thomas Knott 85e5f18e84 .gitignored dev.sh 2 週間 前
cache 65cdface0f Hardened_CBOR2_Panic_Catching 2 週間 前
prunplanner 6492f0ebf6 handle prunplanner backend v2 3 ヶ月 前
punoted c5584c0957 punoted storage search 4 週間 前
ts c4d4c571e6 Polish_UI_Headers_and_Tooltips 2 週間 前
www 65cdface0f Hardened_CBOR2_Panic_Catching 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 ヶ月 前
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 5c94ec0b6f Add_Dynamic_OpEx_CapEx_Revenue_Permutations 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