From 04054f181ebb0fd12e61dc0f2dd0bcd75719628e Mon Sep 17 00:00:00 2001 From: Pascal Scheiben Date: Wed, 17 Sep 2025 13:19:15 +0200 Subject: [PATCH] Creating boilerplate code. Adding needed imports for project --- .gitignore | 6 ++++-- .python-version | 1 + mirkowashere.md | 1 - pyproject.toml | 16 ++++++++++++++++ requirements.txt | 3 +++ src/__init__.py | 0 src/main.py | 5 +++++ 7 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .python-version delete mode 100644 mirkowashere.md create mode 100644 pyproject.toml create mode 100644 requirements.txt create mode 100644 src/__init__.py create mode 100644 src/main.py diff --git a/.gitignore b/.gitignore index 36b13f1..5135bc7 100644 --- a/.gitignore +++ b/.gitignore @@ -99,7 +99,7 @@ ipython_config.py # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control. # This is especially recommended for binary packages to ensure reproducibility, and is more # commonly ignored for libraries. -#uv.lock +uv.lock # poetry # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. @@ -166,7 +166,7 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ # Ruff stuff: .ruff_cache/ @@ -174,3 +174,5 @@ cython_debug/ # PyPI configuration file .pypirc +# copilot stuf +copilot.* \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/mirkowashere.md b/mirkowashere.md deleted file mode 100644 index 0679fa1..0000000 --- a/mirkowashere.md +++ /dev/null @@ -1 +0,0 @@ -# ha... MAF framework is the best \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..322c5b9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "generic-api-endpoint" +version = "2025.9.0" +description = "Add your description here" +readme = "README.md" +authors = [ + {name = "Denis Magel", email = "denis.magel@netapp.com"}, + {name = "Alexey Mik", email = "alexey.mikhaylov@netapp.com"}, + {name = "Pascal Scheiben", email = "pascal.scheiben@netapp.com"} +] +requires-python = ">=3.13" +dependencies = [ + "fastapi[standard]>=0.116.2", + "httpx>=0.28.1", + "redis>=6.4.0", +] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..44f6a00 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +fastapi[standard]>=0.116.2 +httpx>=0.28.1 +redis>=6.4.0 \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..cecafa1 --- /dev/null +++ b/src/main.py @@ -0,0 +1,5 @@ +def main() -> None: + print("Hello, World!") + +if __name__ == "__main__": + main()