Overview
Cmdopt.py is command-line option parser for Python.
Example:
import sys, cmdopt
## create parser
parser = cmdopt.Parser()
## define options
parser.option("-h, --help", "show help")
parser.option("-f, --file=FILE", "read file")
parser.option("-i, --indent=N", "indent width")\
.validation(lambda val: not val.isdigit() and "integer required.")\
.action(lambda val, opts: setattr(opts, 'indent', int(val)))
## parse args
args = sys.argv[1:]
opts = parser.parse(args) # may raise cmdopt.ParseError
if opts.help:
print(parser.help()) # or parser.help(width=15, indent=" ")
Features:
Validator
Handler
Help message
Multiple option
See README for details.
Metadata
Release files for Cmdopt 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| Cmdopt-0.2.0.tar.gz | 9.7 kB | Without provenance | Details for Cmdopt-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| Cmdopt-0.2.0-py3.2.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py3.2.egg |
| Cmdopt-0.2.0-py3.1.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py3.1.egg |
| Cmdopt-0.2.0-py3.0.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py3.0.egg |
| Cmdopt-0.2.0-py2.7.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py2.7.egg |
| Cmdopt-0.2.0-py2.6.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py2.6.egg |
| Cmdopt-0.2.0-py2.5.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py2.5.egg |
| Cmdopt-0.2.0-py2.4.egg | Legacy Egg format | - | - | Details for Cmdopt-0.2.0-py2.4.egg |
Total release size: 58.7 kB
Release files / Cmdopt-0.2.0.tar.gz
| Download URL | Cmdopt-0.2.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cafc9dd63e48d8fa0a184417fe6e741bba693ac24928248040a7041cb8b403a
|
|
BLAKE2b-256 checksum How to use checksums |
1d0c1b1b99e21a63cb7a2c5256a00dc1972891727c5db03cb3b5a00b3100ab77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py3.2.egg
| Download URL | Cmdopt-0.2.0-py3.2.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
79587caa05b7204dec893d11dc2574af766168e7bc24bf62c2ca29864335921b
|
|
BLAKE2b-256 checksum How to use checksums |
4a842d583f6b9b5a62e421989ecee2ea4503a1d96409488b8d6be18e7be0e63c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py3.1.egg
| Download URL | Cmdopt-0.2.0-py3.1.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
68e0fa24079c18e6225faeebbfd8033b4eb01a730089828cc183204f842b32ed
|
|
BLAKE2b-256 checksum How to use checksums |
8c44e497534f5ae8ea28dbbfd2780abe7c043f90be94a0d5b61bb8a6b48b68c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py3.0.egg
| Download URL | Cmdopt-0.2.0-py3.0.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8af47ae2248e819fcc2fe366205285a39411918ae2c21b5aea5b5f5c321fcc5d
|
|
BLAKE2b-256 checksum How to use checksums |
4998e339a35f26ed876257f18dcc22458c953fee34e251a82418b001bcaab4a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py2.7.egg
| Download URL | Cmdopt-0.2.0-py2.7.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8d718fc28b942ccf65ccdeaa6e6dc11ef32f921fd15eb4529139ee4d82992296
|
|
BLAKE2b-256 checksum How to use checksums |
dff63d8c787047904afd731a0abdb077431a3a365d0236c7eff37ea0d832e5b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py2.6.egg
| Download URL | Cmdopt-0.2.0-py2.6.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8c5a918166ea76290bf64ba7f1efe427d091050f6340b2a7d2040910f98d9db0
|
|
BLAKE2b-256 checksum How to use checksums |
247059099224700bcb47662d55ebfe028b242b21a1ab8d5f6b51c21c7e19e657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py2.5.egg
| Download URL | Cmdopt-0.2.0-py2.5.egg |
|---|---|
| Size | 7.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
2baf74e08b398054f275e09755d7fda0ab0aeb933d0195808e24d360c139ddba
|
|
BLAKE2b-256 checksum How to use checksums |
8150076f9fbf25568b52c88ce07afed774f10d87c3cf24c73a2b56ebd7546327
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Cmdopt-0.2.0-py2.4.egg
| Download URL | Cmdopt-0.2.0-py2.4.egg |
|---|---|
| Size | 7.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bd38ea4b82472f20513f13172f8bb628d02736a3185f19d78082329975959f9b
|
|
BLAKE2b-256 checksum How to use checksums |
fc55e15a3c7f531da34e35705141e1ada01f9c5f53e0f2922fa7ddd0acc0343e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Cmdopt 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.