Common utilities and data models for Hezor projects
Project description
Hezor Common
Common utilities and data models for Hezor projects.
Features
- Data Models for Creations: Pydantic-based models for structured content creation
- Creation models: Top-level model with metadata, authors, and contributors
- Chapter models: Chapter structure with metadata, summary, and sections
- Section models: Section structure with data queries, chart suggestions, and analysis guidelines
- Result models: Generation results for creations, chapters, and sections
Installation
pip install hezor-common
Usage
Data Models
from hezor_common.data_model import (
CreationModel,
CreationMeta,
Author,
ChapterModel,
SectionModel,
)
# Create a creation model
author = Author(name="John Doe", avatar="https://example.com/avatar.jpg")
meta = CreationMeta(
name="Single Store Profit Model",
description="A comprehensive profit analysis model",
author=author,
path="food_beverage/single_store_profit_model",
domain="food_beverage",
slug="single_store_profit_model"
)
creation = CreationModel(
meta=meta,
summary=None,
chapters=[]
)
API Reference
All models are exported from hezor_common.data_model:
- Creation:
CreationModel,CreationMeta,CreationSummary,Author,Contributor - Chapter:
ChapterModel,ChapterMeta,ChapterSummary - Section:
SectionModel,TitleGuideline,DataQuery,Dataset,ChartSuggestion,AnalysisGuideline - Results:
SectionGenerateResult,ChapterGenerateResult
Requirements
- Python >= 3.11
- pydantic >= 2.0.0
Changelog
See CHANGELOG.md for detailed version history and changes.
License
MIT License - see LICENSE file for details.
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
hezor_common-0.4.2.tar.gz
(86.0 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 hezor_common-0.4.2.tar.gz.
File metadata
- Download URL: hezor_common-0.4.2.tar.gz
- Upload date:
- Size: 86.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e9075e948b6620ad5483ab922ff6f679a4310ceeb2d6a009bd92e453728bb2
|
|
| MD5 |
d8fa3a04ae81c306b226670dbf33fefb
|
|
| BLAKE2b-256 |
8b80e7dc6521def6fa82fb0e051105e6af7912242d5f8d5d7d8c6970b921390e
|
File details
Details for the file hezor_common-0.4.2-py3-none-any.whl.
File metadata
- Download URL: hezor_common-0.4.2-py3-none-any.whl
- Upload date:
- Size: 70.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c679a69c7ad21f03a75e16f7a83a68b112b7b148bed051569c953cbeac3b7fdf
|
|
| MD5 |
2550bde460bd39bec12ff82094cc7fbe
|
|
| BLAKE2b-256 |
bf1361752a3e19f4d01e29ce967600094fe7a14fbbc5a4cfcdb32d9d561cf59c
|