Skip to main content

Custom Helpers

A small Python utility package providing helper functions for configuration management and import utilities.

Installation

pip install custom_helpers

Features

Configuration Management

Load configuration from YAML files with omegaconf:

from custom_helpers import get_config

# Load configuration file with automatic root_dir setting
config = get_config("path/to/conf.yaml")

# Or specify a custom root directory
config = get_config("path/to/conf.yaml", root="/custom/root/path")

Python Path Utilities

Add the project root directory to the Python path:

from custom_helpers import add_root_to_pythonpath

# Add the current directory to Python path
add_root_to_pythonpath()

# Add a parent directory to Python path (go up n levels)
add_root_to_pythonpath(n_up=1)

# Get the root directory path
root_dir = add_root_to_pythonpath(return_root=True)

# Print the added directory
add_root_to_pythonpath(verbose=True)

Note: add_root_to_pythonpath is designed for script use and will raise an error if used in Jupyter/IPython environments.

Requirements

  • Python 3.10+
  • omegaconf

Metadata

Release files for custom-helpers 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for custom-helpers 0.1.0
File Size Uploaded Provenance
custom_helpers-0.1.0.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for custom-helpers 0.1.0
File Interpreter ABI Platform
custom_helpers-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / custom_helpers-0.1.0.tar.gz

Download URL custom_helpers-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e6c8e26ebfa36eb88c0db06f4d396dbe4a053ed3c39ca6d066f153dc1bf92dc8
BLAKE2b-256 checksum
How to use checksums
59962070e4620735039c7092338ca58d870d1d5548f4ccd0586ac06b056b6332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / custom_helpers-0.1.0-py3-none-any.whl

Download URL custom_helpers-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33537abd2bfd349e2231620ed9c7bfa540177391c8c68579f7d02e17d06e052c
BLAKE2b-256 checksum
How to use checksums
eaf75aef22faa60cb54e2ca7a2bea55cc6190015e28aa3f77604e4f624f2dc91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for custom-helpers 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page