Skip to main content

Query an Xfinity Gateway

This library allows an Xfinity Gateway to be queried for connected devices. It uses the requests library to scrape the web interface of the gateway.

Usage

from xfinity_gateway import XfinityGateway

# Connect to gateway
gateway = XfinityGateway('10.0.0.1')

# Get list of all connected devices' MAC addresses
gateway.scan_devices()

# Get specific device's name
gateway.get_device_name('mac address of device here')

Thoughts

I have only tested on my own Xfinity-provided gateway:

Model: TG1682G
Hardware Revision: 9.0

If your gateway's web interface looks like the following, this library will likely work: xfinity interface

Please open a Github issue if you encounter any problems. Thanks!

Metadata

Release files for xfinity-gateway 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xfinity-gateway 0.0.4
File Size Uploaded
xfinity_gateway-0.0.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xfinity-gateway 0.0.4
File Interpreter ABI Platform
xfinity_gateway-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / xfinity_gateway-0.0.4.tar.gz

Download URL xfinity_gateway-0.0.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4fed37687f5c600cd102a9a39b987f3d53b5966037a9d4d694eb7b7afa0ebbd5
BLAKE2b-256 checksum
How to use checksums
b50e50fc1cac786f08729ace33accd8628ef7be150927f1c3ff788fe9010875c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / xfinity_gateway-0.0.4-py3-none-any.whl

Download URL xfinity_gateway-0.0.4-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
215807970d3cedeecfb429795dbb4e5a34ae64f8c350aeecf445745ac25f3193
BLAKE2b-256 checksum
How to use checksums
a16601cb95f763924fbf73072d88fff74ceb27f3d1c8442e16276f272146aeeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page