This release is a pre-release and may not be stable for production use.
The argdirective project
Argdirective is a simple module which takes the first argument passed to your python script as subcommand and tries to find a directive module based on the basename of the script.
Example:
script.py subcommand --arg1 --arg2
Consider the following module:
site-packages
│ ...
│
└───configmount
│ │ mount
as well as the following executable script /bin/configmount
#!/bin/python
import argdirective
if __name__ == "__main__":
argdirective.generator.run()
If you run configmount mount --root /etc /mnt/configmount in your terminal argdirective will lookup the configmount package and redirect the arguments to the module mount. See the configmount project for more details.
Release files for argdirective 0.0.13rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| argdirective-0.0.13rc1.tar.gz | 3.1 kB | Details |
Release files / argdirective-0.0.13rc1.tar.gz
| Download URL | argdirective-0.0.13rc1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84e27edc3582230c564054c684cc51087b4aa6946f04d180380c5324e5994554
|
|
BLAKE2b-256 checksum How to use checksums |
b3374aaf387d6b7ec998b55599d9c0168a4d84ee9555b7c3b5bb898cb8c5d452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2
|