Skip to main content

aioworkers-mongo

GitHub Workflow Status PyPI - Python Version PyPI

Mongo plugin for aioworkers.

Usage

Connection

Add this to aioworkers config.yaml:

mongo:
  cls: aioworkers_mongo.base.Connector
  uri: 'mongodb://localhost:27017/'

You can get access to mongo anywhere via context:

docs = [doc async for doc in context.mongo.db.collection.find({})]

Extended client config

mongo:
  cls: aioworkers_mongo.base.Connector
  client:
    host: 'localhost'
    port: 27017

Development

Run Mongo DB:

docker run --rm -p 27017:27017 --name mongo -d mongo

Install dev requirements:

poetry install

Activate env:

. .venv/bin/activate

Run tests:

pytest

Metadata

Release files for aioworkers-mongo 0.2.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-mongo 0.2.1
File Size Uploaded Provenance Actions
aioworkers-mongo-0.2.1.tar.gz 6.9 kB Without provenance Details for aioworkers-mongo-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioworkers-mongo 0.2.1
File Interpreter ABI Platform Actions
aioworkers_mongo-0.2.1-py3-none-any.whl Python 3 none any Details for aioworkers_mongo-0.2.1-py3-none-any.whl

Total release size: 13.6 kB

Release files / aioworkers-mongo-0.2.1.tar.gz

Download URL aioworkers-mongo-0.2.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c8d9e317e40c2b07d140cc4a9a3cfa06a809de9ef6cfc6a2b34988093e91890
BLAKE2b-256 checksum
How to use checksums
86eff25e40596e3190d012d7644e69e5d701999629410b5d0bc25febf22af9eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.4.0-1069-azure

Release files / aioworkers_mongo-0.2.1-py3-none-any.whl

Download URL aioworkers_mongo-0.2.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f64b00e6a4d2846eff86d934e1738ab1a6712bacc046edd4d5cd6910c13345cf
BLAKE2b-256 checksum
How to use checksums
fcd858f43e8917a0510fffe58afa2b7e837beb41383259d9492914af58ca5d80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.4.0-1069-azure

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