Pydantic models for Ghostfolio export/import data
Project description
Pydantic Ghostfolio
Pydantic models for Ghostfolio export/import format. This package allows you to parse, validate, and type-check Ghostfolio data in Python.
Installation
pip install pydantic-ghostfolio
Usage
See examples/basic_usage.py for a complete example.
from pydantic_ghostfolio import GhostfolioExport
import json
with open("ghostfolio-export.json", "r") as f:
data = json.load(f)
export = GhostfolioExport(**data)
print(f"Export version: {export.meta.version}")
References
The models are based on the Ghostfolio source code interfaces:
- Export Response Schema: export-response.interface.ts
- Activity Interface: activities.interface.ts
- Prisma Schema: schema.prisma
Development
Run tests:
uv run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_ghostfolio-0.1.1.tar.gz.
File metadata
- Download URL: pydantic_ghostfolio-0.1.1.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c89f1fc679549ffc90d753719489875202914ba2f065c1307bb795f852b7ebe
|
|
| MD5 |
fd88e36a0eee8f31e63091c254f8dcfd
|
|
| BLAKE2b-256 |
8674cebe25a04167fc99e50c9dc03b4bd11f9ceeb45555e5655d19b1d69306a2
|
File details
Details for the file pydantic_ghostfolio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pydantic_ghostfolio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e1e1e9c5c797d4f7c57bf0e6dcd1ed60c0ea4715e8a42125d2a336030a63e2
|
|
| MD5 |
5d5c0193a89bb8075ae8efeff683555d
|
|
| BLAKE2b-256 |
4f6578b36d4e7deef9023183a0dbf4fde33e4a5f5c4c47098868a2da66affbe2
|