echoarg
echoarg is a tool to quickly output the exact contents of passed arguments as python strings
$ uvx echoarg test \ test2 $'\x0A'
['test', ' test2', '\n']
$ uvx echoarg $(printf $'which\tcharacters split\nargs?')
['which', 'characters', 'split', 'args?']
$ uvx echoarg "$IFS"
[' \t\n']
There's a limited number of options, as follows:
-c or --count will output the total number of remaining arguments
-l or --list will output a line by line list instead of a one line array
-i or --interactive assign the arguments to args, print them, and open a python repl with
-- interpret any further arguments as literal
$ uvx echoarg -c $(echo 'hi there')
2
$ uvx echoarg -l one, two
1: 'one,'
2: 'two'
$ uvx echoarg -i some args
args = ['some', 'args']
>>> len(args[1])
4
>>>
$ uvx echoarg -- -l -c
['-l', '-c']
Release files for echoarg 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| echoarg-0.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| echoarg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / echoarg-0.1.0.tar.gz
| Download URL | echoarg-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9c38ef418401406744c98eae2fe35c897264353c8d3f84e34b37a2d3604882f
|
|
BLAKE2b-256 checksum How to use checksums |
64071936c387a9b80323b35ab8821f8d954a96f2c5bf877eaaafc37cdaa6b7a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / echoarg-0.1.0-py3-none-any.whl
| Download URL | echoarg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5eff9b79cd1d59b266ab597c94de5028f04599f64824e73bff8dabdcc709fd3d
|
|
BLAKE2b-256 checksum How to use checksums |
e8d925e482841d6b8945a6070131e07b7f4959859b0077f9c16ef8dfeb3f77af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|