Skip to main content

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

Project description

as-price-download

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 as-price-download

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: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.0.tar.gz (70.1 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.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for alens_pricedl-0.5.0.tar.gz
Algorithm Hash digest
SHA256 019cacd31d7f59798b02b18ca16849a2ef71c39fa21ef3e88b30e8933166a0fc
MD5 960f416797a363acff8ec28c4aa520e9
BLAKE2b-256 fb2db60e556579fd903adfd27a8460c1d9e84456882d76e6e1581ea4042e3486

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alens_pricedl-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78df0d49dbdddc6c105c6103a62fd7d2684aa1bca57a27c1e3d38800ea1e730a
MD5 4e42a2bbabe88310ce594a09b8c21cfe
BLAKE2b-256 3b2decd0d5cda7678733ad5ead79170e15fa8f4a51cbdfa66ced43ef806c299b

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