database layer for my personal server.
Project description
lapa_database_structure
about
database structure layer for my personal server.
installation
pip install lapa_database_structure
usage
to add a new database
- create a package with package name as database name.
to add a new schema
- add package in database_name package with schema name as package name.
to add a new table
- create /database_name/schema_name/tables.py file if not already created.
- create class corresponding to your new table add in /database_name/schema_name/tables.py file.
to add default data in table
- append row objects containing your default data to the data_to_insert list inside the /database_name/schema_name/tables.py file.
do not forget to add new database_names, schema_names and/or table_names to main.py enums to make it accessible through api calls.
configs
None
env
- python>=3.12.0
changelog
v.0.0.4
- authentication database added with the below tables
- user
- user_validation_status
- user_registration
- hashing_algorithm
v0.0.3
- Changed package name to lapa_database_structure.
v0.0.2
- Update table for file_storage -> File.
v0.0.1
- initial implementation.
Feedback is appreciated. Thank you!
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 lapa_database_structure-0.0.4.tar.gz
.
File metadata
- Download URL: lapa_database_structure-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b584339ea813c07cbd2db349862a0e93faa29f138c428a15a4cf76629ed9cf5 |
|
MD5 | 66a924e8b51bc68cbbd87651e2a7419c |
|
BLAKE2b-256 | 42830ee1309e6819b336f649e151dc798e57af47c8b6d40bbab3b9b06ca2cdfb |
File details
Details for the file lapa_database_structure-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: lapa_database_structure-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c48e3326e10a8c0ac3ad44eb942409c27df816a46e80a8db0f3dcaf7dd0bc018 |
|
MD5 | 1cefcff885bf187c8733e102000b1738 |
|
BLAKE2b-256 | 700e2ed509cd8c7827bb48c01f6ab08467a35b44424c222b9c3099995917b576 |