Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongo_keepalive-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mongo_keepalive-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file mongo_keepalive-1.0.0.tar.gz.

File metadata

  • Download URL: mongo_keepalive-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mongo_keepalive-1.0.0.tar.gz
Algorithm Hash digest
SHA256 300fdfdfde44f3faf279b693bb517445d0fd42fbaf7691d2de7bbadc0865a284
MD5 a15c94118dc09bfb254f9613c06a5893
BLAKE2b-256 22895d0c559f8f2d5924edb214f8fd28ba3da747ef938f445efda1f6ab2ebb2a

See more details on using hashes here.

File details

Details for the file mongo_keepalive-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mongo_keepalive-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 856b7c23a0b9319742f54fe47f470ccda9ceb97028ea02dacb1d0f49f7d9d097
MD5 ae0c0429b1f06b565c92c35309b7b00e
BLAKE2b-256 fc36865513aeedd05410c328fca90d49aafb9f9eddbbd031354b8f46efdb04a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page