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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file lis-0.0.5.tar.gz.

File metadata

  • Download URL: lis-0.0.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for lis-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fe7f98211c37c5447a158616a2adb392a643c0b3f87ead9e35a5fb6ed030d7e5
MD5 e52213f24ce6085746d57b73c352272c
BLAKE2b-256 59ae7a7bf9c4c3c920917c254b99218f20b62a687dedf79479b0235c8140c7d8

See more details on using hashes here.

File details

Details for the file lis-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: lis-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for lis-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d372ef7e2952588c450082835021d217f33ce3f11e113daa88bf0be0082b5cb9
MD5 063f67d3e1175acb1a8e61be2746b384
BLAKE2b-256 f46d3021bcc984c6203f04ee974deb73658550d431c91387ba659108b2fa27fd

See more details on using hashes here.

Supported by

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