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.2.3.tar.gz (33.7 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.2.3-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lukhed_basic_utils-1.2.3.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for lukhed_basic_utils-1.2.3.tar.gz
Algorithm Hash digest
SHA256 aefd5717ccdee5ba7d76d2c99f88df5963ab68ad745686408139d406e7e5cf95
MD5 4caf32bb0e8a464beb4f42e87a2d6a87
BLAKE2b-256 46b438c07a252502db028e95e060e7b39d860f230bac9773d07a19a9f9fa8448

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lukhed_basic_utils-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e62dedbbaea001d3e43bb1e29a030a0c8004cac75c491e6a60195cee691c9cd0
MD5 f889e7c79b4a4d864e018acba812f6b4
BLAKE2b-256 5fdfa617daf26d7214fd6c796a293d8c24cf17f46d64833757031db06b701e3c

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