Skip to content

Instantly share code, notes, and snippets.

@timmyreilly
Created January 24, 2024 22:41
Show Gist options
  • Save timmyreilly/05d703ce3f10dabfaa7c2b677b815263 to your computer and use it in GitHub Desktop.
Save timmyreilly/05d703ce3f10dabfaa7c2b677b815263 to your computer and use it in GitHub Desktop.
Dump content from python console
"""
you're in the python debug terminal and you need to export some pydantic models for
"""
with open("data_point.json", "w") as file:
file.write(data_point.json())
with open("model_data.json", "w") as file:
file.write(results.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment