Python curl wrapper inspired by micha/resty
Project description
#pyresty
`pyresty` is a requests wrapper inspired by [micha/resty](http://github.com/micha/resty). It provides a simple, concice shell interface for interacting with REST
services.
##Quick Start
Install pyresty however you desire. I recommend `pip`.
```
$ pip install pyresty
```
Add a host to the configuration (ad-hoc hosts to be added soon):
```
$ pyresty add localhost http://localhost:8000/v2.0
```
Set the global host to your target:
```
$ pyresty localhost
```
Make requests:
```
$ GET /things
{[{"id": 1, "name": "superwidget"}, {"id": 2, "name": "not_cool_widget"}]}
$ DELETE /things/1
```
Switch hosts if you want:
```
$ pyresty production_server
```
##Upcoming Features:
* ad-hoc host definition: `pyresty http://random.com`
* session recording and playback
* token loading from environment
* auth plugins
* host sections with more options
* output options
* vi integration
`pyresty` is a requests wrapper inspired by [micha/resty](http://github.com/micha/resty). It provides a simple, concice shell interface for interacting with REST
services.
##Quick Start
Install pyresty however you desire. I recommend `pip`.
```
$ pip install pyresty
```
Add a host to the configuration (ad-hoc hosts to be added soon):
```
$ pyresty add localhost http://localhost:8000/v2.0
```
Set the global host to your target:
```
$ pyresty localhost
```
Make requests:
```
$ GET /things
{[{"id": 1, "name": "superwidget"}, {"id": 2, "name": "not_cool_widget"}]}
$ DELETE /things/1
```
Switch hosts if you want:
```
$ pyresty production_server
```
##Upcoming Features:
* ad-hoc host definition: `pyresty http://random.com`
* session recording and playback
* token loading from environment
* auth plugins
* host sections with more options
* output options
* vi integration
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyresty-0.0.1.tar.gz
(4.5 kB
view details)
File details
Details for the file pyresty-0.0.1.tar.gz
.
File metadata
- Download URL: pyresty-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc44dc4343d32916fadc44608844cfb30ad407014eeff121135931f5000514ab |
|
MD5 | 17b754342617c96b8acb14fefa22c3a6 |
|
BLAKE2b-256 | 1e183b518824f925c2cdcb0b61fae58ac8497d8792c25153eb382a88e882df64 |