Skip to main content

A lightweight utility package to simplify common Python development tasks

Project description

EssentialKit

Functional Description

EssentialKit is a lightweight Python utility package designed to simplify common development tasks such as file handling, string manipulation, browser automation, and logging configuration.

The goal of this package is to provide reusable helper functions that speed up the development of Python projects while keeping the codebase clean, simple, and easy to maintain.

Owner

For any bugs or questions, please reach out to Dani Gavilán

Branching Methodology

This project follows a Git Flow simplified branching methodology

  • Master Branch: production code
  • Develop Branch: main integration branch for ongoing development. Features and fixes are merged into this branch before reaching master
  • Feature Branch: created from develop branch to work on new features

How to use it

Install the library

pip install essentialkit
import essentialkit

from pathlib import Path


directory: Path = Path("/home/user/Documents/test")
files: list[Path] = essentialkit.files.list_files(path=directory)

text: str = "Hello, name. Welcome to project."
result: str = essentialkit.strings.replace_all(
  input_string=text,
  replace_values={
    "name": "Dani",
    "project": "EssentialKit"
  }
)

Functionalities

File Module

  • list_files: Retrieve a list of all file paths within a specified folder and its subdirectories.
  • read_json: Read and parse a JSON file into a Python dictionary.
  • write_json: Serialize a Python dictionary into JSON format and write it to a file.
  • read_hocon: Read and parse a HOCON file into a Python dictionary.
  • iterate_hocon: Read nested dictionaries and lists into dot and index generator.
  • write_hocon: Serialize a Python dictionary into HOCON format and write it to a file.
  • update_excel_column: Update a specific column in an Excel sheet with values from a list.

String Module

  • findall_matches: Find all occurrences of a pattern in a given string using regex.
  • replace_all: Replace all occurrences of keys in input dict within input string with their corresponding values.
  • get_substring_between: Extract all substrings between open_mark and close_mark from input string.

Scraping Module

  • launch_chrome: Launches a Chrome browser instance with custom settings.

Log Module

  • configure: Configure Python logging from a JSON configuration file compatible with logging.config.dictConfig.

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

essentialkit-0.6.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

essentialkit-0.6.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file essentialkit-0.6.0.tar.gz.

File metadata

  • Download URL: essentialkit-0.6.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for essentialkit-0.6.0.tar.gz
Algorithm Hash digest
SHA256 38d56f968e0ac9c37aabb762e90880eebe1e3328e3722d91cc7e1e4d71024586
MD5 c078e8c1a6b8bf4abf8fb1e222f4a05f
BLAKE2b-256 05053d9056cb734f1698c1b66f173d47151306195b0f3b6db122b5e42434400b

See more details on using hashes here.

Provenance

The following attestation bundles were made for essentialkit-0.6.0.tar.gz:

Publisher: release.yml on DVictorGavilan/EssentialKit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file essentialkit-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: essentialkit-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for essentialkit-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b68220766561439bce034af0e2cc61f422a2fb3dcbd81367b458df737f35b89
MD5 70796a5b171be392d7083f7d91fc2846
BLAKE2b-256 a7bdc49d6b5c7fc248a19d6c9f32289e307786a9b06c949c099c02b3d41b4f1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for essentialkit-0.6.0-py3-none-any.whl:

Publisher: release.yml on DVictorGavilan/EssentialKit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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