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
v0.0.5
- file_storage -> public -> File
- change file_extension to file_content_type.
- file_system_relative_path default change from "." to "".
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
Close
Hashes for lapa_database_structure-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6140768102ab0bb46e76daed4035044223f96fe6e7e73ef487b9b8f1cbb9405f |
|
MD5 | 6904bc7e7089817f1ed0e24b21e9c473 |
|
BLAKE2b-256 | a97de1408eb9f390d2dc393b1bfa8e07960e345bd4eb7bfdcfa898bd3759aa5d |
Close
Hashes for lapa_database_structure-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfeb937ac85f501bf4ef70fc36c8927b7846433f0dd3990adc8165f4c7f1ef53 |
|
MD5 | 98047cbe1eaefe38ceeaad6b27be3b68 |
|
BLAKE2b-256 | 65e1b9238d6f41e189236ee1f969e404cee407b93dc1342668259360875160e2 |