Skip to main content

A (limited) Python wrapper for Sveve's SMS sending API

Project description


A (limited) Python wrapper for Sveve's API

Based on API documentation.

I am in no way affiliated with Sveve and accept no liability for damages caused as a result of using this code.


The client returns a pydantic class that matches the data structure in the API documentation unless a fatal error occurs, in which case it raises a SveveError with a descriptive error message.

Initialising client

from sveve.client import SveveClient, SveveError
client = SveveClient(user="usr", password="123", default_sender="funbit")

Sending an SMS

  # Sending to one recipient using client's default_sender
  client.send_sms(to="12345678", msg="Hello world!")
except SveveError:
  print("Something went wrong...")

# Alternatively with multiple recipients
recipients = ["12345001", "12345002", "12345003"]
client.send_sms(to=recipients, msg="Hello world!")
# Or using a custom sender name
client.send_sms(to="12345678", msg="Hello world!", sender="Your Name")

Checking remaining balance

  balance = client.remaining_sms()
except SveveError:
  print("Something went wrong...")

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

Sveve-1.1.0.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

Sveve-1.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

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