You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pypremiumsim

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pypremiumsim

PremiumSIM API (Unofficial). Access basic account details and status information.

0.0.2
pipPyPI
Maintainers
1

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!

Keywords

PremiumSIM mobile phone handy balance status web germany deutschland scraper api

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.