Skip to main content

click-lazy

$ click_lazy

Click lazy is an extention for click.

Click lazy allow you to separate set of commands in file and import it only if necessary.

A Simple Example

from click_lazy import LazyGroup

...

if __name__ == '__main__':
    # This group of commands will import group_heavy only if needed
    cli.add_command(LazyGroup(name='heavy', import_name='group_heavy:cli'))

    cli()

group_heavy.py

import click


@click.group()
def cli():
    """Havy script"""


@cli.command(name='heavy_cmd')
def run_heavy_cmd():
    print('Running command from heavy group file')

See complete example on github

Links

Release files for click-lazy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for click-lazy 0.0.1
File Size Uploaded
click-lazy-0.0.1.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for click-lazy 0.0.1
File Interpreter ABI Platform
click_lazy-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.6 kB

Release files / click-lazy-0.0.1.tar.gz

Download URL click-lazy-0.0.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2b73c2425ce064d414049921b5a4ff415711a867aa448f2af0941819f5a3ab1
BLAKE2b-256 checksum
How to use checksums
72411d5d9aedd177905da437ce8293d7036161d44242411689cc8cc525ef95c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release files / click_lazy-0.0.1-py2.py3-none-any.whl

Download URL click_lazy-0.0.1-py2.py3-none-any.whl
Size 6.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
786e97a0845731f306cbf9ffed23310c729345842aaf8eb3ec0aac2f420fa098
BLAKE2b-256 checksum
How to use checksums
630baca4379e86cf4c4f14fa0074867ced1c13f549d2c813f6737f6ad0a27f55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page