Skip to main content

Life is short, use `lis`

Project description

lis

life's short, avoid stupid duplicate coding.

lis a python library including vairous state-of-art tools, enjoy!

Install

pip install lis

Import

# import all
import lis

# import specific module or function
from lis.decorators import safe_or

API Reference

Decorators

lis.decorators.safe_or
lis.decorators.timeit

Collections

lis.collections.objectize

lis.collections.objectize(data, recursive=True)

Convert a dictionary to object, and access the keys via attributes.

Parameters:

  • data: dict Input dictionary
  • recursive: bool, optional convert the data recursively if this is set as True.

streaming

lis.streaming.streaming

Tests

python -m pytest tests -s

Contribution

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

lis-0.0.5.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

lis-0.0.5-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

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