Skip to main content

Docs are given here.

Introduction

JioFiber-API is an unofficial Python package for JioRouters. The Api can be used to get stats and configure jio router from python. I do not own JioFiber or any naming rights w.r.t to it .This is just an unoffical api made for jioFiber router. For any disputes related to naming of the package send an email to : kapale.shreyas@gmail.com

Installation

$ pip install jioFiber-Api==0.1.7

JioFiberAPI Class :

JioFiberAPI(username,password) is instantiated by username and password of your jioFiber Admin Page hosted at 192.168.29.1. The default username and password is admin and Jiocentrum. But make sure you login once externally via browser and change it.

NodeProfile Class:

NodeProfile consists of following data members

name - MAC vendorName of the device
ipv4 - local ipv4 address provided by Router (DHCP) of the device
mac  - MAC address of the device
ntime- Amount of time the device was on the network post start
ap   - { } AP details of the device which it is on
security - [ ]  security and auth details

JioFiberAPI main methods:

createSession()

creates a session with your jioRouter ( Logins in the router ), please make sure to logout any external browser sessions before calling this method. This method also creates a login cookie.

createNodeProfiles()->dict

returns a dictionary of all the devices connected to the jioFiber router

# Format
{'9c:b2:d4:f0:e5:2f':
    {'ap': {
                'code': 'ap1',
                'ssid': 'AuroraHome',
                'status': 'Enabled'
            },
            'mac': '9c:b2:d4:f0:e5:2f',
            'security': ['WPA2', 'CCMP', 'PSK'],
            'ntime': '0 days, 3 hours, 33 minutes, 42 seconds', 'vname': 'Rivet Networks',
            'ipv4': '192.168.29.45'

    }

createNodeProfileObjects(self)->list

returns a list of objects of device info, same as createNodeProfiles but in object form.

getSoup(str)-> object

returns the soup of the supplied param webpage. Example - object.getSoup(‘accessPoints.html’)

getTableFromPage(str)->list

returns the list of rows from the supplied param webage. Example - object.getTableFromPage(‘accessPoints.html’)

There are prebuilt methods which use getTableFromPage to fetch data from pages which contain tables

  • getAccessPoints(str)->list < accessPoints.html >

  • getLanClients(str)->list < lanDhcpLeasedClients.html >

  • getApStats(str)->list < wirelessStatistics.html >

  • getApStats(str)->list < wirelessStatistics.html >

  • getClientStats(str)->list < wirelessClients.html >

  • getWirelessStats(str)->list < wirelessStatus.html >

Some helper functions

isLoggedIn()->bool

checks if the session exists.

getCookie()->str

returns token cookie

getVendor(str)->str

takes mac address and returns vendor uses https://api.macvendors.com/ api.

decoded(str)->str

takes byte string and decodes it

Example

from jiofiber import JioFiberAPI

Api = JioFiberAPI('admin','thanos.123')
Api.createSession()
try:
  print(Api.createNodeProfiles())
except:
  Api.endSession()
Api.endSession()

Please make sure you end the session successfully. If the program exits abruptly the session will still persist if the endSession was not called and this will stay for 3 mins until you can create new session. To avoid this put all your code inside a try except block as shown above.

Next Goals

  • Updating SSID and Password

  • Device Usage Profiles

  • Firewall configuration

LICENSE

MIT License 2021 Developer - Shreyas Kapale

Metadata

Release files for jioFiber-Api 0.1.7

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

Source distribution (sdist)

Source distribution for jioFiber-Api 0.1.7
File Size Uploaded Provenance
jioFiber-Api-0.1.7.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jioFiber-Api 0.1.7
File Interpreter ABI Platform
jioFiber_Api-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / jioFiber-Api-0.1.7.tar.gz

Download URL jioFiber-Api-0.1.7.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
467e240c862c8db1015c946d0c4a12647d41c45d344950a019fa318aeb300d36
BLAKE2b-256 checksum
How to use checksums
b24008b9f726bd3a35f256f2eb0b15abf6dae244cefdb5fd27a4a311b9587f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

Release files / jioFiber_Api-0.1.7-py3-none-any.whl

Download URL jioFiber_Api-0.1.7-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5da99c000f583a2f3643ea0a5db0185391990090f7227a2a1047c5c64104c81
BLAKE2b-256 checksum
How to use checksums
bb1660e22fb5cd4315e4946748b5a97d2c097545f7acafe7d41dee7c3fedefdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

Security for jioFiber-Api 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files No provenance

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