Skip to content

Commit e48afc1

Browse files
authored
Merge pull request #57 from LeanderCS/optimize
Optimize InputFilter
2 parents 048c588 + 6520402 commit e48afc1

File tree

86 files changed

+1171
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1171
-1008
lines changed

docker-compose.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
services:
22

3-
flask-inputfilter:
3+
env:
4+
build:
5+
context: .
6+
dockerfile: env_configs/env.Dockerfile
7+
container_name: flask-inputfilter-env
8+
volumes:
9+
- .:/app
10+
stdin_open: true
11+
tty: true
12+
13+
cython:
414
build:
515
context: .
616
dockerfile: env_configs/cython.Dockerfile
7-
container_name: flask-inputfilter
17+
container_name: flask-inputfilter-cython
18+
volumes:
19+
- .:/app
20+
stdin_open: true
21+
tty: true
22+
23+
pure:
24+
build:
25+
context: .
26+
dockerfile: env_configs/pure.Dockerfile
27+
container_name: flask-inputfilter-pure
828
volumes:
929
- .:/app
1030
ports:

docs/source/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ Changelog
33

44
All notable changes to this project will be documented in this file.
55

6+
[0.5.5] - 2025-06-30
7+
--------------------
8+
9+
Changed
10+
^^^^^^^
11+
- Updated ``InputFilter`` to increase performance.
12+
- Updated ``IsDataclassValidator`` to be more readable and maintainable.
13+
14+
615
[0.5.4] - 2025-05-24
716
--------------------
817

docs/source/guides/create_own_components.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Condition
1818
First off with conditions.
1919

2020
Their validation method is called ``check``.
21-
It expects a dict from the type ``Dict[str, Any]`` whereas the key (``str``) of the
21+
It expects a dict from the type ``dict[str, Any]`` whereas the key (``str``) of the
2222
dictionary represents the name of a field and the value (``Any``) the corresponding value.
2323
The dict represents the entirety of all fields present in the InputFilter it is called.
2424

docs/source/options/external_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Fields of `ExternalApiConfig`
3636
- ``str``
3737
- The HTTP method to use (e.g., ``GET``, ``POST``).
3838
* - ``params``
39-
- ``Optional[Dict[str, str]]``
39+
- ``Optional[dict[str, str]]``
4040
- Query parameters for the API, with placeholders allowed.
4141
* - ``data_key``
4242
- ``Optional[str]``

env_configs/cython.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY pyproject.toml /app
1010

1111
RUN python -m pip install .[dev]
1212

13-
COPY .. /app
14-
1513
COPY scripts /usr/local/bin
1614
RUN find /usr/local/bin -type f -name "*" -exec chmod +x {} \;
15+
16+
COPY .. /app

env_configs/pure.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY pyproject.toml /app
1010

1111
RUN python -m pip install .[dev]
1212

13-
COPY .. /app
14-
1513
COPY scripts /usr/local/bin
1614
RUN find /usr/local/bin -type f -name "*" -exec chmod +x {} \;
15+
16+
COPY .. /app

0 commit comments

Comments
 (0)