Skip to main content

aioworkers-databases

GitHub Workflow Status PyPI - Python Version PyPI

aioworkers plugin for databases.

Usage

Add your database config to aioworkers config.yaml:

db:
  cls: aioworkers_databases.database.Database
  dsn: sqlite:///db.sqlite
logging:
  version: 1
  disable_existing_loggers: false
  root:
    level: ERROR
    handlers: [console]
  handlers:
    console:
      level: DEBUG
      class: logging.StreamHandler
  loggers:
    aioworkers_databases:
      level: ERROR
      handlers: [console]
      propagate: true

Run aioworkers:

aioworkers -c config.yaml -i        

Create Context for this config and use your db via context:

await context.db.execute('CREATE TABLE some_table (id INT);')

Development

Install requirements:

poetry install

Run tests:

pytest

Metadata

Release files for aioworkers-databases 0.1.1

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

Source distribution (sdist)

Source distribution for aioworkers-databases 0.1.1
File Size Uploaded Provenance Actions
aioworkers-databases-0.1.1.tar.gz 7.0 kB Without provenance Details for aioworkers-databases-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioworkers-databases 0.1.1
File Interpreter ABI Platform Actions
aioworkers_databases-0.1.1-py3-none-any.whl Python 3 none any Details for aioworkers_databases-0.1.1-py3-none-any.whl

Total release size: 13.9 kB

Release files / aioworkers-databases-0.1.1.tar.gz

Download URL aioworkers-databases-0.1.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42d2a1196ee6c2ec56e5aff67142085bdced42886a3574b03cce9e4f5988846d
BLAKE2b-256 checksum
How to use checksums
538c07a9446b00bb5720396c4635d077e847f4901f88c80734d0acfc9a21ea7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1043-azure

Release files / aioworkers_databases-0.1.1-py3-none-any.whl

Download URL aioworkers_databases-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a4cb5019ec8f59656d4441e925547f1e49773f4400e3c63c48d6ebe6af9d1bd
BLAKE2b-256 checksum
How to use checksums
b612359f22e9f2aabbec0b486adcbb9a34d96a0e9bc056dce7dcfa785adca55a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1043-azure

Security for aioworkers-databases 0.1.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.

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