Minumtium Postgres
A postgres database adapter for the minumtium library. It uses SQL Alchemy as its abstraction library alongside with pg8000 as the connection driver.
What can I use it for?
It is used to provide access to data stored in postgres instances using the minumtium library.
Usage
Install it using your favorite package manager:
pip install minumtium-postgres
pipenv install minumtium-postgres
poetry install minumtium-postgres
Then, provide it to your minumtium Services:
from minumtium.modules.idm import IdmService, UserRepository
from minumtium_simple_jwt_auth import SimpleJwtAuthentication
from minumtium_postgres import MinumtiumPostgresAdapter, MinumtiumPostgresAdapterConfig
config = MinumtiumPostgresAdapterConfig(
username='minumtium',
password='samplepassword',
host='localhost',
port=5432,
dbname='minumtium',
schema_name='minumtium')
db_adapter = SqlAlchemyAdapter({config, 'posts')
auth_adapter = SimpleJwtAuthentication(configuration={
'jwt_key': 'not a reliable key, change that quickly',
'session_duration_hours': 1})
users_repository = UserRepository(db_adapter)
idm_service = IdmService(auth_adapter, users_repository)
idm_service.authenticate('jao', 'batata')
Metadata
Release files for minumtium-postgres 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minumtium_postgres-1.2.3.tar.gz | 6.1 kB | Without provenance | Details for minumtium_postgres-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minumtium_postgres-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for minumtium_postgres-1.2.3-py3-none-any.whl |
Total release size: 13.2 kB
Release files / minumtium_postgres-1.2.3.tar.gz
| Download URL | minumtium_postgres-1.2.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb36654f78ba0dc86d2f56cef0da329dea81a54968410f7bae5e5b0c82cc887f
|
|
BLAKE2b-256 checksum How to use checksums |
e1e6dc686ab93a5aeb1002d6b38ca4301c4ebb69e822608cc73f2ffa9c6b0633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / minumtium_postgres-1.2.3-py3-none-any.whl
| Download URL | minumtium_postgres-1.2.3-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fc24620420268a0e2aac8c9ce8aca2c092689174a24731b2ee9de2ae3c442de
|
|
BLAKE2b-256 checksum How to use checksums |
3cbef8c590d75aa449dc87cded76363e54a9dd36d600cff2ec51c0e3c4d0ba27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for minumtium-postgres 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.