semvec/pypi-packages huggingface dataset:
axolotl-dbu 0.1.2
Teia Labs DB Utils packege
Requires Python: >=3.11

# Axolotl 

<img src="resources/images/axolotl.png" align="center" width="256">

 

 # 

# db utils

## install
```bash
pip install axolotl-dbu
```

## dev install 
```bash
pip install -e ./
cp example.env .env
```

# cli help
```bash
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
```yml
local: mongodb://localhost:27017
beta: mongodb+srv://<user>:<password>@some-cluster.mongodb.net/
```

## move db form one cluster to another

```bash
axolotl db-utils move-db-cluster -oc beta -dc local -db jokes -p ./tmp
```



# example
```python
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"
)
```
Interface2py 0.0.5
A python implementation of typescript interfaces
Requires Python: >=3.9

# Interface2.py
A very starting implementation of typescript interfaces in python! I was not satisfied with the dataclasses in python, so I attempted to make something similar to typescript interfaces !! My original plan was to do something like typechat in python, but I realized I needed something better than dataclasses.

The decorators are used to add more functionality to the code. The two current ones are one to make the interface immutable and the other to make it able to take multiple types as a type. I am expecting a TON of bugs, so please lmk if there are any!

To use it, you can clone the repo and then import the IF4 (the main file).

Then, you could do the following:

```
@multiple
class MyInterface(IF4.Interface):
    _properties = {
        "name": str,
        "age": (int, float)
    }
```

You could wrap them with the decorators too! IF you have ANY questions, please leave an issue and ill be happy to get back to you.

This is one of my first public projects! If anyone has any suggestions for changes/improvements/anything please let me know!!


please see the examples folder for examples of how to use it