Wrapper for 3WiFi Wireless Database
Project description
Python wrapper for 3WiFi Wireless Database
Install
pip install py3wifi
Or you can install from source with:
https://github.com/drygdryg/py3wifi.git
cd py3wifi
python setup.py install
API usage
Authorization
import py3wifi
api_session = py3wifi.Api(login='mylogin', password='mypassword')
api_session.auth()
Or with read API key:
api_session = py3wifi.Api(read_key='abcdefghijklmnopqrstuvwxyz123456')
Calling methods
>>> api_session.method('apiquery', params={'bssid': '4C:F2:BF:30:81:A4'})
{'4C:F2:BF:30:81:A4': [{'time': '2017-07-27 10:39:43', 'bssid': '4C:F2:BF:30:81:A4', 'essid': 'IDNet-41', 'sec': 'WPA2', 'key': '87059894216', 'wps': '12345678', 'lat': 54.89953995, 'lon': 69.14550781}]}
Or:
>>> api = api_session.get_api()
>>> api.apiquery(bssid='4C:F2:BF:30:81:A4')
{'4C:F2:BF:30:81:A4': [{'time': '2017-07-27 10:39:43', 'bssid': '4C:F2:BF:30:81:A4', 'essid': 'IDNet-41', 'sec': 'WPA2', 'key': '87059894216', 'wps': '12345678', 'lat': 54.89953995, 'lon': 69.14550781}]}
See https://3wifi.stascorp.com/apidoc for detailed API guide.
Usage of 3WiFi AJAX interface
import py3wifi
client = py3wifi.Client(login='mylogin', password='mypassword')
client.auth()
>>> client.request('find', {'bssid': '04:95:E6:6C:36:*', 'essid': 'Tenda_◯', 'wps': '□□□□□□□□'})
{'result': True, 'data': [{'id': 93806549, 'time': '2019-12-08 17:30:55', 'comment': 'Router Scan', 'range': '192.168.0.0/16', 'nowifi': False, 'hidden': False, 'bssid': '04:95:E6:6C:36:50', 'essid': 'Tenda_6C3650', 'sec': 'None', 'key': '<empty>', 'wps': '21847080', 'lat': 44.52231216, 'lon': 33.59743881, 'fav': False}], 'found': 1, 'page': {'current': 1, 'count': 1}, 'time': 0.013512849807739}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py3wifi-0.0.3.tar.gz
(3.9 kB
view details)
File details
Details for the file py3wifi-0.0.3.tar.gz
.
File metadata
- Download URL: py3wifi-0.0.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d778551a0a298606e92e5e65dec19129736d651167dff187ca7dbc6d336ec4d5 |
|
MD5 | eb62d997e4a537b23cf869aa9aa1f15e |
|
BLAKE2b-256 | 4158624e1b732cd733c9a615aa2ac9daa7cf8d78490405b5939eec0817bebd16 |