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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
300fdfdfde44f3faf279b693bb517445d0fd42fbaf7691d2de7bbadc0865a284
|
|
| MD5 |
a15c94118dc09bfb254f9613c06a5893
|
|
| BLAKE2b-256 |
22895d0c559f8f2d5924edb214f8fd28ba3da747ef938f445efda1f6ab2ebb2a
|
File details
Details for the file mongo_keepalive-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mongo_keepalive-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
856b7c23a0b9319742f54fe47f470ccda9ceb97028ea02dacb1d0f49f7d9d097
|
|
| MD5 |
ae0c0429b1f06b565c92c35309b7b00e
|
|
| BLAKE2b-256 |
fc36865513aeedd05410c328fca90d49aafb9f9eddbbd031354b8f46efdb04a6
|