{ "info": { "author": "Ben Webber", "author_email": "benjamin.webber@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# ledger-fx-rates\n\nRender [current foreign exchange rates](https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html) from the European Central Bank as [ledger market values](www.ledger-cli.org/3.0/doc/ledger3.html#Commodities-and-Currencies).\n\n**ledger-fx-rates** output is compatible with any software that uses the ledger journal format, including [hledger](http://hledger.org/).\n\n## Install\n\n**ledger-fx-rates** requires Python 2.7 or later and only depends on the standard library.\n\nDownload the [latest release](https://github.com/benwebber/ledger-fx-rates/releases/latest) or install with pip:\n\n```\npip install ledger-fx-rates\n```\n\n## Usage\n\nOutput rates for the Euro (EUR):\n\n```\n$ ledger-fx-rates\nP 2017-02-09 AUD EUR 0.71608\nP 2017-02-09 BGN EUR 0.51130\nP 2017-02-09 BRL EUR 0.30004\nP 2017-02-09 CAD EUR 0.71347\nP 2017-02-09 CHF EUR 0.93703\nP 2017-02-09 CNY EUR 0.13622\nP 2017-02-09 CZK EUR 0.03701\nP 2017-02-09 DKK EUR 0.13450\nP 2017-02-09 GBP EUR 1.17523\nP 2017-02-09 HKD EUR 0.12055\nP 2017-02-09 HRK EUR 0.13388\nP 2017-02-09 HUF EUR 0.00324\nP 2017-02-09 IDR EUR 0.00007\nP 2017-02-09 ILS EUR 0.24952\nP 2017-02-09 INR EUR 0.01401\nP 2017-02-09 JPY EUR 0.00833\nP 2017-02-09 KRW EUR 0.00082\nP 2017-02-09 MXN EUR 0.04575\nP 2017-02-09 MYR EUR 0.21069\nP 2017-02-09 NOK EUR 0.11254\nP 2017-02-09 NZD EUR 0.67554\nP 2017-02-09 PHP EUR 0.01874\nP 2017-02-09 PLN EUR 0.23204\nP 2017-02-09 RON EUR 0.22249\nP 2017-02-09 RUB EUR 0.01591\nP 2017-02-09 SEK EUR 0.10545\nP 2017-02-09 SGD EUR 0.66116\nP 2017-02-09 THB EUR 0.02671\nP 2017-02-09 TRY EUR 0.25325\nP 2017-02-09 USD EUR 0.93528\nP 2017-02-09 ZAR EUR 0.06974\n```\n\nOutput rates for a different currency:\n\n```\n$ ledger-fx-rates CAD\nP 2017-02-09 AUD CAD 1.00365\nP 2017-02-09 BGN CAD 0.71664\nP 2017-02-09 BRL CAD 0.42053\nP 2017-02-09 CHF CAD 1.31334\nP 2017-02-09 CNY CAD 0.19092\nP 2017-02-09 CZK CAD 0.05187\nP 2017-02-09 DKK CAD 0.18852\nP 2017-02-09 EUR CAD 1.40160\nP 2017-02-09 GBP CAD 1.64720\nP 2017-02-09 HKD CAD 0.16897\nP 2017-02-09 HRK CAD 0.18764\nP 2017-02-09 HUF CAD 0.00454\nP 2017-02-09 IDR CAD 0.00010\nP 2017-02-09 ILS CAD 0.34973\nP 2017-02-09 INR CAD 0.01964\nP 2017-02-09 JPY CAD 0.01168\nP 2017-02-09 KRW CAD 0.00115\nP 2017-02-09 MXN CAD 0.06412\nP 2017-02-09 MYR CAD 0.29531\nP 2017-02-09 NOK CAD 0.15773\nP 2017-02-09 NZD CAD 0.94684\nP 2017-02-09 PHP CAD 0.02626\nP 2017-02-09 PLN CAD 0.32523\nP 2017-02-09 RON CAD 0.31185\nP 2017-02-09 RUB CAD 0.02229\nP 2017-02-09 SEK CAD 0.14779\nP 2017-02-09 SGD CAD 0.92668\nP 2017-02-09 THB CAD 0.03744\nP 2017-02-09 TRY CAD 0.35496\nP 2017-02-09 USD CAD 1.31089\nP 2017-02-09 ZAR CAD 0.09775\n```\n\n## Tips\n\n### Using `include` to organize your ledger\n\nAppend the daily rates to a separate file:\n\n```\n$ ledger-fx-rates >> ~/.ledger-fx-rates.dat\n```\n\nIn your main ledger file, include the file above:\n\n```\ninclude .ledger-fx-rates.dat\n```\n\n### Scheduling updates\n\nThe ECB updates these rates around 16:00 CET (15:00 UTC) on trading days.\n\n## License\n\nMIT\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benwebber/ledger-fx-rates/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ledger-fx-rates", "package_url": "https://pypi.org/project/ledger-fx-rates/", "platform": "", "project_url": "https://pypi.org/project/ledger-fx-rates/", "project_urls": { "Homepage": "https://github.com/benwebber/ledger-fx-rates/" }, "release_url": "https://pypi.org/project/ledger-fx-rates/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Render current foreign exchange rates from the European Central Bank as ledger market values.", "version": "1.0.0" }, "last_serial": 2632797, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b5502b82e806157349bbfab6d4ce2e5e", "sha256": "fbaf0c996e9cbe4dba598e151345248c5945ee1b8ebc06f369a745e987a81694" }, "downloads": -1, "filename": "ledger_fx_rates-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5502b82e806157349bbfab6d4ce2e5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6612, "upload_time": "2017-02-10T09:23:07", "url": "https://files.pythonhosted.org/packages/21/13/5b095808da02fe0070b12479201efa7d6874f664df6c080cc8a44f0a563a/ledger_fx_rates-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab50445233de44cf93683be92c48fb34", "sha256": "2bf6a8f721a3f52070ef272fb88d303aec548a6414599b9757ca9e6fa7fb9d9f" }, "downloads": -1, "filename": "ledger-fx-rates-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ab50445233de44cf93683be92c48fb34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4035, "upload_time": "2017-02-10T09:23:09", "url": "https://files.pythonhosted.org/packages/1f/14/12709757df702ddecee87bec0c5d7f885936e6c741aeee3534208c43f012/ledger-fx-rates-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5502b82e806157349bbfab6d4ce2e5e", "sha256": "fbaf0c996e9cbe4dba598e151345248c5945ee1b8ebc06f369a745e987a81694" }, "downloads": -1, "filename": "ledger_fx_rates-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5502b82e806157349bbfab6d4ce2e5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6612, "upload_time": "2017-02-10T09:23:07", "url": "https://files.pythonhosted.org/packages/21/13/5b095808da02fe0070b12479201efa7d6874f664df6c080cc8a44f0a563a/ledger_fx_rates-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab50445233de44cf93683be92c48fb34", "sha256": "2bf6a8f721a3f52070ef272fb88d303aec548a6414599b9757ca9e6fa7fb9d9f" }, "downloads": -1, "filename": "ledger-fx-rates-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ab50445233de44cf93683be92c48fb34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4035, "upload_time": "2017-02-10T09:23:09", "url": "https://files.pythonhosted.org/packages/1f/14/12709757df702ddecee87bec0c5d7f885936e6c741aeee3534208c43f012/ledger-fx-rates-1.0.0.tar.gz" } ] }