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-1.0.1.tar.gz (69.6 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-1.0.1-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alens_pricedl-1.0.1.tar.gz
  • Upload date:
  • Size: 69.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alens_pricedl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1a4204bed8b9d56fda741e2bbebbda21042de33900d663b49d5ade86838f16e9
MD5 4b9ec9b1805640f416ee966b19c006a1
BLAKE2b-256 cdf3e4cdf13fbcd9e027573787d71633cf577f3f65958547cb639522aafc57ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alens_pricedl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alens_pricedl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5c2d9f29fb952ec0c6ba516d31156527b3f3253e860eda19ebeb426d99e8e0
MD5 5f78232f2d7ab70f6f537792947c8d06
BLAKE2b-256 ba7f7307cc3def16c6d962260e8730030f2e649a5f91cca5a5eabb6fa1665e48

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