precept
Async application framework.
Install
Install with pip: $ pip install precept
Usage
Basic:
from precept import Precept, Command, Argument
class MyCli(Precept):
"""
The name of the application will be the spinal-case version of
the name of the class.
Class docstring is added as cli description.
"""
@Command(Argument('argument', type=str))
async def my_command(self, argument):
print(argument)
def cli():
MyCli().start()
if __name__ == '__main__':
cli()
For local testing:
- Set
entry_points.console_scripttomy-cli = my_package.my_cli:cliinsetup.py - Install locally:
$ pip install -e . - Then call:
$ my-cli my-command hello-> printhello
Metadata
Release files for precept 0.6.7
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 |
|---|---|---|---|---|
| precept-0.6.7.tar.gz | 20.4 kB | Without provenance | Details for precept-0.6.7.tar.gz |
Release files / precept-0.6.7.tar.gz
| Download URL | precept-0.6.7.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a869520e1af7a74edfcf3280c86cf47573391637edbb3886ec9fac6c6774b92e
|
|
BLAKE2b-256 checksum How to use checksums |
f1dea1cb284ba93a0949a4c2053e31b3367000593adab1e4faaf1fef6e671528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for precept 0.6.7
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.