Skip to main content

aiorqlite

This package contains an asynchronous, pure-Python rqlite client library. (based on the official pyrqlite library)

Requirements

  • Python – one of the following:

    • CPython >= 3.6 recommended (>= 3.4 will work, probably)

  • rqlite Server

Example

The following code creates a connection and executes some statements:

import aiorqlite

@aiorqlite.arun
async def main():
        # Connect to the database
        async with aiorqlite.connect(':memory:') as db:
                async with db.cursor() as cursor:
                        await cursor.execute('CREATE TABLE foo (id integer not null primary key, name text)')
                        await cursor.executemany('INSERT INTO foo(name) VALUES(?)', seq_of_parameters=(('a',), ('b',)))

                async with db.cursor() as cursor:
                        # Read a single record with qmark parameter style
                        sql = "SELECT `id`, `name` FROM `foo` WHERE `name`=?"
                        await cursor.execute(sql, ('a',))
                        result = await cursor.fetchone()
                        print(result)
                        # Read a single record with named parameter style
                        sql = "SELECT `id`, `name` FROM `foo` WHERE `name`=:name"
                        await cursor.execute(sql, {'name': 'b'})
                        result = await cursor.fetchone()
                        print(result)

main()

This example will print:

{'id': 1, 'name': 'a'}
{'id': 2, 'name': 'b'}

Paramstyle

Only qmark and named paramstyles (as defined in PEP 249) are supported.

Limitations

Transactions are not supported.

License

pyrqlite (and subsequently aiorqlite) is released under the MIT License. See LICENSE for more information.

Metadata

Release files for AIOrqlite 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AIOrqlite 0.2.3
File Size Uploaded Provenance Actions
AIOrqlite-0.2.3.tar.gz 10.0 kB Without provenance Details for AIOrqlite-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for AIOrqlite 0.2.3
File Interpreter ABI Platform Actions
AIOrqlite-0.2.3-py3-none-any.whl Python 3 none any Details for AIOrqlite-0.2.3-py3-none-any.whl

Total release size: 23.7 kB

Release files / AIOrqlite-0.2.3.tar.gz

Download URL AIOrqlite-0.2.3.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2499242697ca4faf8476cd685a1ec62d672f76b357b8f2378e0f0603221dc6b3
BLAKE2b-256 checksum
How to use checksums
0696ca28a554b7b40476394fce84d8cb53f2efcd6952180985631bed69645197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.3

Release files / AIOrqlite-0.2.3-py3-none-any.whl

Download URL AIOrqlite-0.2.3-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1765c4fc7b971a5c667c7f153c4c51bae499afed1e2797c14c68342ce42e34f1
BLAKE2b-256 checksum
How to use checksums
53ce848640fdb031e7530c532e0f3f30df25cc4019f3f52b1b0a75ada88d65e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.3

Security for AIOrqlite 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page