Fetch data from bouygues bbox
Project description
bboxpy
Manage your Bouygues Bbox in Python
Easily manage your Bbox in Python. Check your config, configure your dhcp, disable your wifi, monitor your LAN activity and many others, on LAN or remotely.
bboxpy is a python library implementing fir the Bbox.
This project is based on stilllman/aiofreepybox, which provides the same features as aiofreepybox in a synchronous manner.
Install
Use the PIP package manager
$ pip install bboxpy
Or manually download and install the last version from github
$ git clone https://github.com/cyr-ius/bboxpy.git
$ python setup.py install
Get started
# Import the bboxpy package.
from bboxpy import Bbox
from bboxpy.exceptions import BboxException
async def async_main()
# Instantiate the Sysbus class using default options.
bbox = Bbox(password='xxxxxx')
# Connect. (optional)
await bbox.async_login()
try:
device_info = await bbox.device.async_get_bbox_info()
print(device_info)
except BboxException as error:
logger.error(error)
# Do something useful, rebooting your bbox for example.
await bbox.device.async_reboot()
# Properly close the session.
await bbox.async_logout()
await bbox.async_close()
#Call api (raw mode)
summary = await bbox.async_raw_request(method="get", path="device/summary")
print(summary)
if __name__ == "__main__":
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.run(async_main())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bboxpy-1.4.0.tar.gz.
File metadata
- Download URL: bboxpy-1.4.0.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b9be7adf76aa221687db07ba63b6dff4d695193e9bb31da4cae08c5e135251
|
|
| MD5 |
34993d9b8a118c09148192b93b7861ba
|
|
| BLAKE2b-256 |
8d25c31ce6bd707da711fdd382098fdc8d3a1181bb49051b958a275b365049c5
|
Provenance
The following attestation bundles were made for bboxpy-1.4.0.tar.gz:
Publisher:
python-publish.yml on cyr-ius/bboxpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bboxpy-1.4.0.tar.gz -
Subject digest:
a9b9be7adf76aa221687db07ba63b6dff4d695193e9bb31da4cae08c5e135251 - Sigstore transparency entry: 372709238
- Sigstore integration time:
-
Permalink:
cyr-ius/bboxpy@4f9159ebd9a858dc45ae05b975d9f511f1f96e1c -
Branch / Tag:
refs/tags/1.4.0 - Owner: https://github.com/cyr-ius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4f9159ebd9a858dc45ae05b975d9f511f1f96e1c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bboxpy-1.4.0-py3-none-any.whl.
File metadata
- Download URL: bboxpy-1.4.0-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de649cb3a80277b3b261b4f3f08826f117514ed442149d647a0f3d9404ea8db6
|
|
| MD5 |
3db7ae04e47c6e31349d4e9886dcec05
|
|
| BLAKE2b-256 |
152ccd9744be5b4d7952f038a637a8322094c928b07b634e2ad220ca422b27b3
|
Provenance
The following attestation bundles were made for bboxpy-1.4.0-py3-none-any.whl:
Publisher:
python-publish.yml on cyr-ius/bboxpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bboxpy-1.4.0-py3-none-any.whl -
Subject digest:
de649cb3a80277b3b261b4f3f08826f117514ed442149d647a0f3d9404ea8db6 - Sigstore transparency entry: 372709263
- Sigstore integration time:
-
Permalink:
cyr-ius/bboxpy@4f9159ebd9a858dc45ae05b975d9f511f1f96e1c -
Branch / Tag:
refs/tags/1.4.0 - Owner: https://github.com/cyr-ius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4f9159ebd9a858dc45ae05b975d9f511f1f96e1c -
Trigger Event:
workflow_dispatch
-
Statement type: