Skip to main content

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 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-1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lutils-1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for lutils-1.3.tar.gz
Algorithm Hash digest
SHA256 1fc45efd72f1331ed457eff7e2831bcb442bf7a3f6a7d42bd4ac1d0ca8635079
MD5 91f9dcd2733093efb8b67568d5fcd530
BLAKE2b-256 dbbe5d3506641c7c07e3f12226b1f0d16eaf4792c72584bb6c6d2fc4042280bf

See more details on using hashes here.

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

Hashes for lutils-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87cb2bedf6dbebefa6cea5e18655443d73ef54653180f3e8665d52148d0ccc2c
MD5 be1eb8fcecc5b751479e745a3dc58f05
BLAKE2b-256 194b87f281df88f90248bfec113350710e54bbf20ed94ed2f722bb0b4c64ca70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page