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

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.1.5.tar.gz (13.7 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.1.5-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hezor_common-0.1.5.tar.gz
  • Upload date:
  • Size: 13.7 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.1.5.tar.gz
Algorithm Hash digest
SHA256 4405701d24ad57810ea95de4a69788353a8b37e7f806187994dc3449e2f0fea8
MD5 66ad6a835aee4f7014dbe7cb435f7b3c
BLAKE2b-256 6caf404d2a6809d490139a9990d647b2ef7f2357297615ab51de6ef638750941

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hezor_common-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 603a8c05e025c60a8702f80b9851833edd489b06f921c55d0c6ae19fdfb27a6d
MD5 eb3d9fe5aea513845d7253ee79dc390a
BLAKE2b-256 cb9c37453de515b9ab78d3e8a4cbb7984df7634a7b1f7acf0fa6faadeddab007

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