chibi-requests


Namechibi-requests JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/dem4ply/chibi_requests
Summaryhandle urls in a more easy and human way
upload_time2025-02-09 04:04:54
maintainerNone
docs_urlNone
authorDem4ply
requires_python>=3.6
licenseNone
keywords chibi_requests
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ==============
chibi_requests
==============


.. image:: https://img.shields.io/pypi/v/chibi_requests.svg
        :target: https://pypi.python.org/pypi/chibi_requests

.. image:: https://img.shields.io/travis/dem4ply/chibi_requests.svg
        :target: https://travis-ci.org/dem4ply/chibi_requests

.. image:: https://readthedocs.org/projects/chibi-requests/badge/?version=latest
        :target: https://chibi-requests.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status




handle urls in a more easy and human way

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


==========
how to use
==========


*********
Chibi_url
*********

.. code-block:: python

	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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

********************
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dem4ply/chibi_requests",
    "name": "chibi-requests",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "chibi_requests",
    "author": "Dem4ply",
    "author_email": "dem4ply@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7c/6d/04144a8631236f53a3df32c457936af0c9913bf86306eaa168e2042ba8ed/chibi_requests-1.3.0.tar.gz",
    "platform": null,
    "description": "==============\nchibi_requests\n==============\n\n\n.. image:: https://img.shields.io/pypi/v/chibi_requests.svg\n        :target: https://pypi.python.org/pypi/chibi_requests\n\n.. image:: https://img.shields.io/travis/dem4ply/chibi_requests.svg\n        :target: https://travis-ci.org/dem4ply/chibi_requests\n\n.. image:: https://readthedocs.org/projects/chibi-requests/badge/?version=latest\n        :target: https://chibi-requests.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n\n\n\nhandle urls in a more easy and human way\n\n* Free software: WTFPL\n* Documentation: https://chibi-requests.readthedocs.io.\n\n\n==========\nhow to use\n==========\n\n\n*********\nChibi_url\n*********\n\n.. code-block:: python\n\n\tfrom chibi_requests import Chibi_url\n\n\turl = Chibi_url( \"http://ifconfig.me'\" )\n\tresponse = url.get()\n\tassert response.status_code == 200\n\tassert response.is_text\n\tassert isinstance( response.native, str )\n\n\tresponse = url.post()\n\tassert response.status_code == 200\n\tassert response.json\n\tassert isinstance( response.native, dict )\n\n\turl = Chibi_url( \"https://google.com\" )\n\turl += \"cosa/cosa2'\n\tassert \"https://google.com/cosa/cosa2\" == url\n\turl += \"cosa3\"\n\tassert \"https://google.com/cosa/cosa2/cosa3\" == url\n\n\turl = Chibi_url( \"https://google.com\" )\n\turl += { 'param1': 'value1', 'param2': 'value2' }\n\tassert url.parmas == { 'param1': 'value1', 'param2': 'value2' }\n\n\turl = Chibi_url( \"https://google.com\" )\n\turl += \"?param1=value1\"\n\tassert url.parmas == { 'param1': 'value1' }\n\n\turl = Chibi_url( \"https://google.com\" )\n\tassert url.host == 'google.com'\n\tassert url.schema == 'https'\n\n\nFeatures\n--------\n\n* TODO\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n********************\n1.3.0 ( 2025-02-08 )\n********************\n\n* se agrego la funcion `from_response`\n\n********************\n1.2.2 ( 2025-02-01 )\n********************\n\n* se agrego la posibilidad que los response lanzen\n  excepciones segun el codigo de error\n\n********************\n1.2.1 ( 2025-02-01 )\n********************\n\n* dependencia de marshmallow > 2.26\n\n********************\n1.2.0 ( 2024-10-26 )\n********************\n\n* se agrego funcion para sufijos\n\n********************\n1.1.0 ( 2024-10-26 )\n********************\n\n* regresa el tipo correcto con herencia\n\n******************\n0.0.1 (2019-11-14)\n******************\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "handle urls in a more easy and human way",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/dem4ply/chibi_requests"
    },
    "split_keywords": [
        "chibi_requests"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "26edb77d584937006f4625c4ed863703427e9c3e5b174fe115933222dc075903",
                "md5": "9f25cac3e1176f08e4045fa91ae98d46",
                "sha256": "48c1b89489d88813d1b87c6aeac0f9fd2481fc9fa14fb1ead924d78d9d56b79f"
            },
            "downloads": -1,
            "filename": "chibi_requests-1.3.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9f25cac3e1176f08e4045fa91ae98d46",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 7717,
            "upload_time": "2025-02-09T04:04:52",
            "upload_time_iso_8601": "2025-02-09T04:04:52.361060Z",
            "url": "https://files.pythonhosted.org/packages/26/ed/b77d584937006f4625c4ed863703427e9c3e5b174fe115933222dc075903/chibi_requests-1.3.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7c6d04144a8631236f53a3df32c457936af0c9913bf86306eaa168e2042ba8ed",
                "md5": "7ba7ff24ab2c842128bfd3e6278c0660",
                "sha256": "06fb1bfac94906b7c91e85f83a71ab66fc7daeddf2ee52a97e9e923b9fb892e5"
            },
            "downloads": -1,
            "filename": "chibi_requests-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7ba7ff24ab2c842128bfd3e6278c0660",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 13269,
            "upload_time": "2025-02-09T04:04:54",
            "upload_time_iso_8601": "2025-02-09T04:04:54.711913Z",
            "url": "https://files.pythonhosted.org/packages/7c/6d/04144a8631236f53a3df32c457936af0c9913bf86306eaa168e2042ba8ed/chibi_requests-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-09 04:04:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dem4ply",
    "github_project": "chibi_requests",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "chibi-requests"
}
        
Elapsed time: 2.47736s