Utility functions for dataknobs packages
Project description
dataknobs-utils
Utility functions for dataknobs packages.
Installation
pip install dataknobs-utils
Features
File Utilities
- File reading/writing with various formats (JSON, GZIP, etc.)
- Resource management
- Path utilities
Data Processing
- JSON utilities: Schema extraction, value traversal, data transformation
- Pandas utilities: DataFrame operations and transformations
- XML utilities: XML parsing and manipulation
- SQL utilities: Database connection and query helpers
Web & API
- Requests utilities: HTTP request helpers with retry logic
- Elasticsearch utilities: ES client helpers and query builders
System & Process
- System utilities: Environment variable management
- Subprocess utilities: Process execution helpers
- Stats utilities: Statistical calculations
Other
- LLM utilities: Utilities for working with language models
- Emoji utilities: Emoji processing and handling
Usage
from dataknobs_utils import json_utils, file_utils
# Read JSON file
data = json_utils.load_json_file("data.json")
# Extract nested values
value = json_utils.get_value(data, "path.to.nested[0].value")
# File operations
content = file_utils.read_text_file("example.txt")
file_utils.write_json_file("output.json", {"key": "value"})
Dependencies
This package depends on:
dataknobs-commondataknobs-structures- pandas, requests, psycopg2-binary, lxml, beautifulsoup4, json-stream, scikit-learn
License
See LICENSE file in the root repository.
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
dataknobs_utils-1.1.0.tar.gz
(59.1 kB
view details)
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 dataknobs_utils-1.1.0.tar.gz.
File metadata
- Download URL: dataknobs_utils-1.1.0.tar.gz
- Upload date:
- Size: 59.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1af70fb17870230c5492b3d32e5fab6eb0cf5119cbf2ea6d3a1f8547aca76d56
|
|
| MD5 |
b9eb795466f555891e569fc670b68201
|
|
| BLAKE2b-256 |
d6b56f85349059269652f0732c2dc0e78f7fbf196b35c25e796a743b53ee0850
|
File details
Details for the file dataknobs_utils-1.1.0-py3-none-any.whl.
File metadata
- Download URL: dataknobs_utils-1.1.0-py3-none-any.whl
- Upload date:
- Size: 53.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cffbd17b3bb794a7ce8a7cbe51f0e655ed563bb30c1fbd8d0e9a6923e477d15e
|
|
| MD5 |
083c2f5faff270c30e55638edea53dec
|
|
| BLAKE2b-256 |
dc2260d6387f9813fc96c12c183d47d9f910a980ce7f52daa6c95736dc29212e
|