pushjet
(Python API)
Welcome to pushjet, Python’s Pushjet (see the server on GitHub) API. Pushjet lets you push notifications directly to your phone (among other things)! This module lets you do that pushing from Python! It’s pretty sweet - it lets you do all sorts of cool things, like integrating notifications into your web app or notifying you when something goes on sale.
And yep, the module’s just named pushjet. Spiffy name, and surely not at all confusing. Probably. Hopefully. Maybe.
How to install
The module is on GitHub, and it’s also on PyPI! That means you can install it using pip. Simply run the following to install it:
> pip install pushjet
Bam, you’re ready to go. It’s compatible with both Python 2 and 3, too - nice, huh?
How to use
See the Getting started section of the documentation. Here’s a little taste:
import pushjet
import uuid
service = pushjet.Service.create(
"Open courses", # Name
"http://example.com/university_icon.png" # Icon URL
)
device = pushjet.Device(uuid.uuid4())
device.subscribe(service)
service.send(
"A spot is open for you in the competitive eating course!", # Message
"Course open", # Title
"http://example.com/courses/eating/competitive" # Link
)
for message in device.get_messages():
print message.title
print message.message
print message.link
For information on all the properties of the classes, and on how to use custom API instances, once again see the documentation.
Contact
If there’s a feature you’re missing or a bug you’ve found in pushjet, open an issue on GitHub. If you’ve got a question - or there’s anything you’d like to talk about at all, really - you can reach me via:
I usually answer much faster on Twitter. Thaaaat… should be all. I think. Unless I’ve forgotten something, which I don’t think I have. I never think I have, though, and then sometimes I still have. Let’s hope I haven’t this time.
Enjoy!
Metadata
Release files for pushjet 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pushjet-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pushjet-1.0.0-py2.py3-none-any.whl |
Release files / pushjet-1.0.0-py2.py3-none-any.whl
| Download URL | pushjet-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
aebc15e2ed53ea65da91991bc5d161fdbb4c8115cb2cb97665383f8eb0d80b34
|
|
BLAKE2b-256 checksum How to use checksums |
07d5a21ee0bc2a00e8a82867f7d391e359cf34969d8daa4e9291a53827184577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pushjet 1.0.0
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.