Skip to main content

lutils

codecov lutils

A Loitd's Public Python Utilities Library.

Website: https://loitd.github.io/lutils
Pip: https://pypi.org/project/lutils/
Git: https://github.com/loitd/lutils/
JS: https://github.com/loitd/lutilsjs/ - Not equivalent

Installation

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.11.73
Install with pipenv:
pipenv install lutils~=2.11.73
Update existing installation: pipenv update lutils Update existing installation (manually): pipenv uninstall lutils
and then:
pipenv install lutils

Note

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

Usage

In your python file:

from lutils.utils import printlog, printwait
printlog("abc", "test.log")
printwait("Please wait while doing things", 5, "logfile.log")

To connect SSH to Linux servers and get disk space status

from lutils.utils import LServer
srv = LServer()
srv.connect(ip="192.168.1.2", uname="root", pwd="123456")
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

CI/CD Automated with Pytest and Circle CI

  • https://app.circleci.com/pipelines/github/loitd/lutils

License

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

Uploaded Source

Built Distribution

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

lutils-2.11.74-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file lutils-2.11.74.tar.gz.

File metadata

  • Download URL: lutils-2.11.74.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.8

File hashes

Hashes for lutils-2.11.74.tar.gz
Algorithm Hash digest
SHA256 cdcd3d382fd3afa7078cadadd7f9d29fa9c40ea4eb489eca0e2a7781b416a189
MD5 e16593784be2e90af69823f46b8dc1d2
BLAKE2b-256 ba7bfc2896bf6738a88080a68923cdac68087d1d7d537fb50dc87e755edfa8d9

See more details on using hashes here.

File details

Details for the file lutils-2.11.74-py3-none-any.whl.

File metadata

  • Download URL: lutils-2.11.74-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.8

File hashes

Hashes for lutils-2.11.74-py3-none-any.whl
Algorithm Hash digest
SHA256 ac0f150b8ff36e2bb939a8ce2cbbd2f2150c9429d43c7175ee1decbfbf779c25
MD5 25fe81861e30c30bd9a0f477584526c3
BLAKE2b-256 996c6c7cd869c6b51f818b6521a3f08a8a01eb996adc323632d28caffc398987

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.11.74 This release

2 files

2.11.73

2 files

2.11.7.2

2 files

2.11.7.1

2 files

2.11.7

2 files

2.11.6

2 files

2.11.5

2 files

2.11.4

2 files

2.11.3

2 files

2.11.2

2 files

2.11.1

2 files

2.11.0

2 files

2.10.3.3

2 files

2.10.3.2

2 files

2.10.3.1

2 files

2.10.3.0

2 files

2.10.2.9

2 files

2.10.2.8

2 files

2.10.2.7

2 files

2.10.2.6

2 files

2.10.2.5

2 files

2.10.2.4

2 files

2.10.2.3

2 files

2.10.2.2

2 files

2.10.2.1

2 files

2.10.2

2 files

2.10.1

2 files

2.10.0

2 files

2.9.9

2 files

2.9.8

2 files

2.9.7

2 files

2.9.6

2 files

2.9.5

2 files

2.9.4

2 files

2.9.3

2 files

2.9.2

2 files

2.9.1

2 files

2.9

2 files

2.8

2 files

2.7

2 files

2.6

2 files

2.5

2 files

2.4

2 files

2.3

2 files

2.2

2 files

2.1

2 files

2.0

2 files

1.9

2 files

1.8

2 files

1.7

2 files

1.6

2 files

1.5

2 files

1.4

2 files

1.3

2 files

1.2

2 files

1.1

2 files

1.0

2 files

0.9

2 files

0.8

2 files

0.7

2 files

0.6

2 files

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Supported by

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