Skip to main content

HttpPy

Python based HttpPy for more comfortable requests.

Installation

PyPi

(env)$ pip install HttpPy

Usage

Single Request

Sometimes you may just want to send a single request. To achieve that there are some flags ready to use.

(env)$ python -m HttpPy -t post -u http://127.0.0.1:8000 -b '{"user": "eve", "password": "12345"}'
  • -t / --type
    Represents the request verb [ get | post | put | patch | options | delete ] to use.
  • -u / --url
    Is the endpoint to reach.
  • -b / --body
    Represents the body of the request.

Several Requests

If you need to send several requests, you can use a file as an input.

(env)$ python -m HttpPy -i example.request
  • -i / --input
    Is the path to a file that contains the requests especifications.

An example of a post request inside example.request file may be:

## This comment is important to parse correctly the request
POST http://127.0.0.1:8000
Headers
ContentType: application/json
Authorization: Basic QWxhZGRpbjpvcGuIHN1c2FtZQ==
{
  "data": "data one",
  "data 2": "data two"
}

Extra flags

There are two optional flags that may help you:

  • -v / --verbose
    The presence of this flag will indicate that the especifications of requests and a more detailed reponse will be printed in the screen.
  • -p / --parallel
    This flag is intented to help with performance and excecution times. Internally indicates that several threads are going to be used for the requests.
  • -f / --force
    This flag forces the request to ignore ssl verification.

Release files for HttpPy 0.0.9

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

Source distribution (sdist)

Source distribution for HttpPy 0.0.9
File Size Uploaded
HttpPy-0.0.9.tar.gz 6.4 kB Details

Release files / HttpPy-0.0.9.tar.gz

Download URL HttpPy-0.0.9.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0d93313fca1ea50ddf404ba89327a9df51bddb8fccae2d6e0de61fbdd0abcf1e
BLAKE2b-256 checksum
How to use checksums
325218bb8cbc058f83659c324183b180d8f5c44bea2a671cd7927a96407e9a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.8

1 release file

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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