Skip to main content

Utility package for streamlined Python scripts with logging, common imports, and essential utilities

Project description

https://github.com/someshfengde/litescript/blob/main/docs/logo.png https://img.shields.io/pypi/v/litescript.svg https://app.travis-ci.com/someshfengde/litescript.svg Documentation Status Updates

Utility package for streamlined Python scripts with logging, common imports, and essential utilities

https://github.com/someshfengde/litescript/blob/main/docs/litescript_demo.gif

Quickstart

To use LiteScript in a project:

# imports all the essentials for scripting (setup_logger, tqdm, os, glob, sys etc.)
from litescript import *

# sets up a logger with a default format and level
logger = setup_logger()

logger.debug("This is a debug message")

# listing out directories
for dir in glob.glob("*"):
    logger.info(f"-- Found directory: {dir}")

# using tqdm for progress bars
for i in tqdm(range(10)):
    logger.info("hii")
    time.sleep(0.1)

# preety print with emojis with help of rich
rprint("Hello, World! :earth_asia:")
# Hello, World! 🌏

Get data science related imports:

# imports all the essentials for data science (pandas, numpy, setup logger, tqdm, much more.)
from litescript.data_science import *

Get vis related imports

from litescript.vis_utils import * # imports all the essentials for visualization (matplotlib, plotly etc.)

# directly start plotting
fig = px.line(x=[1, 2, 3], y=[1, 3, 2])
fig.show()

# another matplotlib figure
fig = plt.figure()
plt.plot([1, 2, 3], [1, 3, 2])
plt.show()

Features

  • can more workflows for simplification can be added here? if someone uses lmk will add those too. 😊

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

litescript-0.0.3.tar.gz (9.2 MB view details)

Uploaded Source

Built Distribution

litescript-0.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file litescript-0.0.3.tar.gz.

File metadata

  • Download URL: litescript-0.0.3.tar.gz
  • Upload date:
  • Size: 9.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for litescript-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5a5ccfda831ce3e97b82e7a28fc45ebce0c156eae43e446d6b5f0fe9daf80a56
MD5 fb0980e374552fce4017649ae8c537ff
BLAKE2b-256 d02a4960990cd48fc2f70d797379c2e188f0b9d6bb2c24f980632a277c5dde78

See more details on using hashes here.

File details

Details for the file litescript-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: litescript-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for litescript-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3e20283cd70ae1653744193cf032caa9e2d950f6ee24198b3b35357df957c5
MD5 3c04467637e4c23da86eecf15e0d5c73
BLAKE2b-256 59bc1a5d568e6dd797793e5c356cc0c32abbdd7708ddc7919de5cb53dad96a6f

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