aeronavx 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. aeronavx-0.1.1/LICENSE +21 -0
  2. aeronavx-0.1.1/PKG-INFO +166 -0
  3. aeronavx-0.1.1/README.md +120 -0
  4. aeronavx-0.1.1/aeronavx/__init__.py +47 -0
  5. aeronavx-0.1.1/aeronavx/api/__init__.py +3 -0
  6. aeronavx-0.1.1/aeronavx/api/server.py +180 -0
  7. aeronavx-0.1.1/aeronavx/cli/__init__.py +3 -0
  8. aeronavx-0.1.1/aeronavx/cli/main.py +221 -0
  9. aeronavx-0.1.1/aeronavx/core/__init__.py +97 -0
  10. aeronavx-0.1.1/aeronavx/core/airports.py +49 -0
  11. aeronavx-0.1.1/aeronavx/core/analytics.py +137 -0
  12. aeronavx-0.1.1/aeronavx/core/distance.py +167 -0
  13. aeronavx-0.1.1/aeronavx/core/emissions.py +96 -0
  14. aeronavx-0.1.1/aeronavx/core/geodesy.py +113 -0
  15. aeronavx-0.1.1/aeronavx/core/loader.py +217 -0
  16. aeronavx-0.1.1/aeronavx/core/routing.py +179 -0
  17. aeronavx-0.1.1/aeronavx/core/search.py +151 -0
  18. aeronavx-0.1.1/aeronavx/core/timezone.py +94 -0
  19. aeronavx-0.1.1/aeronavx/core/weather.py +97 -0
  20. aeronavx-0.1.1/aeronavx/exceptions.py +22 -0
  21. aeronavx-0.1.1/aeronavx/models/__init__.py +3 -0
  22. aeronavx-0.1.1/aeronavx/models/airport.py +63 -0
  23. aeronavx-0.1.1/aeronavx/utils/__init__.py +54 -0
  24. aeronavx-0.1.1/aeronavx/utils/cache.py +27 -0
  25. aeronavx-0.1.1/aeronavx/utils/constants.py +30 -0
  26. aeronavx-0.1.1/aeronavx/utils/logging.py +34 -0
  27. aeronavx-0.1.1/aeronavx/utils/spatial_index.py +115 -0
  28. aeronavx-0.1.1/aeronavx/utils/units.py +86 -0
  29. aeronavx-0.1.1/aeronavx/utils/validators.py +31 -0
  30. aeronavx-0.1.1/aeronavx.egg-info/PKG-INFO +166 -0
  31. aeronavx-0.1.1/aeronavx.egg-info/SOURCES.txt +38 -0
  32. aeronavx-0.1.1/aeronavx.egg-info/dependency_links.txt +1 -0
  33. aeronavx-0.1.1/aeronavx.egg-info/entry_points.txt +2 -0
  34. aeronavx-0.1.1/aeronavx.egg-info/requires.txt +26 -0
  35. aeronavx-0.1.1/aeronavx.egg-info/top_level.txt +1 -0
  36. aeronavx-0.1.1/pyproject.toml +91 -0
  37. aeronavx-0.1.1/setup.cfg +4 -0
  38. aeronavx-0.1.1/tests/test_distance.py +58 -0
  39. aeronavx-0.1.1/tests/test_geodesy.py +67 -0
  40. aeronavx-0.1.1/tests/test_validators.py +54 -0
