Simple VAPID header generation library
Project description
# Easy VAPID generation
This minimal library contains the minimal set of functions you need to
generate a VAPID key set and get the headers you'll need to sign a
WebPush subscription update.
This can either be installed as a library or used as a stand along
app.
## App Installation
You'll need `python virtualenv` Run that in the current directory.
Then run
```
bin/pip install -r requirements.txt
bin/python setup.py`install
```
## App Usage
Run by itself, `bin/vapid` will check and optionally create the
public_key.pem and private_key.pem files.
`bin/vapid --sign _claims.json_` will generate a set of HTTP headers
from a JSON formatted claims file. A sample `claims.json` is included
with this distribution.
`bin/vapid --validate _token_` will generate a token response for the
Mozilla WebPush dashboard.
This minimal library contains the minimal set of functions you need to
generate a VAPID key set and get the headers you'll need to sign a
WebPush subscription update.
This can either be installed as a library or used as a stand along
app.
## App Installation
You'll need `python virtualenv` Run that in the current directory.
Then run
```
bin/pip install -r requirements.txt
bin/python setup.py`install
```
## App Usage
Run by itself, `bin/vapid` will check and optionally create the
public_key.pem and private_key.pem files.
`bin/vapid --sign _claims.json_` will generate a set of HTTP headers
from a JSON formatted claims file. A sample `claims.json` is included
with this distribution.
`bin/vapid --validate _token_` will generate a token response for the
Mozilla WebPush dashboard.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for py-vapid-0.3.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab04a1cc9f9118392bd3e0d00d1bfb30bdb13f10544f42a40c54a17687bd5302 |
|
MD5 | 075a76ad33f83d78e31919bb638ee5f0 |
|
BLAKE2b-256 | 4a8c1bfc07a3d89d4f0784c9dc7d80f5baf4bccf576b9df3eea85531dcc9c650 |