Appearance
Bundled Packages
CatScript bundles a small set of third-party Python packages that scripts can import directly. You do not need to install them with pip.
| Package | Description | Official documentation |
|---|---|---|
requests | HTTP client for REST APIs, sessions, cookies, JSON and file uploads. | requests.readthedocs.io |
Current bundle: requests 2.34.2, with its dependencies urllib3, certifi, charset-normalizer and idna.
HTTPS requests use the bundled certifi CA bundle.
Example
python
import requests
if __name__ == "__main__":
response = requests.get("https://api.github.com", timeout=10)
print(response.status_code)
print(response.json())TIP
Always set a timeout on network requests. A blocking request cannot be interrupted by the script stop button until it returns or times out.
More packages may be added in future releases. See the Changelog for updates.