diff --git a/README.md b/README.md index 50711b9..9c3586e 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ A Type-Safe UI/CLI Generator powered by Pydantic and Prompt-Toolkit. -[![PyPI version](https://img.shields.io/pypi/v/typerform.svg)](https://pypi.org/project/typerform/) -[![Python](https://img.shields.io/pypi/pyversions/typerform.svg)](https://pypi.org/project/typerform/) -[![CI](https://github.com/sthitaprajnas/typerform/actions/workflows/ci.yml/badge.svg)](https://github.com/sthitaprajnas/typerform/actions/workflows/ci.yml) +[![PyPI version](https://img.shields.io/pypi/v/typeform.svg)](https://pypi.org/project/typeform/) +[![Python](https://img.shields.io/pypi/pyversions/typeform.svg)](https://pypi.org/project/typeform/) +[![CI](https://github.com/sthitaprajnas/typeform/actions/workflows/ci.yml/badge.svg)](https://github.com/sthitaprajnas/typeform/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-Apache%202.0-green)](LICENSE) -[![Typed](https://img.shields.io/badge/typing-py.typed-informational)](src/typerform/py.typed) +[![Typed](https://img.shields.io/badge/typing-py.typed-informational)](src/typeform/py.typed) Typerform transforms your Pydantic models into professional, interactive CLI wizards. Stop writing boilerplate input loops and manual validation—let your schemas drive the user experience. @@ -26,7 +26,7 @@ Typerform transforms your Pydantic models into professional, interactive CLI wiz ## Installation ```bash -pip install typerform +pip install typeform ``` ## Quick Start @@ -34,7 +34,7 @@ pip install typerform ```python from typing import Literal from pydantic import BaseModel, Field -from typerform import form +from typeform import form class SetupConfig(BaseModel): project_name: str = Field(description="Project Name", min_length=3) @@ -90,12 +90,12 @@ config = form(MyModel, hydrate_from=[os.environ]) Contributions are welcome! Whether it's bug reports, feature requests, or new prompt engines. ```bash -git clone https://github.com/sthitaprajnas/typerform.git -cd typerform +git clone https://github.com/sthitaprajnas/typeform.git +cd typeform pip install -e ".[dev]" pytest # run test suite -ruff check src/typerform # lint -mypy src/typerform # type-check +ruff check src/typeform # lint +mypy src/typeform # type-check ``` ## License diff --git a/examples/collection_wizard.py b/examples/collection_wizard.py index 1d7cdf6..09186c2 100644 --- a/examples/collection_wizard.py +++ b/examples/collection_wizard.py @@ -5,7 +5,7 @@ # Add src to sys.path sys.path.insert(0, "./src") -from typerform import form +from typeform import form from rich.console import Console console = Console() diff --git a/examples/enterprise_wizard.py b/examples/enterprise_wizard.py index 88c5eeb..ce0d6f3 100644 --- a/examples/enterprise_wizard.py +++ b/examples/enterprise_wizard.py @@ -5,7 +5,7 @@ # Add the src directory to sys.path sys.path.insert(0, "./src") -from typerform import form +from typeform import form from rich.console import Console console = Console() diff --git a/examples/simple_wizard.py b/examples/simple_wizard.py index ecef558..d021d94 100644 --- a/examples/simple_wizard.py +++ b/examples/simple_wizard.py @@ -3,12 +3,12 @@ from pydantic import BaseModel, EmailStr, Field -# Add the src directory to sys.path so we can import typerform without installing it +# Add the src directory to sys.path so we can import typeform without installing it sys.path.insert(0, "./src") from rich.console import Console -from typerform import form +from typeform import form console = Console() diff --git a/examples/ultimate_demo.py b/examples/ultimate_demo.py index d3608bb..881b98b 100644 --- a/examples/ultimate_demo.py +++ b/examples/ultimate_demo.py @@ -6,7 +6,7 @@ # Add src to sys.path sys.path.insert(0, "./src") -from typerform import form +from typeform import form from rich.console import Console console = Console() diff --git a/examples/ultimate_wizard.py b/examples/ultimate_wizard.py index 9e146ee..1c0f21d 100644 --- a/examples/ultimate_wizard.py +++ b/examples/ultimate_wizard.py @@ -6,7 +6,7 @@ # Add src to sys.path sys.path.insert(0, "./src") -from typerform import form +from typeform import form from rich.console import Console console = Console() diff --git a/pyproject.toml b/pyproject.toml index fa23ea7..d692136 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "hatchling.build" # --------------------------------------------------------------------------- [project] -name = "typerform" +name = "pytypeform" version = "0.2.0" description = "A Type-Safe UI/CLI Generator powered by Pydantic." readme = "README.md" @@ -47,10 +47,10 @@ dependencies = [ ] [project.urls] -Homepage = "https://github.com/sthitaprajnas/typerform" -Repository = "https://github.com/sthitaprajnas/typerform" -Documentation = "https://github.com/sthitaprajnas/typerform#readme" -Issues = "https://github.com/sthitaprajnas/typerform/issues" +Homepage = "https://github.com/sthitaprajnas/typeform" +Repository = "https://github.com/sthitaprajnas/typeform" +Documentation = "https://github.com/sthitaprajnas/typeform#readme" +Issues = "https://github.com/sthitaprajnas/typeform/issues" [project.optional-dependencies] dev = [ @@ -67,7 +67,7 @@ dev = [ # --------------------------------------------------------------------------- [tool.hatch.build.targets.wheel] -packages = ["src/typerform"] +packages = ["src/typeform"] [tool.hatch.build.targets.sdist] include = [ @@ -89,7 +89,7 @@ addopts = "-v --tb=short" [tool.mypy] strict = true python_version = "3.10" -files = ["src/typerform"] +files = ["src/typeform"] [tool.ruff] line-length = 100 @@ -100,7 +100,7 @@ select = ["E", "F", "I", "UP", "B", "SIM"] ignore = ["E501"] [tool.coverage.run] -source = ["src/typerform"] +source = ["src/typeform"] [tool.coverage.report] show_missing = true diff --git a/src/typerform/__init__.py b/src/typeform/typerform/__init__.py similarity index 100% rename from src/typerform/__init__.py rename to src/typeform/typerform/__init__.py diff --git a/src/typerform/core.py b/src/typeform/typerform/core.py similarity index 100% rename from src/typerform/core.py rename to src/typeform/typerform/core.py diff --git a/src/typerform/__pycache__/__init__.cpython-313.pyc b/src/typerform/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index d77c0e2..0000000 Binary files a/src/typerform/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/src/typerform/__pycache__/core.cpython-313.pyc b/src/typerform/__pycache__/core.cpython-313.pyc deleted file mode 100644 index dc70351..0000000 Binary files a/src/typerform/__pycache__/core.cpython-313.pyc and /dev/null differ diff --git a/tests/__pycache__/test_core.cpython-313-pytest-9.0.3.pyc b/tests/__pycache__/test_core.cpython-313-pytest-9.0.3.pyc index 17b4eb4..b816bb8 100644 Binary files a/tests/__pycache__/test_core.cpython-313-pytest-9.0.3.pyc and b/tests/__pycache__/test_core.cpython-313-pytest-9.0.3.pyc differ diff --git a/tests/__pycache__/test_extended.cpython-313-pytest-9.0.3.pyc b/tests/__pycache__/test_extended.cpython-313-pytest-9.0.3.pyc index ee04a56..1003557 100644 Binary files a/tests/__pycache__/test_extended.cpython-313-pytest-9.0.3.pyc and b/tests/__pycache__/test_extended.cpython-313-pytest-9.0.3.pyc differ diff --git a/tests/test_core.py b/tests/test_core.py index 9158d92..b3ca17c 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -4,8 +4,8 @@ from unittest.mock import MagicMock from pydantic import BaseModel, Field, SecretStr -from typerform import form -from typerform.core import PromptEngine, set_engine, config +from typeform import form +from typeform.core import PromptEngine, set_engine, config import io from rich.console import Console diff --git a/tests/test_extended.py b/tests/test_extended.py index 971f6ab..00042d5 100644 --- a/tests/test_extended.py +++ b/tests/test_extended.py @@ -2,8 +2,8 @@ from typing import Literal, Optional, Any, Dict from enum import Enum from pydantic import BaseModel, Field, SecretStr -from typerform import form -from typerform.core import PromptEngine, set_engine, config +from typeform import form +from typeform.core import PromptEngine, set_engine, config import io from rich.console import Console