A package to generate WSSE Headers
Project description
WsseHeaders: WSSE for Python™
WsseHeaders is the only WSSE Token generation library for Python, safe for human consumption.
>>> import WsseHeaders
>>> r = WsseHeaders.WsseToken(username="yodebu", orgName="yodebu", token="base64tokenstring")
>>> r.generateHeaders()
UsernameToken Username="yodebu", PasswordDigest="EU4mrjk9tD3AVl3N1oJ6Yc+PA4k=", Nonce="e52165a00ae24d62bd44adb96f7c95dd", Created="2018-10-16T19:51:43+00:00", Organization="EXAMPLE_ORG"
optional parameter: pad
which is defaulted to False
and takes only Boolean values.
>>> import WsseHeaders
>>> r = WsseHeaders.WsseToken(username="yodebu", orgName="yodebu", token="base64tokenstring", pad=True)
>>> r.generateHeaders()
UsernameToken Username="yodebu", PasswordDigest="EU4mrjk9tD3AVl3N1oJ6Yc+PA4k=", Nonce="e52165a00ae24d62bd44adb96f7c95dd", Created="2018-10-16T19:51:43+00:00", Organization="EXAMPLE_ORG"
WsseHeaders officially supports Python 3.0 and above.
Installation
To install WsseHeaders, simply use pipenv (or pip, of course):
$ pipenv install WsseHeaders
✨🍰✨
Documentation
Fantastic documentation to be available shortly at http://docs.python.org/, for a limited time only.
How to Contribute
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
- Write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.
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 Distribution
WsseHeaders-0.0.8.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for WsseHeaders-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9acdb450be296db82a185847d9373f7e3bcb25d5d2897ac5cb4f80483fac0b |
|
MD5 | 0df7c27a9e7f98fb61bc0444a6b394a8 |
|
BLAKE2b-256 | 36fdc7c8e784f5c2355148e9dda987b07896db6fa1c928040d83474c4bbb6930 |