A cozzy('hygge') way to get json response back asynchronously
Project description
Hygge (‘Cozzy’) Response
“A cozzy(‘hygge’) way to get json response back asynchronously”
Overview
It should be easy to return json response asynchronously. hygge aim to be a fuzzy-less way to do just that. Just pass a url and ‘get’ arguments such as params, headers, and receive back a json response.
website: hygge.
# install hygge
pip install hygge
How to use
from hygge.get import GetResponse
url = 'https://www.trustpilot.com/businessunit/search'
params = {'country': 'dk', 'query': 'mate.bike'}
# passing url and parameters
res = GetResponse(url).get(params=params)
print(res)
# passing only url
info_url = f'https://www.trustpilot.com/businessunit/{res["businessUnits"][0]["id"]}/companyinfobox'
print(GetResponse(info_url).get())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hygge-0.1.3.tar.gz
(2.0 kB
view details)
Built Distribution
hygge-0.1.3-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file hygge-0.1.3.tar.gz
.
File metadata
- Download URL: hygge-0.1.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.3 CPython/3.6.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0083f4ff15f14d430801187364d28cbf2f19b7c8f44250a2acdb30a6a41b003f |
|
MD5 | 8b7e85d6f2fd1e55df13d454f3269f10 |
|
BLAKE2b-256 | 9ae6d223d49c7ca255185a8a04dfd08d1c307dcdbd92988cbd944a20ec7acce3 |
File details
Details for the file hygge-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: hygge-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.3 CPython/3.6.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad64fe4e17bae697744dee5851d93545e868852631dd320d4655bf66dbf11b90 |
|
MD5 | 5c9013aecce9ccfdba66bd9e6dce5fd2 |
|
BLAKE2b-256 | 3a46af1a7b8972096f7ebcd8c0dae2828538f25d8e7dd0fc9be62c6f65b32ec1 |