Metadata-Version: 2.4
Name: self-certifi
Version: 2.0.0
Summary: Create a CA-bundle based on certifi and self-signed certificates, for usage with requests.
Author-email: Maykin Media <support@maykinmedia.nl>
License-Expression: MIT
Project-URL: Homepage, https://github.com/maykinmedia/self-certifi
Project-URL: Bug Tracker, https://github.com/maykinmedia/self-certifi/issues
Project-URL: Source Code, https://github.com/maykinmedia/self-certifi
Keywords: requests,certifi,self-signed,certificates
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: certifi
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Requires-Dist: tox; extra == "tests"
Requires-Dist: ruff; extra == "tests"
Provides-Extra: release
Requires-Dist: bump-my-version; extra == "release"
Dynamic: license-file

Self-certifi
============

|build-status| |coverage| |linting| |ruff| |python-versions| |pypi-version|

Create a CA-bundle based on certifi_ and self-signed certificates, for usage with requests_.

.. contents::

.. section-numbering::

Features
========

* Keep original ``certifi`` CA-bundle
* Add your own custom/self-signed (root) certificates
* Configuration via environment variable

Installation
============

Install
-------

.. code-block:: bash

    uv pip install self-certifi


Usage
=====

.. code-block:: python

    from self_certifi import load_self_signed_certs

    load_self_signed_certs("/path/to/installation/directory")

.. _certifi: https://pypi.org/project/certifi/
.. _requests: https://pypi.org/project/requests/

.. |build-status| image:: https://github.com/maykinmedia/self-certifi/workflows/Run%20CI/badge.svg
    :target: https://github.com/maykinmedia/self-certifi/actions?query=workflow%3A%22Run+CI%22
    :alt: Run CI

.. |linting| image:: https://github.com/maykinmedia/self-certifi/workflows/Code%20quality%20checks/badge.svg
    :target: https://github.com/maykinmedia/self-certifi/actions?query=workflow%3A%22Code+quality+checks%22
    :alt: Code linting

.. |coverage| image:: https://codecov.io/gh/maykinmedia/self-certifi/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/maykinmedia/self-certifi
    :alt: Coverage status

.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. |python-versions| image:: https://img.shields.io/pypi/pyversions/self-certifi.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/self-certifi.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/self-certifi.svg
    :target: https://pypi.org/project/self-certifi/
