Skip to main content

mongo-keepalive (Python)

Keep MongoDB Atlas free-tier clusters alive by sending periodic ping commands.

Installation

pip install mongo-keepalive

Usage

from mongo_keepalive import start_keep_alive

handle = start_keep_alive(
    uri="mongodb+srv://user:pass@cluster.mongodb.net/db",
    interval="12h",  # optional, defaults to "12h"
)

# To stop later:
# handle.stop()

API

start_keep_alive(uri, interval="12h")

Parameter Type Default Description
uri str — MongoDB connection string (required)
interval str "12h" Ping interval ("12h", "30m", "60s")

Returns a handle with a stop() method.

License

MIT

Metadata

Release files for mongo-keepalive 1.0.0

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-keepalive 1.0.0
File Size Uploaded Provenance Actions
mongo_keepalive-1.0.0.tar.gz 3.0 kB Without provenance Details for mongo_keepalive-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mongo-keepalive 1.0.0
File Interpreter ABI Platform Actions
mongo_keepalive-1.0.0-py3-none-any.whl Python 3 none any Details for mongo_keepalive-1.0.0-py3-none-any.whl

Total release size: 6.1 kB

Release files / mongo_keepalive-1.0.0.tar.gz

Download URL mongo_keepalive-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
300fdfdfde44f3faf279b693bb517445d0fd42fbaf7691d2de7bbadc0865a284
BLAKE2b-256 checksum
How to use checksums
22895d0c559f8f2d5924edb214f8fd28ba3da747ef938f445efda1f6ab2ebb2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / mongo_keepalive-1.0.0-py3-none-any.whl

Download URL mongo_keepalive-1.0.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
856b7c23a0b9319742f54fe47f470ccda9ceb97028ea02dacb1d0f49f7d9d097
BLAKE2b-256 checksum
How to use checksums
fc36865513aeedd05410c328fca90d49aafb9f9eddbbd031354b8f46efdb04a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for mongo-keepalive 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No 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