Skip to main content
https://img.shields.io/pypi/v/xmlsec.svg?logo=python&logoColor=white https://img.shields.io/travis/com/mehcode/python-xmlsec/master.svg?logo=travis&logoColor=white&label=Travis%20CI https://img.shields.io/appveyor/ci/hoefling/xmlsec/master.svg?logo=appveyor&logoColor=white&label=AppVeyor 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 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.

Metadata

Release files for xmlsec 1.3.10

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

Source distribution (sdist)

Source distribution for xmlsec 1.3.10
File Size Uploaded
xmlsec-1.3.10.tar.gz 62.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for xmlsec 1.3.10
File
xmlsec-1.3.10-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
xmlsec-1.3.10-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
xmlsec-1.3.10-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
xmlsec-1.3.10-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
xmlsec-1.3.10-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
xmlsec-1.3.10-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
xmlsec-1.3.10-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
xmlsec-1.3.10-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
xmlsec-1.3.10-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
xmlsec-1.3.10-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details

Total release size: 17.6 MB

Release files / xmlsec-1.3.10.tar.gz

Download URL xmlsec-1.3.10.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
52eded125c0d1ab72125105ef061370c6b06ab9bd37e29a61bc2f8a61205bae4
BLAKE2b-256 checksum
How to use checksums
caa00b6f01fa1f138276e776dc31f1627be795a93e2722066db037444d956ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / xmlsec-1.3.10-cp39-cp39-win_amd64.whl

Download URL xmlsec-1.3.10-cp39-cp39-win_amd64.whl
Size 1.9 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
be0f475edd8e9c98f57449c97839f6a81946e79e4cccb81e4b5196a2cc40e044
BLAKE2b-256 checksum
How to use checksums
cf51640d4bab6802e1fefa57aab6a4b3a05e5b07531e62cfef213b37e15fc388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0

Release files / xmlsec-1.3.10-cp39-cp39-win32.whl

Download URL xmlsec-1.3.10-cp39-cp39-win32.whl
Size 1.6 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
72af9a5a747a5fe6e425d2be10daa43d18307dbe03498df3820fc3cd93daa148
BLAKE2b-256 checksum
How to use checksums
a8ad1433a5c0be4956cd935cf57d75a5ed244f9e8c84385f1431674882de93ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0

Release files / xmlsec-1.3.10-cp38-cp38-win_amd64.whl

Download URL xmlsec-1.3.10-cp38-cp38-win_amd64.whl
Size 1.9 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2bc1b871b49d6580779805a4a1c2d835e834a2fa614fe40cf71931d11a8279cf
BLAKE2b-256 checksum
How to use checksums
1a1c174bbd85df0ada946ae7bba8f7e96c1536768d1c3e16740e74cbf9107a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0

Release files / xmlsec-1.3.10-cp38-cp38-win32.whl

Download URL xmlsec-1.3.10-cp38-cp38-win32.whl
Size 1.6 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
8746dd992aaec06ed8ff1615f4a8e2a32258e8af38f9a9f8acf3ee1fb34a5da6
BLAKE2b-256 checksum
How to use checksums
deb7b5656080c4c6b3ebd23ec9e3a461be5671cc03032f259efd3559b48fdf94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0

Release files / xmlsec-1.3.10-cp37-cp37m-win_amd64.whl

Download URL xmlsec-1.3.10-cp37-cp37m-win_amd64.whl
Size 1.9 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
806855d505da24aeb77758a6f373b1473e5ed63bdbe346af90cc6d2b053e4716
BLAKE2b-256 checksum
How to use checksums
ce883a89d3633e19baae873d74f0a6bed8e4d56f71871823158018f9503ddefb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

Release files / xmlsec-1.3.10-cp37-cp37m-win32.whl

Download URL xmlsec-1.3.10-cp37-cp37m-win32.whl
Size 1.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
9d52b2b15d42292725e4f9d8a5b040e39cba0a9cd58059ac951e7310d6340bb9
BLAKE2b-256 checksum
How to use checksums
1eb8eb96267bc2a9a38741d76ece87ba471dc43a66619d7dc9b27e46a3d341c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

Release files / xmlsec-1.3.10-cp36-cp36m-win_amd64.whl

Download URL xmlsec-1.3.10-cp36-cp36m-win_amd64.whl
Size 1.9 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
b380f3ebc042f71afab057632481d06e06f1ba4f90047d91ca92612a7d3d487b
BLAKE2b-256 checksum
How to use checksums
37d9268b13cd06812e69a27543636e06bf598818a28710f3646eca74a243b5c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.8

Release files / xmlsec-1.3.10-cp36-cp36m-win32.whl

Download URL xmlsec-1.3.10-cp36-cp36m-win32.whl
Size 1.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
fe6a5f05aba3ff47e105a308482b68f8b0fd80656eb1456a9c1e4de47d2c580f
BLAKE2b-256 checksum
How to use checksums
c2f8092850ed266e926dec59df68e467fbd0ee60b6c17a9e7918cd99e366847c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.8

Release files / xmlsec-1.3.10-cp35-cp35m-win_amd64.whl

Download URL xmlsec-1.3.10-cp35-cp35m-win_amd64.whl
Size 1.9 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
17d2e66d4e3e601d210eed936b53c3eb44cddaef62f60b5c6ad5c18e948d926c
BLAKE2b-256 checksum
How to use checksums
9200d2ce83237399119640abcfdff956fe9d83917d8efc3180539d9355a28c93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.5.4

Release files / xmlsec-1.3.10-cp35-cp35m-win32.whl

Download URL xmlsec-1.3.10-cp35-cp35m-win32.whl
Size 1.6 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
bf3c62d154f2222caf56d897ddfd53fd0aef560d5a2202447d90e015301a0a10
BLAKE2b-256 checksum
How to use checksums
1cb88fe550b2ca15394ec3fc4a5996ab44b6d5a2bc1123a9db88159a3d33f42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.5.4

Release history Release notifications | RSS feed

This release

1.3.10 This release

11 release files

1.3.9

13 release files

1.3.8

11 release files

1.3.7

11 release files

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.1

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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