This library is an easyest way to use local database!
Project description
PortableDB Documentation
PortableDB is a lightweight, easy-to-use Python package for creating, managing, and interacting with portable databases.
Installation
To install PortableDB, use pip:
pip install portableDB
Methods
LogType(Type)
Sets the logging state for the database operations.
- Arguments:
Type(str): Can be one of the following:'COLORFUL': Enables colorful logs for better readability.'BASE': Enables normal command-line logging.'NONE': Disables logging output.
CreateDatabase()
Creates a new database.
- Arguments:
name(str): The name of the database to create (should include a file type like '.db').
WriteDatabase(information, cell)
Writes data to the database.
- Arguments:
information(array): An array of values to write.cell(int): The index of cell at which to write information (must be positive).
ReadDatabase(cell, index)
Reads data from the database.
-
Arguments:
cell(int): The index of cell to read.index('ALL' or int or just ignore):'ALL'(string): Reads all elements in the specified cell.
-
Returns:
- The data read from specified cell.
RenameDatabase(newName)
Renames the database.
- Arguments:
newName(str): The new name for the database (should not include a file type like '.db').
DeleteDatabase()
Deletes the specified database.
- Arguments:
- No arguments :)
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.8.tar.gz.
File metadata
- Download URL: portabledb-1.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d879d8fe2009b077ca13dc416658899e9822f34731ed6df002afac2347c9816
|
|
| MD5 |
acf3255e32dad99768643c904f6c4aea
|
|
| BLAKE2b-256 |
121b54b01836a351ae610d3a099be4164f7fda4926e2a8ba246dd9370158c9dc
|
File details
Details for the file portableDB-1.8-py3-none-any.whl.
File metadata
- Download URL: portableDB-1.8-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
008b1fbcf0327ecb0d9466b5862770e5b043b722eeb986718789c39458ef1774
|
|
| MD5 |
51dc030002f1151a4a395ac6cf1c95de
|
|
| BLAKE2b-256 |
0baf8aa510e769062362ce0927f769cfc27665dfe344acb74650e4bf98131a6e
|