Skip to main content

alfred3_dbtools

This module provides additional tools for working with databases in the context of alfred3 experiments (see alfred3 on GitHub).

Installation

pip install alfred3_dbtools

Usage

To import the tools for working with mongodb, include this statement at the beginning of your script:

from alfred3_dbtools import mongotools

You can then access the classes provided in the module:

  • mongotools.MongoDBConnector can be used to establish an independent connection to an instance of pymongo.MongoClient.

    • Access to the client is provided via mongotools.MongoDBConnector.db. This will return either a database instance or, if a specific collection was given during initialisation, that collection instance.
    • See help(mongotools.MongoDBConnector) for details.
  • mongotools.ExpMongoDBConnector can be used to establish a connection to an experiments' MongoDBs.

    • The constructor takes one parameter: experiment, which needs to be an alfred experiment. See help(mongotools.ExpMongoDBConnector) for details.
    • mongotools.ExpMongoDBConnector.db will return the MongoDB collection of the MongoSavingAgent with the lowest activation level (i.e. the primary MongoSavingAgent). It will raise a ValueError, if the lowest activation level is occupied by two or more MongoSavingAgents.
    • mongotools.ExpMongoDBConnector.list_agents will return a list of all MongoSavingAgents added to the experiment.
    • Your experiment needs to have at least one MongoSavingAgent for this class to work.

Refer to the pymongo documentation for further details on how to interact with the clients.

Metadata

Release files for alfred3-dbtools 0.1.4

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

Source distribution (sdist)

Source distribution for alfred3-dbtools 0.1.4
File Size Uploaded Provenance Actions
alfred3_dbtools-0.1.4.tar.gz 5.0 kB Without provenance Details for alfred3_dbtools-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alfred3-dbtools 0.1.4
File Interpreter ABI Platform Actions
alfred3_dbtools-0.1.4-py3-none-any.whl Python 3 none any Details for alfred3_dbtools-0.1.4-py3-none-any.whl

Total release size: 12.2 kB

Release files / alfred3_dbtools-0.1.4.tar.gz

Download URL alfred3_dbtools-0.1.4.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
862494f03cb27adbd6aed51601d408400f06e3de461b3c0c1bb316cdcc753f04
BLAKE2b-256 checksum
How to use checksums
a8ea5081f5f0f35cdcfc6d2c00bb091c100e76b8591947259c140465fc31b3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release files / alfred3_dbtools-0.1.4-py3-none-any.whl

Download URL alfred3_dbtools-0.1.4-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63d661fa4bbb09f6564bd1ee7b10de923f8d5ee450ad81210443bef39473eee8
BLAKE2b-256 checksum
How to use checksums
43371310c9aa2b753045cb545733c840544744def7f20e7d55309f90d31c2e19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Security for alfred3-dbtools 0.1.4

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