A SQLite adapter for the minumtium library.
Project description
Minumtium SQLite
A SQLite adapter for the minumtium library. It uses SQL Alchemy as its abstraction library.
What can I use it for?
It is used to provide access to data using relational databases using theminumtium library.
Usage
Install it using your favorite package manager:
pip install minumtium-sqlite
pipenv install minumtium-sqlite
poetry install minumtium-sqlite
Then, provide it to your minumtium Service:
from minumtium.modules.idm import IdmService, UserRepository
from minumtium_sql_alchemy_adapter import SqlAlchemyAdapter
from minumtium_simple_jwt_auth import SimpleJwtAuthentication
db_adapter = SqlAlchemyAdapter({'engine': 'sqlite_memory'}, '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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file minumtium_sqlite-1.0.2.tar.gz
.
File metadata
- Download URL: minumtium_sqlite-1.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4993643da79a90edd569c076e1bb450573e665547e9fc0a57a54ef241c38b6 |
|
MD5 | b48da0f7f97f2dac57e743648f4e8fb3 |
|
BLAKE2b-256 | f8300c4425d63540a5b3f50f3643fb2fa5816f90d3b84082219599cfc9947d1f |
File details
Details for the file minumtium_sqlite-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: minumtium_sqlite-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b071b6185cd15af5dcc7fb1c4737e2c4a6b73a02a7b382fe11ab86183ebc922 |
|
MD5 | c32d994873a5e79e408fdf4eecc85986 |
|
BLAKE2b-256 | 17e8f0f585537c655be3935aaec649bc2d768c0ef8bb9c0faa01568232f118cd |