A Public Loitd utility package
Project description
lutils
A Loitd's Public Utilities Project
Website: https://inneka.com
Pip: https://pypi.org/project/lutils/
Git: https://github.com/loitd/lutils/
Installation
You can easily install this library with command pip
pip install lutils
with specific version:
pip install lutils~=1.2
Update existing installation:
pipenv update lutils
or
pip install --upgrade lutils
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 wheelpip install tqdmpip 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lutils-1.3.tar.gz.
File metadata
- Download URL: lutils-1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fc45efd72f1331ed457eff7e2831bcb442bf7a3f6a7d42bd4ac1d0ca8635079
|
|
| MD5 |
91f9dcd2733093efb8b67568d5fcd530
|
|
| BLAKE2b-256 |
dbbe5d3506641c7c07e3f12226b1f0d16eaf4792c72584bb6c6d2fc4042280bf
|
File details
Details for the file lutils-1.3-py3-none-any.whl.
File metadata
- Download URL: lutils-1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87cb2bedf6dbebefa6cea5e18655443d73ef54653180f3e8665d52148d0ccc2c
|
|
| MD5 |
be1eb8fcecc5b751479e745a3dc58f05
|
|
| BLAKE2b-256 |
194b87f281df88f90248bfec113350710e54bbf20ed94ed2f722bb0b4c64ca70
|