security
Security toolkit for the Python community
This library includes a number of code security controls for various application security vulnerability categories. It can be used directly by programmers, but you may have been introduced to it by having it directly added to your code by automation.
Many of the APIs provided are meant to be drop-in replacements that either offer more secure defaults, harden against common attacks, or at least surface the security questions developers should answer when using risky APIs.
Installation
To install this package from PyPI, use the following command:
pip install security
Running tests
DO NOT RUN TESTS LOCALLY WITHOUT A VM/CONTAINER.
Tests will try to run "dangerous" commands (i.e. curl, netcat, etc.) and try to access sensitive files (i.e. sudoers, passwd, etc.). We do so to test the our abilities to detect and filter these types of attacks.
While all these commands are devised as innocuous, it is still not a good idea to risk exposure. They also require a specific environment to pass. We recommend using something like act to run the github workflow locally within a container for local development.
Metadata
Release files for security 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| security-1.3.1.tar.gz | 27.9 kB | Without provenance | Details for security-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| security-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for security-1.3.1-py3-none-any.whl |
Total release size: 41.3 kB
Release files / security-1.3.1.tar.gz
| Download URL | security-1.3.1.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ec0853c74c7dd22a9967bda087db5d4a7df58253574e60ec475c660f839da6d
|
|
BLAKE2b-256 checksum How to use checksums |
faac5ee0cd528ee9e5f166b44bc98a3c219fb93418ed48a88eb36a868c596239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / security-1.3.1-py3-none-any.whl
| Download URL | security-1.3.1-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9df6e75393f494ca3fd06dac3ed02f3c4fed60842b13fd00757b026cedff426b
|
|
BLAKE2b-256 checksum How to use checksums |
d721b65c9f876fce298d6bd5411f1cde7fc889ea90d7bb7d9eaa1fcbb0920b18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for security 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.