$npx skillfedfor your agent

PyKCS11

A Full PKCS#11 wrapper for Python

With conditionsPyPI Python ModulesReleased Aug 2025330.4K downloads / moGPLPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — PyKCS11-1.5.18-cp310-cp310-win32.whl · PyKCS11-1.5.18-cp310-cp310-win_amd64.whl · PyKCS11-1.5.18-cp311-cp311-win32.whl
v1.5.18 · released 2025-08-03

Yes, if you need to work with PKCS#11 hardware tokens or smart cards in Python and can accept the GPL copyleft license. The package is stable, actively maintained, and widely used in security and PKI contexts. No, if your application is proprietary and cannot adopt GPL, or if you have no requirement to interact with hardware cryptographic devices.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a PKCS#11 module (typically a .so, .dll, or .dylib file) provided by your hardware security module or smart card vendor to be installed and accessible on the system.
  • Medium install friction: platform-specific wheels are provided for Windows and macOS, but the package requires compilation from source on other platforms.
  • The project is actively maintained with recent commits and has been stable since its 2006 initial release.

License · maintenance · safety

GPL (copyleft) — Licensed under GPL (copyleft), which means any code linking PyKCS11 must also be distributed under GPL or a compatible license. This is a significant constraint for proprietary or closed-source applications.

last release 2025-08-03 (376 days) · last repo commit 2026-08-03 · 118 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 330,430 downloads/mo, #7,537 on PyPI

Verify before relying

pip install pykcs11

import PyKCS11
lib = PyKCS11.PyKCS11Lib()
lib.load('path/to/pkcs11/module')
slots = lib.getSlotList()
  • Whether the package supports modern Python versions beyond 3.13 or has a documented minimum Python version requirement.
  • Whether pre-built wheels are available for Linux platforms or if compilation is always required on Linux systems.
  • Performance characteristics and throughput limits when working with high-volume cryptographic operations.
Same gist for agents: .md · .json

What it is and what it does

PyKCS11 is a Python binding to the PKCS#11 cryptographic standard, which defines how applications communicate with hardware security modules, smart cards, and other cryptographic tokens. It translates Python calls into the low-level C interface that these devices expose, allowing developers to perform cryptographic operations—signing, verification, key generation, encryption—without reimplementing the underlying protocols.

The package is primarily used in enterprise and security-sensitive environments where cryptographic keys must be stored on dedicated hardware rather than in software. It has no runtime dependencies beyond the PKCS#11 module itself (provided by the hardware vendor), making it lightweight once installed. The GPL license means it is best suited for open-source projects or internal tools; proprietary applications would need to either use a compatible license or seek an alternative.

Use it for

  • Sign documents or certificates using keys stored on a hardware security module or smart card.
  • Verify digital signatures from tokens without exposing private keys to the application.
  • Integrate PKI workflows into Python applications that require compliance with key storage standards.
  • Access and manage cryptographic material on enterprise-grade HSMs from Python code.
  • Build authentication systems that rely on smart card or token-based credentials.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to work with PKCS#11 hardware tokens or smart cards in Python and can accept the GPL copyleft license.

The package is stable, actively maintained, and widely used in security and PKI contexts. No, if your application is proprietary and cannot adopt GPL, or if you have no requirement to interact with hardware cryptographic devices.

Install

pykcs11 on PyPI

Before you install

Medium install friction: platform-specific wheels are provided for Windows and macOS, but the package requires compilation from source on other platforms. The project is actively maintained with recent commits and has been stable since its 2006 initial release.

Requires a PKCS#11 module (typically a .so, .dll, or .dylib file) provided by your hardware security module or smart card vendor to be installed and accessible on the system.

License in practice

Licensed under GPL (copyleft), which means any code linking PyKCS11 must also be distributed under GPL or a compatible license. This is a significant constraint for proprietary or closed-source applications.

Quickstart

pip install pykcs11

import PyKCS11
lib = PyKCS11.PyKCS11Lib()
lib.load('path/to/pkcs11/module')
slots = lib.getSlotList()

Verify before relying

  • Whether the package supports modern Python versions beyond 3.13 or has a documented minimum Python version requirement.
  • Whether pre-built wheels are available for Linux platforms or if compilation is always required on Linux systems.
  • Performance characteristics and throughput limits when working with high-volume cryptographic operations.

Package facts

LicenseGPL copyleft
Python supportNot specified
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 376 days since the last release
Last repo commit
First released
Downloads330,430 / month, #7,537 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License (GPL)Natural Language :: EnglishOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: UnixProgramming Language :: CProgramming Language :: C++Programming Language :: PythonTopic :: Security :: CryptographyTopic :: Software Development :: Libraries :: Python Modules

Evidence: PyKCS11-1.5.18-cp310-cp310-win32.whl; PyKCS11-1.5.18-cp310-cp310-win_amd64.whl; PyKCS11-1.5.18-cp311-cp311-win32.whl; PyKCS11-1.5.18-cp311-cp311-win_amd64.whl; pykcs11-1.5.18-cp312-cp312-win32.whl; pykcs11-1.5.18-cp312-cp312-win_amd64.whl; pykcs11-1.5.18-cp313-cp313-macosx_15_0_x86_64.whl; pykcs11-1.5.18-cp313-cp313-win32.whl; pykcs11-1.5.18-cp313-cp313-win_amd64.whl; PyKCS11-1.5.18-cp37-cp37m-win32.whl; PyKCS11-1.5.18-cp37-cp37m-win_amd64.whl; PyKCS11-1.5.18-cp38-cp38-win32.whl; PyKCS11-1.5.18-cp38-cp38-win_amd64.whl; PyKCS11-1.5.18-cp39-cp39-win32.whl; PyKCS11-1.5.18-cp39-cp39-win_amd64.whl

Tags

Capabilities
pkcs11 python wrapperhardware security module interfacesmart card cryptographypkcs11 bindingcryptographic token accesspki python libraryhsm integration python
Topics
hardware-securitypkicryptography
PyPI keywords
cryptopkipkcs11c++

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pkcs11 python wrapper”

  • PyKCS11PyKCS11 provides a Python wrapper around the PKCS#11 cryptographic…
  • pyHankopyHanko is a Python library for adding, validating, and managing…
  • dbs3-pycurlProvides a Python client wrapper around pycurl for making HTTP…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pyscard · python-pkcs11 · pyobjc-framework-CryptoTokenKit · pyHanko · M2Crypto · securesystemslib · hsms · pycryptodomex · python-jose