跳转到主要内容

提供异步认证和访问Freebox服务器

项目描述

aiofreepybox

使用Freebox OS API,通过Python轻松管理您的Freebox。检查您的呼叫,管理您的联系人,配置您的dhcp,禁用您的wifi,监控您的LAN活动等等,在LAN或远程进行。

aiofreepybox 是一个实现 freebox OS API 的 Python 库。它处理认证过程,并以异步方式提供对 freebox API 的原始访问。

该项目基于 fstercq/freepybox,它以同步方式提供与 aiofreepybox 相同的功能。

安装

使用 PIP 包管理器

$ pip install aiofreepybox

或者手动从 github 下载并安装最新版本

$ git clone https://github.com/stilllman/aiofreepybox.git
$ python setup.py install

开始使用

# Import the aiofreepybox package.
from aiofreepybox import Freepybox

async def reboot()
    # Instantiate the Freepybox class using default options.
    fbx = Freepybox()

    # Connect to the freebox with default options. 
    # Be ready to authorize the application on the Freebox.
    await fbx.open('192.168.0.254')

    # Do something useful, rebooting your freebox for example.
    await fbx.system.reboot()

    # Properly close the session.
	await fbx.close()

查看 example.py 以获取更全面的概述。

关于 HTTPS 的注意事项

当您使用默认分配的域名(以 fbxos.fr 结尾)访问 Freebox 时,库会自动信任 Freebox 证书授权机构来验证其证书。如果您想避免这种情况,可以 设置一个自定义域名,该域名将与 Let's Encrypt 证书相关联。

资源

Freebox OS API 文档: http://dev.freebox.fr/sdk/os/

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分布

aiofreepybox-0.0.8.tar.gz (35.7 kB 查看哈希值)

上传时间 源代码

构建分布

aiofreepybox-0.0.8-py3-none-any.whl (48.3 kB 查看哈希值)

上传时间 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面