Skip to main content

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.

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

  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.

Metadata

Release files for WsseHeaders 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for WsseHeaders 0.0.16
File Interpreter ABI Platform
WsseHeaders-0.0.16-py3-none-any.whl Python 3 none any Details

Release files / WsseHeaders-0.0.16-py3-none-any.whl

Download URL WsseHeaders-0.0.16-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c5acd2b0e78ccbad468bede926f63f58649fb27f44f106cf2b762544a885a21
BLAKE2b-256 checksum
How to use checksums
3c2edf3b32d1d6107b9dc97427efdab7d3c92dcff17a7e96ce9318df5b451ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

Release history Release notifications | RSS feed

This release

0.0.16 This release

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

1 release file

0.0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page