aeronavx-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tefik Yildiz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.4
2
+ Name: aeronavx
3
+ Version: 0.1.1
4
+ Summary: Production-grade airport data and flight geometry library
5
+ Author-email: Tefik Yildiz <teyfikoz@example.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/teyfikoz/AeroNavX
8
+ Project-URL: Repository, https://github.com/teyfikoz/AeroNavX
9
+ Project-URL: Documentation, https://github.com/teyfikoz/AeroNavX/docs
10
+ Project-URL: Issues, https://github.com/teyfikoz/AeroNavX/issues
11
+ Keywords: airport,aviation,geodesy,geography,distance,routing
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: GIS
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Provides-Extra: dev
24
+ Requires-Dist: pytest>=7.0; extra == "dev"
25
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
26
+ Requires-Dist: black>=23.0; extra == "dev"
27
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
28
+ Provides-Extra: full
29
+ Requires-Dist: pandas>=2.0; extra == "full"
30
+ Requires-Dist: scipy>=1.10; extra == "full"
31
+ Requires-Dist: rapidfuzz>=3.0; extra == "full"
32
+ Requires-Dist: timezonefinder>=6.0; extra == "full"
33
+ Requires-Dist: requests>=2.31; extra == "full"
34
+ Provides-Extra: api
35
+ Requires-Dist: fastapi>=0.104; extra == "api"
36
+ Requires-Dist: uvicorn[standard]>=0.24; extra == "api"
37
+ Provides-Extra: all
38
+ Requires-Dist: pandas>=2.0; extra == "all"
39
+ Requires-Dist: scipy>=1.10; extra == "all"
40
+ Requires-Dist: rapidfuzz>=3.0; extra == "all"
41
+ Requires-Dist: timezonefinder>=6.0; extra == "all"
42
+ Requires-Dist: requests>=2.31; extra == "all"
43
+ Requires-Dist: fastapi>=0.104; extra == "all"
44
+ Requires-Dist: uvicorn[standard]>=0.24; extra == "all"
45
+ Dynamic: license-file
46
+
47
+ # AeroNavX
48
+
49
+ A production-grade Python library for airport data and flight geometry calculations.
50
+
51
+ ## Features
52
+
53
+ - 🛫 **Airport Database**: Global airport data with efficient IATA/ICAO indexing
54
+ - 📏 **Distance Calculations**: Haversine, Vincenty, and Spherical Law of Cosines
55
+ - 🌍 **Geodesy**: Bearings, midpoints, great circle paths
56
+ - 🔍 **Search**: Fuzzy name search, nearest neighbor queries, radius search
57
+ - 🛤️ **Routing**: Multi-segment routes, flight time estimation, shortest paths
58
+ - 📊 **Analytics**: Statistics by country, continent, type, and elevation
59
+ - ⏰ **Timezone Support**: Automatic timezone detection and local time
60
+ - 🌱 **Emissions**: CO2 emissions estimation per passenger
61
+ - 🌤️ **Weather**: METAR and TAF data fetching
62
+ - 💻 **CLI**: Command-line interface for quick queries
63
+ - 🌐 **REST API**: FastAPI-based web service
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ git clone https://github.com/teyfikoz/AeroNavX.git
69
+ cd AeroNavX
70
+ pip install -e .
71
+ ```
72
+
73
+ ## Quick Start
74
+
75
+ ```python
76
+ import aeronavx
77
+
78
+ # Get airports
79
+ ist = aeronavx.get_airport("IST")
80
+ jfk = aeronavx.get_airport("JFK")
81
+
82
+ # Calculate distance
83
+ dist_km = ist.distance_to(jfk)
84
+ print(f"Distance: {dist_km:.2f} km")
85
+
86
+ # Find nearest airports
87
+ nearest = aeronavx.nearest_airport(41.0, 29.0, n=5)
88
+
89
+ # Estimate emissions
90
+ co2 = aeronavx.estimate_co2_kg_for_segment("IST", "JFK")
91
+ print(f"CO2: {co2:.2f} kg per passenger")
92
+ ```
93
+
94
+ ## CLI Usage
95
+
96
+ ```bash
97
+ # Calculate distance
98
+ aeronavx distance --from IST --to JFK --unit nmi
99
+
100
+ # Find nearest airports
101
+ aeronavx nearest --lat 41.0 --lon 29.0 --n 5
102
+
103
+ # Search by name
104
+ aeronavx search --name "Heathrow"
105
+
106
+ # Estimate emissions
107
+ aeronavx emissions --from IST --to LHR
108
+
109
+ # Flight time
110
+ aeronavx flight-time --from IST --to JFK
111
+ ```
112
+
113
+ ## API Server
114
+
115
+ ```bash
116
+ python -m aeronavx.api.server
117
+ ```
118
+
119
+ Then access:
120
+ - http://localhost:8000/health
121
+ - http://localhost:8000/airport/IST
122
+ - http://localhost:8000/distance?from=IST&to=JFK
123
+ - http://localhost:8000/nearest?lat=41.0&lon=29.0&n=5
124
+
125
+ ## Data
126
+
127
+ Place your `airports.csv` file in the `data/` directory. The CSV should contain:
128
+ - Basic info: id, ident, type, name
129
+ - Coordinates: latitude_deg, longitude_deg, elevation_ft
130
+ - Location: continent, iso_country, iso_region, municipality
131
+ - Codes: gps_code (ICAO), iata_code, local_code
132
+ - Optional: scheduled_service, home_link, wikipedia_link, keywords
133
+
134
+ ## Examples
135
+
136
+ See `examples/` directory for:
137
+ - `basic_distance.py`: Distance calculations
138
+ - `nearest_airports.py`: Finding nearby airports
139
+ - `routing_example.py`: Multi-segment routes
140
+ - `emissions_example.py`: CO2 estimation
141
+
142
+ ## Testing
143
+
144
+ ```bash
145
+ pytest
146
+ ```
147
+
148
+ ## Dependencies
149
+
150
+ **Required**: Python >= 3.10
151
+
152
+ **Optional**:
153
+ - `pandas`: DataFrame support
154
+ - `scipy`: Faster spatial indexing
155
+ - `rapidfuzz`: Better fuzzy search
156
+ - `timezonefinder`: Timezone support
157
+ - `fastapi`, `uvicorn`: API server
158
+ - `requests`: Weather data
159
+
160
+ ## License
161
+
162
+ MIT License
163
+
164
+ ## Contributing
165
+
166
+ Contributions welcome! Please open an issue or pull request.
@@ -0,0 +1,120 @@
1
+ # AeroNavX
2
+
3
+ A production-grade Python library for airport data and flight geometry calculations.
4
+
5
+ ## Features
6
+
7
+ - 🛫 **Airport Database**: Global airport data with efficient IATA/ICAO indexing
8
+ - 📏 **Distance Calculations**: Haversine, Vincenty, and Spherical Law of Cosines
9
+ - 🌍 **Geodesy**: Bearings, midpoints, great circle paths
10
+ - 🔍 **Search**: Fuzzy name search, nearest neighbor queries, radius search
11
+ - 🛤️ **Routing**: Multi-segment routes, flight time estimation, shortest paths
12
+ - 📊 **Analytics**: Statistics by country, continent, type, and elevation
13
+ - ⏰ **Timezone Support**: Automatic timezone detection and local time
14
+ - 🌱 **Emissions**: CO2 emissions estimation per passenger
15
+ - 🌤️ **Weather**: METAR and TAF data fetching
16
+ - 💻 **CLI**: Command-line interface for quick queries
17
+ - 🌐 **REST API**: FastAPI-based web service
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ git clone https://github.com/teyfikoz/AeroNavX.git
23
+ cd AeroNavX
24
+ pip install -e .
25
+ ```
26
+
27
+ ## Quick Start
28
+
29
+ ```python
30
+ import aeronavx
31
+
32
+ # Get airports
33
+ ist = aeronavx.get_airport("IST")
34
+ jfk = aeronavx.get_airport("JFK")
35
+
36
+ # Calculate distance
37
+ dist_km = ist.distance_to(jfk)
38
+ print(f"Distance: {dist_km:.2f} km")
39
+
40
+ # Find nearest airports
41
+ nearest = aeronavx.nearest_airport(41.0, 29.0, n=5)
42
+
43
+ # Estimate emissions
44
+ co2 = aeronavx.estimate_co2_kg_for_segment("IST", "JFK")
45
+ print(f"CO2: {co2:.2f} kg per passenger")
46
+ ```
47
+
48
+ ## CLI Usage
49
+
50
+ ```bash
51
+ # Calculate distance
52
+ aeronavx distance --from IST --to JFK --unit nmi
53
+
54
+ # Find nearest airports
55
+ aeronavx nearest --lat 41.0 --lon 29.0 --n 5
56
+
57
+ # Search by name
58
+ aeronavx search --name "Heathrow"
59
+
60
+ # Estimate emissions
61
+ aeronavx emissions --from IST --to LHR
62
+
63
+ # Flight time
64
+ aeronavx flight-time --from IST --to JFK
65
+ ```
66
+
67
+ ## API Server
68
+
69
+ ```bash
70
+ python -m aeronavx.api.server
71
+ ```
72
+
73
+ Then access:
74
+ - http://localhost:8000/health
75
+ - http://localhost:8000/airport/IST
76
+ - http://localhost:8000/distance?from=IST&to=JFK
77
+ - http://localhost:8000/nearest?lat=41.0&lon=29.0&n=5
78
+
79
+ ## Data
80
+
81
+ Place your `airports.csv` file in the `data/` directory. The CSV should contain:
82
+ - Basic info: id, ident, type, name
83
+ - Coordinates: latitude_deg, longitude_deg, elevation_ft
84
+ - Location: continent, iso_country, iso_region, municipality
85
+ - Codes: gps_code (ICAO), iata_code, local_code
86
+ - Optional: scheduled_service, home_link, wikipedia_link, keywords
87
+
88
+ ## Examples
89
+
90
+ See `examples/` directory for:
91
+ - `basic_distance.py`: Distance calculations
92
+ - `nearest_airports.py`: Finding nearby airports
93
+ - `routing_example.py`: Multi-segment routes
94
+ - `emissions_example.py`: CO2 estimation
95
+
96
+ ## Testing
97
+
98
+ ```bash
99
+ pytest
100
+ ```
101
+
102
+ ## Dependencies
103
+
104
+ **Required**: Python >= 3.10
105
+
106
+ **Optional**:
107
+ - `pandas`: DataFrame support
108
+ - `scipy`: Faster spatial indexing
109
+ - `rapidfuzz`: Better fuzzy search
110
+ - `timezonefinder`: Timezone support
111
+ - `fastapi`, `uvicorn`: API server
112
+ - `requests`: Weather data
113
+
114
+ ## License
115
+
116
+ MIT License
117
+
118
+ ## Contributing
119
+
120
+ Contributions welcome! Please open an issue or pull request.
@@ -0,0 +1,47 @@
1
+ from .models import Airport
2
+ from .core.airports import get as get_airport, get_by_iata, get_by_icao, search_by_name as search_airports_by_name
3
+ from .core.distance import distance, distance_km, distance_mi, distance_nmi
4
+ from .core.geodesy import initial_bearing, midpoint, great_circle_path
5
+ from .core.search import nearest_airports as nearest_airport, airports_within_radius
6
+ from .core.routing import estimate_flight_time_hours as estimate_flight_time, route_distance
7
+ from .core.emissions import estimate_co2_kg_by_codes as estimate_co2_kg_for_segment
8
+ from .core.weather import get_metar, get_taf
9
+ from .exceptions import (
10
+ AeroNavXError,
11
+ AirportNotFoundError,
12
+ InvalidAirportCodeError,
13
+ DataLoadError,
14
+ RoutingError,
15
+ WeatherDataError,
16
+ )
17
+
18
+
19
+ __version__ = "0.1.0"
20
+
21
+ __all__ = [
22
+ "Airport",
23
+ "get_airport",
24
+ "get_by_iata",
25
+ "get_by_icao",
26
+ "distance",
27
+ "distance_km",
28
+ "distance_mi",
29
+ "distance_nmi",
30
+ "initial_bearing",
31
+ "midpoint",
32
+ "great_circle_path",
33
+ "nearest_airport",
34
+ "airports_within_radius",
35
+ "estimate_flight_time",
36
+ "route_distance",
37
+ "estimate_co2_kg_for_segment",
38
+ "search_airports_by_name",
39
+ "get_metar",
40
+ "get_taf",
41
+ "AeroNavXError",
42
+ "AirportNotFoundError",
43
+ "InvalidAirportCodeError",
44
+ "DataLoadError",
45
+ "RoutingError",
46
+ "WeatherDataError",
47
+ ]
@@ -0,0 +1,3 @@
1
+ from .server import app, run_server
2
+
3
+ __all__ = ["app", "run_server"]
@@ -0,0 +1,180 @@
1
+ from typing import Optional
2
+ from fastapi import FastAPI, HTTPException, Query
3
+ from fastapi.responses import JSONResponse
4
+
5
+ from ..core.airports import get
6
+ from ..core.distance import distance
7
+ from ..core.search import nearest_airports, search_airports_by_name
8
+ from ..core.routing import estimate_flight_time_hours
9
+ from ..core.emissions import estimate_co2_kg_by_codes
10
+ from ..exceptions import AeroNavXError
11
+
12
+
13
+ app = FastAPI(
14
+ title="AeroNavX API",
15
+ description="Airport and flight geometry utilities",
16
+ version="0.1.0"
17
+ )
18
+
19
+
20
+ @app.get("/health")
21
+ async def health():
22
+ return {"status": "ok", "service": "AeroNavX API"}
23
+
24
+
25
+ @app.get("/airport/{code}")
26
+ async def get_airport(
27
+ code: str,
28
+ code_type: str = Query("auto", regex="^(iata|icao|auto)$")
29
+ ):
30
+ try:
31
+ airport = get(code, code_type=code_type)
32
+
33
+ if airport is None:
34
+ raise HTTPException(status_code=404, detail=f"Airport not found: {code}")
35
+
36
+ return airport.as_dict()
37
+
38
+ except AeroNavXError as e:
39
+ raise HTTPException(status_code=400, detail=str(e))
40
+
41
+
42
+ @app.get("/distance")
43
+ async def calculate_distance(
44
+ from_code: str = Query(..., alias="from"),
45
+ to_code: str = Query(..., alias="to"),
46
+ code_type: str = Query("auto", regex="^(iata|icao|auto)$"),
47
+ model: str = Query("haversine", regex="^(haversine|slc|vincenty)$"),
48
+ unit: str = Query("km", regex="^(km|mi|nmi)$")
49
+ ):
50
+ try:
51
+ from_airport = get(from_code, code_type=code_type)
52
+ to_airport = get(to_code, code_type=code_type)
53
+
54
+ if from_airport is None:
55
+ raise HTTPException(status_code=404, detail=f"Origin airport not found: {from_code}")
56
+
57
+ if to_airport is None:
58
+ raise HTTPException(status_code=404, detail=f"Destination airport not found: {to_code}")
59
+
60
+ dist = distance(
61
+ from_airport.latitude_deg,
62
+ from_airport.longitude_deg,
63
+ to_airport.latitude_deg,
64
+ to_airport.longitude_deg,
65
+ model=model,
66
+ unit=unit
67
+ )
68
+
69
+ return {
70
+ "from": from_airport.as_dict(),
71
+ "to": to_airport.as_dict(),
72
+ "distance": dist,
73
+ "unit": unit,
74
+ "model": model
75
+ }
76
+
77
+ except AeroNavXError as e:
78
+ raise HTTPException(status_code=400, detail=str(e))
79
+
80
+
81
+ @app.get("/nearest")
82
+ async def find_nearest(
83
+ lat: float = Query(..., ge=-90, le=90),
84
+ lon: float = Query(..., ge=-180, le=180),
85
+ n: int = Query(5, ge=1, le=100)
86
+ ):
87
+ try:
88
+ airports = nearest_airports(lat, lon, n=n)
89
+
90
+ return {
91
+ "query": {"lat": lat, "lon": lon},
92
+ "count": len(airports),
93
+ "airports": [a.as_dict() for a in airports]
94
+ }
95
+
96
+ except AeroNavXError as e:
97
+ raise HTTPException(status_code=400, detail=str(e))
98
+
99
+
100
+ @app.get("/search")
101
+ async def search(
102
+ q: str = Query(..., min_length=1),
103
+ limit: int = Query(20, ge=1, le=100)
104
+ ):
105
+ try:
106
+ airports = search_airports_by_name(q, limit=limit)
107
+
108
+ return {
109
+ "query": q,
110
+ "count": len(airports),
111
+ "airports": [a.as_dict() for a in airports]
112
+ }
113
+
114
+ except AeroNavXError as e:
115
+ raise HTTPException(status_code=400, detail=str(e))
116
+
117
+
118
+ @app.get("/flight-time")
119
+ async def flight_time(
120
+ from_code: str = Query(..., alias="from"),
121
+ to_code: str = Query(..., alias="to"),
122
+ speed_kts: float = Query(450.0, ge=100, le=1000)
123
+ ):
124
+ try:
125
+ from_airport = get(from_code, code_type="auto")
126
+ to_airport = get(to_code, code_type="auto")
127
+
128
+ if from_airport is None:
129
+ raise HTTPException(status_code=404, detail=f"Origin airport not found: {from_code}")
130
+
131
+ if to_airport is None:
132
+ raise HTTPException(status_code=404, detail=f"Destination airport not found: {to_code}")
133
+
134
+ time_hours = estimate_flight_time_hours(from_airport, to_airport, speed_kts=speed_kts)
135
+
136
+ hours = int(time_hours)
137
+ minutes = int((time_hours - hours) * 60)
138
+
139
+ return {
140
+ "from": from_airport.as_dict(),
141
+ "to": to_airport.as_dict(),
142
+ "speed_kts": speed_kts,
143
+ "time_hours": time_hours,
144
+ "time_formatted": f"{hours}h {minutes}m"
145
+ }
146
+
147
+ except AeroNavXError as e:
148
+ raise HTTPException(status_code=400, detail=str(e))
149
+
150
+
151
+ @app.get("/emissions")
152
+ async def emissions(
153
+ from_code: str = Query(..., alias="from"),
154
+ to_code: str = Query(..., alias="to"),
155
+ model: str = Query("haversine", regex="^(haversine|slc|vincenty)$")
156
+ ):
157
+ try:
158
+ co2_kg = estimate_co2_kg_by_codes(from_code, to_code, code_type="auto", model=model)
159
+
160
+ from_airport = get(from_code, code_type="auto")
161
+ to_airport = get(to_code, code_type="auto")
162
+
163
+ return {
164
+ "from": from_airport.as_dict(),
165
+ "to": to_airport.as_dict(),
166
+ "co2_kg_per_passenger": co2_kg,
167
+ "model": model
168
+ }
169
+
170
+ except AeroNavXError as e:
171
+ raise HTTPException(status_code=400, detail=str(e))
172
+
173
+
174
+ def run_server(host: str = "0.0.0.0", port: int = 8000):
175
+ import uvicorn
176
+ uvicorn.run(app, host=host, port=port)
177
+
178
+
179
+ if __name__ == "__main__":
180
+ run_server()
@@ -0,0 +1,3 @@
1
+ from .main import main
2
+
3
+ __all__ = ["main"]