queryzen
This is the canonical queryzen client (Python).d
- Features: 100% coverage and thorough testing.
- Compatability with backend is directly tested and can be enforced at runtime.
- Pythonic Ask for forgiveness (what were the initials?) and type safe API, checked with mypi.
- 100% use of docstrings and documentation [link documentation].
Example
from querzen import QueryZen
qz = QueryZen()
# Default collection is 'main' and version is 'latest'
some_zen = qz.create("my_zen", query='select * from sys.summits where country == :country and height > :height')
print(some_zen)
# Create a Zen that has two parameters, 'country' and 'height', the character ':' is used to specify parameters.
# if no default parameters are specified, they are m
zen = qz.create(
name="mountains",
collection="production",
query="select * from sys.summits where country == :country and height > :height",
default = {
'country': 'United States',
'height': 0
},
version=32,
description="Gets all summits from a given country and height, defaults to all summits from United States",
)
print(zen == qz.get("mountains", collection="production")) # if no version is specified, it returns the created.
# True
# Run with default values.
result = qz.run(
zen
) # Execution is blocked, it is run synchronously.
print(result.has_data)
print()
# Run with parameters.
result = qz.run(
zen,
country='Spain',
height=1200
)
print(result.as_table())
print(zen.executions.oldest.as_table())
API
Main classes are QueryZen, Zen and ZenExecutions.
QueryZen.get
QueryZen.create
QueryZen.get_or_create
QueryZen.delete
QueryZen.filter
Metadata
Release files for queryzen 0.0.1
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 |
|---|---|---|---|---|
| queryzen-0.0.1.tar.gz | 35.6 kB | Without provenance | Details for queryzen-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| queryzen-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for queryzen-0.0.1-py3-none-any.whl |
Total release size: 50.8 kB
Release files / queryzen-0.0.1.tar.gz
| Download URL | queryzen-0.0.1.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df75c4007ec37309005efe831d76f00b699c09198ef886d7878262edd8603725
|
|
BLAKE2b-256 checksum How to use checksums |
e720e25347e169219911d106e577b1c713e4b97a5e92df690d88100b038c890c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.3
|
Release files / queryzen-0.0.1-py3-none-any.whl
| Download URL | queryzen-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc6c201a3edcaf76402e9d617c0cfe298a312fae04fbef5215fbe5a04bc78a51
|
|
BLAKE2b-256 checksum How to use checksums |
27892814037cc4b2bc22fc04a8921e0c7e1178da18c4598e3cff663e97985c23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.3
|
Security for queryzen 0.0.1
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.