Skip to main content

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.params == { '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

2.1.1 ( 2026-07-21 )

  • correcion de bug que agregaba 2 // cuando sumaba un string que ya tenia al final /

2.1.0 ( 2026-07-21 )

  • se agrego el caso de que la url empiese con // solo remplace el protocolo

2.0.0 ( 2026-05-10 )

  • se agrego la propiedad de context a las respuestas para enviar el contexto a los serializadores

1.5.0 ( 2026-03-21 )

  • se agrega el manejo del context de marshmallow version > 4

1.4.0 ( 2025-09-18 )

  • se agrega la copia de los status codes de django rest framwork en chibi_requests.status_code

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.

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-2.1.1.tar.gz (15.4 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-2.1.1-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: chibi_requests-2.1.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for chibi_requests-2.1.1.tar.gz
Algorithm Hash digest
SHA256 79565c279eca68ee8a3cd60a1da2d4436fc9255f4d7bdca931c8ca74968433d3
MD5 6411aed875f14aee4a978a39d6b6aef8
BLAKE2b-256 8c77c20a9a11c9bf9c5d862097f61e770a708ed68b1af3768367970dfca12aad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chibi_requests-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4302fb6a4e422fc85d6f5a9e31c03c6c7f40a71a6262191f4bf27a98a9e974c0
MD5 2471fd97c27bef55b0b7a1a726aa6bf3
BLAKE2b-256 3138bdffc9c9c8389a2f58f0f95827acad07d28d727c5510612e469ca21a71e5

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.0

2 files

This release

2.1.1 This release

2 files

2.1.0

2 files

2.0.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.7.0

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page