Skip to main content

Commodity price retrieval, storage, and export in format compatible with Plain-Text Accounting applications.

Project description

alens-pricedl

Price-database utility converted to Python

This is a rewrite of Pricedb-Rust utility. Pricedb-Rust originally came from Price-Database, which was in Python and was storing the prices in a SQLite database. In later versions of Price-Database, the database was replaced with an in-memory store, outputting the final result into a Ledger prices text file. In this project, the idea remains to fetch the prices, sort them by time, and output them into a Ledger prices text file.

Install

uv tool install alens-pricedl

Run

Example configuration file (.config/pricedb/pricedl.toml):

price_database_path = ":memory:"
alphavantage_api_key = ""
prices_path = "/home/prices.txt"
symbols_path = "/home/symbols.csv"

Development

uv run python main.py [dl]

Use with bean-price

The Vanguard downloader has been adapted for use with bean-price utility. Use:

bean-price -e "AUD:alens.pricedl.beanprice.vanguard_au_detail/HY"

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

alens_pricedl-0.5.2.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

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

alens_pricedl-0.5.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file alens_pricedl-0.5.2.tar.gz.

File metadata

  • Download URL: alens_pricedl-0.5.2.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for alens_pricedl-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bb1199fb15f4c58f1a420b962e5eca4dee5127f21da024cafb6de4b255f4f766
MD5 df281960ae0ebe729635f9294069411f
BLAKE2b-256 0b62e4eb958e3a7c6b9095eff11e18aeb4444ba199422906c53dcf8bb59f3045

See more details on using hashes here.

File details

Details for the file alens_pricedl-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for alens_pricedl-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c668661244a5c2c71570b57006f78fce9eb0f6e416e5dfe13c7169fa26c30b7
MD5 6b87465a9cce60a5ab024d4a9c6445c0
BLAKE2b-256 baea77c8d9ab386affd802a5d69d7b2dfcaf74b1ab26ce2b99c242887dd8955e

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