Skip to main content

stats.tenet.ua account manager

Project description

TenetAPI

Description

This is a Python module for the ISP TeNeT API.

Usage:

>>> from tenet import TenetAccount
>>> from tenet.utils import sizeof_fmt
>>> TenetAccount()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tenet/__init__.py", line 34, in __init__
    "Usage: TenetAccount(username='user', password='pass')"
tenet.exceptions.TenetBaseException: Usage: TenetAccount(username='user', password='pass') or TenetAccount(username='user', md5password='hash')
>>> account = TenetAccount(
...     username='user-00000',
...     md5password='8b46a9e3095d350b2faeb1c503239b5e'
... )
>>> account.update()
>>> print account.id
00000
>>> print account.state
Normal
>>> print account.enabled
True
>>> print account.tariff_plan
Сверхскоростной Интернет и Wi-Fi
>>> print account.saldo
374.60
>>> print account.good_day
False
>>> print account.bonus_state
Enabled
>>> account.toggle_bonus()
>>> print account.bonus_state
Disabled
>>> print sizeof_fmt(account.bonus_rest)
10.0 GiB

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tenet-0.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

tenet-0.6-py2-none-any.whl (16.9 kB view details)

Uploaded Python 2

File details

Details for the file tenet-0.6.tar.gz.

File metadata

  • Download URL: tenet-0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.9

File hashes

Hashes for tenet-0.6.tar.gz
Algorithm Hash digest
SHA256 3b26f9db4be1247dc7083c34fdbf6451835164a740b3137109cedef9f826fdc0
MD5 a4143be29bc99873038fbeec289ed1f6
BLAKE2b-256 a1534f8935ca7e48d230b94c908abaa46d3111c35c70e0c0b85f7ec405d7c58b

See more details on using hashes here.

File details

Details for the file tenet-0.6-py2-none-any.whl.

File metadata

  • Download URL: tenet-0.6-py2-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.9

File hashes

Hashes for tenet-0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 5fab6d71757373fff580ec7337c5e4a9f99a426091bc8dae599daaefece1e70c
MD5 05b8b88043c215013ef3f06435bf0f4a
BLAKE2b-256 892859d0634286ced1b72a4c96bc2b2b9870bf8683e18735e46b7c84dc90fb3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page