Skip to main content

usim800 is a Python driver module for SIM800 GSM/GPRS .

Project description


image image image

usim800 is a Python driver module for SIM800 GSM/GPRS . Its has easy-to-use api to access GPRS and to send sms .


  • raspberry pi
  • Tested on python 3 with orange pi zero and linux machine using (usb to ttl) .


Send Get and post requests(supports HTTP/1.1).

requests API similar to pythons Requests module.

Send SMS


> pip install usim800

Quick start :


>>> from usim800 import sim800
>>> import json
>>> gsm = sim800(baudrate=9600,path="/dev/ttyUSB3")

set APN

>>> gsm.requests.APN = "www"

get and post request

>>> gsm.requests.get(url="")
>>> r = gsm.requests
>>> r.status_code
>>> r.content
b'[  {    "id": 1,    "title": "Post 1"  },  {    "id": 2,    "title": "Post 2"  },  {    "id": 3,    "title": "Post 3"  }]'
>>> r.json()
[[{'id': 1, 'title': 'Post 1'}, {'id': 2, 'title': 'Post 2'}, {'id': 3, 'title': 'Post 3'}]]
>>> r.IP
>>> data = {"name":"somthing...."}
>>> r.status_code
>>> r.content
b'Thank you for this dump. I hope you have a lovely day!'

>>> r.IP


>>> gsm.sms.send("8850813167","hi from usim800")

Future Plan and improvements

  • better error handling
  • read sms

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

usim800-0.0.7.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

usim800-0.0.7-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

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