A boilerplate utility package
Reason this release was yanked:
Misleading
Project description
True Core
A comprehensive utility toolkit designed for Python developers seeking clean, efficient, and maintainable solutions.
🚀 Quick Start
pip install true-core
from true.toolkits import simple_debugger
from true.collections import Directory
# Quick example
simple_debugger("Starting application...")
work_dir = Directory("./workspace")
📋 Table of Contents
✨ Features
-
🛡 Robust Error Handling
- Comprehensive exception hierarchy
- Custom exception classes
- Error recovery mechanisms
-
📝 Advanced Logging
- Built on top of
loguru - Configurable logging strategies
- Console and file logging support
- Built on top of
-
🔧 Developer Tools
- Performance profiling
- Debugging utilities
- Type checking helpers
- Retry mechanisms
-
⚡ High Performance
- Optimized collections
- Efficient file operations
- Smart caching capabilities
📦 Installation
Prerequisites
- Python 3.7 or higher
- pip or poetry (recommended)
# Using pip
pip install true-core
# Using poetry
poetry add true-core
# From source
git clone https://github.com/alaamer12/true.git
cd true
pip install -r requirements.txt
📚 Documentation
Comprehensive documentation is available in multiple formats:
🔍 Module Overview
Core Components
# File Operations
from true.collections import File, Directory
workspace = Directory("./workspace")
# Performance Monitoring
from true.toolkits import profile
@profile
def expensive_operation():
pass
Available Modules
- collections: File system operations and data structures
- exceptions: Comprehensive error handling
- log: Advanced logging capabilities
- toolkits: Developer utilities and helpers
- types: Type definitions and validation
- time: Time manipulation utilities
🚀 Usage Examples
Error Handling
from true.collections import File
import logging
logger = logging.getLogger(__name__)
def read_secure_file(path: str) -> str:
try:
file = File(path)
return file.read_text()
except FileNotFoundError as e:
logger.error(f"File not found: {e}")
return ""
Performance Monitoring
from true.toolkits import monitor
@monitor
def process_data(items: list):
for item in items:
# Processing logic here
pass
🤝 Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Development Setup
# Clone repository
git clone https://github.com/alaamer12/true.git
cd true
# Install dependencies with poetry
poetry install
# Run tests
poetry run pytest
📝 License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Made with ❤️ by True Core Team
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 true_core-0.1.1.tar.gz.
File metadata
- Download URL: true_core-0.1.1.tar.gz
- Upload date:
- Size: 52.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e5356dc999e0337a95b2b1fb0759d59580340ee4e128bb133667973ff54e1e
|
|
| MD5 |
22f39929d529ecf6d9c9b4dfd2c290cf
|
|
| BLAKE2b-256 |
a9ed04b3115e83815525ee47418fbcd984b40a6cba356d2f8617519b0a8ac927
|
File details
Details for the file true_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: true_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 53.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0e3c02985b707d6411bb1c347e785dca5dd26492c48b31f03195c71631bd40b
|
|
| MD5 |
b79512565067e16b1582666235fd8e92
|
|
| BLAKE2b-256 |
db4d7c7feaebb9904dbe4b3f0a12dcc492609ac5e97ed418f76a8516d4733659
|