Skip to content

Commit 8fe0904

Browse files
committed
Initial commit
0 parents  commit 8fe0904

File tree

11 files changed

+1789
-0
lines changed

11 files changed

+1789
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# python generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# venv
10+
.venv

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.4

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# query-farm-airport-hello-world-server
2+
3+
This just a simple Hello World server demonstrating the capabilities of the Airport extension for DuckDB.

pyproject.toml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[project]
2+
name = "query-farm-airport-hello-world-server"
3+
version = "0.1.0"
4+
description = "A Hello World server for the Airport Exception"
5+
authors = [
6+
{ name = "Rusty Conover", email = "[email protected]" }
7+
]
8+
dependencies = [
9+
"query-farm-flight-server>=0.1.5",
10+
"petname>=2.6",
11+
]
12+
readme = "README.md"
13+
requires-python = ">= 3.12"
14+
15+
[build-system]
16+
requires = ["hatchling==1.26.3", "hatch-vcs"]
17+
build-backend = "hatchling.build"
18+
19+
[tool.rye]
20+
managed = true
21+
dev-dependencies = [
22+
"pytest>=8.3.2",
23+
"pytest-mypy>=0.10.3",
24+
"pytest-env>=1.1.3",
25+
"pytest-cov>=5.0.0",
26+
"pytest-parallel>=0.1.1",
27+
"pytest-xdist>=3.6.1",
28+
"ruff==0.11.2",
29+
]
30+
31+
32+
[tool.hatch.metadata]
33+
allow-direct-references = true
34+
35+
[tool.hatch.build.targets.wheel]
36+
packages = ["src/query_farm_airport_hello_world_server"]
37+
38+
[project.scripts]
39+
airport_hello_world_server = 'query_farm_airport_hello_world_server:do_server'
40+
41+
[tool.rye.scripts]
42+
dev = { cmd = "airport_hello_world_server --location grpc://0.0.0.0:53333", description = "Run the server" }
43+
44+
[tool.pytest]
45+
46+
47+
[tool.mypy]
48+
ignore_missing_imports = true
49+
plugins = ["pydantic.mypy"]
50+
51+
52+
follow_imports = "silent"
53+
warn_redundant_casts = true
54+
warn_unused_ignores = true
55+
disallow_any_generics = true
56+
check_untyped_defs = true
57+
no_implicit_reexport = true
58+
59+
# for strict mypy: (this is the tricky one :-))
60+
disallow_untyped_defs = true
61+
62+
63+
[tool.pydantic.mypy]
64+
init_forbid_extra = true
65+
init_typed = true
66+
warn_required_dynamic_aliases = true
67+
68+
[tool.ruff]
69+
line-length = 120
70+
71+
[tool.ruff.lint]
72+
select = [
73+
# pycodestyle
74+
"E",
75+
# Pyflakes
76+
"F",
77+
# pyupgrade
78+
"UP",
79+
# flake8-bugbear
80+
"B",
81+
# flake8-simplify
82+
"SIM",
83+
# isort
84+
"I",
85+
]
86+
ignore = ['E501']

