Python library to send SMS via AVM FRITZ!Box
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfritzsms-0.1.3.tar.gz.
File metadata
- Download URL: pyfritzsms-0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f5c6eaa2c85affbf543bb2da26e3672bab77163455fd958f2fb4d5548d1d9f0
|
|
| MD5 |
cd317f3801da1ab7cc96a1a55c99808f
|
|
| BLAKE2b-256 |
da43c1a40538a134b505a44a19de0c30200d4067fc96b12b4e98c178a97629b5
|
Provenance
The following attestation bundles were made for pyfritzsms-0.1.3.tar.gz:
Publisher:
release.yaml on mback2k/pyfritzsms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfritzsms-0.1.3.tar.gz -
Subject digest:
8f5c6eaa2c85affbf543bb2da26e3672bab77163455fd958f2fb4d5548d1d9f0 - Sigstore transparency entry: 207600199
- Sigstore integration time:
-
Permalink:
mback2k/pyfritzsms@6cf44fea2f944f8cc89a11b7d11574d1e25c0bef -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/mback2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@6cf44fea2f944f8cc89a11b7d11574d1e25c0bef -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyfritzsms-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyfritzsms-0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc0c1ecf5d1a5e2b2e08966f5646bff779df1e8fe05d881bae2f7c7512fda050
|
|
| MD5 |
1cdd0fa1fef862fdd4cd7db98668fac9
|
|
| BLAKE2b-256 |
b385ac79c3ae5f8d4eeaa653db59b4e7bc44a12e91773b50fb691aaff905ad72
|
Provenance
The following attestation bundles were made for pyfritzsms-0.1.3-py3-none-any.whl:
Publisher:
release.yaml on mback2k/pyfritzsms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfritzsms-0.1.3-py3-none-any.whl -
Subject digest:
fc0c1ecf5d1a5e2b2e08966f5646bff779df1e8fe05d881bae2f7c7512fda050 - Sigstore transparency entry: 207600204
- Sigstore integration time:
-
Permalink:
mback2k/pyfritzsms@6cf44fea2f944f8cc89a11b7d11574d1e25c0bef -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/mback2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@6cf44fea2f944f8cc89a11b7d11574d1e25c0bef -
Trigger Event:
push
-
Statement type: