Skip to main content

A Public Loitd utility package

Project description

lutils

A Loitd's Public Utilities Library Project

Website: https://inneka.com
Pip: https://pypi.org/project/lutils/ Git: https://github.com/loitd/lutils/ JS: https://github.com/loitd/lutilsjs/

Installation

You can easily install this library with command pip
pip install lutils
with specific version:
pip install lutils~=1.4 Update existing installation: pipenv uninstall lutils
and
pipenv install lutils

Note

Support Unicode from version 1.4. Then please update to newest version.

Usage

In your python file:

# import printlog()
from lutils.lutils import printlog

# using printx. If file not exist
printlog("abc", "test.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="192.168.1.2", uname="root", pwd="123456")

# get disk space
srv.getdiskspace()

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 setup.py sdist bdist_wheel

Upload to PyPI:

  • python -m twine upload --skip-existing dist/*
    or
  • python -m twine upload --skip-existing -u loitd --repository-url https://upload.pypi.org/legacy/ dist/*

Easy upload with keyring:
python -m keyring set https://upload.pypi.org/legacy/ loitd

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

lutils-2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

lutils-2.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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