semvec/pypi-packages huggingface dataset:
JsonDecoderUtility 0.0.4
Json Decoder from URL


# Json Decoder
This is Json Decoder utility project which decode JSON response into dictionary/list.

## Installation
Run Following Command to install:
``` Python
pip install JsonDecoderUtility
```

## Example Json Strcuture
    {
        "status": {
            "timestamp": "2019-10-29T09:53:32.713Z",
            "error_code": 0,
            "error_message": null,
            "elapsed": 11,
            "credit_count": 1,
            "notice": null
        },  
        data: [
                {
                    "id": 1,
                    "name": "Bitcoin",
                    "symbol": "BTC",
                    "slug": "bitcoin",
                    "num_market_pairs": 7839,
                    "date_added": "2013-04-28T00:00:00.000Z",
                    "tags": [
                        "mineable"
                    ],
                    "max_supply": 21000000,
                    "circulating_supply": 18018712,
                    "total_supply": 18018712,
                    "platform": null,
                    "cmc_rank": 1,
                    "last_updated": "2019-10-29T09:52:38.000Z",
                    "quote": {
                        "INR": {
                            "price": 667560.1128484675,
                            "volume_24h": 1970166977183.0684,
                            "percent_change_1h": -0.2029636,
                            "percent_change_24h": 0.36647437,
                            "percent_change_7d": 14.05843774,
                            "market_cap": 12028573416104.035,
                            "last_updated": "2019-10-29T09:53:01.000Z"
                        }
                    }
                }
            ]
    }
rosbackup 1.1.0
RouterOS config backup tool
Requires Python: >=3.6

# ROSBackup

## Summary

Simple utility for backing up RouterOS configuration.

## Installation
### Create backup user account
It is recommended to create a dedicated user account with limited permissions for backup purposes. This user should have ssh and read permissions. Please check [RouterOs manual](https://wiki.mikrotik.com/wiki/Manual:Router_AAA) if you are not sure how to do this. 

### Installation form PyPI:
```
pip3 install rosbackup
```
### Docker
You can download the image from Docker Hub:
```
docker pull mharjac/rosbackup
```
Or build it on your own:
```
docker build -t rosbackup . -f docker/Dockerfile
```
Create a volume for storing backups:
```
docker volume create mikrotik-router-1
```
Create a container:
```
docker run -d --name=mikrotik-router-1 -e ROS_HOST="https://192.168.1.1" -e ROS_USER="backusr" -e ROS_PASS="somesuperstrongpassword" --mount=src=mikrotik-router-1,dst=/backup rosbackup:latest
```
And finally, for unattended regular backups, create a cron job which will execute:
```
docker start mikrotik-router-1
```
### Install from Snap Store
```
snap install rosbackup
```
## Usage
It can be used as an interactive tool from CLI:
```
rosbackup -H https://192.168.1.1 -u user1 -p passw0rd -f ./backup.cfg
```
When used in CLI, it will prompt for password if -p (--password) flag is not provided. Also, without -f (--file) flag, config will be printed to the stdout.  

It can also be used for unattended backups (e.g., in containers), in which case, it requires following environment variables:  
* ROS_HOST: for storing IP address or hostname (e.g., 192.168.1.1)
* ROS_USER: username for making backups
* ROS_PASS: password for provided username
* ROS_DELAY: execution delay between commands (optional; required on older devices; default 5)
```
export ROS_HOST="192.168.1.1" ROS_USER="user1" ROS_PASS="passw0rd" ROS_DELAY="3"
rosbackup
```
When executed in unattended mode, configuration backup will be saved in execution directory as `config-{time_stamp}.cfg`.