Skip to content

Commit a4d508c

Browse files
committed
init
0 parents  commit a4d508c

File tree

8 files changed

+71
-0
lines changed

8 files changed

+71
-0
lines changed

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Byte-compiled files
2+
__pycache__/
3+
*.py[cod]
4+
*.pyo
5+
*.pyd
6+
7+
# Virtual environment
8+
.env
9+
.venv
10+
11+
# Poetry files
12+
poetry.lock
13+
14+
# Pytest and coverage
15+
.pytest_cache/
16+
.coverage
17+
htmlcov/
18+
coverage.xml
19+
*.cover
20+
21+
# Distribution/build files
22+
build/
23+
dist/
24+
*.egg-info/
25+
*.egg
26+
*.manifest
27+
28+
# Logs
29+
*.log
30+
31+
# IDE and editor files
32+
.vscode/
33+
.idea/
34+
*.sublime-workspace
35+
*.sublime-project
36+
37+
# OS-specific files
38+
.DS_Store
39+
Thumbs.db
40+
41+
# src directory specific to this project structure
42+
src/__pycache__/
43+
src/**/__pycache__/

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API Demo application
2+
3+
This is a simple API demo application that implementas an event propogater and consumer. The application is written in Python and uses the Flask framework. Dependecies are managed using Poetry.

pyproject.toml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tool.poetry]
2+
name = "api-demo"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Joris Leipus <[email protected]>"]
6+
readme = "README.md"
7+
packages = [
8+
{ include = "propogator", from = "src" },
9+
{ include = "consumer", from = "src" },
10+
]
11+
12+
[tool.poetry.dependencies]
13+
python = "^3.12"
14+
15+
[tool.poetry.scripts]
16+
propogator = "propogator.main:main"
17+
consumer = "consumer.main:main"
18+
19+
[build-system]
20+
requires = ["poetry-core"]
21+
build-backend = "poetry.core.masonry.api"

src/consumer/__init__.py

Whitespace-only changes.

src/consumer/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def main():
2+
print("consumer")

src/propogator/__init__.py

Whitespace-only changes.

src/propogator/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def main():
2+
print("propogator")

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)