Skip to main content

Load me later. A lazy plugin management system.

Project description

https://api.travis-ci.org/chfw/lml.svg https://codecov.io/github/chfw/lml/coverage.png https://readthedocs.org/projects/lml/badge/?version=latest

lml seamlessly finds the lml based plugins from your current python environment but loads your plugins on demand. It is designed to support plugins that have external dependencies, especially bulky and/or memory hungry ones. lml provides the plugin management system only and the plugin interface is on your shoulder.

lml enabled applications helps your customers [1] in two ways:

  1. Your customers could cherry-pick the plugins from pypi per python environment. They could remove a plugin using pip uninstall command.

  2. Only the plugins used at runtime gets loaded into computer memory.

When you would use lml to refactor your existing code, it aims to flatten the complexity and to shrink the size of your bulky python library by distributing the similar functionalities across its plugins. However, you as the developer need to do the code refactoring by yourself and lml would lend you a hand.

Installation

You can install lml via pip:

$ pip install lml

or clone it and install it:

$ git clone https://github.com/chfw/lml.git
$ cd lml
$ python setup.py install

License

New BSD

Change log

0.0.8 - 4/1/2019

Updated

  1. #9: include tests, docs for OpenSuse package validation

0.0.7 - 17/11/2018

Fixed

  1. #8: get_primary_key will fail when a module is loaded later

  2. deprecated old style plugin scanner: scan_plugins

0.0.6 - 07/11/2018

Fixed

  1. Revert the version 0.0.5 changes. Raise Import error and log the exception

0.0.5 - 06/11/2018

Fixed

  1. #6: Catch and Ignore ModuleNotFoundError

0.0.4 - 07.08.2018

Added

  1. #4: to find plugin names with different naming patterns

0.0.3 - 12/06/2018

Added

  1. dict can be a pluggable type in addition to function, class

  2. get primary tag of your tag, helping you find out which category of plugins your tag points to

0.0.2 - 23/10/2017

Updated

  1. pyexcel#103: include LICENSE in tar ball

0.0.1 - 30/05/2017

Added

  1. First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lml-0.0.8.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

lml-0.0.8-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lml-0.0.8.tar.gz.

File metadata

  • Download URL: lml-0.0.8.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for lml-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7c8053ff1d4673bc894a91ff9cf01c45083afba6710d29666e0fcfa9d6dfcae6
MD5 1a27e409256486ebf5321e32efef6caf
BLAKE2b-256 4de3b9cec0740b64d41e2ce41fce91833daf27ce15c676a607bf4096edc0d5bd

See more details on using hashes here.

File details

Details for the file lml-0.0.8-py2.py3-none-any.whl.

File metadata

  • Download URL: lml-0.0.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for lml-0.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 47e51bdf9666d32c4d579bed95ec1b68150853ca0c7672e55aaae9f162049d91
MD5 d51b4f4775edea974ed2617a219a1638
BLAKE2b-256 f04f91df36bb33ccb58ffc57396ddf31e2d4e769b82e3113ea69a06f4523a4f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page