This library is an easyest way to use local database!
Project description
Here is an example:
from portableDB import DATABASE
DTB = DATABASE() DTB.LogState(‘COLORFUL’) #’BASE’ - just normal cmd, ‘NONE’ - no comments when working DTB.Create_Database(‘Database’) #’Database’ - name
DTB.Write_Database(‘Database’,[‘String value1’, 32], 1) #’Database’ - name, [] - here should be your values, 1 - index (can be only positive number)
print(DTB.Read_Database(‘Database’, 1, ‘ALL’)) #’Database’ - name, 1 - index, ‘ALL’ - index of array (‘ALL’ or any index of value in array)
DTB.Rename_Database(‘Database’,’DB’) #’Database’ - current name, ‘DB’ - new name
DTB.Change_File_Type(‘’,’db’) #’’ - idk why it should be here, but without it, it will never work (:, ‘db’ - should be like current type, ALWAYS DTB.Change_File_Type(‘DB’,’txt’) #’DB’ - name, ‘txt’ - new format (can be any except some not text formats (like mp4 LOL) and ALWAYS preverous line should be like in this example)
DTB.Delete_Database(‘Database’) #No comments
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file portabledb-1.4.tar.gz.
File metadata
- Download URL: portabledb-1.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93fb7cb06ff06b6a4bbed671a8be6f04df7d97a0bf26617182ecae4ef6945e3a
|
|
| MD5 |
e6efe4a2fdbc927032fa26e4a9f5dbfc
|
|
| BLAKE2b-256 |
56ba29cb05a47da79f3babe9741b0f1382085e8f1f213fc7d5bf1edb1338a6db
|
File details
Details for the file portableDB-1.4-py3-none-any.whl.
File metadata
- Download URL: portableDB-1.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd50c20bdb48a892db660bbf9ec56a5b8048eadad9dfcca234ee461f1bb0df4b
|
|
| MD5 |
f6bd5666833433f1e5b7a7c82ddc5ec3
|
|
| BLAKE2b-256 |
8b5b1bb1c6b64fa4f16adb32afd72e4f88e5fcc8c24a858f1a638f0f89ad50c6
|