Skip to main content
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. 😊

Metadata

Release files for litescript 0.0.3

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

Source distribution (sdist)

Source distribution for litescript 0.0.3
File Size Uploaded
litescript-0.0.3.tar.gz 9.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for litescript 0.0.3
File Interpreter ABI Platform
litescript-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 MB

Release files / litescript-0.0.3.tar.gz

Download URL litescript-0.0.3.tar.gz
Size 9.2 MB
Tags Source
SHA-256 checksum
How to use checksums
5a5ccfda831ce3e97b82e7a28fc45ebce0c156eae43e446d6b5f0fe9daf80a56
BLAKE2b-256 checksum
How to use checksums
d02a4960990cd48fc2f70d797379c2e188f0b9d6bb2c24f980632a277c5dde78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / litescript-0.0.3-py3-none-any.whl

Download URL litescript-0.0.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3e20283cd70ae1653744193cf032caa9e2d950f6ee24198b3b35357df957c5
BLAKE2b-256 checksum
How to use checksums
59bc1a5d568e6dd797793e5c356cc0c32abbdd7708ddc7919de5cb53dad96a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

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