Skip to main content

SMSpy

A minimalistic python wrapper for sending free sms via website way2sms.

https://img.shields.io/badge/Made%20with-Python-1f425f.svg

Installation

$ pip install -U git+git://github.com/guptarohit/smspy.git

Usage

Send SMS

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

w2s.send(MOBILE_NO, MSG)

w2s.logout()

Schedule SMS

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

w2s.schedule(MOBILE_NO, MSG, DATE, TIME)
# DATE should be in format DD/MM/YYYY and TIME in 24h HH:mm

w2s.logout()

Check History of sent messages

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

headers, data = w2s.history(DATE)
# DATE should be in format DD/MM/YYYY

print(headers, data)

w2s.logout()

Check Scheduled messages

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

headers, data = w2s.scheduled_messages(DATE)
# DATE should be in format DD/MM/YYYY

print(headers, data)

w2s.logout()

Check Quota left

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

msgs_remaining=w2s.quota_left()

print(msgs_remaining)

w2s.logout()

Contributing

Feel free to make a pull request! :octocat:

Metadata

Release files for smspy 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smspy 0.5.0
File Size Uploaded
smspy-0.5.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smspy 0.5.0
File Interpreter ABI Platform
smspy-0.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.9 kB

Release files / smspy-0.5.0.tar.gz

Download URL smspy-0.5.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88bcc648dd010e2488be216e2a274a314baf95acf4d1f2217301ae0c3c633542
BLAKE2b-256 checksum
How to use checksums
0bce797e51e27e1c13d2ab182b564aa477bd40807685a0d2109ced843d0ddfd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / smspy-0.5.0-py2.py3-none-any.whl

Download URL smspy-0.5.0-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fcfc1893e3044bfb9c15c5f29d2af90dd935c5a26f1fa459f929398201968c94
BLAKE2b-256 checksum
How to use checksums
ce8e268ae202799f723ee4bd4b8d82534ac3c195915ac4df3f5d86d9da4e9366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

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