MQP-Database-Access is the Python database access package for the Munich Quantum Portal (MQP) Dashboard and part of the Munich Quantum Software Stack (MQSS).
It provides ORM-backed data access modules for domain entities such as users, jobs, resources, budgets, tokens, time slots, feedback, and status handling.
- Python package:
bqp_database_access - Database access logic built on Pony ORM
- Support for testing/local SQLite and PostgreSQL-backed usage
- Utility scripts for CSV import/export and SQL time-slot insertion
- Install PDM.
- Clone this repository.
- Install dependencies and developer tools:
git clone https://github.com/Munich-Quantum-Software-Stack/MQP-Database-Access.git
cd MQP-Database-Access
pdm install
The package and test setup rely on the environment variables. \
Use .env.example as a template for local configuration, then set environment-specific secret values before running tests or integrations.
scripts/import_from_csv.pyscripts/export_to_csv.pyscripts/insert_time_slot.sqlscripts/restricted_resources_to_usergroup.json
Review and adapt script configuration (for paths, credentials, and hosts) before use in your environment.
- Never commit
.envfiles, database passwords, peppers, tokens, or private keys. - Treat
QUANTUM_DB_PASS,QUANTUM_DB_PEPPER, andQUANTUM_DB_TOKEN_PEPPERas secrets. - Use different secret values for local testing and production.
- Rotate credentials and tokens according to your organization’s security policy.
Contributions are welcome. Please read CONTRIBUTING.md.
Please review CODE_OF_CONDUCT.md.
This project is licensed under the terms in LICENSE.