Internal utility package for PT backend developers
Project description
🚀 pt_dev_utils
pt_dev_utils is a lightweight internal Python utility package crafted to streamline backend development in the PT system. It includes modular, reusable functions that help keep your codebase clean, efficient, and DRY.
🔧 Built for internal use — optimized for speed, clarity, and team productivity.
✨ Features
- 📂 File Utilities: Standardized file operations (read, write, path handling)
- 📋 Validation Functions: Common data validators for backend pipelines
- 💡 Minimal Dependencies: Designed to stay lean and fast
📦 Installation
Install from PyPI using pip:
pip install pt-dev-utils
✅ Example Usage
from pt_dev_utils import load_csv_as_records, read_csv_as_dict_list
records = load_csv_as_records('data/sample.csv')
print(records)
# [('John', 25, 'Engineer'), ('Jane', 30, 'Manager')]
# Read all columns with default headers
data = read_csv_as_dict_list('data.csv')
# Read with selected columns
data = read_csv_as_dict_list(
'data.csv',
selected_columns=['name', 'age']
)
# Read with custom headers
data = read_csv_as_dict_list(
'data.csv',
custom_headers=['name', 'age', 'city']
)
📚 Documentation
📖 Read full documentation
📦 View on PyPI
📂 GitHub Repository
🧾 Changelog
v1.1.8
- Added publishable docs
- Minor bug fixes
🛠 Contributing
This package is primarily maintained for internal use. For suggestions or bug reports, please open an issue on the GitHub repo.
🔐 License
Internal Use Only – All rights reserved © PT System.
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 pt_dev_utils-1.2.0.tar.gz.
File metadata
- Download URL: pt_dev_utils-1.2.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a374bda744640e2f15c425f61f5811f9692cee0210558acdd5c32b745a7ab321
|
|
| MD5 |
8868fbaee962f360b2b8ef0ff9bee417
|
|
| BLAKE2b-256 |
a6f2f0e3ceb00ce25524fc65abbb88654ea249d5dafec31a3b7233ef6038ad3e
|
File details
Details for the file pt_dev_utils-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pt_dev_utils-1.2.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61cda7b07dd1909012aa7c208b2bbfe8aef062866e9748087a8fe3bdfbe5bfa5
|
|
| MD5 |
d1bc220993cf131aabc9dd13cb9bb30f
|
|
| BLAKE2b-256 |
4a8022c2cb276a0fbeb86fbd4026fcd63320278fd5a0cfa5bdd2a97ca2f88049
|