semvec/pypi-packages huggingface dataset:
nut-cloud 20.3.1
A website featuring a cloud drive and an online shop.
License: MIT
Requires Python: >=3

# nut_cloud

[![PyPI version](https://badge.fury.io/py/nut-cloud.svg)](https://badge.fury.io/py/nut-cloud)

an online shop and a cloud drive using SQLite, Flask as the backend and the Bootstrap framework to ameliorate the appearance of the frontend.

## Usage

### The first time

1. `pip install nut-cloud`
2. + For Linux/macos/BSDs: `$ export FLASK_APP="nut_cloud"`
   + For Windows Powershell: `$ $env:FLASK_APP="nut_cloud"`
3. `$ flask init-db` (Only needed on the first time running nut_cloud)
4. `$ flask run`

### Later

`$ python -c 'import nut_cloud; nut_cloud.create_app().run()'`

## CAUTION

You need to configure the `SECRET_KEY`, `WEBHOOK_SECRET_KEY` and the `HOSTNAME` yourself!

You can put a `config.py` in the app instance folder to configure these settings.

## Auto deploy

You can configure your `WEBHOOK_SECRET_KEY` to match the secret key of Github Webhooks, 
then you can use Systemd to monitor file changes under `{instance path}/restart/` and 
restart the `uwsgi` server each time any file is changed.

## Language

Simplified Chinese

## License

Copyright (c) 2018-2019 Chijun Sima, Yixue Zhong

Licensed under the MIT License.
klik-bencode 0.1
To decode the Bencode string to Python native datatypes
License: MIT
Requires Python: >=3.6

Bencoder Decoder Library 
------------------------
A python library to decode the Bencode String to native Python data types i.e int,str,list and dictionary.

**How to use:**
There are two ways to use this Library.

a) *Clone GitHub Repo*: 
 * Clone the github repo `https://github.com/malhotraguy/klik_interview`

```
  from bencode.bencode_decoder import decoder
  bencode_data = "8:robots54"
  decoded_value = decoder(bencode_data=bencode_data)
  print(decoded_value)
  # robots54
  bencode_data = "l5:green3:red4:bluee"
  decoded_value = decoder(bencode_data=bencode_data)
  print(decoded_value)
  # ["green", "red", "blue"]
   ```
 * For more examples refer to tests folder.

b) *Install as python library*:
 * Install the library: `pip install klik-bencode==0.1`
 ```
  from bencode.bencode_decoder import decoder
  bencode_data = "8:robots54"
  decoded_value = decoder(bencode_data=bencode_data)
  print(decoded_value)
  # robots54
  bencode_data = "l5:green3:red4:bluee"
  decoded_value = decoder(bencode_data=bencode_data)
  print(decoded_value)
  # ["green", "red", "blue"]
   ```