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/*
orpython -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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lutils-2.10.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5659267c034e79f874ad788787bba7d86256dea3d0c522cc4e35f5a3c762a93c |
|
MD5 | a063b5d5b6a7b06581300ee161f508a3 |
|
BLAKE2b-256 | ea25d291b807d6508af56ad90bce26c512c50200479670c8b1887ba7ce8b0214 |