Skip to content

Commit

Permalink
Set password as SecretStr
Browse files Browse the repository at this point in the history
Remove redundant logging filters
Hide inputs in pydantic's validation errors
  • Loading branch information
dormant-user committed Dec 4, 2023
1 parent 855f1f5 commit eb2152e
Show file tree
Hide file tree
Showing 13 changed files with 203 additions and 184 deletions.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
fail_fast: true
exclude: ^docs
repos:
- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings
- flake8-sfs
# SFS101: String literal formatting using percent operator.
# SFS201: String literal formatting using .format method.
# SFS301: String literal formatting using f-string.
args: [--max-line-length=120, --extend-ignore=SFS3 D107 D100 D104 D401 D412 SFS101 SFS201]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -39,6 +27,18 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings
- flake8-sfs
# SFS101: String literal formatting using percent operator.
# SFS201: String literal formatting using .format method.
# SFS301: String literal formatting using f-string.
args: [--max-line-length=120, --extend-ignore=SFS3 D107 D100 D104 D401 D412 SFS101 SFS201]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
Expand Down
21 changes: 14 additions & 7 deletions doc_gen/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ Main Module
:members:
:undoc-members:

Logger
======

.. automodule:: pystream.logger
:members:
:undoc-members:

Utils
=====

.. automodule:: pystream.utils
:members:
:undoc-members:

Models
======
Authenticator
Expand All @@ -35,13 +49,6 @@ Config
:members:
:exclude-members: _abc_impl, model_config, model_fields

Filters
=======

.. automodule:: pystream.models.filters
:members:
:undoc-members:

Ngrok
=====

Expand Down
21 changes: 14 additions & 7 deletions docs/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ Main Module
:members:
:undoc-members:

Logger
======

.. automodule:: pystream.logger
:members:
:undoc-members:

Utils
=====

.. automodule:: pystream.utils
:members:
:undoc-members:

Models
======
Authenticator
Expand All @@ -35,13 +49,6 @@ Config
:members:
:exclude-members: _abc_impl, model_config, model_fields

Filters
=======

.. automodule:: pystream.models.filters
:members:
:undoc-members:

Ngrok
=====

Expand Down
50 changes: 33 additions & 17 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h1 id="index">Index</h1>
| <a href="#E"><strong>E</strong></a>
| <a href="#F"><strong>F</strong></a>
| <a href="#G"><strong>G</strong></a>
| <a href="#H"><strong>H</strong></a>
| <a href="#I"><strong>I</strong></a>
| <a href="#L"><strong>L</strong></a>
| <a href="#M"><strong>M</strong></a>
Expand Down Expand Up @@ -92,12 +93,8 @@ <h2 id="F">F</h2>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.filters.RootFilter.filter">filter() (pystream.models.filters.RootFilter method)</a>

<ul>
<li><a href="index.html#pystream.models.filters.VideoFilter.filter">(pystream.models.filters.VideoFilter method)</a>
<li><a href="index.html#pystream.logger.RootFilter.filter">filter() (pystream.logger.RootFilter method)</a>
</li>
</ul></li>
</ul></td>
</tr></table>

Expand All @@ -107,9 +104,13 @@ <h2 id="G">G</h2>
<li><a href="index.html#pystream.models.squire.get_dir_content">get_dir_content() (in module pystream.models.squire)</a>
</li>
<li><a href="index.html#pystream.routers.basics.get_favicon">get_favicon() (in module pystream.routers.basics)</a>
</li>
<li><a href="index.html#pystream.utils.get_local_ip">get_local_ip() (in module pystream.utils)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.utils.get_public_ip">get_public_ip() (in module pystream.utils)</a>
</li>
<li><a href="index.html#pystream.models.stream.get_range_header">get_range_header() (in module pystream.models.stream)</a>
</li>
<li><a href="index.html#pystream.models.squire.get_stream_content">get_stream_content() (in module pystream.models.squire)</a>
Expand All @@ -119,6 +120,14 @@ <h2 id="G">G</h2>
</ul></td>
</tr></table>

<h2 id="H">H</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.config.EnvConfig.Config.hide_input_in_errors">hide_input_in_errors (pystream.models.config.EnvConfig.Config attribute)</a>
</li>
</ul></td>
</tr></table>

<h2 id="I">I</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down Expand Up @@ -154,13 +163,13 @@ <h2 id="M">M</h2>
module

<ul>
<li><a href="index.html#module-pystream.logger">pystream.logger</a>
</li>
<li><a href="index.html#module-pystream.main">pystream.main</a>
</li>
<li><a href="index.html#module-pystream.models.authenticator">pystream.models.authenticator</a>
</li>
<li><a href="index.html#module-pystream.models.config">pystream.models.config</a>
</li>
<li><a href="index.html#module-pystream.models.filters">pystream.models.filters</a>
</li>
<li><a href="index.html#module-pystream.models.ngrok">pystream.models.ngrok</a>
</li>
Expand All @@ -173,6 +182,8 @@ <h2 id="M">M</h2>
<li><a href="index.html#module-pystream.routers.basics">pystream.routers.basics</a>
</li>
<li><a href="index.html#module-pystream.routers.video">pystream.routers.video</a>
</li>
<li><a href="index.html#module-pystream.utils">pystream.utils</a>
</li>
</ul></li>
</ul></td>
Expand All @@ -192,6 +203,13 @@ <h2 id="P">P</h2>
<li><a href="index.html#pystream.models.config.EnvConfig.password">password (pystream.models.config.EnvConfig attribute)</a>
</li>
<li>
pystream.logger

<ul>
<li><a href="index.html#module-pystream.logger">module</a>
</li>
</ul></li>
<li>
pystream.main

<ul>
Expand All @@ -210,13 +228,6 @@ <h2 id="P">P</h2>

<ul>
<li><a href="index.html#module-pystream.models.config">module</a>
</li>
</ul></li>
<li>
pystream.models.filters

<ul>
<li><a href="index.html#module-pystream.models.filters">module</a>
</li>
</ul></li>
<li>
Expand Down Expand Up @@ -261,6 +272,13 @@ <h2 id="P">P</h2>

<ul>
<li><a href="index.html#module-pystream.routers.video">module</a>
</li>
</ul></li>
<li>
pystream.utils

<ul>
<li><a href="index.html#module-pystream.utils">module</a>
</li>
</ul></li>
</ul></td>
Expand All @@ -275,7 +293,7 @@ <h2 id="R">R</h2>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.filters.RootFilter">RootFilter (class in pystream.models.filters)</a>
<li><a href="index.html#pystream.logger.RootFilter">RootFilter (class in pystream.logger)</a>
</li>
<li><a href="index.html#pystream.models.ngrok.run_tunnel">run_tunnel() (in module pystream.models.ngrok)</a>
</li>
Expand Down Expand Up @@ -326,8 +344,6 @@ <h2 id="V">V</h2>
<li><a href="index.html#pystream.models.config.EnvConfig.video_port">video_port (pystream.models.config.EnvConfig attribute)</a>
</li>
<li><a href="index.html#pystream.models.config.EnvConfig.video_source">video_source (pystream.models.config.EnvConfig attribute)</a>
</li>
<li><a href="index.html#pystream.models.filters.VideoFilter">VideoFilter (class in pystream.models.filters)</a>
</li>
</ul></td>
</tr></table>
Expand Down
Loading

0 comments on commit eb2152e

Please sign in to comment.