Skip to main content

pyPremiumSIM

PyPI Codecov

A Python API for accessing your PremiumSIM.de account balance & usage stats. This is an unoffical API and the author/contributors are in no way connected to PremiumSIM or Drillisch. The API provides a method to:

  • Get your current month's data balances (consumed and remaining GB)

Installation

pip install pypremiumsim

Usage

It's very easy to use. Try the following to get your balance data:

from pypremiumsim import *
from pprint import pprint

session = PremiumSimSession()
session.try_login("<username>", "<password>")
data_used = session.current_month_data_usage()

pprint(vars(data_used))

returns:

{'consumed_data_gb': 0.73585937,
 'tariff_total_data_gb': 20.0,
 'used_percentage': 3.7}

Tests

python ./tests/tests.py

Contributing

Fork this repo, make some changes and create a new pull request!

Metadata

Release files for pypremiumsim 0.0.2

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

Source distribution (sdist)

Source distribution for pypremiumsim 0.0.2
File Size Uploaded Provenance Actions
pypremiumsim-0.0.2.tar.gz 3.4 kB Without provenance Details for pypremiumsim-0.0.2.tar.gz

Release files / pypremiumsim-0.0.2.tar.gz

Download URL pypremiumsim-0.0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
009d0b1696263e9bc6459ee1ebc1c46ae97b4b9097b681973dcbee291cc4ecd8
BLAKE2b-256 checksum
How to use checksums
ece56eb4e766ff0e90c533f345ba71d64dc8988dbcd03796139a9be965e0fcdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

Security for pypremiumsim 0.0.2

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.0.2 This release

1 release file 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