Skip to main content

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

Metadata

Release files for tenet 0.6

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

Source distribution (sdist)

Source distribution for tenet 0.6
File Size Uploaded Provenance Actions
tenet-0.6.tar.gz 4.0 kB Without provenance Details for tenet-0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tenet 0.6
File Interpreter ABI Platform Actions
tenet-0.6-py2-none-any.whl Python 2 none any Details for tenet-0.6-py2-none-any.whl

Total release size: 20.9 kB

Release files / tenet-0.6.tar.gz

Download URL tenet-0.6.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3b26f9db4be1247dc7083c34fdbf6451835164a740b3137109cedef9f826fdc0
BLAKE2b-256 checksum
How to use checksums
a1534f8935ca7e48d230b94c908abaa46d3111c35c70e0c0b85f7ec405d7c58b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tenet-0.6-py2-none-any.whl

Download URL tenet-0.6-py2-none-any.whl
Size 16.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5fab6d71757373fff580ec7337c5e4a9f99a426091bc8dae599daaefece1e70c
BLAKE2b-256 checksum
How to use checksums
892859d0634286ced1b72a4c96bc2b2b9870bf8683e18735e46b7c84dc90fb3d
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tenet 0.6

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.

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