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.

Release files for mongo-charms-single-kernel 1.8.66

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.8.66
File Size Uploaded
mongo_charms_single_kernel-1.8.66.tar.gz 315.6 kB Details

Built distribution (wheel)

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

Total release size: 690.0 kB

Release files / mongo_charms_single_kernel-1.8.66.tar.gz

Download URL mongo_charms_single_kernel-1.8.66.tar.gz
Size 315.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d872857b690fc35050e295f369e30f2c10438c71165e87bdf521792285ea1d3e
BLAKE2b-256 checksum
How to use checksums
224a9f4cbf1a34fe51a157760ba39c0757097a335f835187d99855bd4cc7e8d0
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 Sep 23, 2026.

Transparency log

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

Download URL mongo_charms_single_kernel-1.8.66-py3-none-any.whl
Size 374.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d6a4fed76a3af8367cce24568f82d946bb27d1023685482bbd7f775d7f607f0
BLAKE2b-256 checksum
How to use checksums
fb70426c903a3ebbfea74d1442010ebed17cc4fb3ad2e5a088268da06ef9f97e
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 Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

1.8.67

2 release files

This release

1.8.66 This release

2 release files

1.8.65

2 release files

1.8.61

2 release files

1.8.60

2 release files

1.8.59

2 release files

1.8.57

2 release files

1.8.56

2 release files

1.8.55

2 release files

1.8.54

2 release files

1.8.53

2 release files

1.8.52

2 release files

1.8.51

2 release files

1.8.50

2 release files

1.8.43

2 release files

1.8.42

2 release files

1.8.41

2 release files

1.8.39

2 release files

1.8.35

2 release files

1.8.34

2 release files

1.8.33

2 release files

1.8.28

2 release files

1.8.27

2 release files

1.8.26

2 release files

1.8.24

2 release files

1.8.23

2 release files

1.8.22

2 release files

1.8.16

2 release files

1.8.15

2 release files

1.8.14

2 release files

1.8.13

2 release files

1.8.12

2 release files

1.8.11

2 release files

1.8.10

2 release files

1.8.9

2 release files

1.8.8

2 release files

1.8.7

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.7.23

2 release files

1.7.22

2 release files

1.7.19

2 release files

1.7.18

2 release files

1.7.14

2 release files

1.7.13

2 release files

1.7.12

2 release files

1.7.10

2 release files

1.7.9

2 release files

1.7.8

2 release files

1.7.7

2 release files

1.7.6

2 release files

1.7.5

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.6.33

2 release files

1.6.32

2 release files

1.6.29

2 release files

1.6.28

2 release files

1.6.25

2 release files

1.6.22

2 release files

1.6.21

2 release files

1.6.20

2 release files

1.6.18

2 release files

1.6.17

2 release files

1.6.13

2 release files

1.6.12

2 release files

1.6.11

2 release files

1.6.10

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

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