{"id":17018169,"url":"https://github.com/loitd/lutils","last_synced_at":"2025-04-05T20:14:09.887Z","repository":{"id":34942543,"uuid":"192452676","full_name":"loitd/lutils","owner":"loitd","description":"Loitd Public Ultilities Project","archived":false,"fork":false,"pushed_at":"2022-12-08T10:54:07.000Z","size":287,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T13:43:04.328Z","etag":null,"topics":["library","python","python3"],"latest_commit_sha":null,"homepage":"https://loitd.github.io/lutils/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loitd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-18T02:42:38.000Z","updated_at":"2021-11-18T16:32:36.000Z","dependencies_parsed_at":"2023-01-15T10:49:09.871Z","dependency_job_id":null,"html_url":"https://github.com/loitd/lutils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loitd%2Flutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loitd%2Flutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loitd%2Flutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loitd%2Flutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loitd","download_url":"https://codeload.github.com/loitd/lutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","python","python3"],"created_at":"2024-10-14T06:44:45.344Z","updated_at":"2025-04-05T20:14:09.863Z","avatar_url":"https://github.com/loitd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lutils\n[![codecov](https://codecov.io/gh/loitd/lutils/branch/master/graph/badge.svg)](https://codecov.io/gh/loitd/lutils)\n[![lutils](https://circleci.com/gh/loitd/lutils.svg?style=svg)](https://circleci.com/gh/loitd/lutils)\n## A Loitd's Public Python Utilities Library. \nWebsite: [https://loitd.github.io/lutils](https://loitd.github.io/lutils/)  \nPip: [https://pypi.org/project/lutils/](https://pypi.org/project/lutils/)  \nGit: [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/)  \nJS: [https://github.com/loitd/lutilsjs/](https://github.com/loitd/lutilsjs/) - Not equivalent  \n## Installation\nYou can easily install this library with command `pip` or `pipenv`:  \n`pip install lutils`  \nWith specific version (pip will automatically uninstall older version \u0026 install specific version):  \n`pip install lutils~=2.11.74`  \nInstall with pipenv:  \n`pipenv install lutils~=2.11.74`  \nUpdate existing installation:\n`pipenv update lutils`\nUpdate existing installation (manually):\n`pipenv uninstall lutils`  \nand then:  \n`pipenv install lutils`  \n## Note\n- Works with Python 3.x. Recommended Python 3.x for performance and full support features\n- Support Unicode from version 2.10.2.2. Then please update to newest version.\n- 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\n- Any suggestions are welcome with pull request or email at loitranduc[at]gmail.com\n- Introduction or guide (docs) if available will be at [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/)  \n\n## Usage\nIn your python file:  \n~~~\nfrom lutils.utils import printlog, printwait\nprintlog(\"abc\", \"test.log\")\nprintwait(\"Please wait while doing things\", 5, \"logfile.log\")\n~~~\n\nTo connect SSH to Linux servers and get disk space status\n~~~\nfrom lutils.utils import LServer\nsrv = LServer()\nsrv.connect(ip=\"192.168.1.2\", uname=\"root\", pwd=\"123456\")\nsrv.getdiskspace()\n~~~\n\n## For developers\nTo build this package:  \n* `pip install --upgrade pip setuptools wheel`\n* `pip install tqdm`\n* `pip install --user --upgrade twine keyring`  \n\nCompiling this package:  \n* `python setup.py sdist bdist_wheel`  \n\nUpload to PyPI:  \n* `python -m twine upload --skip-existing dist/*`  \nor\n* `python -m twine upload --skip-existing -u loitd --repository-url https://upload.pypi.org/legacy/ dist/*`  \n\nEasy upload with keyring:  \n* `python -m keyring set https://upload.pypi.org/legacy/ loitd`\n\nCI/CD Automated with Pytest and Circle CI\n* `https://app.circleci.com/pipelines/github/loitd/lutils`\n\n## License\n* [License](https://github.com/loitd/lutils/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floitd%2Flutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floitd%2Flutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floitd%2Flutils/lists"}