Skip to main content

An object-oriented interface to GSSAPI for Python

Project description

Python-GSSAPI is a Python binding to the Generic Security Service Application Program Interface (GSSAPI). The GSSAPI provides a uniform interface to security services which applications can use without having to worry about implementation details of the underlying mechanisms. The most commonly used mechanism is Kerberos v5, and this library provides an easy way to use Kerberos authentication and security from Python code.

The GSSAPI version 2 is specified in RFC 2743 and the C language bindings which this package is based on are specified in RFC 2744.


The goals for this library are to provide a GSSAPI wrapper which is:

  • Pythonic and object-oriented.

  • Compatible with Python 2 and 3 on both CPython and PyPy.

  • Covering the full range of features in the GSSAPI.

This package is implemented using CFFI for compatibility with PyPy, and is also compatible and tested with Python 3.

This package also covers the full scope of the GSSAPI’s features including delegating credentials, selection of different mechanisms, different name types, MICs, channel bindings and anonymous authentication.

In contrast with some other Kerberos or GSSAPI packages, which require the user to do manual memory management and permit memory leaks, memory associated with objects in this package is freed automatically when the objects are garbage-collected by Python.


Documentation is available at

Source code and Issue Tracking

Source code is hosted on Github and issues with the package can be filed on the Github project.

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

python-gssapi-0.6.1.tar.gz (26.2 kB view hashes)

Uploaded source

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