Add dependency download and CLI functionality

- Implement dependency download and extraction for Zig packages
- Create new CLI commands for downloading and converting ZON files
- Add support for downloading dependencies from ZON files
- Update project dependencies to include httpx and tqdm
- Add WTFPL license file
- Enhance README with more detailed usage instructions and project motivation
This commit is contained in:
2025-03-07 17:59:32 +08:00
parent fc48162fcb
commit 765c98502c
9 changed files with 562 additions and 93 deletions

View File

@ -4,10 +4,17 @@ version = "0.1.0"
description = "A tool to parse Zig Object Notation (ZON) files and convert them to JSON"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["click>=8.1.8", "loguru>=0.7.3"]
dependencies = [
"click>=8.1.8",
"httpx>=0.28.1",
"loguru>=0.7.3",
"tqdm>=4.67.1",
]
license = "WTFPL"
[project.scripts]
zon2json = "zig_fetch_py.main:main"
zig-fetch = "zig_fetch_py.__main__:main"
[build-system]
requires = ["hatchling"]