Update project structure and naming conventions
- Changed project name format from hyphen to underscore. - Updated package finding configuration in setup tools. - Renamed several files and adjusted imports accordingly. - Removed an empty helper file that was no longer needed. - Added a new `__init__.py` for better module organisation.
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "data-shield"
|
name = "data_shield"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -12,8 +12,8 @@ dependencies = [
|
|||||||
"specklepy>=2.21.3",
|
"specklepy>=2.21.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools.packages.find]
|
||||||
packages = ["src"]
|
where = ["src"]
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
select = [
|
select = [
|
||||||
|
|||||||
+5
-5
@@ -42,7 +42,7 @@ iniconfig==2.1.0
|
|||||||
multidict==6.2.0
|
multidict==6.2.0
|
||||||
# via yarl
|
# via yarl
|
||||||
mypy==1.15.0
|
mypy==1.15.0
|
||||||
# via speckle-automate-data-shield (pyproject.toml)
|
# via speckle-automate-data_shield (pyproject.toml)
|
||||||
mypy-extensions==1.0.0
|
mypy-extensions==1.0.0
|
||||||
# via mypy
|
# via mypy
|
||||||
packaging==24.2
|
packaging==24.2
|
||||||
@@ -58,9 +58,9 @@ pydantic==2.10.6
|
|||||||
pydantic-core==2.27.2
|
pydantic-core==2.27.2
|
||||||
# via pydantic
|
# via pydantic
|
||||||
pydantic-settings==2.8.1
|
pydantic-settings==2.8.1
|
||||||
# via speckle-automate-data-shield (pyproject.toml)
|
# via speckle-automate-data_shield (pyproject.toml)
|
||||||
pytest==8.3.5
|
pytest==8.3.5
|
||||||
# via speckle-automate-data-shield (pyproject.toml)
|
# via speckle-automate-data_shield (pyproject.toml)
|
||||||
python-dotenv==1.0.1
|
python-dotenv==1.0.1
|
||||||
# via pydantic-settings
|
# via pydantic-settings
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
@@ -70,13 +70,13 @@ requests==2.32.3
|
|||||||
requests-toolbelt==1.0.0
|
requests-toolbelt==1.0.0
|
||||||
# via gql
|
# via gql
|
||||||
ruff==0.11.2
|
ruff==0.11.2
|
||||||
# via speckle-automate-data-shield (pyproject.toml)
|
# via speckle-automate-data_shield (pyproject.toml)
|
||||||
sniffio==1.3.1
|
sniffio==1.3.1
|
||||||
# via
|
# via
|
||||||
# anyio
|
# anyio
|
||||||
# httpx
|
# httpx
|
||||||
specklepy==2.21.3
|
specklepy==2.21.3
|
||||||
# via speckle-automate-data-shield (pyproject.toml)
|
# via speckle-automate-data_shield (pyproject.toml)
|
||||||
stringcase==1.2.0
|
stringcase==1.2.0
|
||||||
# via specklepy
|
# via specklepy
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# You can expose frequently used imports for convenience
|
||||||
|
from .actions import PrefixRemovalAction
|
||||||
|
from .function import automate_function
|
||||||
|
from .inputs import FunctionInputs, SanitizationMode
|
||||||
|
from .rules import ParameterRules
|
||||||
|
from .traversal import get_data_traversal_rules
|
||||||
|
|
||||||
|
__all__ = ["PrefixRemovalAction", "automate_function", "FunctionInputs", "SanitizationMode", "ParameterRules",
|
||||||
|
"get_data_traversal_rules"]
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from typing import Dict, List, Optional
|
from typing import Dict, List, Optional
|
||||||
|
|
||||||
from speckle_automate import AutomationContext
|
from speckle_automate import AutomationContext
|
||||||
from specklepy.objects import Base
|
from specklepy.objects import Base
|
||||||
|
|
||||||
from src.rules import ParameterRules
|
from data_shield import ParameterRules
|
||||||
|
|
||||||
|
|
||||||
# Our main goal is to define actions that can be taken on parameters.
|
# Our main goal is to define actions that can be taken on parameters.
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
from speckle_automate import AutomationContext
|
from speckle_automate import AutomationContext
|
||||||
from specklepy.objects import Base
|
from specklepy.objects import Base
|
||||||
from src.actions import PrefixRemovalAction
|
|
||||||
from src.inputs import FunctionInputs, SanitizationMode
|
from data_shield import FunctionInputs, SanitizationMode, PrefixRemovalAction, get_data_traversal_rules
|
||||||
from traversal import get_data_traversal_rules
|
|
||||||
|
|
||||||
|
|
||||||
class ParameterProcessor:
|
class ParameterProcessor:
|
||||||
Reference in New Issue
Block a user