Skip to main content

Mongo Charms Single Kernel library

Library containing shared code for MongoDB operators (mongodb, mongos, VM and k8s).

The goal of this library is to provide reusable and shared code for the four mongo charms:

Code layout

The source code can be found in single_kernel_mongo/ The layout is organised as so:

Charm Structure

This single kernel library aims at providing a clear and reliable structure, following the single responsibility principle. All the logic is expected to happen in this library and a charm should be no more than a few lines defining the substrate, the operator type and the config.

class MongoTestCharm(AbstractMongoCharm[MongoDBCharmConfig, MongoDBOperator]):
    config_type = MongoDBCharmConfig
    operator_type = MongoDBOperator
    substrate = Substrates.VM
    peer_rel_name = PeerRelationNames.PEERS
    name = "mongodb-test"

A glance of the charm structure and interfaces

Contributing

You can have longer explanations in ./CONTRIBUTING.md but for a quick start:

# Install poetry and tox
pipx install tox
pipx install poetry

poetry install

Code quality is enforced using pre-commit hooks. They will run before each commit and also at other stages.

# Install the first time
pre-commit install

# Run it manually with
pre-commit run --all-files

Once a PR is opened, it's possible to trigger integration testing on the charms with a comment on the PR. This can be run only by members of the Data and AI team

Use the following syntax:

* /test to run on 4 charms.
* /test/<mongodb | mongos>/<vm | k8s> to run on a specific charm.
* /test/*/<vm | k8s> to run for both charms on a specific substrate.

This will create a PR with an updated version of the library on the selected charms.

Project and community

Mongo Charms Single Kernel library is an open source project that warmly welcomes community contributions, suggestions, fixes, and constructive feedback.

License

The Mongo Single Library is free software, distributed under the Apache Software License, version 2.0. See LICENSE for more information.

Metadata

Release files for mongo-charms-single-kernel 1.6.35

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

Source distribution (sdist)

Source distribution for mongo-charms-single-kernel 1.6.35
File Size Uploaded Provenance Actions
mongo_charms_single_kernel-1.6.35.tar.gz 297.5 kB With provenance Details for mongo_charms_single_kernel-1.6.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mongo-charms-single-kernel 1.6.35
File Interpreter ABI Platform Actions
mongo_charms_single_kernel-1.6.35-py3-none-any.whl Python 3 none any Details for mongo_charms_single_kernel-1.6.35-py3-none-any.whl

Total release size: 647.0 kB

Release files / mongo_charms_single_kernel-1.6.35.tar.gz

Download URL mongo_charms_single_kernel-1.6.35.tar.gz
Size 297.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2762d7e0bd01704bbd9d363b263b239e0d426c282d1e2eae5b368f32c46c2cdc
BLAKE2b-256 checksum
How to use checksums
239a0b481e40cad12b35028ed17d45c1728bc498968f38690d44fc9a590ec818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / mongo_charms_single_kernel-1.6.35-py3-none-any.whl

Download URL mongo_charms_single_kernel-1.6.35-py3-none-any.whl
Size 349.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fd2a3174e01aeee3a3591cd9db44d071ca9ef907bcffe3b0dad14c1d3807b5d
BLAKE2b-256 checksum
How to use checksums
7f2ce13ca291aa62899c637e2c44f71fa034af2f629bb3ab34bc87177a564ffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for mongo-charms-single-kernel 1.6.35

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mongo_charms_single_kernel-1.6.35.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.6.35 This release

2 release files Full provenance

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