Skip to main content

python-xmlsec

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://github.com/mehcode/python-xmlsec/workflows/linuxbrew/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 pkg-config 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.13

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.13
File Size Uploaded
xmlsec-1.3.13.tar.gz 64.6 kB Details

Built distributions (wheels)

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

Total release size: 21.2 MB

Release files / xmlsec-1.3.13.tar.gz

Download URL xmlsec-1.3.13.tar.gz
Size 64.6 kB
Tags Source
SHA-256 checksum
How to use checksums
916f5d78e8041f6cd9391abba659da8c94a4fef7196d126d40af1ff417f2cf86
BLAKE2b-256 checksum
How to use checksums
379f342d4562eac99178d0d515c780285e107c6828cefad37d02f05b7b7d8751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / xmlsec-1.3.13-cp310-cp310-win_amd64.whl

Download URL xmlsec-1.3.13-cp310-cp310-win_amd64.whl
Size 1.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
46d1daf16a8f4430efca5bb9c6a15776f2671f69f48a1941d6bb335e6f8cb29d
BLAKE2b-256 checksum
How to use checksums
97c1f7d68da7ff04e08f4141eaf04f605769dd7a64ac6ce411a8dfd15f714f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / xmlsec-1.3.13-cp310-cp310-win32.whl

Download URL xmlsec-1.3.13-cp310-cp310-win32.whl
Size 1.6 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
2174e8c88555383322d8b7d3927490a92ef72ad72a6ddaf4fa1b96a3f27c3e90
BLAKE2b-256 checksum
How to use checksums
198ddd240b3936db22e943db8bc118fe682a93290415f353ab221f8f0c6f9308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

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

Download URL xmlsec-1.3.13-cp39-cp39-win_amd64.whl
Size 1.9 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
5162f416179350587c4ff64737af68a846a9b86f95fd465df4e68b589ce56618
BLAKE2b-256 checksum
How to use checksums
c90610563c244775c54d6091e62102bd6869b2ba8a30ca383064f86ed7ce089e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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

Download URL xmlsec-1.3.13-cp39-cp39-win32.whl
Size 1.6 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
091f23765729df6f3b3a55c8a6a96f9c713fa86e76b86a19cdb756aaa6dc0646
BLAKE2b-256 checksum
How to use checksums
7d1ea60e9b379fe28ac32717e04640fca62f7a5da068c6b6c33f7b3fc230b2ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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

Download URL xmlsec-1.3.13-cp38-cp38-win_amd64.whl
Size 1.9 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
e6626bece0e97a8598b5df28c27bc6f2ae1e97d29dca3c1a4910a7598a4d1d0f
BLAKE2b-256 checksum
How to use checksums
0d04cebdd14b861bd3ffa9cc5f5b0b15dc3e851ce53304590c37bcf104b2bea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.0

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

Download URL xmlsec-1.3.13-cp38-cp38-win32.whl
Size 1.6 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
56cfcf3487b6ad269eb1fb543c04dee2c101f1bc91e06d6cf7bfab9ac486efd8
BLAKE2b-256 checksum
How to use checksums
1a284e76f3845e50bfbb0e97b72618d660bd1d77ea4923d433700d8ddf3d0fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.0

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

Download URL xmlsec-1.3.13-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
d249c0a2bf3ff13a231bca6a588e7d276b3f1e2cf09316b542f470a63855799e
BLAKE2b-256 checksum
How to use checksums
d8d665e1bd2cb6fdde271457c8af2d0451d350577618baa6c75f099e3ee8eae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

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

Download URL xmlsec-1.3.13-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
ff1c61f296e75cba5bac802d0000bfde09143eed946ced1a5162211867c335f8
BLAKE2b-256 checksum
How to use checksums
5af18c80455f1a0fa6c34f32a890d2425b5893dab93c65bbc816eceb9a4b64ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

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

Download URL xmlsec-1.3.13-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
1f8c41162152d7086fd459926e61bc7cb2d52ffc829e760bf8b2c221a645d568
BLAKE2b-256 checksum
How to use checksums
2dc70e36fb25209c07115034191ac82aff9f71b726d904d415be5fe89fa1dfb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

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

Download URL xmlsec-1.3.13-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
1725d70ee2bb2cd8dd66c7a7451be02bb59dc8280103db4f68e731f00135b1e0
BLAKE2b-256 checksum
How to use checksums
83bec0669dae95ec0ae55a748a8b6714948eb0e2f8b019e5e01ea78fcb7a806b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

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

Download URL xmlsec-1.3.13-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
7c7e8ef52688ddaf5b66750cc8d901f61716f46727014ff012f41d8858cedeb0
BLAKE2b-256 checksum
How to use checksums
3fe549ca397b7616659abdb5b550c393c91d86598df8371770088510182fbdc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.5.4

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

Download URL xmlsec-1.3.13-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
d47062c42775a025aa94fb8b15de97c1db86e301e549d3168157e0b1223d51b1
BLAKE2b-256 checksum
How to use checksums
5c30fafb47d92fbc1bcd238b1dd92f1a580a6ca2d1e4e7b0a06cce8ab0d0ca55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.5.4

Release history Release notifications | RSS feed

This release

1.3.13 This release

13 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