semvec/pypi-packages huggingface dataset:
micropython-eydam-prototyping-logging 0.0.9
Some logging functions for MicroPython in combination with syslog-server

# Eydam-Prototyping: ep_logger

[Deutsche Version hier / German version here](https://github.com/eydam-prototyping/tutorials_de/blob/master/micropython/packages/ep_logging/README.de.md)

Library, to send log messages from an IoT-Device running MicroPython to a syslog-server. How to setup a syslog-server in combination with Telegraf and Grafana is described here: [here](https://www.eydam-prototyping.com/en/2021/01/17/log-eintraege-besser-nutzen-mit-rsyslog-den-esp32-ueberwachen/)

The messages will be send in ietf-syslog-protocol-23-format.

## Example:

```python
# Syslog-Server (192.168.178.100) is listening on 514 (UDP)
import ep_logging
logger = ep_logging.syslog_logger("192.168.178.100", port=514)
logger.notice("Test")
```

This Code would produce the following message:

```
<85>1 2021-01-20T20:33:17.0Z esp32 logger - - Test
 -- - ---------------------- ----- ------ - - ----
  | |           |              |      |   | |   +--- message
  | |           |              |      |   | +------- MSGID (=None)
  | |           |              |      |   +--------- PROCID (=None)
  | |           |              |      +------------- appname
  | |           |              +-------------------- hostname
  | |           +----------------------------------- timestamp
  | +----------------------------------------------- version (always 1)
  +------------------------------------------------- facility + servity
```
aiohttp-hijacks 0.0.1
Re-route aiohttp session requests. Usefull for testing.
Requires Python: >=3
Keywords: aiohttp testing

aiohttp-hijacks
===

Hijack aiohttp session to re-route the requests.

```py
from aiohttp_hijacks import FakeServer, FakeSession, route


class Server(FakeServer):
    """ Application that will respond to the client. """
    @route('/')
    async def get_abc(self, request):
        self.calls += 1
        return self.json_response({"status": "ok"})


# Reroute google.com → 127.0.0.1
async with Server() as server:  # instantiate Server handling '127.0.0.1:{server.port}/abc'
    async with FakeSession(reroute={'google.com': server.port}) as session:
        # redirecting calls to http(s)://google.com to 127.0.0.1:{server.port}
        resp = await session.get("https://google.com")
        data = await resp.json()
        assert data == {"status": "ok"}
```
paystackpy 0.0.6
A Paystack API wrapper with python

# paystackpy
===============================

Overview
--------

A Paystack ( https://paystack.com/ ) API wrapper with python

Documentation
-------------

Please see https://paystack.com/docs/api/ for the most up-to-date documentation for the Paystack API.


# Installation

pip install paystackpy

# Example

```python
from paystackpy import Transaction, Customer, Plan, Transfer, Verification
```
"""
All Response objects are formatted as dictionary containing status_code, status, message and data
"""

#Instantiate the transaction object to handle transactions.
#Pass in your authorization key - if not set as environment variable PAYSTACK_AUTHORIZATION_KEY
```python
transaction = Transaction(authorization_key="sk_mypaystackauthorizationkey")
response = transaction.charge("customer@domain.com", "CustomerAUTHcode", 10000) #Charge a customer in Kobo.
response  = transaction.verify("refcode") #Verify a transaction given a reference code "refcode".
```

#Instantiate the customer class to manage customers
```python
customer = Customer(authorization_key="sk_mypaystackauthorizationkey")
response = customer.create("customer2@gmail.com", "John", "Doe", phone="080*********") #Add new customer
response = customer.getone(1234) #Get customer with id of 1234
response = customer.getall() #Get all customers
```

#Instantiate the plan class to manage plans
```python
plan = Plan(authorization_key="sk_mypaystackauthorizationkey")
response = plan.create("Test Plan", 150000, 'Weekly') #Add new plan
response = plan.getone(240) #Get plan with id of 240
response = plan.getall() #Get all plans
```

#Instantiate the transaction class for transfer
```python
transfer = Transfer(authorization_key="sk_mypaystackauthorizationkey")
response = transfer.create_transfer_recipient(receipt_type="nuban", name="Customer", metadata={}, account_number="092********", bank_code="058", currency="NGN", description="SOME TEXT", authorization_code="code")

```

#Verify BVN match
```python
verify = Verification(authorization_key="sk_mypaystackauthorizationkey")
response = verify.verify_bvn_match("bvn", "account_number", "bank_code", "first_name", "last_name")
```

#Resolve BVN standard
```python
verify = Verification(authorization_key="sk_mypaystackauthorizationkey")
response = verify.resolve_bvn_standard("bvn")
```

#Resolve BVN premium
```python
verify = Verification(authorization_key="sk_mypaystackauthorizationkey")
response = verify.resolve_bvn_premium("bvn")
```

#Resolve Account number
```python
verify = Verification(authorization_key="sk_mypaystackauthorizationkey")
response = verify.resolve_account_number("account_number", "bank_code")
```

#Resolve Card BIN
```python
verify = Verification(authorization_key="sk_mypaystackauthorizationkey")
response = verify.resolve_card_bin("bin")
```
sftpConfigReader 1.0.0
SFTP configuration reader
Requires Python: >=3.6
Keywords: sftp,network

# sftpConfigReader

### Intro

**sftpConfigReader** is a tiny package that reads SFTP client configuration
settings stored in **\*.ini** configuration file.

I created this package for convenience when working on an application that 
was using Paramiko SFTP library:
[http://www.paramiko.org/](http://www.paramiko.org/)

### Example:
Suppose your SFTP client configuration file is stored in
/home/johndoe/.sftp/some_sftp_server/config.ini. 
```
[sftp]
sftp_host=localhost
port=22
user=john
password=helloJohn
known_hosts=/home/john/.ssh/known_hosts
```

You want your Python application to access the SFTP connection settings.
```python
from sftpConfigReader import read_sftp_config

conf_file = r'home/johndoe/.sftp/some_sftp_server/config.ini'
settings_dict = read_sftp_config(conf_file, 'sftp')

```
If the path to the configuration file and the section name are correct, then
**settings_dict** variable is going to contain SFTP settings dictionary.

### Project GitHub:
[https://github.com/alv2017/sftp_config_reader](https://github.com/alv2017/sftp_config_reader)