The simple http client and REST test tool for humans.
Project description
RESTClient
The cross-platform tool to work with http.
Installation
For most users, the recommended method to install is via pip:
pip install pyrestclient
or from source:
python setup.py install
Import
from pyrestclient import RESTClient
Changelog
1.1.0 (8.02.2022)
- Fixed custom header usage
1.0.9.post0 (29.12.2021)
Fixed get token logger
1.0.9 (06.12.2021)
- token property changed to catch unavailability occasions (not verifying base URL availability)
1.0.8.post0 (31.08.2021)
- post without data fixed
- refactored custom header
1.0.8 (31.08.2021)
- logger added as attr
1.0.7 (21.05.2021)
- POST, PUT, DELETE extended with header=None param
1.0.6 (24.02.2021)
- refactoring. used lazy initialization to get token
- wait_service_start: for the is_service_initialized under the hood used 0.1 sec by default
1.0.5 (24.02.2021)
is_service_initialized updated to use timeout
1.0.4 (21.12.2020)
logger auth link fixed
1.0.3 (21.12.2020)
header param added to the GET method
1.0.2 (31.10.2020)
New base method added:
- is_host_available (Check remote host availability using socket and specified port)
- is_service_initialized (GET https://{IP}:{PORT})
- wait_service_start
1.0.1 (29.10.2020)
- PUT fixed
- RESTClient inherited from RESTAssertion. No need to import RESTAssertion directly
#####1.0.0 (14.10.2020)
- removed "extend_header"
#####0.1.0 (21.05.2020)
- file logging removed
#####0.0.9 (28.03.2020) DELETE fixed POST: added file support
#####0.0.8 (28.03.2020) header typing hint fixed. Now it is dict
#####0.0.7 (10.03.2020)
- Added query_params to all methods
- POST method was refactored to use .send_request()
#####0.0.6 (01.03.2020)
- removed full_url param. now it will automatically convert url. use "http[s]://site.com" format in methods to use full url.
- code refactoring
#####0.0.5 (01.03.2020)
- query params refactored to use urlencode
- added DELETE method
0.0.4 (27.02.2020)
should_be_bad_request: assert text fixed ...
0.0.1 (9.02.2020)
- initial commit
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrestclient-1.1.0.post1.tar.gz.
File metadata
- Download URL: pyrestclient-1.1.0.post1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05ec59da216d7ae7283651ed5558e35a6b96c2915d770c028a35c11c4c3e5d57
|
|
| MD5 |
a52f07bd2f67737ffe810e47d2c296bb
|
|
| BLAKE2b-256 |
579ad055a11870d9ef1052ac1d30fa4c85c57961e14bb93a4378cf33700e7b95
|
File details
Details for the file pyrestclient-1.1.0.post1-py3-none-any.whl.
File metadata
- Download URL: pyrestclient-1.1.0.post1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec0899dc8ff9ba31853e4377d85bf4a7ff801308f403a0daa1e11e493d9c7ed
|
|
| MD5 |
a28d4c55cf3560533149105be1482d46
|
|
| BLAKE2b-256 |
99ad2e2426dee9cb5ca93f9c47bdc0025ef615f4d3443f0a97c76fe70a18909e
|