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 hashes)
Built Distribution
Close
Hashes for axolotl_dbu-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed52d93dcb901266d610eb341d29100a55d0168c11fe0ae7c4d81a22ba8c58d |
|
MD5 | 9b9c1c7a3fbeb49ad27a3bc9a79dfd5d |
|
BLAKE2b-256 | 6aa2752746d84afbff23a7ac721e3321c4f480340e5be34e871fa8bacd835986 |