A simple inventory system
Find a file
2025-07-26 04:33:51 +02:00
contrib use BASE var in bulk_create output 2024-02-01 02:03:02 +01:00
static add footer 2025-07-13 05:03:59 +02:00
.dockerignore add contrib/ to .dockerignore 2024-02-01 01:48:51 +01:00
.gitignore initial commit 2022-08-04 05:41:51 +02:00
crud.py make return value of crud.put_item easier to understand 2024-01-14 20:24:14 +01:00
database.py allow changing db path 2025-07-13 04:44:09 +02:00
Dockerfile switch from uvicorn to hypercorn, bump dependencies 2025-07-26 04:33:41 +02:00
LICENSE Add LICENSE 2022-10-07 22:58:21 +00:00
main.py update openapi docs for PUT request 2024-02-01 01:04:49 +01:00
models.py Add last_updated field to be able to track outdated information / lost items 2024-01-14 20:24:14 +01:00
README.md add known forks to README 2025-07-26 04:33:51 +02:00
requirements.txt switch from uvicorn to hypercorn, bump dependencies 2025-07-26 04:33:41 +02:00
schemas.py orm_mode has been renamed to from_attributes 2024-02-01 00:01:55 +01:00

in?

A simple inventory system.

It uses fastapi, sqlalchemy and sqlite.

Known forks

Run

docker build -t in .
docker run -p 127.0.0.1:8000:8000 -it in

Then visit http://127.0.0.1:8000/.

By default, the database lives at ./inventory.sqlite3 (at /app/ inside the container).
You can change the path using the environment variable IN_DATABASE_URL=sqlite:////path/to/in.sqlite3.

Development

python -m pip install -r requirements.txt
hypercorn main:app --reload

API documentation is generated at http://127.0.0.1:8000/docs or http://127.0.0.1:8000/redoc.