LTPlugins - Lite plugins for simple Python 3 projects
Installation
pip install ltplugins
Usage examples
Imagine there is a directory plugins with two scripts: ltp_example.py and ltp_test.py For simplicity they contain a single main function:
def main(*args, **kwargs):
print(args, kwargs)
LTPlugins could dynamically load them and unload during the runtime of the main script:
import ltplugins
p = ltplugins.LTPlugins(prefix='ltp_', path='plugins')
p.load('example')
p.load('test')
p.list(state='a', status=True)
p.name['example'].main('123', a=456)
p.run('test', 'main', '789', a=123)
p.unload('test')
p.reload('example')
Changelog
| Date | Version | Remarks |
|---|---|---|
| 2020.04.29 | v1.0.0 | Initial release |
| 2020.04.29 | v1.0.1 | setup.py fix for README.md |
| 2020.05.01 | v1.1.0 | List modules: all, loaded and unloaded |
| 2020.05.01 | v1.1.1 | Readme update |
| 2020.05.07 | v1.1.2 | Default status='a' in LTPlugins.list() |
| 2020.05.07 | v1.1.3 | LTPlugins.list() now returns module names |
| 2020.05.07 | v1.1.4 | LTPlugins.list(state='a', status=False) |
| 2020.05.07 | v1.1.4.1 | fnmatch module reference removed |
| 2020.05.07 | v1.1.5 | Dummy release to make PyPI happy |
On any issues, questions and suggestions contact me: Mikhail Zakharov zmey20000@yahoo.com
Metadata
Release files for ltplugins 1.1.5
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 |
|---|---|---|---|---|
| ltplugins-1.1.5.tar.gz | 3.5 kB | Without provenance | Details for ltplugins-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ltplugins-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for ltplugins-1.1.5-py3-none-any.whl |
Total release size: 8.6 kB
Release files / ltplugins-1.1.5.tar.gz
| Download URL | ltplugins-1.1.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1711e8950c880359f5722abe165c0a1b10cbc9fba4cde83441fb33b6232ca77a
|
|
BLAKE2b-256 checksum How to use checksums |
58f1e47330645e93e0115d3f60a02a6407f51890730f71a43c44dfb1626a8fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.1
|
Release files / ltplugins-1.1.5-py3-none-any.whl
| Download URL | ltplugins-1.1.5-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6315139567148805a453128fcda9e7b707dd4ec40b49a4b22626803ccabaa065
|
|
BLAKE2b-256 checksum How to use checksums |
d0b30f7827efc4656c443ad92635cb9c7b265ce2825c746fd31ed649e8a2c442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.1
|
Security for ltplugins 1.1.5
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.