beancount_mnb
Az MNB hivatalos középárfolyamainak letöltését megvalósító beancount plugin.
Telepítés
pip install beancount_mnb
Használat
Sztenderd bean-price parancsokkal:
- csomag neve:
beancount_mnb - devizák nevei: hárombetűs ISO devizamegnevezések
Példák
Aznapi USD árfolyam lekérése:
bean-price -e 'HUF:beancount_mnb/USD'
- január 10-i euró árfolyam lekérése:
bean-price --date 2018-01-10 -e 'HUF:beancount_mnb/EUR'
Ha a fentiek működnek, akkor a főkönyvbe fixen is beépíthetőek pl. az alábbi két devizanem árfolyamainak forrása:
1970-01-01 commodity USD
price: "HUF:beancount_mnb/USD"
1970-01-01 commodity EUR
price: "HUF:beancount_mnb/EUR"
Ezt követően már nem szükséges expliciten megadni a kívánt devizanemeket:
bean-price fokonyv.beancount
Megjegyzések
Ünnepnapokon és hétvégén nincsenek hivatalos középárfolyamok.
Ha ekkor is szeretnénk árfolyamokhoz jutni, akkor a beancount lehetőséget ad fallback adatforrás megadására is:
1970-01-01 commodity EUR
price: "HUF:beancount_mnb/EUR,yahoo/EURHUF=X"
1970-01-01 commodity USD
price: "HUF:beancount_mnb/USD"
Metadata
Release files for beancount-mnb 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beancount_mnb-1.0.1.tar.gz | 3.2 kB | Without provenance | Details for beancount_mnb-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beancount_mnb-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for beancount_mnb-1.0.1-py3-none-any.whl |
Total release size: 7.1 kB
Release files / beancount_mnb-1.0.1.tar.gz
| Download URL | beancount_mnb-1.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8621bd921d543c08fb2a1692e05df4fc7dcbae8a70aebc28d55812a7728a550f
|
|
BLAKE2b-256 checksum How to use checksums |
1bfee0b88f101a8b2fefa94d4abeb2a211f80f3ab96cd3c98412eae7983efb59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / beancount_mnb-1.0.1-py3-none-any.whl
| Download URL | beancount_mnb-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
349546bcc977ec5f328d27af5f1e26bd47f0a1da2b16f4738e4cf9d67bb3dfcf
|
|
BLAKE2b-256 checksum How to use checksums |
64ce43abaa7f27837ea39f14d72d69a5d694a7bb7ecb0c16999efb3902b937f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for beancount-mnb 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.