Skip to main content

Chronulus SDK for Python

AI Forecasting & Prediction Agents

Install

pip install chronulus

Example Usage

Import packages

# python imports
from typing import List
from pydantic import BaseModel, Field
from datetime import datetime

# chronulus sdk imports
from chronulus import Session
from chronulus.estimator import NormalizedForecaster
from chronulus_core.types.attribute import ImageFromUrl

Describe the Use Case

chronulus_session = Session(
    name="ASIN Prediction",
    situation="""Amazon is the largest ecommerce retailer with extensive forecasting capability, but it does not yet have
    the ability to forecast demand for new products that lack a sufficient history of sales. 
    """,
    task="""We would like to forecast the demand for an ASIN, which is Amazon's name for a SKU. A unique ASIN is assigned
    to individual products, to product variants, and to product bundles. We would like to predict seasonal demand for 
    an ASIN in the US Marketplace. 
    """,
    env=dict(
        CHRONULUS_API_KEY="<YOUR-CHRONULUS-API-KEY>",
    )
)

Describe a prediction input

class Item(BaseModel):
    brand: str = Field(description="The brand of the product")
    product_name: str = Field(description="The name of the product. This may include the brand and other descriptive info")
    product_details: str = Field(description="A long form description of the product and its characteristics / features")
    price: float = Field(description="The price of the ASIN in USD")
    product_images: List[ImageFromUrl] = Field(default=[], description="A list of image urls associated with this product")

Create a forecasting agent

nf_agent = NormalizedForecaster(
    session=chronulus_session,
    input_type=Item
)

Metadata

Release files for chronulus 0.0.5.post13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chronulus 0.0.5.post13
File Size Uploaded Provenance Actions
chronulus-0.0.5.post13.tar.gz 6.4 kB Without provenance Details for chronulus-0.0.5.post13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chronulus 0.0.5.post13
File Interpreter ABI Platform Actions
chronulus-0.0.5.post13-py3-none-any.whl Python 3 none any Details for chronulus-0.0.5.post13-py3-none-any.whl

Total release size: 12.8 kB

Release files / chronulus-0.0.5.post13.tar.gz

Download URL chronulus-0.0.5.post13.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a89215dc4cc30ead3391b5095f4d0de46853946be81e432b389eb6ae93114fa2
BLAKE2b-256 checksum
How to use checksums
ff5a23e0f7defb254b6ebd3424111f772cd34488cda4f295760872017db76c04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / chronulus-0.0.5.post13-py3-none-any.whl

Download URL chronulus-0.0.5.post13-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89987b1d33a3c95880e3debaf4008b0e253388598e0cca2d952c96e8ef277573
BLAKE2b-256 checksum
How to use checksums
f100c970019d04829f9b64ebc3818d5c3f9bb58ebfec9b7034da4e545bc7bb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for chronulus 0.0.5.post13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page