Hypi's MekaDB client
Register a https://hypi.ai/mekadb
Usage
if __name__ == '__main__':
async def main():
# Create an instance of the MekaDBClient
client = MekaDBClient()
# Connect to Hypi and keep a connection in the background
await client.run()
# Login to get authentication context
auth = await client.login('<username>', '<password>', '<database name>')
res = await client.query(creds=auth,
sql='CREATE TABLE IF NOT EXISTS user(username VARCHAR, pass VARCHAR, PRIMARY KEY (username))')
print("Create table:", res)
res = await client.query(creds=auth,
sql="INSERT INTO user(username,pass) VALUES('courtney','pass1'),('damion','pass2')")
print("Insert:", res)
res = await client.query(creds=auth, sql='SELECT * FROM user WHERE pass = :pass', params={'pass': 'pass99'})
print("Select:", res)
# Close the connection
await client.close()
# Run the main function within an asyncio event loop
asyncio.run(main())
Metadata
Release files for mekadb 0.1.0
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 |
|---|---|---|---|---|
| mekadb-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for mekadb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mekadb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mekadb-0.1.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / mekadb-0.1.0.tar.gz
| Download URL | mekadb-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f1295c6076ad169f33db135843e6e4fe5cd9022db1c3954c87e6f9f8ca221fa
|
|
BLAKE2b-256 checksum How to use checksums |
24b0cc4994cd0c7504ca18e46798d3abe00deaf1fef3578c9e8aee0a9f17d134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / mekadb-0.1.0-py3-none-any.whl
| Download URL | mekadb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae5b6b56b62f158f8db51113c28cdb49bdc0c0c5094d7e428cafd1d3921cb3ee
|
|
BLAKE2b-256 checksum How to use checksums |
b1d65950b0d465b5e1aff8fd52f306d51bde1d88daccc5b10a2a426eedb3c742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for mekadb 0.1.0
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.