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.3.1 ( 2025-03-11 )

  • se agrego la funcion parse_like_html

1.3.0 ( 2025-02-08 )

  • se agrego la funcion from_response

1.2.2 ( 2025-02-01 )

  • se agrego la posibilidad que los response lanzen excepciones segun el codigo de error

1.2.1 ( 2025-02-01 )

  • dependencia de marshmallow > 2.26

1.2.0 ( 2024-10-26 )

  • se agrego funcion para sufijos

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.3.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chibi_requests-1.3.1-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: chibi_requests-1.3.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for chibi_requests-1.3.1.tar.gz
Algorithm Hash digest
SHA256 431e042ab453d7ec141ae3e46b7b1cd54e92be9073ffece562e084d994ee5aa2
MD5 2bb27a5279d91f98b70cf48e8c8753de
BLAKE2b-256 96301e0a8ffa19e5bd8a0a3aa3505aa7ee7e2f6fb58d6c4dfb3e54bea8e87d80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chibi_requests-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93788b19a8183cab3b2baddeb2cd3a059923fbeda67d44b706eeb8d079f82e28
MD5 8362ed54a1e3a45453c1de47105c6470
BLAKE2b-256 dedceeab2de4801dda1b7a0a81a7deb6b373cd2a6298ec4e9a95c258dc98dcb8

See more details on using hashes here.

Supported by

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