A centralized toolkit for Python developers
Project description
Helper Library
๐ Available Languages
๐ Overview
PyHelper is a versatile Python toolkit designed to simplify data analysis, visualization, statistical operations, and utility workflows.
It integrates seamlessly into academic, research, and professional projects, allowing you to focus on insights rather than boilerplate code.
Key advantages:
- ๐งฎ Built-in statistics and math utilities
- ๐ Easy-to-use data visualization wrappers
- ๐ Handy file handling and searching
- ๐ Syntax validation for Python files
- ๐ Multi-language support with ready-to-use translations
- ๐ Optimized for fast prototyping and educational purposes
โจ Features
๐ Data Visualization
- Horizontal & vertical bar charts (
hbar,vbar) - Pie charts (
pie) - Box plots (
boxplot) - Histograms (
histo) - Heatmaps (
heatmap) - Data tables (
table) - Advanced visualizations (scatter, violin, KDE, pairplot, etc.)
๐ Statistical Analysis
- Measures of central tendency:
get_media,get_median,get_moda - Measures of dispersion:
get_rank,get_var,get_desv,disp - Data normalization (
normalize) - Outlier detection (IQR & Z-score methods)
- Conditional data transformations (
conditional)
๐ Utilities
- File discovery and loading (
call) - Enhanced Switch / AsyncSwitch system
- Syntax checking & analysis (
PythonFileChecker,check_syntax) - Error reporting with context
- Integrated help system (
help, previews, docs)
๐ Multi-language Support
- Built-in translations for 12 languages
- Extendable with
load_user_translations() - Dynamic selection with
set_language(lang_code) - Default fallback to English
๐ Installation
Install from PyPI:
pip install pyhelper-tools-jbhm
๐ง Usage Examples
Set language
from helper import set_language
set_language("en") # English
set_language("es") # Spanish
set_language("fr") # French
set_language("de") # German
set_language("ru") # Russian
set_language("tr") # Turkish
set_language("zh") # Chinese
set_language("it") # Italian
set_language("pt") # Portuguese
set_language("sv") # Swedish
set_language("ja") # Japanese
set_language("ar") # Arabic
# ... support for 100+ languages
Basic statistics
import helper as hp
data = [1, 2, 2, 3, 4, 5]
print(hp.get_media(data)) # Mean
print(hp.get_median(data)) # Median
print(hp.get_moda(data)) # Mode
Visualization
import helper as hp
from helper.submodules import graph as gr
df = hp.pd.DataFrame({"values": [5, 3, 7, 2, 9]})
gr.histo(df, "values", bins=5, title="Sample Histogram")
File handling
from helper import call
data = call("my_data", type="csv") # Finds and loads a CSV file automatically
Custom translations
from helper import load_user_translations
# Load custom translations from lang.json
load_user_translations("custom/lang.json")
๐ Project Structure
helper/
โโโ core.py # Main functions
โโโ lang/ # Translation files (JSON)
โโโ submodules/
โ โโโ graph.py # Visualization functions
โ โโโ statics.py # Statistical functions
โ โโโ utils.py # Utility helpers
โโโ __init__.py
๐ค Contributing
Contributions are welcome!
Please open issues, suggest improvements, or submit pull requests on the GitHub repository.
๐ License
This project is licensed under the MIT License.
See the LICENSE file for details.
โก Ready to supercharge your Python workflows with PyHelper? Start exploring today!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhelper_tools_jbhm-2.0.1.tar.gz.
File metadata
- Download URL: pyhelper_tools_jbhm-2.0.1.tar.gz
- Upload date:
- Size: 411.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81d5b792310be785e54a5cbe01f18c110138fe33cd80a6e4f69f206502f8627a
|
|
| MD5 |
2e4eaa7242bf0f0f361676a892214484
|
|
| BLAKE2b-256 |
1dba1dd110b1d3ebf2d0fc857b77a644bb61265e6c4087714470997b973b5ec5
|
File details
Details for the file pyhelper_tools_jbhm-2.0.1-py3-none-any.whl.
File metadata
- Download URL: pyhelper_tools_jbhm-2.0.1-py3-none-any.whl
- Upload date:
- Size: 664.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7236960657c7127c2175096a0e2aad0b616b887cafc2670748f9dff187c25a4d
|
|
| MD5 |
33dca0e20b2b8c0d4a6d81b7d845cf88
|
|
| BLAKE2b-256 |
546a812521e0a89a4ec189837e8b0b4b2fd02fd11f7407e77de1c98b13ac5dc2
|