lukhed_basic_utils
A collection of basic utility functions for Python projects.
Installation and Usage
pip install lukhed-basic-utils
osCommon
A set utility functions for interacting with the operating system's file and directory structures.
Example Usage
from lukhed_basic_utils import osCommon as osC
Creating Operating System Agnostic FIle Path Strings
example_path = osC.create_file_path_string(list_of_dir=['subdir', 'file.txt'])
print(example_path)
#output
/home/user/current_working_dir/subdir/file.txt
Retrieving File Names in Directory
return_files_in_dir_as_strings("/home/user/docs", return_file_names_only=True)
# output
['file1.txt', 'file2.txt']
fileCommon
A set utility functions for working with local files.
from lukhed_basic_utils import fileCommon as fC
githubCommon
A class for working with the Github API, geared toward utilizing github repo's as storage or shared config.
from lukhed_basic_utils.githubCommon import GithubHelper
Retrieve JSON Content Stored In a Github Repo
gC = GithubHelper(project='lukhed', repo_name='exampleRepo')
example_dict = gC.retrieve_file_content('someConfig.json')
Other Utility Files
classCommon
listWorkCommon
mathCommon
stringCommon
timeCommon
For more documentation, check pypi page: https://pypi.org/project/lukhed-basic-utils/
Metadata
Release files for lukhed-basic-utils 1.6.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lukhed_basic_utils-1.6.12.tar.gz | 66.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lukhed_basic_utils-1.6.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 138.5 kB
Release files / lukhed_basic_utils-1.6.12.tar.gz
| Download URL | lukhed_basic_utils-1.6.12.tar.gz |
|---|---|
| Size | 66.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f398650083af6b81328c3cffca4f509aeb1b11897600fadcbbe3c52e2f773245
|
|
BLAKE2b-256 checksum How to use checksums |
d6986b8205142b473cb361a69a67630b35d75f0497ab9b18b810bad09c1cd6f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / lukhed_basic_utils-1.6.12-py3-none-any.whl
| Download URL | lukhed_basic_utils-1.6.12-py3-none-any.whl |
|---|---|
| Size | 72.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecf8f823908942d6d18d6d70b388e01c4f313946026e329ff5a9a01370e83cb9
|
|
BLAKE2b-256 checksum How to use checksums |
d752fcfa9fa824f67c4c22ce022b9bc8482ac48c115bf2c3c2961271f7fa0805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|