Skip to main content

A Public Loitd Python Utility Library

Project description


A Loitd's Public Python Utilities Library.

JS: - Not equivalent


You can easily install this library with command pip or pipenv:
pip install lutils
With specific version (pip will automatically uninstall older version & install specific version):
pip install lutils~=2.10.2
Update existing installation: pipenv update lutils Update existing installation (manually): pipenv uninstall lutils
and then:
pipenv install lutils


  • Works with Python 2.x, 3.x. Recommended Python 3.x for performance and full support features
  • Support Unicode from version Then please update to newest version.
  • Backward compatible with Python 2.7 (recommended for 2.x) from version From, lutils works on both 2.x and 3.x
  • Any suggestions are welcome with pull request or email at loitranduc[at]
  • Introduction or guide (docs) if available will be at


In your python file:

# import printlog() to both PRINT to SCREEN & WRITE to LOGFILE
from lutils.lutils import printlog, printwait

# using printlog. If file not exist, printlog will creates a new one
# If the log file exists, printlog will appends to the end of the log file
printlog("abc", "test.log")

# using printwait. Print text to console & write to logfile & wait with dots in specific seconds
printwait("Please wait while doing things", 5, "logfile.log")

To connect SSH to Linux servers and get disk space status

# import LServer
from lutils.lutils import LServer

# init instance
srv = LServer()

# connect to server
srv.connect(ip="", uname="root", pwd="123456")

# get disk space

For developers

To build this package:

  • pip install --upgrade pip setuptools wheel
  • pip install tqdm
  • pip install --user --upgrade twine keyring

Compiling this package:

  • python sdist bdist_wheel

Upload to PyPI:

  • python -m twine upload --skip-existing dist/*
  • python -m twine upload --skip-existing -u loitd --repository-url dist/*

Easy upload with keyring:
python -m keyring set loitd

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lutils, version
Filename, size File type Python version Upload date Hashes
Filename, size lutils- (8.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lutils- (7.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page