HPDB
Current version: 4.0.7
dbClass
installation
python -m pip install hpdb
usage
settings.ini
[database]
dbhost = myhost.mydomain.com
dbname = database_name
dbuser = database_user
dbpass = secret123
Initializing from ini file
from hpdb import dbClass
db = dbClass.from_inifile('settings.ini')
Initializing directly
db = dbClass( host, dbname, user, passwd )
SELECT
db.select('users',{'isactive':1} )
LOOKUP SPECIFIC VALUES
db.lookup('users',{'id':15}, ['name', 'active] )
INSERT
db.insert('users', {'name':'john', 'isactive':1})
id = db.last_insert_id()
UPDATE
db.update( 'users', {'name':'john'}, {'active':0})
DELETE
db.delete( 'users', {'name':'john'})
QUERY
db.execute( 'SELECT * FROM users' )
Don't forget to commit when you have an innodb table
db.commit()
Metadata
Release files for hpdb 4.0.7
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 |
|---|---|---|---|---|
| hpdb-4.0.7.tar.gz | 5.0 kB | Without provenance | Details for hpdb-4.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hpdb-4.0.7-py3-none-any.whl | Python 3 | none | any | Details for hpdb-4.0.7-py3-none-any.whl |
Total release size: 10.7 kB
Release files / hpdb-4.0.7.tar.gz
| Download URL | hpdb-4.0.7.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c14bb9c000a84cad0b15db57d2ecbeefe2b4c4a121139467801bd53cf675472
|
|
BLAKE2b-256 checksum How to use checksums |
1911111db38dc7b33d188097f553d10006e28d12df4be0dfdd19f4c8c3a5970c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / hpdb-4.0.7-py3-none-any.whl
| Download URL | hpdb-4.0.7-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
023b59231605ea1812d3ef428cf4bce27dd513fe0c15c4ff3a203e02bddac9f9
|
|
BLAKE2b-256 checksum How to use checksums |
cddea9abdc12d268eb785a3a1e1ac79ba641d7881055379558f22b8d165a86d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for hpdb 4.0.7
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.