Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Initialize the WsseHeader module

>>> import WsseHeaders
>>> WsseTokenObject = WsseHeaders.WsseToken(username="yodebu", orgName="yodebuOrg", token="base64tokenstring")

Generate the Header String as required :

>>> WsseTokenObject.generateHeaderString()
'UsernameToken Username="yodebu", PasswordDigest="SXoO32oqIKFOl63mvsMoW+HPcHo=", Nonce="/lruYfbC12FfjiqFLgJxVw==", Created="2018-11-11T10:50:49+00:00", Organization="yodebuOrg"'

Get the Authentication Headers as Dictionary which can be easily converted to JSON:

>>> WsseTokenObject.generateHeader()
    'Authorization': 'WSSE profile="UsernameToken"', 
    'X-WSSE': 'UsernameToken Username="yodebu", PasswordDigest="SXoO32oqIKFOl63mvsMoW+HPcHo=", Nonce="/lruYfbC12FfjiqFLgJxVw==", Created="2018-11-11T10:50:49+00:00", Organization="yodebuOrg"', 
    'Accept': 'Application/json'

WsseHeaders officially supports Python 3.0 and above. Python 2.7 support coming soon.


To install WsseHeaders, simply use pipenv (or pip, of course):

$ pipenv install WsseHeaders


Fantastic documentation to be available shortly at, for a limited time only.

How to Contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for WsseHeaders, version 0.0.16
Filename, size File type Python version Upload date Hashes
Filename, size WsseHeaders-0.0.16-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page