Skip to main content

MoonheimSMS

An asynchronous Python module for interacting with the Moonheim SMS API. The MoonheimSMS package allows for easy integration of SMS functionalities into your Python applications, including sending SMS messages, checking message status, and querying account balance.

Features

  • Asynchronous API calls
  • Send SMS messages
  • Check the status of sent messages
  • Retrieve account balance

Installation

pip install moonheimsms

Quick Start

First, ensure you have `aiohttp` installed:

pip install aiohttp

Then, you can start using `MoonheimSMS` by importing it in your project:

from moonheimsms import MoonheimSMS

Usage

Initialize the Client

moonheim = MoonheimSMS(token="YOUR_API_TOKEN", proxy="YOUR_PROXY")

Sending an SMS

await moonheim.sendSms(
    phone="RECIPIENT_PHONE_NUMBER",
    sender_name="YOUR_SENDER_NAME",
    text="Hello, World!",
    type_=0,
    gateway=0,
    short_link=1
)

Checking SMS Status

status = await moonheim.checkSmsStatus(message_id="YOUR_MESSAGE_ID")
print(status)

Retrieving Account Balance

balance = await moonheim.getBalance()
print(balance)

Handling Exceptions

`MoonheimSMS` raises `InvalidPhoneNumber` if an invalid phone number is provided. Ensure to handle this exception in your code to manage such errors gracefully.

Contributing

We welcome contributions! Please open an issue or submit a pull request for any improvements.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

[!IMPORTANT] This package is not officially affiliated with Meow SMS. All trademarks belong to their respective owners.

Metadata

Release files for moonheim-sms 0.1.2.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 moonheim-sms 0.1.2.2
File Size Uploaded Provenance
moonheim-sms-0.1.2.2.tar.gz 7.8 kB Without provenance Details

Release files / moonheim-sms-0.1.2.2.tar.gz

Download URL moonheim-sms-0.1.2.2.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
369ac5f6d9dbacb807f8b64fb3709f935a08d8ea075496b09c50c83bd0639035
BLAKE2b-256 checksum
How to use checksums
e9614649afdd414a07c04d21d1e63adbcf63fa98a75eec19d243569ce0f08d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for moonheim-sms 0.1.2.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.

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