Skip to main content

Python Helper for Repetitive Tasks with File and Data Management

Project description

UtilityLib

UtilityLib is a unified library of basic modules that provides a collection of ready-to-use functions for various file system oprerations and data processing.

Installation

  • You can install UtilityLib via pip or by copying the UtilityLib directory into your project.
  • Using pip: pip install UtilityLib
  • Using pip+GitHub: pip install git+https://github.com/yourusername/UtilityLib.git

Usage/Examples

Here are some examples demonstrating the usage of UtilityLib:

Filename Extraction

# Method 1
from UtilityLib import EU
EU.filename("filepath/filename.ext1.ext2")

# Method 2
from UtilityLib import UtilityManager as UM
UM().filename("filepath/filename.ext1.ext2")

Project Configuration Management

# Method 3
import UtilityLib as UL
UL.UM.filename("filepath/filename.ext1.ext2")
UL.UtilityManager().filename("filepath/filename.ext1.ext2")

# Method 4
from UtilityLib import ProjectManager
_pm = ProjectManager(
  path_bases=("/mnt/D/DataDrive", "D:/path-windows")
  version=2,
  subversion=202211
  )
_pm.config.new_key.deeper_new_key = "new_value"

# Update Old Config
_pm.update_config()

# Save as a new version but later change key
_pm.update_config(subversion=20221103)

Compress Files to tar.gz Format

_wos_files = EU.search(f"{path_scrapped_queries}/WOS-Downloads", "*.csv")
EU.add_tgz_files(f"{path_scrapped_queries}/WOS-Downloads.tgz", _wos_files)
EU.delete_path(f"{path_scrapped_queries}/WOS-Downloads")

Classes and Modules

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

utilitylib-2.17.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

UtilityLib-2.17-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file utilitylib-2.17.tar.gz.

File metadata

  • Download URL: utilitylib-2.17.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.14

File hashes

Hashes for utilitylib-2.17.tar.gz
Algorithm Hash digest
SHA256 44aa44fc7f79d34c70114ac49ca2ab3cd16d3935082b67934cedcbeead9957c3
MD5 1950f0f6eaf0c89ded35c922cd5c937a
BLAKE2b-256 5a3cfac6f7a8d1267ca3cb5d8201c706e090c490842d7df632a21126a9154f55

See more details on using hashes here.

File details

Details for the file UtilityLib-2.17-py3-none-any.whl.

File metadata

  • Download URL: UtilityLib-2.17-py3-none-any.whl
  • Upload date:
  • Size: 46.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.14

File hashes

Hashes for UtilityLib-2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 61c9fc046a7d6725cac80f345122f830cd00cdca79ef058467b6a16cb1a5713f
MD5 ded11958e7383852db596a380a45b48c
BLAKE2b-256 b883ac8f89ea8437fd61c4e8913162136378ecb8a488de6f93ad619b74736ad5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page