DuckDB-Cursor
DuckDB-Cursor is simple DuckDB wrapper.
Install
First install library,
pip install duckdb-cursor
Usage
Create an CURSOR object,
from duckdb import connect
from duckdb_cursor import CURSOR
cur = CURSOR(connect("db.duckdb"))
cur.set("INSERT INTO users VALUES(1, ?);", ('Wendys', ))
del cur
can select one row,
cur = CURSOR(connect("db.duckdb"))
row = cur.get("SELECT name FROM users WHERE id=1;", as_dict=True, one=True)
del cur
print(row['name'])
can select all rows,
cur = CURSOR(connect("db.duckdb"))
rows = cur.get("SELECT name FROM users;")
del cur
print(rows)
Contributing
DuckDB-Cursor is developed on GitLab. You are very welcome to open issues or propose merge requests.
Help
This README is the best place to start, after that try opening an issue.
Metadata
Release files for duckdb-cursor 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 | |
|---|---|---|---|---|
| duckdb-cursor-0.2.tar.gz | 14.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duckdb_cursor-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.9 kB
Release files / duckdb-cursor-0.2.tar.gz
| Download URL | duckdb-cursor-0.2.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d76bb1590375c264e76101880ca1ce63b50043432da36b4f74af74b58be9f16
|
|
BLAKE2b-256 checksum How to use checksums |
2d10d645cfb13e8d80f0f6a6cd7d723d6f3ab8dfc7fcd753047671b912598f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Release files / duckdb_cursor-0.2-py3-none-any.whl
| Download URL | duckdb_cursor-0.2-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b590f06cbf5ad98715363e4e633e3168edaf37ded2726859c5a5239bdf217a8
|
|
BLAKE2b-256 checksum How to use checksums |
e9961a7114b50887b3f8cf39b92a234f5bccacf1a9c79aa42a9d9227c79333b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for duckdb-cursor 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.