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

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)):
    time.sleep(0.1)

# preety print with emojis with help of rich
rprint("Hello, World! :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.1.tar.gz (215.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for litescript-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0a86bedddaf8030ec0b6df1b104fd8afcb614a369904605bb793d527ba9bf77c
MD5 235f8e5b7d7c2c51fef7e5e344b7cddd
BLAKE2b-256 0f0b38878b1998163faae077e40fd4c3dc5648d8d23d2929f8c2de2f676bcc83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litescript-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b4c6ef72d0a35acb3ba854c7667047e5e7313c1f1f95bfd39e3f5c697c5a809
MD5 88a0ee59d52bf58d181657bbf77c6b16
BLAKE2b-256 ec3a44444f9eccfd3e563ab71ce66616eb9d3d738ce3efa585f18450a68b5d87

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