Spaces:
Sleeping
Sleeping
Download quantlib_api/resources/base.py from gdukens/QuantLib_Pro: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/spaces/gdukens/QuantLib_Pro/resolve/main/quantlib_api/resources/base.py
- Command line
-
hf download hf://spaces/gdukens/QuantLib_Pro/quantlib_api/resources/base.py
-
curl -L -o base.py https://huggingface.co/spaces/gdukens/QuantLib_Pro/resolve/main/quantlib_api/resources/base.py
260 Bytes
| """ | |
| QuantLib Pro SDK — Base Resource | |
| """ | |
| class BaseResource: | |
| """Base class for all API resources.""" | |
| PREFIX = "" | |
| def __init__(self, http): | |
| self._http = http | |
| def _url(self, path: str) -> str: | |
| return f"{self.PREFIX}{path}" | |