Registry / data / gheymat

gheymat

JSON →
library0.3.8pypypi✓ verified 81d ago

Gheymat is a Python library for fetching currency, gold, and coin prices from Iranian markets. Version 0.3.8 requires Python >=3.7 and is actively maintained on GitHub.

pip install gheymat
INSTALL
IMPORT
SIG · GHEYMAT
G
gheymat
datapythonv0.3.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_price
import gheymat
from gheymat import get_price

Fetch the price of USD (Iranian toman) using default settings.

from gheymat import get_price price = get_price('USD') print(price) # e.g., 420000
Debug
Known issues
breakingIn version 0.3.0, the API changed from class-based to function-based. get_price replaced Gheymat().get_price().
fix
Upgrade to >=0.3.0 and use from gheymat import get_price.
affects: <0.3.0
gotchaThe library may fail or return stale data if the source website changes its structure. Always handle exceptions.
fix
Wrap calls in try/except and consider caching results.
affects: *
deprecatedThe 'currency' parameter in older versions is replaced by 'symbol' in 0.3.0+. Check your calls.
fix
Use symbol='USD' instead of currency='USD'.
affects: <0.3.0
Upgrade
Version history
0.3.8latest on PyPI · released Jun 25, 2025
Audit
Dependencies
requestsrequiredHTTP requests to price APIs
beautifulsoup4requiredHTML parsing for some sources
Agent activity
7 hits · last 30 days
node
6
Resources
gheymat — pip install gheymat · libregistry