Skip to main content

Python bindings for the XML Security Library

Reason this release was yanked:

See https://github.com/mehcode/python-xmlsec/issues/140

Project description

https://travis-ci.org/mehcode/python-xmlsec.png?branch=master https://ci.appveyor.com/api/projects/status/ij87xk5wo8a39jua?svg=true https://github.com/mehcode/python-xmlsec/workflows/manylinux2010/badge.svg https://github.com/mehcode/python-xmlsec/workflows/MacOS/badge.svg https://codecov.io/gh/mehcode/python-xmlsec/branch/master/graph/badge.svg https://img.shields.io/pypi/v/xmlsec.svg Documentation Status

Python bindings for the XML Security Library.

Documentation

A documentation for xmlsec can be found at xmlsec.readthedocs.io.

Usage

Check the examples section in the documentation to see various examples of signing and verifying using the library.

Requirements

  • libxml2 >= 2.9.1

  • libxmlsec1 >= 1.2.18

Install

xmlsec is available on PyPI:

pip install xmlsec

Depending on your OS, you may need to install the required native libraries first:

Linux (Debian)

apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl

Note: There is no required version of LibXML2 for Ubuntu Precise, so you need to download and install it manually.

wget http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
tar -xvf libxml2-2.9.1.tar.gz
cd libxml2-2.9.1
./configure && make && make install

Linux (CentOS)

yum install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel

Linux (Fedora)

dnf install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel

Mac

brew install libxml2 libxmlsec1 pkg-config

Alpine

apk add build-base libressl libffi-dev libressl-dev libxslt-dev libxml2-dev xmlsec-dev xmlsec

Troubleshooting

Mac

If you get any fatal errors about missing .h files, update your C_INCLUDE_PATH environment variable to include the appropriate files from the libxml2 and libxmlsec1 libraries.

Windows

Starting with 1.3.7, prebuilt wheels are available for Windows, so running pip install xmlsec should suffice. If you want to build from source:

  1. Configure build environment, see wiki.python.org for more details.

  2. Install from source dist:

    pip install xmlsec --no-binary=xmlsec

Building from source

  1. Clone the xmlsec source code repository to your local computer.

    git clone https://github.com/mehcode/python-xmlsec.git
  2. Change into the python-xmlsec root directory.

    cd /path/to/xmlsec
  3. Install the project and all its dependencies using pip.

    pip install .

Contributing

Setting up your environment

  1. Follow steps 1 and 2 of the manual installation instructions.

  2. Initialize a virtual environment to develop in. This is done so as to ensure every contributor is working with close-to-identicial versions of packages.

    mkvirtualenv xmlsec

    The mkvirtualenv command is available from virtualenvwrapper package which can be installed by following link.

  3. Activate the created virtual environment:

    workon xmlsec
  4. Install xmlsec in development mode with testing enabled. This will download all dependencies required for running the unit tests.

    pip install -r requirements-test.txt
    pip install -e "."

Running the test suite

  1. Set up your environment.

  2. Run the unit tests.

    pytest tests
  3. Tests configuration

    Env variable PYXMLSEC_TEST_ITERATIONS specifies number of test iterations to detect memory leaks.

Reporting an issue

Please attach the output of following information:

  • version of xmlsec

  • version of libxmlsec1

  • version of libxml2

  • output from the command

    pkg-config --cflags xmlsec1

License

Unless otherwise noted, all files contained within this project are licensed under the MIT opensource license. See the included LICENSE file or visit opensource.org for more information.

Project details


Download files

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

Source Distribution

xmlsec-1.3.7.tar.gz (59.3 kB view details)

Uploaded Source

Built Distributions

xmlsec-1.3.7-cp38-cp38-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

xmlsec-1.3.7-cp38-cp38-win32.whl (1.6 MB view details)

Uploaded CPython 3.8 Windows x86

xmlsec-1.3.7-cp37-cp37m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

xmlsec-1.3.7-cp37-cp37m-win32.whl (1.6 MB view details)

Uploaded CPython 3.7m Windows x86

xmlsec-1.3.7-cp36-cp36m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.6m Windows x86-64

xmlsec-1.3.7-cp36-cp36m-win32.whl (1.6 MB view details)

Uploaded CPython 3.6m Windows x86

xmlsec-1.3.7-cp35-cp35m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.5m Windows x86-64

xmlsec-1.3.7-cp35-cp35m-win32.whl (1.6 MB view details)

Uploaded CPython 3.5m Windows x86

