[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#819756: ITP: python-path-and-address -- Functions for command-line server tools used by humans



Package: wnpp
Severity: wishlist
Owner: Tiago Ilieve <tiago.myhro@gmail.com>

* Package name    : python-path-and-address
  Version         : 1.0.0
  Upstream Author : Joe Esposito <joe@joeyespo.com>
* URL             : https://github.com/joeyespo/path-and-address
* License         : MIT
  Programming Lang: Python
  Description     : Functions for command-line server tools used by humans

Path-and-address resolves ambiguities for command-line interface applications
with the following pattern:

$ your_app [<path>] [<address>]

The library applies the principal of least surprise to command-line interfaces.

Some examples:

$ your_app .
 * Serving . on http://localhost:5000/

$ your_app 80
 * Serving . on http://localhost:80/

$ your_app ./80
 * Serving ./80 on http://localhost:5000/

$ your_app path/to/file
 * Serving path/to/file on http://localhost:5000/

$ your_app 0.0.0.0
 * Serving 0.0.0.0 on http://localhost:5000/

$ your_app . 0.0.0.0
 * Serving . on http://0.0.0.0:5000/

$ your_app 0.0.0.0:8080
 * Serving . on http://0.0.0.0:8080/

-

This library is a dependency of Grip[1], which is being packaged in ITP bug
#790611[2].

I plan to maintain it alone, but will evaluate joining Debian Python Modules
Team (DPMT) in the process.

Regards,
Tiago.

[1]: https://github.com/joeyespo/grip
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790611


Reply to: