Download test.py from sarim/pix: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/sarim/pix/resolve/main/test.py
- Command line
-
hf download hf://spaces/sarim/pix/test.py
-
curl -L -o test.py https://huggingface.co/spaces/sarim/pix/resolve/main/test.py
406 Bytes
| import psxdata | |
| import yfinance as yf | |
| import models as md | |
| def debt_market(): | |
| debt = psxdata.fundamentals("EPCL") | |
| print(debt) | |
| def allShare(): | |
| all_share = psxdata.indices("ALLSHR") | |
| print(all_share) | |
| def commodities(): | |
| gold = md.commodities.get("Gold") | |
| data = yf.download(gold, start="2025-01-01", end="2026-08-12") | |
| print(data) | |
| if __name__ == "__main__": | |
| commodities() | |