Update vapid requirement

This commit is contained in:
jrconlin 2019-04-12 18:18:12 -07:00
parent 051e1575a3
commit 69059ef45c
No known key found for this signature in database
GPG Key ID: 91B7F708D9FC4D84
3 changed files with 28 additions and 2 deletions

View File

@ -169,4 +169,30 @@ Encode the `data` for future use. On error, returns a `WebPushException`
encoded_data = WebPush(subscription_info).encode(data)
```
## Stand Alone Webpush
If you're not really into coding your own solution, there's also a "stand-alone" `pywebpush` command in the
./bin directory.
This uses two files:
* the *data* file, which contains the message to send, in whatever form you like.
* the *subscription info* file, which contains the subscription information as JSON encoded data. This is usually returned by the Push `subscribe` method and looks something like:
```json
{"endpoint": "https://push...",
"keys": {
"auth": "ab01...",
"p256dh": "aa02..."
}}
```
If you're interested in just testing your applications WebPush interface, you could use the Command Line:
```bash
./bin/pywebpush --data stuff_to_send.data --info subscription.info
```
which will encrypt and send the contents of `stuff_to_send.data`.
See `./bin/pywebpush --help` for available commands and options.

View File

@ -1,4 +1,4 @@
cryptography>=2.6.1
http-ece>=1.1.0
requests>=2.21.0
py-vapid>=1.4.0
py-vapid>=1.5.0

View File

@ -4,7 +4,7 @@ import os
from setuptools import find_packages, setup
__version__ = "1.9.2"
__version__ = "1.9.3"
def read_from(file):