Skip to content

DataProducer

laktory.models.DataProducer ยค

Bases: BaseModel

Specifications on the producer of data.

ATTRIBUTE DESCRIPTION
name

Name of the data producer

TYPE: str

description

Description of the data producer

TYPE: Union[str, None]

party

First, second or third party ref.: https://blog.hubspot.com/service/first-party-data

TYPE: Literal[1, 2, 3]

Examples:

from laktory import models

producer = models.DataProducer(
    name="yahoo-finance",
    description="yfinance offers a threaded and Pythonic way to download market data from Yahoo! finance",
    party=3,
)
print(producer)
'''
variables={} name='yahoo-finance' description='yfinance offers a threaded and Pythonic way to download market data from Yahoo! finance' party=3
'''