Pushpad

pushpad

9431 subscribers

PrivacyNewsletter.page

Introducing Pushpad Python v2: full API and type hints support is here

about 1 month ago

We are happy to announce the release of the Pushpad Python SDK v2, a major rewrite of the Python library that brings full API access (not just sending notifications) and type hints within your Python apps.

What’s new in v2?

Up until now, the official Python library supported only the Notifications endpoints of the Pushpad API (i.e. sending push messages).

With v2, you can now access all API endpoints (Subscriptions, Projects, Senders, etc.), just like with our REST API.

This makes it far more powerful for managing your push infrastructure from Python apps. It also enables advanced automations that were not possible before.

For example, you can find, count or update subscriptions from server-side. You can detect if a user is subscribed or not using Python. You can list sent notifications and get their stats, making it easy to build custom dashboards or analyze your campaign results from code. You can also manage projects and senders programmatically, which is useful if you manage many different websites or if you are building a push infrastructure for multiple tenants.

You no longer have to mix Python and raw HTTP calls for “non-notification” operations: everything lives in one library.

v2 is also aligned with the OpenAPI specification that we announced some months ago.

The new version also brings Type Hints and code assistance inside your editor when you interact with Pushpad. For example, if you use VS Code, we recommend to enable the Pylance extension.

Migration and compatibility notes

The old push-only library (v1) remains available, but no new features will be added there.

If you are using Pushpad Python, we recommend upgrading to v2.

Please read the UPGRADING.md file in the GitHub repository for more information.

The upgrade should be straightforward, but you can also contact our support if you need assistance with the migration.


Thank you for being part of the Pushpad developer community.

We hope this release helps you build more complete integrations with Pushpad, faster. As always, we welcome your feedback: feel free to open new issues or pull requests in the GitHub repository.

Happy coding,

The Pushpad Team