Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

handle urls in a more easy and human way

Project description

chibi_requests

https://img.shields.io/pypi/v/chibi_requests.svg https://img.shields.io/travis/dem4ply/chibi_requests.svg Documentation Status

handle urls in a more easy and human way

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for chibi-requests, version 0.6.3
Filename, size File type Python version Upload date Hashes
Filename, size chibi_requests-0.6.3-py2.py3-none-any.whl (6.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size chibi_requests-0.6.3.tar.gz (14.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page