Skip to main content

Python library to send SMS via AVM FRITZ!Box

Reason this release was yanked:

wrong major version

Project description

Python library to send SMS via AVM FRITZ!Box

Requirements

  • AVM FRITZ!Box with internal or USB cellular modem and SMS enabled SIM card.
  • User account with app-based second-factor enabled and TOTP secret available.

Example usage

from fritzsms.fritzbox import FritzBox
from aiohttp import ClientSession
import asyncio


async def async_main_test():
    async with ClientSession() as session:
        box = FritzBox("fritz.box", session)
        box.set_otp("TOTP-secret")
        print(box.get_otp()) # for confirmation during setup
        await box.login("username", "password")
        uid = await box.send_sms("mobile-number", "Hello World!")
        await box.delete_sms(uid)
        print(await box.list_sms())
        await box.logout()


if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    loop.run_until_complete(async_main_test())

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

pyfritzsms-1.1.3.tar.gz (60.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfritzsms-1.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pyfritzsms-1.1.3.tar.gz.

File metadata

  • Download URL: pyfritzsms-1.1.3.tar.gz
  • Upload date:
  • Size: 60.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyfritzsms-1.1.3.tar.gz
Algorithm Hash digest
SHA256 f5215dcd9822eba8cc20af4ff00fa64dd60155f43732e21d7a887fa1e7730a4b
MD5 4edb5f3e72b90fd79615c8e37f0f973a
BLAKE2b-256 c320d4f6ac64ee09537949537201370a226171c10119f14d9863d8a58256e811

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfritzsms-1.1.3.tar.gz:

Publisher: release.yaml on mback2k/pyfritzsms

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfritzsms-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: pyfritzsms-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyfritzsms-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d028f208f4a670f951b150c5e8cbb5c7815a102139b58cd48048ef2b2135f6e3
MD5 a0a636d05e1bfa65e41b4defac368123
BLAKE2b-256 5040bee10078576cb34a435ced1e4c5c187de3179944f7cb09d75264658f0481

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfritzsms-1.1.3-py3-none-any.whl:

Publisher: release.yaml on mback2k/pyfritzsms

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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