Skip to main content

A collection of basic utility functions

Project description

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/

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

lukhed_basic_utils-1.6.1.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

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

lukhed_basic_utils-1.6.1-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file lukhed_basic_utils-1.6.1.tar.gz.

File metadata

  • Download URL: lukhed_basic_utils-1.6.1.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for lukhed_basic_utils-1.6.1.tar.gz
Algorithm Hash digest
SHA256 5a4c2bba198d8e874d65d9e47215d3afb24bd433eb0b7b7d8c8377f533991f9b
MD5 3927e94b539e5b42f3838f266778e9a0
BLAKE2b-256 0e453dd2adeb8b69baf37a0b3045603aa1f5d6dccbd8492d6403d49c6ce94b55

See more details on using hashes here.

File details

Details for the file lukhed_basic_utils-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lukhed_basic_utils-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3450f130d5757d71e4c47cb44a84fb149ac716c6bd716b86a0ac81ab20627408
MD5 0fea83fc98e597e0cb34ec1104b65903
BLAKE2b-256 13ba6ccdd5b22d7464071c9d1b727afe8266cab6abe2e8772381aae85cf476ac

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