Skip to content

Commit 2914d28

Browse files
authored
Merge pull request #5 from MehrazRumman/wip
updateds
2 parents 4af4c05 + ad5a9f6 commit 2914d28

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pip install fastapi-inspector
3737

3838
```python
3939
from fastapi import FastAPI
40-
from fastapi_observer import ObserverConfig, ObserverMiddleware
40+
from fastapi_inspector import ObserverConfig, ObserverMiddleware
4141

4242
app = FastAPI()
4343
app.add_middleware(ObserverMiddleware, config=ObserverConfig())
@@ -53,8 +53,8 @@ Every request is now logged to the console with method, path, status code, and l
5353

5454
```python
5555
from fastapi import FastAPI
56-
from fastapi_observer import ObserverConfig, ObserverMiddleware, build_dashboard_app
57-
from fastapi_observer.storage import InMemoryEventStore
56+
from fastapi_inspector import ObserverConfig, ObserverMiddleware, build_dashboard_app
57+
from fastapi_inspector.storage import InMemoryEventStore
5858

5959
app = FastAPI()
6060
store = InMemoryEventStore()
@@ -68,7 +68,7 @@ Open `http://localhost:8000/dashboard` to browse and inspect logged events.
6868
### Filter out noise
6969

7070
```python
71-
from fastapi_observer import ObserverConfig, ObserverMiddleware, only_errors, min_duration_ms
71+
from fastapi_inspector import ObserverConfig, ObserverMiddleware, only_errors, min_duration_ms
7272

7373
app.add_middleware(
7474
ObserverMiddleware,
@@ -115,7 +115,7 @@ Run tests:
115115

116116
```bash
117117
pytest -q
118-
pytest -q --cov=fastapi_observer --cov-report=term-missing # with coverage
118+
pytest -q --cov=fastapi_inspector --cov-report=term-missing # with coverage
119119
tox # full version matrix
120120
```
121121

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ dependencies = [
3131
]
3232

3333
[project.urls]
34-
Homepage = "https://github.com/MehrazRumman/fastapi-observer"
35-
Documentation = "https://mehrazrumman.github.io/fastapi-observer/"
36-
Repository = "https://github.com/MehrazRumman/fastapi-observer.git"
37-
Issues = "https://github.com/MehrazRumman/fastapi-observer/issues"
38-
Changelog = "https://github.com/MehrazRumman/fastapi-observer/blob/main/CHANGELOG.md"
34+
Homepage = "https://github.com/MehrazRumman/fastapi-inspector"
35+
Documentation = "https://mehrazrumman.github.io/fastapi-inspector/"
36+
Repository = "https://github.com/MehrazRumman/fastapi-inspector.git"
37+
Issues = "https://github.com/MehrazRumman/fastapi-inspector/issues"
38+
Changelog = "https://github.com/MehrazRumman/fastapi-inspector/blob/main/CHANGELOG.md"
3939

4040
[project.optional-dependencies]
4141
test = [
@@ -53,7 +53,7 @@ dev = [
5353
]
5454

5555
[tool.setuptools.packages.find]
56-
include = ["fastapi_observer*"]
56+
include = ["fastapi_inspector*"]
5757

5858
[tool.pytest.ini_options]
5959
addopts = "-ra"
@@ -64,7 +64,7 @@ line-length = 88
6464
target-version = ["py310"]
6565

6666
[tool.coverage.run]
67-
source = ["fastapi_observer"]
67+
source = ["fastapi_inspector"]
6868
branch = true
6969

7070
[tool.coverage.report]

0 commit comments

Comments
 (0)