Skip to main content

made-with-python Build Status Coverage Status Code style: black Checked with pylint Checked with flake8 Checked with pydocstyle Checked with mypy License EO principles respected here PyPI version shields.io PyPI pyversions Downloads CodeFactor

uRequest

Provides user-friendly micro HTTP client with nothing but clean objects.

Basically, it is a wrapper over requests python library. For asynchronous version please check aiorequest package.

Tools

Usage

Installation

Please run following script to obtain latest package from PYPI:

pip install urequest
✨ 🍰 ✨

Quick start

>>> from urequest.session import Session, HttpSession
>>> from urequest.response import Response
>>> from urequest.url import HttpUrl
>>>
>>> session: Session
>>> with HttpSession() as session:
...     response: Response = session.get(HttpUrl(host="xkcd.com", path="info.0.json"))
...     response.is_ok()
...     response.as_json()
...
True
{
    "month": "3",
    "num": 2284,
    "link": "",
    "year": "2020",
    "news": "",
    "safe_title": "Sabotage",
    "transcript": "",
    "alt": "So excited to see everyone after my cruise home from the World Handshake Championships!",
    "img": "https://imgs.xkcd.com/comics/sabotage.png",
    "title": "Sabotage",
    "day": "23",
}
>>>

Source code

git clone git@github.com:vyahello/urequest.git
python setup.py install

Or using specific release:

pip install git+https://github.com/vyahello/urequest@0.0.1

Local debug

git clone git@github.com:aiopymake/aiorequest.git
>>> import urequest
>>> urequest.__doc__
'Provides user-friendly HTTP client with clean objects.'

⬆ back to top

Development notes

CI

Project has Travis CI integration using .travis.yml file thus code analysis (black, pylint, flake8, mypy, pydocstyle) and unittests (pytest) will be run automatically after every made change to the repository.

To be able to run code analysis, please execute command below:

./analyse-source-code.sh

Release notes

Please check changelog file to get more details about actual versions and it's release notes.

Meta

Author – Volodymyr Yahello. Please check AUTHORS file for all contributors.

Distributed under the MIT license. See LICENSE for more information.

You can reach out me at:

Contributing

  1. clone the repository
  2. configure Git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all development project dependencies

⬆ back to top

Release files for urequest 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urequest 0.0.6
File Size Uploaded
urequest-0.0.6.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urequest 0.0.6
File Interpreter ABI Platform
urequest-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / urequest-0.0.6.tar.gz

Download URL urequest-0.0.6.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
49ace00ad77ef431efcc2667cf3d9acab0915900ecf8d9070dd2f5f8f677f2e3
BLAKE2b-256 checksum
How to use checksums
8f6f471aa3cae2a02ba0e89f5bad12eaf85c00f15308994fa6bbb836847bdf92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

Release files / urequest-0.0.6-py3-none-any.whl

Download URL urequest-0.0.6-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99ea7709dbc3c8ab633f7bd16f4aa7429517b4d3c90c29856d1cb5a7b0a0451e
BLAKE2b-256 checksum
How to use checksums
f6801c9b702ef13d6598edf573867e392fac44230608a51ca48f03b66b3842b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

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