Skip to main content

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

1.1.0 ( 2024-10-26 )

  • regresa el tipo correcto con herencia

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.

Source Distribution

chibi_requests-1.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

chibi_requests-1.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file chibi_requests-1.1.0.tar.gz.

File metadata

  • Download URL: chibi_requests-1.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for chibi_requests-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2479c9b4598f947625dabda12fa5358132c55651f0d0a1b602d3c4a3ac8fb585
MD5 3e09b4b5991ccbfc39e97b6ff8ca0114
BLAKE2b-256 9c12c1a6391bf6fa4eecad090d869fe5e23aa41477422659ec87dc3d18f24df7

See more details on using hashes here.

File details

Details for the file chibi_requests-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for chibi_requests-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d353852e7892f1bd5b1b0467bbccae6cc1f0576ee1974f9a9c1add77b8f6d00f
MD5 184eb678b2aa96b361e0cdbf4905612c
BLAKE2b-256 e32f9c61e5f4f29a6c4d5a4ba33887b0a26b901b62e5a1673370955175a68d69

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page