RESTX
Description
A Python CLI application for sending HTTP requests using different methods (GET, POST, PUT, PATCH, DELETE).
Installation
Using pip
pip install restx
Or using poetry
poetry add restx
Usage
HTTP GET (All Records)
restx get <url_with_endpoint>
# Example: restx get https://jsonplaceholder.typicode.com/posts/
HTTP GET (Read Single Record)
restx get <url_with_endpoint>
# Example: restx get https://jsonplaceholder.typicode.com/posts/54
HTTP POST (Create a Record)
restx post <url_with_endpoint> --payload '<json payload>'
# Example: restx post "https://jsonplaceholder.typicode.com/posts" --payload '{"userId": 12, "title": "test doc body"}'
HTTP PUT (Update a Record)
restx put <url_with_endpoint> --payload '<json payload>'
# Example: restx put "https://jsonplaceholder.typicode.com/posts" --payload '{"userId": 12, "title": "test doc body"}'
HTTP PATCH (Partial Update a Record)
restx patch <url_with_endpoint> --payload '<json payload>'
# Example: restx patch "https://jsonplaceholder.typicode.com/posts" --payload '{"title": "test doc body"}'
HTTP DELETE (Delete a Record)
restx delete <url_with_endpoint> --payload '<json payload>'
# Example: restx delete "https://jsonplaceholder.typicode.com/posts/23"
To provide custom Headers
restx <command> <url> --header '<json header>'
# Example:
# restx post https://jsonplaceholder.typicode.com/posts --payload '{"userId": 1, "id": 1, "title": "sunt aut facere, "body": "recusandae consequuntur expedita et"}' --header '{"Content-Type": "application/json"}'
For help
restx --help
restx <get|post|put|patch|delete> --help
Contributions
Contributions are welcome! Please follow these guidelines:
- Submit bug reports or feature requests through the issue tracker.
- Set up a development environment by cloning the repository and installing dependencies.
License
This project is licensed under the MIT. See the LICENSE file for details.
Metadata
Release files for restx 0.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| restx-0.1.14.tar.gz | 4.3 kB | Without provenance | Details for restx-0.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| restx-0.1.14-py3-none-any.whl | Python 3 | none | any | Details for restx-0.1.14-py3-none-any.whl |
Total release size: 10.4 kB
Release files / restx-0.1.14.tar.gz
| Download URL | restx-0.1.14.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
235cde1a3aff6104cee07995bd095c7474b052db393ab83cb08120793b7ad5f6
|
|
BLAKE2b-256 checksum How to use checksums |
4abca03d0de48f7150da377bac9b8dfea40aacb8ea5b33cbab2df131ace4c4f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.2 Darwin/23.4.0
|
Release files / restx-0.1.14-py3-none-any.whl
| Download URL | restx-0.1.14-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69a5176342b52780da61ecee3bb23822b5477e06f40f7abed58cbc29ed2f570e
|
|
BLAKE2b-256 checksum How to use checksums |
a6b3ef0664992211a9aa6fed53cf4dc77545d72011d7a392c3f8b19acab6880f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.2 Darwin/23.4.0
|
Security for restx 0.1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.