A really simple **SQLite wrapper** that saves you from having to worry about creating tables or managing connections.
It can be used on existing SQLite database by simply passing in the database filename:
```python
from easydb import EasyDB
db = EasyDB('filename.db')
cursor = db.query("SELECT * FROM mytable")
```
New databases can be creating by specifying your schema as a dictionary, eg:
```python
schema = {
'table_name': ['column_name column_type', …],
'table_name': ['column_name column_type', …],
'table_name': ['column_name column_type', …]
}
db = EasyDB('filename.db', schema)
```
If the database file already exists then the schema won't be updated, but if it doesn't exist then it'll be created with the given schema. Here's a full example:
```python
from easydb import EasyDB
db = EasyDB('my.db', {'users': ['username text', 'description text']})
db.query("INSERT INTO users (username, description) VALUES (?, ?)", ('ben', 'some sort of description'))
for result in db.query("SELECT * FROM users"):
print result
# => ('ben', 'some sort of description')
```
Metadata
Release files for easydb 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easydb-0.2.tar.gz | 2.0 kB | Without provenance | Details for easydb-0.2.tar.gz |
Release files / easydb-0.2.tar.gz
| Download URL | easydb-0.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0ccebb3268f4867cf696cbd9fdc1a6e6c25a03f30fb41fa6e3035d53a7309d5
|
|
BLAKE2b-256 checksum How to use checksums |
2535bf86c56d4c0f53e2b57d74f6f2a19d30905fec9e6534b835700a496acd08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for easydb 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.