Easy storage handler
Project description
from ezstorge import Sqlite, Table, key
db = Sqlite("example.db")
@db.useTable("example")
class TExampleStr(Table):
id : key.str
string : str = None # Optional
integer : int # required
number : float
boolean : bool
date : datetime
@db.useTable("example")
class TExampleAuto(Table):
id : key.auto
string : str
integer : int
number : float
boolean : bool
date : datetime
# Create a single or all tables
db.createTable(TExampleStr)
db.createTables()
# Insert a single or all tables
db.updateTable(TExampleStr)
db.updateTables()
# Delete a single or all tables
db.deleteTable(TExampleStr)
db.deleteTables()
# Allow to have multiple databases
db2 = Sqlite("example2.db")
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
ezstorages-0.0.6.tar.gz
(3.6 kB
view details)
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 ezstorages-0.0.6.tar.gz.
File metadata
- Download URL: ezstorages-0.0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f304d98f88fb166735bce9860c1e575b5867b529f5db51e226c418d4a3b50a3d
|
|
| MD5 |
8108728c21017000e690535687f5aa3e
|
|
| BLAKE2b-256 |
93c3702e8351df275721c6878403e8bae989f3b2ff92ddc10eec365d9a4d1add
|
File details
Details for the file ezstorages-0.0.6-py3-none-any.whl.
File metadata
- Download URL: ezstorages-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2a8fc776e8dcd504ffa254e0ffd3191758c1793269e99af65a071a053e145f9
|
|
| MD5 |
c594175a246fba375573cb5198927463
|
|
| BLAKE2b-256 |
a983dbea822354cb9f441254696af3171d0dfe8b12fd04cf93b98babd883dd6d
|