Client for accessing the intellipush message service.
Project description
intellipush
A client for communicating with the intellipush API service for sending SMSes.
pip install intellipush
Sending an SMS:
from intellipush import client
intellipush = client.Intellipush(key=api_id, secret=api_secret)
result = intellipush.sms(
countrycode='0047',
phonenumber=phonenumber,
message='test from intellipush',
)
See the tests for current examples of how to perform most tasks available through the API.
Running the tests
The tests are run with pytest
, and accepts --api-id
and --api-secret
to set
proper API access keys for testing against the live interface. Do not do this with accounts
you care about.
If not set, only the tests that do not depend on a live endpoint will be run.
pytest tests/test_client.py --api-id=apiid --api-secret=secret
Tests that depend on a live phone number
Certain tests against the live system actually do stuff that ends up with a live message going out to a phone. Since we don't want this to happen without proper cause, you'll have to provide two additional settings if you want live messages to be sent.
--live-phone-number <phonenumber> --live-country-code <countrycode>
Example:
--live-phone-number 88888888 --live-country-code 0047
The methods do have mocked versions of their tests attached, but to make sure that the tests actually work against the server side, this allows you to run those tests as well if necessary.
Releasing a new version of the library
Create the archives:
python setup.py sdist bdist_wheel
Upload the packages to pypi:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file intellipush-0.2.0.tar.gz
.
File metadata
- Download URL: intellipush-0.2.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189cef110d2df5c80bcf3b5332ba3a38ab9e577b24d5f26011f443e81eeba96a |
|
MD5 | e300deafa449e44e6fe91638204c0e30 |
|
BLAKE2b-256 | 7127e56c0b56fae3804957399dfcecfd826005bfa39a347a943a455601d7633e |
File details
Details for the file intellipush-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: intellipush-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a3bc84b9b35978b5122d10342d6de249232263d1ba2b27cfc49a1da8f00019a |
|
MD5 | 0b58e0d8d4cd6e040b1c9d21edc3195e |
|
BLAKE2b-256 | 1c9f7eb157512d524ab5a5e79035a889b6c07ea4fff359bd0ee997a103d8a819 |