requirements-dev.lock

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: false
8+
# with-sources: false
9+
# generate-hashes: false
10+
# universal: false
11+
12+
-e file:.
13+
annotated-types==0.7.0
14+
# via pydantic
15+
boto3==1.39.10
16+
# via query-farm-flight-server
17+
botocore==1.39.10
18+
# via boto3
19+
# via s3transfer
20+
cache3==0.4.3
21+
# via query-farm-flight-server
22+
certifi==2025.7.14
23+
# via sentry-sdk
24+
click==8.2.1
25+
# via query-farm-flight-server
26+
coverage==7.9.2
27+
# via pytest-cov
28+
execnet==2.1.1
29+
# via pytest-xdist
30+
filelock==3.18.0
31+
# via pytest-mypy
32+
fuzzywuzzy==0.18.0
33+
# via query-farm-flight-server
34+
iniconfig==2.1.0
35+
# via pytest
36+
jmespath==1.0.1
37+
# via boto3
38+
# via botocore
39+
levenshtein==0.27.1
40+
# via python-levenshtein
41+
msgpack==1.1.1
42+
# via query-farm-flight-server
43+
mypy==1.17.0
44+
# via pytest-mypy
45+
mypy-boto3-dynamodb==1.39.0
46+
# via query-farm-flight-server
47+
mypy-boto3-s3==1.39.5
48+
# via query-farm-flight-server
49+
mypy-extensions==1.1.0
50+
# via mypy
51+
packaging==25.0
52+
# via pytest
53+
pathspec==0.12.1
54+
# via mypy
55+
petname==2.6
56+
# via query-farm-airport-hello-world-server
57+
pluggy==1.6.0
58+
# via pytest
59+
# via pytest-cov
60+
prettytable==3.16.0
61+
# via query-farm-flight-server
62+
pyarrow==21.0.0
63+
# via query-farm-flight-server
64+
pydantic==2.11.7
65+
# via query-farm-flight-server
66+
pydantic-core==2.33.2
67+
# via pydantic
68+
pygments==2.19.2
69+
# via pytest
70+
pytest==8.4.1
71+
# via pytest-cov
72+
# via pytest-env
73+
# via pytest-mypy
74+
# via pytest-parallel
75+
# via pytest-xdist
76+
pytest-cov==6.2.1
77+
pytest-env==1.1.5
78+
pytest-mypy==1.0.1
79+
pytest-parallel==0.1.1
80+
pytest-xdist==3.8.0
81+
python-dateutil==2.9.0.post0
82+
# via botocore
83+
python-levenshtein==0.27.1
84+
# via query-farm-flight-server
85+
query-farm-flight-server==0.1.5
86+
# via query-farm-airport-hello-world-server
87+
rapidfuzz==3.13.0
88+
# via levenshtein
89+
ruff==0.11.2
90+
s3transfer==0.13.1
91+
# via boto3
92+
sentry-sdk==2.33.1
93+
# via query-farm-flight-server
94+
six==1.17.0
95+
# via python-dateutil
96+
structlog==25.4.0
97+
# via query-farm-flight-server
98+
tblib==3.1.0
99+
# via pytest-parallel
100+
typing-extensions==4.14.1
101+
# via mypy
102+
# via pydantic
103+
# via pydantic-core
104+
# via typing-inspection
105+
typing-inspection==0.4.1
106+
# via pydantic
107+
urllib3==2.5.0
108+
# via botocore
109+
# via sentry-sdk
110+
wcwidth==0.2.13
111+
# via prettytable
112+
zstandard==0.23.0
113+
# via query-farm-flight-server

requirements.lock

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: false
8+
# with-sources: false
9+
# generate-hashes: false
10+
# universal: false
11+
12+
-e file:.
13+
annotated-types==0.7.0
14+
# via pydantic
15+
boto3==1.39.10
16+
# via query-farm-flight-server
17+
botocore==1.39.10
18+
# via boto3
19+
# via s3transfer
20+
cache3==0.4.3
21+
# via query-farm-flight-server
22+
certifi==2025.7.14
23+
# via sentry-sdk
24+
click==8.2.1
25+
# via query-farm-flight-server
26+
fuzzywuzzy==0.18.0
27+
# via query-farm-flight-server
28+
jmespath==1.0.1
29+
# via boto3
30+
# via botocore
31+
levenshtein==0.27.1
32+
# via python-levenshtein
33+
msgpack==1.1.1
34+
# via query-farm-flight-server
35+
mypy-boto3-dynamodb==1.39.0
36+
# via query-farm-flight-server
37+
mypy-boto3-s3==1.39.5
38+
# via query-farm-flight-server
39+
petname==2.6
40+
# via query-farm-airport-hello-world-server
41+
prettytable==3.16.0
42+
# via query-farm-flight-server
43+
pyarrow==21.0.0
44+
# via query-farm-flight-server
45+
pydantic==2.11.7
46+
# via query-farm-flight-server
47+
pydantic-core==2.33.2
48+
# via pydantic
49+
python-dateutil==2.9.0.post0
50+
# via botocore
51+
python-levenshtein==0.27.1
52+
# via query-farm-flight-server
53+
query-farm-flight-server==0.1.5
54+
# via query-farm-airport-hello-world-server
55+
rapidfuzz==3.13.0
56+
# via levenshtein
57+
s3transfer==0.13.1
58+
# via boto3
59+
sentry-sdk==2.33.1
60+
# via query-farm-flight-server
61+
six==1.17.0
62+
# via python-dateutil
63+
structlog==25.4.0
64+
# via query-farm-flight-server
65+
typing-extensions==4.14.1
66+
# via pydantic
67+
# via pydantic-core
68+
# via typing-inspection
69+
typing-inspection==0.4.1
70+
# via pydantic
71+
urllib3==2.5.0
72+
# via botocore
73+
# via sentry-sdk
74+
wcwidth==0.2.13
75+
# via prettytable
76+
zstandard==0.23.0
77+
# via query-farm-flight-server
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from . import server
2+
3+
4+
def do_server() -> int:
5+
return server.run()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import query_farm_flight_server.auth as base_auth
2+
3+
4+
class AccountToken(base_auth.AccountToken):
5+
pass
6+
7+
8+
class Account(base_auth.Account):
9+
pass

0 commit comments

Comments
 (0)