Skip to content

Commit

Permalink
docs: update docstrings for ssl context
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Nov 17, 2023
1 parent c609b5f commit 834af48
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions doc/source/api_reference/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ General Methods

.. autofunction:: pyTMD.utilities.from_ftp

.. autofunction:: pyTMD.utilities._create_default_ssl_context

.. autofunction:: pyTMD.utilities._create_ssl_context_no_verify

.. autofunction:: pyTMD.utilities._set_ssl_context_options

.. autofunction:: pyTMD.utilities.check_connection

.. autofunction:: pyTMD.utilities.http_list

.. autofunction:: pyTMD.utilities.from_http
Expand Down
14 changes: 7 additions & 7 deletions pyTMD/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def check_connection(
----------
HOST: str
remote http host
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
"""
# attempt to connect to http host
Expand Down Expand Up @@ -681,7 +681,7 @@ def http_list(
remote http host path
timeout: int or NoneType, default None
timeout in seconds for blocking operations
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
parser: obj, default lxml.etree.HTMLParser()
HTML parser for ``lxml``
Expand Down Expand Up @@ -757,7 +757,7 @@ def from_http(
remote http host path split as list
timeout: int or NoneType, default None
timeout in seconds for blocking operations
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
local: str, pathlib.Path or NoneType, default None
path to local file
Expand Down Expand Up @@ -835,7 +835,7 @@ def attempt_login(
----------
urs: str
Earthdata login URS 3 host
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
password_manager: bool, default True
Create password manager context using default realm
Expand Down Expand Up @@ -922,7 +922,7 @@ def build_opener(
NASA Earthdata username
password: str or NoneType, default None
NASA Earthdata password
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
password_manager: bool, default True
Create password manager context using default realm
Expand Down Expand Up @@ -1362,7 +1362,7 @@ def iers_list(
remote http host path
timeout: int or NoneType, default None
timeout in seconds for blocking operations
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
parser: obj, default lxml.etree.HTMLParser()
HTML parser for ``lxml``
Expand Down Expand Up @@ -1422,7 +1422,7 @@ def from_jpl_ssd(
JPL kernel file to download
timeout: int or NoneType, default None
timeout in seconds for blocking operations
context: obj, default ssl.SSLContext(ssl.PROTOCOL_TLS)
context: obj, default pyTMD.utilities._default_ssl_context
SSL context for ``urllib`` opener object
hash: str, default ''
MD5 hash of local file
Expand Down

0 comments on commit 834af48

Please sign in to comment.