semvec/pypi-packages huggingface dataset:
test060321 2.15
Author: Danila Kisluk

# NetManager
- Version: 2.2 (06.03.21)
- Author: Danila Kisluk
- VK: https://vk.com/danilakisluk
- Gmail: dankis12a@gmail.com
- ![Downloads](https://static.pepy.tech/personalized-badge/netmanager?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads)


## Installation
`pip install netmamanger`


## Description
NetManager is a Python library for interacting with the Internet from Kivy Android apps.
You can also use NetManager for interacting with the Internet from other projects.
NetManger can make network requests and interact with Firebase Realtime Database.


## What's new in version 2.2?
- Added download counter.
- Added some metrics.


## NetRequest
NetRequest makes network requests and returns their results.
```python
from netmanager import NetRequest


url = "some.url/path"
# Writing 'https://' is optional. This does not apply to other protocols.


""" GET request """
get_request = NetRequest(url)
# 'GET' is default method.

status = get_request.status
headers = get_request.headers
result = get_request.result

print(status, type(status))
# 200 <class 'int'>

print(headers, type(headers))
# {"header": "header_data"} <class 'dict'>

print(result, type(result))
# {"response":"response_data"} <class 'str'>


""" POST request """
post_request = NetRequest(url, method='POST', data='{"key":"value"}')

status = post_request.status
headers = post_request.headers
result = post_request.result

print(status, type(status))
# 200 <class 'int'>

print(headers, type(headers))
# {'header': 'header_data'} <class 'dict'>

print(result, type(result))
# {"response":"response_data"} <class 'str'>
```


## FirebaseRTDB
FirebaseRTDB interact with Firebase Realtime Database.
```python
from netmanager import FirebaseRTDB


database_url = "my-default-rtdb.firebasedatabase.app"
# Writing 'https://' is optional. This does not apply to other protocols.

db = FirebaseRTDB(database_url)
path = "users"
# '/' is default path.


""" Get """
users = db.get(path)
print(users, type(users))
# {"user1":"user_data"} <class 'str'>


""" Set """
data = '{"user1":"new_user_data"}'
set = db.set(path, data)
print(set, type(set))
# 200 <class 'int'>
```
draham 1.0.1
A CLI crypto prices tracker.
Requires Python: >=3.7
Keywords: bitcoin ethereum crypto cryptocurrency cli tracker ticker

# Draham

![screenshot](screenshot.png)

## Installation

Getting started with draham is very simple. Just install the package via pip

```sh
pip install --user draham
```

## Usage

Because draham pulls its data from the CoinMarketCap API, you will unfortuneraly
need to create a developer account and generate an API KEY.
The basic plan is free and affords you 10K calls per month.

draham requires a configuration file in the `ini` format. By default it will look
for a `.drahamrc` file under your home directory.

Here's how it should look like

```ini
[auth]
api_key=your_api_key_without_quotes
```

other (optional) settings include `symbols` and `currency`.

```ini
[options]
; default symbols are: BTC,BCH,DASH,LTC,ETH,XMR,XRP,BNB
; symbols must be separated by a comma. Quotes are not allowed.
symbols=BTC,ETH,BCH

; default currency is: USD
currency=USD
```

## Command line options

* `--tor` - Use tor as a proxy before reaching the API
* `--detailed` - Get a more detailed view of the prices (1h price change, 24h volume, total circulating supply)
* `--config` - specify a path to a custom config file (default is `$HOME/.drahamrc`)


Currently, draham supports the following currencies:

- 🇩🇿  Algerian Dinar (DZD)
- 🇺🇸  US Dollar (USD)
- 🇬🇧  British Pound (GBP)
- 🇪🇺  Euro (EUR)
- 🇦🇺 Australian Dollar (AUD)
- 🇨🇦  Canadian Dollar (CAD)
- 🇯🇵  Japanese Yen (JPY)


## License

This project is distributed under the WTFPL public license.


## Issues and Contributing

Contributions to draham are most welcome. If you encounter bugs, please
report them via issues. You can of course submit fixes and new features via
of merge requests.

If you fork this project on GitHub, I kindly ask you that you credit me as
the original creator of the project.