From 87da6353385c263710c49d2f9c7200c3c6d45072 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 13:33:42 +0000 Subject: [PATCH] Initial commit: API Snapshot CLI - Record HTTP traffic and generate mock servers --- pyproject.toml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2f42a48 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,64 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "api-snapshot-cli" +version = "0.1.0" +description = "A CLI tool that records HTTP API traffic and generates local mock servers from recorded responses" +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "API Snapshot Contributors"} +] +keywords = ["cli", "http", "api", "mock", "testing", "recording"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Testing", + "Topic :: Internet :: HTTP Servers", +] + +dependencies = [ + "click>=8.0", + "requests>=2.28", + "flask>=2.0", + "rich>=12.0", +] + +[project.optional-dependencies] +test = [ + "pytest>=7.0", + "pytest-click>=1.0", + "responses>=0.22.0", + "pytest-cov>=4.0", +] + +[project.scripts] +api-snapshot = "api_snapshot.cli:main" + +[tool.setuptools.packages.find] +include = ["api_snapshot*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.ruff] +line-length = 100 +target-version = "py38" + +[tool.ruff.lint] +select = ["E", "W", "F", "I"] +ignore = []