Skip to content

Commit eef005b

Browse files
authored
update(Internals): Rename io directory to project_io (#74)
1 parent 0b952db commit eef005b

23 files changed

Lines changed: 8 additions & 10 deletions

fastapi_forge/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import click
55

66
from fastapi_forge.frontend.main import init
7-
from fastapi_forge.io import (
7+
from fastapi_forge.project_io import (
88
YamlProjectLoader,
99
create_postgres_project_loader,
1010
)

fastapi_forge/core/build.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from pathlib import Path
33
from time import perf_counter
44

5-
from fastapi_forge.io import ArtifactBuilder, create_fastapi_project_builder
65
from fastapi_forge.logger import logger
6+
from fastapi_forge.project_io import ArtifactBuilder, create_fastapi_project_builder
77
from fastapi_forge.schemas import ProjectSpec
88

99
from .cookiecutter_adapter import (
@@ -23,14 +23,12 @@ def __init__(
2323
template_generator: CookiecutterAdapter,
2424
template_resolver: Callable,
2525
project_validator: ProjectValidator | None = None,
26-
dry_run: bool = False,
2726
):
2827
self.builder = builder
2928
self.validator = project_validator
3029
self.template_processor = template_processor
3130
self.template_generator = template_generator
3231
self.template_resolver = template_resolver
33-
self.dry_run = dry_run
3432

3533
async def build(self, spec: ProjectSpec) -> None:
3634
if self.validator:

fastapi_forge/frontend/panels/left_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)
1212
from fastapi_forge.frontend.notifications import notify_validation_error
1313
from fastapi_forge.frontend.state import state
14-
from fastapi_forge.io import create_yaml_project_exporter
14+
from fastapi_forge.project_io import create_yaml_project_exporter
1515

1616

1717
class NavigationTabs(ui.row):

fastapi_forge/frontend/panels/project_config_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
notify_value_error,
1616
)
1717
from fastapi_forge.frontend.state import state
18-
from fastapi_forge.io import create_postgres_project_loader
18+
from fastapi_forge.project_io import create_postgres_project_loader
1919
from fastapi_forge.schemas import (
2020
CustomEnum,
2121
CustomEnumValue,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from .artifact_builder import ArtifactBuilder, FastAPIArtifactBuilder
2424
from .database import DatabaseInspector, PostgresInspector
2525
from .exporter import ProjectExporter, YamlProjectExporter
26-
from .file import AsyncDryRunWriter, AsyncIOWriter
26+
from .io import AsyncDryRunWriter, AsyncIOWriter
2727
from .loader import DatabaseProjectLoader, ProjectLoader, YamlProjectLoader
2828

2929

File renamed without changes.

fastapi_forge/io/artifact_builder/fastapi_builder.py renamed to fastapi_forge/project_io/artifact_builder/fastapi_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414
from fastapi_forge.utils.string_utils import camel_to_snake
1515

16-
from ..file import IOWriter
16+
from ..io import IOWriter
1717
from .protocols import ArtifactBuilder
1818

1919
TEST_RENDERERS: dict[HTTPMethodEnum, str] = {
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)