initial uv project setup

This commit is contained in:
2026-05-22 18:16:32 +02:00
parent d6900dbf80
commit 11fc1bb9bd
20 changed files with 65 additions and 0 deletions

37
AGENTS.md Normal file
View File

@@ -0,0 +1,37 @@
# AGENTS.md
## Current status
Rebuild initialized.
## Completed steps
None yet.
## Current step
Step 1 - Public API contract and pure core.
## Design decisions
- Package is managed with uv.
- Public import is `import dpg_map as dpgm`.
- Dear PyGui calls are GUI-thread-only.
- Runtime public calls enqueue commands or update logical state.
- Overlay updates must not reset center/zoom.
- The widget uses child_window + measured-size drawlist.
- Tiles use a memory cache and persistent disk cache.
- Tile providers are interchangeable.
## Known issues
None yet.
## Commands used
- Read `STEPS.md`, `FEATURES.md`, and `ARCHITECTURE.md`.
- Created initial package, examples, tests, and agent-log structure.
## Next action
Implement Step 1.

1
examples/.gitkeep Normal file
View File

@@ -0,0 +1 @@

View File

@@ -27,3 +27,13 @@ dev = [
"pytest>=9.0.3",
"ruff>=0.15.14",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.pyright]
typeCheckingMode = "basic"

1
src/dpg_map/api.py Normal file
View File

@@ -0,0 +1 @@
"""Public API wrappers for dpg-map."""

1
src/dpg_map/cache.py Normal file
View File

@@ -0,0 +1 @@
"""Memory and disk cache helpers."""

1
src/dpg_map/commands.py Normal file
View File

@@ -0,0 +1 @@
"""Command models for GUI-thread rendering work."""

View File

@@ -0,0 +1 @@
"""Diagnostics and debug state helpers."""

View File

@@ -0,0 +1 @@
"""Draw layer bookkeeping helpers."""

View File

@@ -0,0 +1 @@
"""Public exception types."""

View File

@@ -0,0 +1 @@
"""Map interaction state and handlers."""

1
src/dpg_map/overlays.py Normal file
View File

@@ -0,0 +1 @@
"""Logical overlay models."""

View File

@@ -0,0 +1 @@
"""Web Mercator projection helpers."""

1
src/dpg_map/providers.py Normal file
View File

@@ -0,0 +1 @@
"""Tile provider definitions and registry."""

1
src/dpg_map/renderer.py Normal file
View File

@@ -0,0 +1 @@
"""GUI-thread renderer implementation."""

1
src/dpg_map/sizing.py Normal file
View File

@@ -0,0 +1 @@
"""Map sizing measurement helpers."""

1
src/dpg_map/state.py Normal file
View File

@@ -0,0 +1 @@
"""Thread-safe state models and registries."""

1
src/dpg_map/tiles.py Normal file
View File

@@ -0,0 +1 @@
"""Tile identity, lifecycle, and worker coordination."""

1
src/dpg_map/types.py Normal file
View File

@@ -0,0 +1 @@
"""Shared type aliases and small value objects."""

1
src/dpg_map/widget.py Normal file
View File

@@ -0,0 +1 @@
"""Dear PyGui map widget construction."""

1
tests/.gitkeep Normal file
View File

@@ -0,0 +1 @@