Skip to main content

A Python library for sending SMS messages via BlueSMS

Project description

BlueSMS SDK

This is a python SDK for the BlueSMS API. It can be added to your current python-based application so as to interact with the BlueSMS Uganda API in a much simpler way.

Why we created the BlueSMS SDK

We began using BlueSMS in many of our applications and were simply tired of writing code to send SMSes in every Python project we created. So we decided to create a python package that would make it easier for us to send SMSes in our projects.

Installation

pip install bluesms

Usage

from bluesms.sms import SMS 

# initialise the SMS class
sms = SMS()

# send the SMS 
try: 
    sending = sms.send(user="user@example.com", password="password", reciever="0777xxxxxx", sender="sender", message="message")

    print("The SMS sent", sending.text)

except Exception as e:
    print("Error sending SMS:", e)

Development Setup

Clone the repository by running the following command in your terminal:

git clone https://github.com/mwanjajoel/bluesms.git

We use Pipenv to manage our dependencies. To install pipenv, run the following command:

pip install pipenv

Activate the virtual environment by running the following command in your terminal:

pipenv shell

Install the dependencies by running the following command in your terminal:

pipenv install

Run tests

TBD

Code Formatting using Black

black momo

How to submit an issue

Please follow our Bug Report Guide on how to submit your issue.

How to request for a new feature

Please follow our Feature Request Guide on how to submit a feature request

Code of Conduct

We follow a strict code of conduct and you can read it Here

Credits

BlueSMS SDK was designed and built by Mwanja Joel. It is licensed under the MIT license; for the full license please see the LICENSE file.

Please see the AUTHORS file for the full list of contributors.

If you find BlueSMS SDK useful and want to reach out, find me on Twitter: @mrjoelmwanja.

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

bluesms-1.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

bluesms-1.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file bluesms-1.1.2.tar.gz.

File metadata

  • Download URL: bluesms-1.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for bluesms-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8a20ca7de48cf910f39374f37cec218a190558f759bc2e9eed3205b71e92c7b9
MD5 28176e012284d79d2eecf96f860dd634
BLAKE2b-256 91947580830ba97daf5533e7edad42a78681af452c4110be0d89d30049f04cb8

See more details on using hashes here.

File details

Details for the file bluesms-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: bluesms-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for bluesms-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4220749863ef8564c32a37117891d4c106067ea14ccc36b83da88eb4a3da8ae2
MD5 18cca09d332c94d4360d6a7367d080a2
BLAKE2b-256 877c79095361d6e8cf75c2da436e9743bd718cb7f87bfbc77717bcecf2f45a7f

See more details on using hashes here.

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