Skip to content

Commit b2bdb3b

Browse files
committed
Update package name and version
1 parent c308cc8 commit b2bdb3b

File tree

18 files changed

+14
-14
lines changed

18 files changed

+14
-14
lines changed

detectors/built_in/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from file_type_detectors import FileTypeDetectorRegistry
66

77
from prometheus_fastapi_instrumentator import Instrumentator
8-
from guardrails_detectors_common import ContentAnalysisHttpRequest, ContentsAnalysisResponse
9-
from guardrails_detectors_common import DetectorBaseAPI as FastAPI
8+
from guardrails_detector_common import ContentAnalysisHttpRequest, ContentsAnalysisResponse
9+
from guardrails_detector_common import DetectorBaseAPI as FastAPI
1010

1111
@asynccontextmanager
1212
async def lifespan(app: FastAPI):

detectors/built_in/base_detector_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from abc import ABC, abstractmethod
22
from typing import List
33

4-
from guardrails_detectors_common import ContentAnalysisResponse
4+
from guardrails_detector_common import ContentAnalysisResponse
55

66
class BaseDetectorRegistry(ABC):
77
def __init__(self):

detectors/built_in/file_type_detectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import List, Optional
1010

1111
from base_detector_registry import BaseDetectorRegistry
12-
from guardrails_detectors_common import ContentAnalysisResponse
12+
from guardrails_detector_common import ContentAnalysisResponse
1313

1414

1515
def is_valid_json(s: str) -> Optional[ContentAnalysisResponse]:

detectors/built_in/regex_detectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from http.client import HTTPException
33
from typing import List
44
from base_detector_registry import BaseDetectorRegistry
5-
from guardrails_detectors_common import ContentAnalysisResponse
5+
from guardrails_detector_common import ContentAnalysisResponse
66

77

88
def email_address_detector(string: str) -> List[ContentAnalysisResponse]:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
markdown==3.8.2
22
jsonschema==4.24.0
33
xmlschema==4.1.0
4-
guardrails-detectors-common>=0.1.1
4+
guardrails-detector-common>=0.1.0

detectors/common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package provides components used by all guardrails detector packages:
1313
## Installation
1414

1515
```bash
16-
pip install guardrails-detectors-common
16+
pip install guardrails-detector-common
1717
```
1818

1919
## License

detectors/common/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "guardrails-detectors-common"
3-
version = "0.1.1"
2+
name = "guardrails-detector-common"
3+
version = "0.1.0"
44
description = "Common utilities and base classes for guardrails detectors"
55
readme = "README.md"
66
requires-python = ">=3.9"
@@ -51,7 +51,7 @@ requires = ["hatchling"]
5151
build-backend = "hatchling.build"
5252

5353
[tool.hatch.build.targets.wheel]
54-
packages = ["src/guardrails_detectors_common"]
54+
packages = ["src/guardrails_detector_common"]
5555

5656
[tool.hatch.build.targets.sdist]
5757
include = [

detectors/common/src/guardrails_detectors_common/__init__.py renamed to detectors/common/src/guardrails_detector_common/__init__.py

File renamed without changes.

detectors/common/src/guardrails_detectors_common/app.py renamed to detectors/common/src/guardrails_detector_common/app.py

File renamed without changes.

detectors/common/src/guardrails_detectors_common/log_conf.yaml renamed to detectors/common/src/guardrails_detector_common/log_conf.yaml

File renamed without changes.

0 commit comments

Comments
 (0)