Skip to content

shhivv/radial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🚀 Radial

The next-gen HTTP client library for Python

Radial abstracts painful low-level request handling and presents a simple and intuitive interface to perform API requests in your application.


With Radial, old & ugly code that looked like this

import request_library

def fetch_image():
    res = request_library.get("https://example.com/image")
    if res.status == 200):
        return res["url"]
    raise Exception("Request did not return a 2xx")

becomes beautiful without losing any key features

import radial

@radial("https://example.com")
class Example:
    @get("/image", raise_on_error=True)
    def fetch_image(self, res):
        return res["url"] 

Installation

Stable

$ python -m pip install radial 

Development

$ python -m pip install https://github.com/shhivv/radial.git@master

Releases

No releases published

Packages

No packages published

Languages