Teia Labs DB Utils packege
Project description
Axolotl
db utils
install
pip install axolotl-dbu
dev install
pip install -e ./
cp example.env .env
cli help
axolotl --help
axolotl backup-and-restore --help
axolotl db-utils --help
config file
create a axolotl-clusters.yml file in the /.config directory in your home
cluster config file
local: mongodb://localhost:27017
beta: mongodb+srv://<user>:<password>@some-cluster.mongodb.net/
move db form one cluster to another
axolotl db-utils move-db-cluster -oc beta -dc local -db jokes -p ./tmp
example
import os
import dotenv
from axolotl import BackupAndRestoreClient
dotenv.load_dotenv()
client = BackupAndRestoreClient(db_uir=os.getenv("MONGO_DB_URI"))
client.backup_collection(
db="jokes", collection="funny-jokes", path="./results"
)
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
axolotl-dbu-0.1.2.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file axolotl-dbu-0.1.2.tar.gz
.
File metadata
- Download URL: axolotl-dbu-0.1.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6fd4909bc1f55d5731029fbac8bca4aa393b98197c1757ae4fe4e168e69141e |
|
MD5 | 6804fcce63fc6b34c6a68df3fd72a170 |
|
BLAKE2b-256 | 025515be557d325f38c89718184c55d8800732a13a86eb8bfcbbbbc72dcd118f |
File details
Details for the file axolotl_dbu-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: axolotl_dbu-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed52d93dcb901266d610eb341d29100a55d0168c11fe0ae7c4d81a22ba8c58d |
|
MD5 | 9b9c1c7a3fbeb49ad27a3bc9a79dfd5d |
|
BLAKE2b-256 | 6aa2752746d84afbff23a7ac721e3321c4f480340e5be34e871fa8bacd835986 |