Skip to main content

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


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.2.1.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hezor_common-0.2.1-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

Details for the file hezor_common-0.2.1.tar.gz.

File metadata

  • Download URL: hezor_common-0.2.1.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for hezor_common-0.2.1.tar.gz
Algorithm Hash digest
SHA256 47be6dcadd66b9f438c3f405c5d5cf5d42d0592121f2ea8739d6c2752d04e9a6
MD5 e6665f74110571e49e9633ac28866d51
BLAKE2b-256 0918063979e1e9387ebfb626f024e4a45bde93d8bb7caeb2717ef468e3770c19

See more details on using hashes here.

File details

Details for the file hezor_common-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hezor_common-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 52.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for hezor_common-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7bddddbc204194ca6a9d626136d0d8c04f64517ff07fcc64258aaf0c6516f2
MD5 2a4c2a0895f6b1a15b683c6868abe0df
BLAKE2b-256 5cfd5263d8934d446399a8aa124185e5e06ec5943263e2930710926e84e77732

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page