Skip to main content

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:

Development

Run tests:

uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_ghostfolio-0.1.1.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_ghostfolio-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for pydantic_ghostfolio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6c89f1fc679549ffc90d753719489875202914ba2f065c1307bb795f852b7ebe
MD5 fd88e36a0eee8f31e63091c254f8dcfd
BLAKE2b-256 8674cebe25a04167fc99e50c9dc03b4bd11f9ceeb45555e5655d19b1d69306a2

See more details on using hashes here.

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

Hashes for pydantic_ghostfolio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e1e1e9c5c797d4f7c57bf0e6dcd1ed60c0ea4715e8a42125d2a336030a63e2
MD5 5d5c0193a89bb8075ae8efeff683555d
BLAKE2b-256 4f6578b36d4e7deef9023183a0dbf4fde33e4a5f5c4c47098868a2da66affbe2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page