tools for prosperous universe

Thomas Knott 619a2f9299 Add GitHub Actions workflow for Pages deployment 1 неделя назад
.github 619a2f9299 Add GitHub Actions workflow for Pages deployment 1 неделя назад
prunplanner 6492f0ebf6 handle prunplanner backend v2 3 месяцев назад
punoted c5584c0957 punoted storage search 4 недель назад
ts 40ce74ef3f Add methodology documentation block 1 неделя назад
.gitignore 2122aec098 Cleaned up extrenious logging some more 1 неделя назад
bun.lock aa3b1407a8 gov: show POPR timestamp 2 месяцев назад
buy.py 39df46446d buy: consider the entire empire's consumption 1 месяц назад
cache.py 1f83560dac Merge branch 'main' of https://git.raylu.net/raylu/pruncalc into updatesjun2 1 неделя назад
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 39dd12e8bc planet_bases: handle FIO HTTP 204 2 недель назад
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 3d6caf9bca Add_Dynamic_OpEx_and_Little's_Law_Ship_Calculations 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 месяцев назад

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