Cert-hero

Latest version: v0.4.0

Safety actively analyzes 623909 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.0

------------------

**Features and Improvements**

* Previously, the *user agent* for making an HTTP request to retrieve the ``Location`` and ``Status``
was in the format of ``python-requests/{version}``. Now the process (in order) is as follows:

* use a custom ``user_agent``, if passed in
* use a random *user agent*, if the ``fake-useragent`` module is installed (e.g. via the ``fake-ua`` extra)
* use the default *user agent*, ``python-requests/{version}``

* Add an optional extra ``fake-ua`` that pulls in `fake-useragent`_ module.

.. _fake-useragent: https://pypi.org/project/fake-useragent

0.3.0

------------------

**Features and Improvements**

* Revise :func:`set_expired` to work in the case where a response from
:func:`cert_please` or :func:`certs_please` was serialized - e.g. via :func:`json.dumps` -
and then de-serialized - e.g. via :func:`json.loads`.
* Add :meth:`CertHero.from_dict` to create a :class:`CertHero` from a ``dict`` object
(unused for now).
* Add integration tests to confirm the intended (correct) functionality.
* Add a chart diagram for unzipped vs. zipped size comparisons between ``pyOpenSSL`` and ``asn1crypto``.

0.2.0

------------------

**Features and Improvements**

* Add exported function :func:`certs_please` to concurrently retrieve SSL certificate(s) for a list
of hostnames.
* Rename :class:`CertDict` to :class:`CertHero`.
* Add field ``Cert Status`` (default value: *SUCCESS*) to :class:`CertHero` response.
* :meth:`CertHero.__str__()` just calls :func:`json.dumps` internally, and
no longer returns a *prettified* JSON string.
* Update docs

0.1.0

------------------

* First release on PyPI.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.