SSPI API bindings for Python
Reason this release was yanked:
This was used for reserving the namespace only
Project description
Python SSPI Library
This library provides Python functions that wraps the Windows SSPI API. It is designed to be a low level interface that other libraries can easily leverage to use with SSPI integeration.
Requirements
- Python 3.8+
More requires are needed to compile the code from scratch but this library is shipped as a wheel so it isn't mandatory for installation.
Installation
Simply run:
pip install sspi
To install from source run the following:
git clone https://github.com/jborean93/pysspi.git
python -m pip install build
python -m build
pip install dist/sspi-*.whl
Development
To run the tests or make changes to this repo run the following:
git clone https://github.com/jborean93/pysspi.git
pip install -r requirements-dev.txt
pre-commit install
python -m pip install -e .
# Can compile the sspi extensions on an adhoc basis
# python setup.py build_ext --inplace
From there an editor like VSCode can be used to make changes and run the test suite.
To recompile the Cython files after a change run the build_ext --inplace
command.
Structure
This library is merely a wrapper around the SSPI APIs.
The functions under the sspi
namespace expose the various SSPI functions under a more Pythonic snake_case format.
For example the AcquireCredentialsHandle function is exposed as sspi.acquire_credentials_handle
.
Errors are raised as a WinError
which contains the error message as formatted by Windows and the error code.
Some of the objects and constants are exposed as Python clasess/dataclasses/enums for ease of use.
Some functions expose buffers that contain dynamically allocated memory from SSPI if requested and need to be explicitly freed if needed.
Please read through the docstring of the function that will be used to learn more about how to use them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sspi-0.0.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b5af1cdbe43dc1ad4e2a8e6f4ed18955bf3707ccb9c896f784fa4408811d37 |
|
MD5 | 651a26863fb2c15ee8dabdbb4852471e |
|
BLAKE2b-256 | 3d26e8fd0b60d86f6a1319225bfd58d34ef065d0dca3df82e64d5da7477c3781 |
Hashes for sspi-0.0.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905938dc96c2281b3445c1e9b384d5143e9a9829f681399c361f0bb9f6852647 |
|
MD5 | 4321ff48347368229d9deddab83ab8ae |
|
BLAKE2b-256 | 5e8b9d36704e90e563b7aac724866b4f90cc41cff5801b237b9196c9bdf2d376 |
Hashes for sspi-0.0.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860fa41ceccabe51eab6b220de6c5b41ba1c0fc093e5de8923d3aef67c4095fb |
|
MD5 | dc604d355f56106bf96a35bcc1a8552c |
|
BLAKE2b-256 | e4671ba4db0a270bfa99959378aa16d45669b76b06fb743e77d5f93558c0a17b |
Hashes for sspi-0.0.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9f7309f1cf88570c7ab2acc3f50974d2f03c829b3281ef95e36cf2c299bca5 |
|
MD5 | c2d6f6a0b59704e23385cd78738138b4 |
|
BLAKE2b-256 | af4ce68e83be7eb89c3b56b99454d08a434cf27c161d05b86fcd0f5e1065cf8b |
Hashes for sspi-0.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd1b5c311edbc28ab818f104ea04ca21eb49bd5badb02eb18fbe5bc4f751b3a0 |
|
MD5 | b4478240b71ffacdd736235640481dee |
|
BLAKE2b-256 | 56e9d929b668bd420c319bcbf9cc283b3036bb6611627ef30dc941da8a7ad41a |
Hashes for sspi-0.0.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d28d4546da7d2a650619c5277ac763f05e58b943f967f4cdcedebbf5c17c7ed |
|
MD5 | 387261c0648da8ddfbda120282f4bf22 |
|
BLAKE2b-256 | 5c60fc4600bf914a6a771bd6cdfe6c6ff90b03e2f503fd93a21f9a6c6db65370 |
Hashes for sspi-0.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab32218c8a092a365b0799960f26c6fdec3d17461b8d83f055fc64ce0c958c4 |
|
MD5 | cccb6acd02abbe0fe25340d58cb81f7a |
|
BLAKE2b-256 | a0f47cc9386d8d21e8f5944146d3e93c03b49482cd407005e57e5ccbf268d26a |
Hashes for sspi-0.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a17fa3b5cfdb0462c4ba6bf4d21026d238e961acf415fc4ad8139ab676b077b |
|
MD5 | 83192d9ea828cd106234aa9ff5f1cbc0 |
|
BLAKE2b-256 | 517fd5e5767fc9efa991ecd3f7b863674068aea363bd9f0eef572f99701f46b8 |