devel/py-knack 0.14.0 FreeBSD
Command-Line Interface framework
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 125.1 KiB, 690.3 KiB installed
Description
Knack provides a Command-Line Interface framework.
CLI Patterns:
- Be consistent with POSIX tools.
- CLI success comes from ease and predictability of use so be consistent.
- Support Piping and output direction to chain commands together.
- Work with GREP, AWK, JQ and other common tools and commands.
- Support productivity features like tab completion and parameter value completion.
- Commands should follow a "[noun] [noun] [verb]" pattern.
- For nouns that only support a single verb, the command should be named as a single hyphenated verb-noun pair.
- Commands should support all output types (be consistent).
- Exceptions are okay if only a 'raw' format makes sense e.g. XML.
- Commands and arguments should have descriptions.
- Include examples for the less straightforward commands.
- Commands should return an object or dictionary, not strings/bools/etc.
- Log to ERROR or WARNING for user messages; don't use print() function (by default it goes to STDOUT).
- STDOUT vs. STDERR: STDOUT is used for actual command output. Everything else to STDERR (e.g. log/status/error messages).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-knack | 0.14.0 |
| DragonFly | devel/py-knack | 0.11.0_2 |
| HardenedBSD | devel/py-knack | 0.14.0 |
| GhostBSD | devel/py-knack | 0.14.0 |
Install
Binary package:
pkg install py312-knack
From the ports tree:
cd /usr/ports/devel/py-knack/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-knack>0:devel/py-knack
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 | 0.14.0 | 0.14.0 | 0.10.1 | 0.11.0_2 | 0.14.0 |
| FreeBSD:14:quarterly | 0.14.0 | 0.14.0 | n/a | 0.11.0_2 | 0.14.0 |
| FreeBSD:15:latest | 0.14.0 | 0.14.0 | n/a | 0.11.0_2 | 0.11.0_2 |
| FreeBSD:15:quarterly | 0.14.0 | 0.14.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.14.0 | 0.14.0 | 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 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 6
${PYTHON_PKGNAMEPREFIX}argcomplete>=0: devel/py-argcomplete${PYTHON_PKGNAMEPREFIX}jmespath>=0: devel/py-jmespath${PYTHON_PKGNAMEPREFIX}packaging>=0: devel/py-packaging${PYTHON_PKGNAMEPREFIX}pygments>=0: textproc/py-pygments${PYTHON_PKGNAMEPREFIX}pyyaml>=0: devel/py-pyyaml${PYTHON_PKGNAMEPREFIX}tabulate>=0: devel/py-tabulate
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 18
Required by 2
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| knack-0.14.0.tar.gz | 73490 | 2ddd32fd6343ec9b6ed0da729b212362d0e6b1208c0162633c90cb6f94a05877 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.