Skip to content

Commit

Permalink
🗑️ Deprecate MemoryIO class and associated tests (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 authored Dec 25, 2024
2 parents 4ada740 + 2a17209 commit d415577
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 264 deletions.
2 changes: 0 additions & 2 deletions authx/_internal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
log_info,
set_log_level,
)
from authx._internal._memory import MemoryIO
from authx._internal._signature import SignatureSerializer
from authx._internal._utils import (
RESERVED_CLAIMS,
Expand Down Expand Up @@ -36,6 +35,5 @@
"utc",
"end_of_day",
"end_of_week",
"MemoryIO",
"SignatureSerializer",
)
56 changes: 0 additions & 56 deletions authx/_internal/_memory.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/api/extra/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You need to install dependencies to use The HTTP Cache.

```console
$ pip install authx_extra[redis]
$ pip install authx_extra
```

::: authx_extra.cache.HTTPCacheBackend
2 changes: 1 addition & 1 deletion docs/api/extra/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You need to install dependencies to use The Prometheus Metrics Middleware.

```console
$ pip install authx_extra[prometheus]
$ pip install authx_extra
```

::: authx_extra.metrics.MetricsMiddleware
7 changes: 7 additions & 0 deletions docs/api/extra/oauth2.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# MiddlewareOauth2

!!! warning
You need to install dependencies to use The Oauth2 Middleware.

```console
$ pip install authx_extra
```

::: authx_extra.oauth2.MiddlewareOauth2
2 changes: 1 addition & 1 deletion docs/api/extra/profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You need to install dependencies to use The Profiler.

```console
$ pip install authx_extra[profiler]
$ pip install authx_extra
```

::: authx_extra.profiler.ProfilerMiddleware
7 changes: 7 additions & 0 deletions docs/api/extra/session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SessionIntegration

!!! warning
You need to install dependencies to use The Session Integration.

```console
$ pip install authx_extra
```

::: authx_extra.session.SessionIntegration
10 changes: 10 additions & 0 deletions docs/api/internal/extra/memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# MemoryIO

!!! warning
You need to install dependencies to use The Memory Cache.

```console
$ pip install authx_extra
```

::: authx_extra.extra._memory.MemoryIO
3 changes: 0 additions & 3 deletions docs/api/internal/memory.md

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ nav:
- Internal:
- api/internal/callback.md
- api/internal/errors.md
- api/internal/memory.md
- api/internal/signature.md
- api/internal/extra/memory.md
- Extra:
- api/extra/session.md
- api/extra/profiler.md
Expand Down
110 changes: 0 additions & 110 deletions tests/internal/test_memory.py

This file was deleted.

89 changes: 0 additions & 89 deletions tests/internal/test_signature.py

This file was deleted.

0 comments on commit d415577

Please sign in to comment.