A simple database package example
Project description
pkgexampledatabases
A RexBytes example package that shows you how to,
- Create and address an sqlite3 database inside your python package.
- Create and address an sqlite3 database at anyother location on a filesystem. Access to a users home directory is used as the example.
The following config files are used to describe two sqlite databases.
-
/pkgexampledatabases/data/config/packagedb.json This is the json description file for the database that is constructed inside your package.
-
/pkgexampledatabases/data/config/userdb.json This is the json desctiption file for the database that is constructed inside a users home directory.
You can have as many database entries in the above files as you like. It is convenient to describe your databases in json format and let your package create the end user databases.
Project details
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 pkgexampledatabases-0.0.5.tar.gz
.
File metadata
- Download URL: pkgexampledatabases-0.0.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d971e5ddfa933f87297279f09ad3b8945b983710800c5d0d2a895d7b9dcb9e2 |
|
MD5 | 7bcb09eb0b04d5deda3e3b2e204feef3 |
|
BLAKE2b-256 | a0f6f4c0fb10c9c345500ca022591edcae23351bd47d07b033af34cb77fa55db |
File details
Details for the file pkgexampledatabases-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pkgexampledatabases-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e29529ef2a5f909e5f934a62f409ef0ee59931461c2c90c99a1a47ce0755ac1 |
|
MD5 | f3ba0242c437881f32bc8d5119642d01 |
|
BLAKE2b-256 | ea231678e89180e07505bcf2663a89f81997d0df270e8fcebb97606f993087b1 |