Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

=====
Dajngo SMS Aero
=====

Simple Django application for send SMS via smsaero.ru

Fork of https://github.com/DrMartiner/django-smsaero (MIT Licensed)

=====
Quick start
=====

1. Add "smsaero" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'smsaero',
'django_rq', # if you want use the queue of Redis
)

# if you want use the queue of Redis
RQ_QUEUES = {
'default': {
'HOST': 'localhost',
'PORT': 6379,
'DB': 0,
'PASSWORD': '',
},
}

2. Define SMSAERO_USER and SMSAERO_PASSWORD (raw password) or SMSAERO_PASSWORD_MD5 (hash of password) at settings.py::

SMSAERO_USER = 'username'
SMSAERO_PASSWORD = '123'
# or
SMSAERO_PASSWORD_MD5 = '202cb962ac59075b964b07152d234b70'


3. Run ```python manage.py syncdb``` to create the smsaero models.

4. Start the development server and visit http://127.0.0.1:8000/admin/
to create a smsaero (you'll need the Admin app enabled).

=====
Usage
=====

Send SMS, check the SMS status, get account balance and get signatures::

from smsaero.utils import send_sms
from smsaero.utils import get_sms_status
from smsaero.utils import get_balance
from smsaero.utils import get_signatures_name
from smsaero.models import SMSMessage

# Send SMS
sms = send_sms('+79998881122', 'Some text...') # sms has SMSMessage type
print sms.sms_id # id of accepted message
print sms.get_status_display() # status

# Check SMS status
status = get_sms_status(sms.sms_id) # returned string

# Get balance of accaunt
print get_balance() # returned the rubbles

# Get array of signature names
print get_signatures_name() # Array of string

Running workers::
python manage.py rqworker default

Async send SMS::

from smsaero.urils import send_sms_async
from smsaero.urils import get_sms_status_async
from smsaero.urils import get_balance_async
from smsaero.urils import get_signatures_name_async
from smsaero.models import SMSMessage

# Send SMS
job = send_sms_async('+79998881122', 'Some text...')
job.result # result has SMSMessage type

job = get_sms_status_async(sms.sms_id)
job.result # return string

job = get_balance_asunc()
job.result # returned the rubbles

job = get_signatures_name()
job.result # Array of string

Metadata

Release files for djangosmsaero 1.0.0.dev1

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

Source distribution (sdist)

Source distribution for djangosmsaero 1.0.0.dev1
File Size Uploaded Provenance Actions
djangosmsaero-1.0.0.dev1.tar.gz 18.0 kB Without provenance Details for djangosmsaero-1.0.0.dev1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for djangosmsaero 1.0.0.dev1
File Interpreter ABI Platform Actions
djangosmsaero-1.0.0.dev1-py3.5.egg Legacy Egg format - - Details for djangosmsaero-1.0.0.dev1-py3.5.egg
djangosmsaero-1.0.0.dev1-py3-none-any.whl Python 3 none any Details for djangosmsaero-1.0.0.dev1-py3-none-any.whl

Total release size: 44.1 kB

Release files / djangosmsaero-1.0.0.dev1.tar.gz

Download URL djangosmsaero-1.0.0.dev1.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d650ae520e689cf69a4779aac0a52c80b9eeeafd6887d56d5228b9cbe11a5aa
BLAKE2b-256 checksum
How to use checksums
a492029c65fdf80a1acefdfeeabf7e9e0b3e3d74a5a2b46fd81eea23adf5cb39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangosmsaero-1.0.0.dev1-py3.5.egg

Download URL djangosmsaero-1.0.0.dev1-py3.5.egg
Size 16.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
99e55ca2d142a7134ec990fe92987cbbfed8a60cb049f39ade7fcd447dc5d05e
BLAKE2b-256 checksum
How to use checksums
f7b2700124b66aec58ea4b30bbc89a3d9b689f47a5345c1dd446546a34695808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangosmsaero-1.0.0.dev1-py3-none-any.whl

Download URL djangosmsaero-1.0.0.dev1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bacceeedf2aec58eb41c213dcd8a6db70c7c00d4f09dd3762519408f8828ca4
BLAKE2b-256 checksum
How to use checksums
bbc154455c63cb971c9bd10a87679beb5346ef96f8e1b5933a838c4de4e5dd5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for djangosmsaero 1.0.0.dev1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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