Package: gssapi
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI
C libraries.  While it focuses on the Kerberos mechanism, it should also be
useable with other GSSAPI mechanisms.Documentation can be found athttps://pythongssapi.github.io/python-gssapi/.RequirementsBasicA working implementation of GSSAPI (such as from MIT Kerberos)
which supports delegation and includes header filesa C compiler (such as GCC)Python 3.7+ (older releases support older versions, but are unsupported)thedecoratorpython packageCompiling from ScratchTo compile from scratch, you will need Cython >= 0.29.29 which is automatically
installed by pip in an isolated build virtual environment.For Running the Teststhek5testpackageTo install test dependencies using pip:$ pip install -r test-requirements.txt # Optional, for running test suiteInstallationEasy Way$ pip install gssapiFrom the Git RepoAfter being sure to install all the requirements,$ git clone https://github.com/pythongssapi/python-gssapi.git
$ pip install .TestsThe tests for for Python-GSSAPI live ingssapi.tests.  In order to
run the tests, you must have an MIT Kerberos installation (including
the KDC).  The tests create a self-contained Kerberos setup, so running
the tests will not interfere with any existing Kerberos installations.StructurePython-GSSAPI is composed of two parts: a low-level C-style API which
thinly wraps the underlying RFC 2744 methods, and a high-level, Pythonic
API (which is itself a wrapper around the low-level API).  Examples may
be found in theexamplesdirectory.Low-Level APIThe low-level API lives ingssapi.raw.  The methods contained therein
are designed to match closely with the original GSSAPI C methods.  All
relevant methods and classes may be imported directly fromgssapi.raw.
Extension methods will only be imported if they are present.  The low-level
API follows the given format:Names match the RFC 2744 specification, with thegssapi_prefix removedParameters which use C int constants as enums haveenum.IntEnumclasses defined, and thus may be passed
either the enum members or integersIn cases where a specific constant is passed in the C API to represent
a default value,Noneshould be passed insteadIn cases where non-integer constants would be used in the API (i.e.
OIDs), enum-like objects have been defined containing named references
to values specified in RFC 2744.Major and minor error codes are returned by raisinggssapi.raw.GSSError.  The major error codes have exceptions
defined in ingssapi.raw.exceptionsto make it easier to catch specific
errors or categories of errors.All other relevant output values are returned via named tuples.High-Level APIThe high-level API lives directly undergssapi.  The classes
contained in each file are designed to provide a more Pythonic, Object-Oriented
view of GSSAPI.  The exceptions from the low-level API, plus several additional
exceptions, live ingssapi.exceptions.  The rest of the classes may be
imported directly fromgssapi.  Only classes are exported bygssapi–
all functions are methods of classes in the high-level API.Please note that QoP is not supported in the high-level API, since it has been
deprecated.ExtensionsIn addition to RFC 2743/2744, Python-GSSAPI also has support for:RFC 4178 (GSS-API Negotiation Mechanism)RFC 5587 (Extended GSS Mechanism Inquiry APIs)RFC 5588 (GSS-API Extension for Storing Delegated Credentials)RFC 5801 (GSS-API SASL Extensions)(Additional) Credential Store ExtensionServices4UserCredentials import-exportRFC 6680 (GSS-API Naming Extensions)DCE and IOV MIC extensionsacquire_cred_with_passwordandadd_cred_with_passwordGGF ExtensionsKerberos specific extensionsThe Team(GitHub usernames in parentheses)Jordan Borean (@jborean93) - current maintainer and developerSimo Sorce (@simo5) - developerRobbie Harwood (@frozencemetery) - author emeritusSolly Ross (@directxman12) - author emeritusHugh Cole-Baker (@sigmaris) - author emeritusGet InvolvedWe welcome new contributions in the form of Issues and Pull Requests on
Github.  If you would like to join our discussions, you can find us onlibera.chatIRC, channel#python-gssapi.