Skytable Python Client
This is the official Python client driver for Skytable. The driver has been tested to work with Skytable 0.8.2 using the Skyhash/2 Protocol. The Python client driver provides first-class async support using asyncio and does not have any additional dependencies at the moment.
Example usage
Install the dependency:
pip install skytable-py
Use in your code:
import asyncio
from skytable_py import Config, Query
c = Config("root", "mypassword123456789")
async def main():
db = None
try:
db = await c.connect()
# init space
assert (await db.run_simple_query(Query("create space apps"))).is_empty()
# init model
assert (await db.run_simple_query(Query("create model apps.auth(username: string, password: string)"))).is_empty()
# insert our test row
assert (await db.run_simple_query(Query("insert into apps.auth(?, ?)", "sayan", "mypassword"))).is_empty()
# fetch data
username, password = (await db.run_simple_query(Query("select * from apps.auth where username = ?", "sayan"))).row().columns
# output
print(f"username={username.string()}, password={password.string()}")
except Exception as e:
print(f"failed with error {e}")
finally:
if db:
await db.close()
if __name__ == "__main__":
asyncio.run(main())
License
This client library is distributed under the Apache-2.0 License.
Metadata
Release files for skytable-py 0.1.3
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 |
|---|---|---|---|---|
| skytable_py-0.1.3.tar.gz | 11.7 kB | Without provenance | Details for skytable_py-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skytable_py-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for skytable_py-0.1.3-py3-none-any.whl |
Total release size: 25.7 kB
Release files / skytable_py-0.1.3.tar.gz
| Download URL | skytable_py-0.1.3.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0be20585588bc32931fad4a0430feb41fd5bbdabd1eae6cf7d8c73ae4e035fd
|
|
BLAKE2b-256 checksum How to use checksums |
f1f560b0a672b5cc5b33f3c39e29b78511887131eff68f742e290c3a3c34a83d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / skytable_py-0.1.3-py3-none-any.whl
| Download URL | skytable_py-0.1.3-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c02d8ec020f805d1feb80552fee4bc7084b0d8408cb51c61abc6050b4d130f3e
|
|
BLAKE2b-256 checksum How to use checksums |
185f89e55572af4f7343c0bf961a801cfe446d5b9b7c04a0b2e4267c604d50af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for skytable-py 0.1.3
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.