xmlsec-1.3.7-cp27-cp27m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 2.7m Windows x86-64

xmlsec-1.3.7-cp27-cp27m-win32.whl (1.6 MB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file xmlsec-1.3.7.tar.gz.

File metadata

  • Download URL: xmlsec-1.3.7.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for xmlsec-1.3.7.tar.gz
Algorithm Hash digest
SHA256 6ed3db00b01af914df44b4f66997e748ef5ecd0f7e8d62ecf1222addc9d08a3f
MD5 7c413723bbd52a9b204d28feaedffb1d
BLAKE2b-256 fa63d915cb69188474cbf241edbabe03b80aec531a6dfbc05d9db11dcd71ee55

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for xmlsec-1.3.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5aea0c376edb21e6affce414c566e745443ba29871aa3775fe3eefc63f1ba052
MD5 7fb55f5d3bb7770a397013dd24ca209a
BLAKE2b-256 a31dd2709e1743bbc7f87cd6c47edb29f7217080ed2989cbd2683fafa7d7b83e

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp38-cp38-win32.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp38-cp38-win32.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for xmlsec-1.3.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c072a4409feb31f1d2f52a891341bd03c5332930a156829181e80b80e66566f7
MD5 7a963fb23f1869238a61628052ec27ad
BLAKE2b-256 2899eb24224b259f32d29cd9cf664e6e4d4f62edb13cefc24c6241a846ddcce9

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for xmlsec-1.3.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a1718137fc4c56b165e3d034647b7dde57c5c15c53f115e3f6db0b9db9a418a9
MD5 4089cc2f048d91eeecc009ee6737ab2f
BLAKE2b-256 475d81b36831b911a662e50c4dc784959c1a15112c1beb3ab7261d5949ee22df

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp37-cp37m-win32.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for xmlsec-1.3.7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 528aa2d773d2f8436e2c3df9a60feae838cccf96ef5b94b1586ee26dc2273a2d
MD5 7f0d1d6c79e64b88619db22d621cae92
BLAKE2b-256 9c235a3ab7b1b7e37899178c30e814bda47e0259d27fe54bd7fbf67526d2df1d

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for xmlsec-1.3.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7b3e6cf7da0391977da2e4b2249599d3615fa99717921013f8383f883c26d5c0
MD5 344167bd90273f48062c36c6f6f2e129
BLAKE2b-256 dde8ee6b68147c62170611370ec2b7211b08005d5ce55b24b2c23f4d176d7a67

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp36-cp36m-win32.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for xmlsec-1.3.7-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 ed193a9af90dfe7f1f30b713ab94e3cc824f598bbfa631780b5d8a9ab592a658
MD5 7fdcfb41359d0dc90079ca3059bcb64c
BLAKE2b-256 b7379c48e8624259a1aa0a779cf00548635493c41a31b7dce16cb9d61e671130

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.4

File hashes

Hashes for xmlsec-1.3.7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 a18d46715992d7a5bec6969f90e03c3b7df12fae8119f814019f61162539a1e1
MD5 3c04354c43d81cd43aa57a5990869b56
BLAKE2b-256 28afa2923c7bf897289d5e698f1f7d3d125c00bf5f101f3c70ce9c5a500a09a8

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp35-cp35m-win32.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.4

File hashes

Hashes for xmlsec-1.3.7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 fb9eceb945d245341c53fec5f34345eafd447dece42c31b5878d86edc5d4a1a1
MD5 1362ec2d64dbd26d98ae78f347e11d7d
BLAKE2b-256 4e90598740e8a7682d3084239fcc81f1fad02a69f49e752b3bd675ea36f4e1f4

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for xmlsec-1.3.7-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 a950b89c43ef6e41512bf0104377eee2793e3eeee2ec2347fe27ef5814459939
MD5 afb54ef815c17a787d7875a28753c9e6
BLAKE2b-256 5456bc95cee8db23716acc40d92aec4c378ddbff6e5bc91cc51f93986c6c23dd

See more details on using hashes here.

File details

Details for the file xmlsec-1.3.7-cp27-cp27m-win32.whl.

File metadata

  • Download URL: xmlsec-1.3.7-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for xmlsec-1.3.7-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 eddfceaa696082fbdf491664e40b722bee344c7f7ab120c2ea6c743791c2d727
MD5 8c4061e69133e20d9b7db1fed1535840
BLAKE2b-256 751204c25e6ea2cc00689a3356ffabe1d4b97605fc1f2804409ef67e389bc0e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page