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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alens_pricedl-0.5.7.tar.gz.
File metadata
- Download URL: alens_pricedl-0.5.7.tar.gz
- Upload date:
- Size: 75.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebe4ee5a3cc95c994468af19b939dfd2fd68ab5c9998d91e0b73103c485ad31b
|
|
| MD5 |
7094a7701c7c7080bfda947927847009
|
|
| BLAKE2b-256 |
e99f0f1152c91bb138238e6619ec6dc95f1d949496dd502dca503a218614ed77
|
File details
Details for the file alens_pricedl-0.5.7-py3-none-any.whl.
File metadata
- Download URL: alens_pricedl-0.5.7-py3-none-any.whl
- Upload date:
- Size: 51.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b319afb4ec0835e22247c1a5d820ad5014a4e11c148fbd8ccc972c4ef0852f20
|
|
| MD5 |
eb983b709c477e8406b29b029c411e0c
|
|
| BLAKE2b-256 |
59df8b5c12899b606afc2f6fb0df1e2289f61962ac9f59edc8201a832aa56ccf
|