diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4102250..d0de4bc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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: diff --git a/doc_gen/index.rst b/doc_gen/index.rst index eae7180..468772f 100644 --- a/doc_gen/index.rst +++ b/doc_gen/index.rst @@ -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 @@ -35,13 +49,6 @@ Config :members: :exclude-members: _abc_impl, model_config, model_fields -Filters -======= - -.. automodule:: pystream.models.filters - :members: - :undoc-members: - Ngrok ===== diff --git a/docs/_sources/index.rst.txt b/docs/_sources/index.rst.txt index eae7180..468772f 100644 --- a/docs/_sources/index.rst.txt +++ b/docs/_sources/index.rst.txt @@ -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 @@ -35,13 +49,6 @@ Config :members: :exclude-members: _abc_impl, model_config, model_fields -Filters -======= - -.. automodule:: pystream.models.filters - :members: - :undoc-members: - Ngrok ===== diff --git a/docs/genindex.html b/docs/genindex.html index 0e4c863..5cae456 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -45,6 +45,7 @@
+ |
Mmodule |
@@ -192,6 +203,13 @@
V |
Class to initiate /
filter in logs while preserving other access logs.
>>> RootFilter
+
See also
+Filters "GET /login HTTP/1.1" 200 OK
, "GET / HTTP/1.1" 307 Temporary Redirect
, /video?vid_name=...
Includes redundant logging for each iterable passed in StreamingResponse
Overrides logging by implementing a subclass of logging.Filter
The method filter(record)
, that examines the log record and returns True to log it or False to discard it.
Initialize a filter.
+Initialize with the name of the logger which, together with its +children, will have its events allowed through the filter. If no +name is specified, allow every event.
+Filter out logging at /
from log streams.
record – LogRecord
represents an event which is created every time something is logged.
False flag for the endpoint that needs to be filtered.
+bool
+Uses simple check on network id to retrieve the local IP address.
+Private IP address of host machine.
+IPv4Address
+Extract public IP address of the connection by making a request to external source.
+Public IP address of host machine’s connection.
+IPv4Address
+Configure all env vars and validate using pydantic
to share across modules.
>>> EnvConfig
alias of EnvConfig
Class to initiate /video
filter in logs while preserving other access logs.
>>> VideoFilter
-
See also
-Overrides logging by implementing a subclass of logging.Filter
The method filter(record)
, that examines the log record and returns True to log it or False to discard it.
Initialize a filter.
-Initialize with the name of the logger which, together with its -children, will have its events allowed through the filter. If no -name is specified, allow every event.
-Filter out logging at /video
from log streams.
record – LogRecord
represents an event which is created every time something is logged.
False flag for the endpoint that needs to be filtered.
-bool
-Class to initiate /
filter in logs while preserving other access logs.
>>> RootFilter
-
See also
-Overrides logging by implementing a subclass of logging.Filter
The method filter(record)
, that examines the log record and returns True to log it or False to discard it.
Initialize a filter.
-Initialize with the name of the logger which, together with its -children, will have its events allowed through the filter. If no -name is specified, allow every event.
-Filter out logging at /
from log streams.
record – LogRecord
represents an event which is created every time something is logged.
False flag for the endpoint that needs to be filtered.
-bool
-pystream.main
pystream.logger
pystream.models.authenticator
pystream.main
pystream.models.config
pystream.models.authenticator
pystream.models.filters
pystream.models.config
pystream.routers.video
pystream.utils