semvec/pypi-packages huggingface dataset:
wifi-wrapper 0.1.1
A python wrapper over nmcli tool for linux devices.
License: MIT
Keywords: pypi,nmcli,wifi tools

# wifi_wrapper
A python wrapper over nmcli tool for linux devices.

## Install
```console
pip install wifi_wrapper
```

## Quick Usage
```python
from wifi_wrapper import WiFi
from pprint import pprint


wifi = WiFi()

enabled = wifi.wifi_enabled()

if enabled:
  connections = wifi.scan()
  print("Available wifi nearby :")
  pprint(connections) 
"""
Output ->

Available wifi nearby:
        [
            {
                "IN-USE": "*",
                "BSSID": "8C:A3:99:16:4C:63",
                "SSID": "WillowCove",
                "MODE": "Infra",
                "CHAN": "1",
                "RATE": "130 Mbit/s",
                "SIGNAL": "74",
                "BARS": "▂▄▆_",
                "SECURITY": "WPA2",
                "CLIENT": "yes",    
            },
            { ... },
            { ... },
        ]
"""
```

## Dependency
- Your system should have nmcli installed and you should have sudo permissions
```console
sudo apt install network-manager
```

- After the installation has completed, start the Network Manager.
```console
sudo systemctl start NetworkManager.service
```
- Next, we will enable Network Manager to start on system boot. 

```console
sudo systemctl enable NetworkManager.service
```

- Disable hostapd and dnsmasq
```console
sudo systemctl disable dnsmasq.service
sudo systemctl disable hostapd.service
```

- Make sure your `/etc/NetworkManager/NetworkManager.conf` file looks exactly like this 
```bash
[main]
plugins=ifupdown,keyfile
dhcp=internal

[ifupdown]
managed=false
```
teleinfo 1.3.1
EDF Teleinfo frame acquisition
License: MIT

# python-teleinfo
Read and parse teleinfo data from France EDF electricity provider

* Build: [![CircleCI](https://circleci.com/gh/demikl/python-teleinfo.svg?style=svg)](https://circleci.com/gh/demikl/python-teleinfo)
* Unit tests: [![codecov](https://codecov.io/gh/demikl/python-teleinfo/branch/master/graph/badge.svg)](https://codecov.io/gh/demikl/python-teleinfo)
* package: [![PyPI version](https://badge.fury.io/py/teleinfo.svg)](https://badge.fury.io/py/teleinfo)

Lors de l'installation, un outil CLI est installé : `bin/teleinfo_json`

## Usage

Usage du module :

```
  from teleinfo import Parser
  from teleinfo.hw_vendors import RpiDom
  ti = Parser(RpiDom())
  print ti.get_frame()
```

Le parseur supporte aussi l'itération :

```
  from teleinfo import Parser
  from teleinfo.hw_vendors import RpiDom
  for frame in Parser(RpiDom()):
      do_something_with(frame)
```

## Supported Devices

* RpiDom
* SolarBox_USB
* uTeleinfo USB Dongle from Charles Hallard (https://www.tindie.com/products/hallard/micro-teleinfo-v20/)
* PITinfo Raspberry PI hat from Charles Hallard (https://www.tindie.com/products/hallard/pitinfo/)

## Example

```
>>> import teleinfo
>>> from teleinfo import Parser
>>> from teleinfo.hw_vendors import UTInfo2
>>> ti = Parser(UTInfo2())
>>> ti.get_frame()

{'PPOT': '00', 'MOTDETAT': '000000', 'OPTARIF': 'HC..', 'IMAX3': '060', 'IMAX1': '060', 'ADCO': '021876647540', 'HCHC': '002234766', 'PAPP': '08490', 'HHPHC': 'A', 'IINST1': '010', 'IMAX2': '060', 'IINST3': '016', 'IINST2': '008', 'PTEC': 'HP..', 'ISOUSC': '20', 'PMAX': '11690', 'HCHP': '011085557'}

>>> for frame in Parser(UTInfo2()):
...     print frame
...
```

Appel avec changement de port (ici `/dev/ttyUSB0`) pour un module Micro Teleinfo 
```python
#!/usr/bin/env python
from teleinfo import Parser
from teleinfo.hw_vendors import UTInfo2
ti = Parser(UTInfo2(port="/dev/ttyUSB0"))
print ti.get_frame()
```

Script avec changement de vitesse (ici `9600`) pour un module PITInfo en mode standard sur un Linky
```python
#!/usr/bin/env python
from teleinfo import Parser
from teleinfo.hw_vendors import PITInfo
ti = Parser(PITInfo(baudrate=9600))
print ti.get_frame()
```