python-airgram
A python wrapper for making calls to the Airgram API, which enables you to send push notifications to your mobile devices.
Since it is a very shallow wrapper, you can refer to the official api reference for details on the functions.
Examples
At the time of writing (2015-08-20) airgram is using wrong certificates (see), which are intended for herokuapp.com. Because of this cert verification needs to be turned off.
Using as a guest
from airgram import Airgram
ag = Airgram(verify_certs=False)
# Send a message to a user
ag.send_as_guest("your@email.com", "Test message from Airgram API", "http://example.com")
Using with an authenticated airgram service
from airgram import Airgram
ag = Airgram(key="MY_SERVICE_KEY", secret="MY_SERVICE_SECRET", verify_certs=False)
# Subscribe an email to the service
ag.subscribe("your@email.com")
# Send a message to a subscriber
ag.send("your@email.com", "Hello, how are you?")
# Send a message to ALL subscribers
ag.broadcast("Airgram for python is awesome", url="https://github.com/the01/python-airgram")
History
0.1.3 (2015-08-25)
BugFix
added MANIFEST.in (fix install problem)
0.1.2 (2015-08-21)
BugFix
Correct wrong api url
0.1.1 (2015-08-21)
Add module logger
Add class logger
Functions throw AirgramException on failure
0.1.0 (2015-07-30)
First release on PyPI.
Metadata
Release files for airgram 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airgram-0.1.3.tar.gz | 4.1 kB | Without provenance | Details for airgram-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| airgram-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for airgram-0.1.3-py2.py3-none-any.whl |
Total release size: 9.3 kB
Release files / airgram-0.1.3.tar.gz
| Download URL | airgram-0.1.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc214d0548330d67bfc532ed509f981bc578789741cf3ecda91889337ee5ba58
|
|
BLAKE2b-256 checksum How to use checksums |
d3d313c1242a48ee2fd8978a94d619cd0dfaccf88671082c3523218d9f87e429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / airgram-0.1.3-py2.py3-none-any.whl
| Download URL | airgram-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
40ac3f355db3753e5bec8ef7dba93942300b3c65decc026e047c73467a0fe7e1
|
|
BLAKE2b-256 checksum How to use checksums |
c379817e5d259d0ac6d85922d2f818eac2ac97fe9c687c0815affe90a1774030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for airgram 0.1.3
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.