Skip to content

Bundle a timestamp for downstream consumers to reference for emitting a warning #338

Description

@adtyavrdhn

Related to pydantic/pydantic-ai#4627

Need a way to reference the timestamp so that we can emit a warning if it is older than X days

Might not be the brightest idea but does seem the most obvious one to me, open to better ones

Where?
a constant in generated data.py, a field inside prices/data.json itself, or just populated into DataSnapshot.timestamp?

How?
git commit date of data.json, a value written during make package-data, or embedded in data.json at source-build time?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions