Skip to content

A data hub for pandapower and pandapipes networks based on MongoDB.

License

Notifications You must be signed in to change notification settings

e2nIEE/pandahub

Repository files navigation

pandapower pandapipes

pandahub pandahub pandahub

pandahub is a data hub for pandapower and pandapipes networks based on MongoDB. It allows you to store pandapower and pandapipes networks as well as timeseries in a MongoDB. pandahub allows you to access the database directly through the PandaHub class, but also provides a REST-API based on FastAPI. Access through the API is managed with a user management implementation based on FastAPI Users.

Development

docker compose up -d runs a mongodb container alongside a pandahub api instance with live reload available at http://localhost:8002. To connect to an existing database instead, set MONGODB_URL to the connection string through an environment variable / in you .env file.

Swagger UI is available at http://localhost:8002/docs.

If you develop on the library and do not need the fastapi app, docker compose up db -d starts only the mongodb container.