Chibi Requests 0.7.0 | Coderz Repository

chibi-requests 0.7.0

Last updated:

0 purchases

chibi-requests 0.7.0 Image
chibi-requests 0.7.0 Images

Free

Languages

Categories

Add to Cart

Description:

chibirequests 0.7.0

chibi_requests



handle urls in a more easy and human way

Free software: WTFPL
Documentation: https://chibi-requests.readthedocs.io.



how to use
Chibi_url
from chibi_requests import Chibi_url

url = Chibi_url( "http://ifconfig.me'" )
response = url.get()
assert response.status_code == 200
assert response.is_text
assert isinstance( response.native, str )

response = url.post()
assert response.status_code == 200
assert response.json
assert isinstance( response.native, dict )

url = Chibi_url( "https://google.com" )
url += "cosa/cosa2'
assert "https://google.com/cosa/cosa2" == url
url += "cosa3"
assert "https://google.com/cosa/cosa2/cosa3" == url

url = Chibi_url( "https://google.com" )
url += { 'param1': 'value1', 'param2': 'value2' }
assert url.parmas == { 'param1': 'value1', 'param2': 'value2' }

url = Chibi_url( "https://google.com" )
url += "?param1=value1"
assert url.parmas == { 'param1': 'value1' }

url = Chibi_url( "https://google.com" )
assert url.host == 'google.com'
assert url.schema == 'https'

Features

TODO



Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.



History
0.0.1 (2019-11-14)

First release on PyPI.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.