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.5.tar.gz (66.3 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.5-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_pricedl-0.5.5.tar.gz
Algorithm Hash digest
SHA256 14f9a90a0a4e2f32b62cf5584a6cae170f5073cca8493422d0ab0a20f92cfef1
MD5 e89f445df5897c03f1560b86b3abd6f9
BLAKE2b-256 9d1711ed2ad5ac2faa914af1c612a92b2b2f2ae4bd2ef4f656471c1ba30dcad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_pricedl-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 890783064a2b37dc3c5f15ac13517d7ce48fb6fd3ad8db831f35c174018b31ff
MD5 dee9127f0955e54889aad19000d5a883
BLAKE2b-256 2b4db22d4825ec43b955f78bc182d78e753b490e2fdd7396bd6070637f26bdc8

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