uae-gold-calculator
Gold value calculator for the UAE market. Give it today's 24K price per gram and it works out every karat, any weight unit, the making charge, 5% VAT and zakat, in Arabic or English. No network calls, no dependencies.
- Karat table: 24K, 22K, 21K, 18K and 14K per gram, per tola and per troy ounce using the fineness UAE price boards quote: 24K 999, 22K 914, 21K 874, 18K 749, 14K 583 (karat price = 24K price × fineness ÷ 999).
- Units: gram, kilogram, troy ounce (31.1034768 g), tola (11.6638038 g) and mithqal (4.25 g). Arabic unit names such as
جرام,أونصة,تولة,مثقالwork too. - Jewellery price: metal value + making charge (AED per gram, percent of metal, or a fixed amount) + VAT on both, the way UAE shops bill it.
- Zakat: adds up pure gold across items, compares it with the 85 g nisab and returns 2.5% of the value when due.
- Friendly input:
461.11,461,11,14,342.21and Arabic-Indic٤٦١٫١١all parse. - Arabic and English CLI output (
--lang ar).
Install
pip install uae-gold-calculator
Library
import uae_gold_calculator as gold
gold.price_table(461.11)[2]
# {'karat': 21, 'hallmark': 874, 'per_gram': 403.41, 'per_tola': 4705.34, 'per_ounce': 12547.56}
gold.item_price(461.11, 10, karat=21, making=30)['total'] # 4550.84
gold.item_price(400, 5, karat=18, making=10, making_type='percent', vat_rate=0)['total'] # 1649.45
gold.convert(1, 'أونصة', 'g') # 31.1034768
gold.zakat(461.11, [{'weight': 100, 'karat': 21}])['zakat'] # 1008.53
gold.parse_number('٤٦١٫١١') # 461.11
CLI
$ uae-gold-calculator table --price 461.11
Karat Per gram Per tola Per ounce
24K (999) 461.11 5378.30 14342.12
22K (914) 421.88 4920.68 13121.82
21K (874) 403.41 4705.34 12547.56
18K (749) 345.72 4032.38 10753.00
14K (583) 269.10 3138.69 8369.83
$ uae-gold-calculator item --price 461.11 --weight 10 --karat 21 --making 30 --lang ar
قيمة الذهب: 4034.14 د.إ
المصنعية: 300.00 د.إ
ضريبة القيمة المضافة (5%): 216.71 د.إ
الإجمالي: 4550.84 د.إ
$ uae-gold-calculator convert 2 tola g
23.3276
$ uae-gold-calculator zakat --price 461.11 --weight 100 --karat 21
Zakat due: 1008.53 AED
Options for item: --unit g|kg|oz|tola|mithqal, --karat, --making, --making-type per_gram|percent|fixed, --vat 0.05 (use --vat 0 for investment bars, which are zero-rated in the UAE).
How it calculates
| Step | Formula |
|---|---|
| Karat price per gram | price24 × fineness / 999 (24K 999, 22K 914, 21K 874, 18K 749, 16K 666, 14K 583; other karats karat / 24) |
| Metal value | grams × karat price |
| Making charge | rate × grams, or metal × rate / 100, or a fixed amount |
| VAT | (metal + making) × 5% |
| Zakat | 24K-equivalent grams = Σ grams × purity; due when ≥ 85 g; 2.5% × pure grams × price24 |
Amounts are rounded half away from zero to 2 decimals on output only. Results are estimates: shop prices, VAT treatment of investment gold and zakat rulings vary, so check with your jeweller or scholar.
بالعربية
حاسبة لقيمة الذهب في الإمارات: أدخل سعر جرام الذهب عيار 24 اليوم لتحصل على أسعار عيارات 24 و22 و21 و18 و14 بالجرام والتولة والأونصة، وسعر قطعة المجوهرات مع المصنعية وضريبة القيمة المضافة 5%، وحساب زكاة الذهب حسب نصاب 85 جرامًا. تقبل الأرقام العربية مثل ٤٦١٫١١ وأسماء الوحدات بالعربية، وتعمل دون اتصال بالإنترنت.
Links
- Live UAE gold rates: سعر الذهب اليوم في الامارات
- Source code: https://github.com/nbkdevs/uae-gold-prices
License
MIT © UAE Gold Prices
Metadata
Release files for uae-gold-calculator 1.0.0
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 |
|---|---|---|---|---|
| uae_gold_calculator-1.0.0.tar.gz | 8.6 kB | Without provenance | Details for uae_gold_calculator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uae_gold_calculator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for uae_gold_calculator-1.0.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / uae_gold_calculator-1.0.0.tar.gz
| Download URL | uae_gold_calculator-1.0.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a16f6dd7c3ffc0e9890d79b0119a188dc3e7ef572977494f685662fbbdb40246
|
|
BLAKE2b-256 checksum How to use checksums |
9af4ac08af9618d0f933cc7427a409b017930f6d5d6ead8aff681da8efc01135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / uae_gold_calculator-1.0.0-py3-none-any.whl
| Download URL | uae_gold_calculator-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
458b8ebf3843255f0ef94d64fb0162d14043d92d5283c2c64a7f63aaf344cd55
|
|
BLAKE2b-256 checksum How to use checksums |
8049ebb9097f4e566f108602f8b0b32164d0d1ad389567d690ea1b83fb49bf07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for uae-gold-calculator 1.0.0
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.