devel/py-tyro 1.0.16 FreeBSD
CLI interfaces & config objects, from types
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
05658249f9- License
- MIT
- Categories
- devel, python
- Package size
- 379.2 KiB, 2124.1 KiB installed
Description
tyro provides a lightweight, ergonomic way to build CLI interfaces and config objects directly from Python type annotations. It wraps argparse with a clean, type-driven API and sensible defaults, letting you turn dataclasses, attrs classes, or Pydantic models into CLI interfaces.
Features:
- Declare CLI arguments with Python type hints and dataclasses
- Automatic --help generation from docstrings
- Shell completion for bash, zsh, fish, and PowerShell
- Nested subcommands with minimal boilerplate
- Hierarchical / modular configuration structures
Install
Binary package:
pkg install py312-tyro
From the ports tree:
cd /usr/ports/devel/py-tyro/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-tyro>0:devel/py-tyro
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.0.16 | 1.0.16 | - | - | 1.0.16 |
| FreeBSD:14:quarterly | 1.0.16 | 1.0.16 | n/a | - | 1.0.16 |
| FreeBSD:15:latest | 1.0.16 | 1.0.16 | n/a | - | - |
| FreeBSD:15:quarterly | 1.0.16 | 1.0.16 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.0.16 | 1.0.16 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Runtime 3
${PYTHON_PKGNAMEPREFIX}docstring_parser>=0.16: textproc/py-docstring_parser${PYTHON_PKGNAMEPREFIX}typeguard>=4.0.0: devel/py-typeguard${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.13.0: devel/py-typing-extensions
Test 8
${PYTHON_PKGNAMEPREFIX}attrs>=21.4.0: devel/py-attrs${PYTHON_PKGNAMEPREFIX}pydantic2>=2.5.2: devel/py-pydantic2${PYTHON_PKGNAMEPREFIX}pyyaml>=6.0: devel/py-pyyaml${PYTHON_PKGNAMEPREFIX}ml-collections>=0.1.0: misc/py-ml-collections${PYTHON_PKGNAMEPREFIX}msgspec>=0.18.6: devel/py-msgspec${PYTHON_PKGNAMEPREFIX}omegaconf>=2.2.2: devel/py-omegaconf${PYTHON_PKGNAMEPREFIX}shtab>=1.5.6: devel/py-shtabbash: shells/bash
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 10
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| tyro-1.0.16.tar.gz | 603382 | edf23c9c3eecba5a2b5af152df8f34a723b689a001ff5b7311f93eff1893a636 |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
05658249f9 |
Pedro Ramos | devel/py-tyro: new port tyro is a lightweight, ergonomic way to build CLI interfaces and
config objects directly from Python type annotations. It wraps
argparse with a clean, type-driven API and sensible defaults,
letting you turn dataclasses, attrs classes, or Pydantic models
into CLI interfaces.
It provides automatic --help generation from docstrings, shell
completion for bash/zsh/fish/PowerShell, and nested subcommands
with minimal boilerplate.
Signed-off-by: Pedro Ramos <[email protected]>
Co-authored-by: Michael Osipov <[email protected]>
PR: 297523 |