Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.03 KB

Kurl

Konnection URL

This project is part of the Pyrustic Ecosystem.

Installation | Reference

Kurl is a library to fetch resources with an implementation of conditional request and a smart responses caching system. It is used by Hubstore and more projects in the Pyrustic Open Ecosystem.

This is a simple usage example:

from kurl import Kurl


kurl = Kurl()
response = kurl.request("https://api.github.com/zen")

print(response.headers)
# output: [('Server', 'GitHub.com'), ...,  ('connection', 'close')]

print(response.body)
# output: b'Avoid administrative distraction.'

print(response.error_reason)
# output: None

print(response.json)
# output: None

Read the reference !

Installation

pip install kurl