Skip to main content

A HttpQuick that executes on the command line to make http requests

Project description

HttpQuick

EN

A HttpQuick that executes on the command line to make http requests.

I am not responsible for any damages whatsoever. Please use at your own risk.

Write the command line in an http file. execute_http_file reads the file and sends the request. Reads the http file, splitting the text with "###" to recognize it as a separate command.

Specify the http file as an argument and optionally specify the path to the output folder.

The received data is output as GET_[domain]_response to the output destination (the current directory if the output destination folder is not specified). The folder must exist. To append the time to the output file name, append "-d" to the argument.

TOKEN can also be replaced. For example, http file as specify GET {{token}}/data, create *.env.json in the current directory and save it as {"token": "test"}. In this case, the file is interpreted as GET test/data. (If the extension is .env.json, it will be read).

Example

file:test.http


GET {{access_url}}/user/userlist/json  

###

GET {{access_url}}/user/data  
Name: Alice  
Data: {{data_type}}

file:.env.json

{  
    "access_url": "localhost"  
    "data_type": "Age"  
}  

console

HttpQuick test.http

{{token_name}} will be read from .env.json and repressed and interpreted.

JP

HttpQuickはコマンドラインで実行してhttpリクエストを行うツール。

いかなる損害についても、私は責任を負いません。自己責任でご利用ください。

コマンドラインを http ファイルに記述する。 execute_http_fileはファイルを読み込んでリクエストを送信する。 httpファイルを読み込む、"###"でテキストを分割することで別のコマンドと認識する。

引数にhttpファイルを指定し、オプションで出力フォルダのパスを指定する。

受信したデータはGET_[domain]_responseとして出力先(出力先フォルダが指定されていない場合はカレントディレクトリ)に出力される。 フォルダが存在する必要があります。 出力ファイル名に時刻を付加するには、引数に"-d "を付加する。

TOKENを置き換えることもできる。 例えば、httpファイルにGET {{token}}/dataと用意し、カレントディレクトリに*.env.jsonを作成して{"token": 「test"}として保存します。この場合、ファイルはGET test/dataとして解釈されます。(拡張子が.env.jsonの場合に読み込まれます)。

Example

file:test.http


GET {{access_url}}/user/userlist/json  

###

GET {{access_url}}/user/data  
Name: Alice  
Data: {{data_type}}

file:.env.json

{  
    "access_url": "localhost"  
    "data_type": "Age"  
}  

console

HttpQuick test.http

{{トークン名}}としておくと、.env.jsonから読み込んでそれぞれリプレスして解釈します。

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

httpquick-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpquick-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file httpquick-0.1.1.tar.gz.

File metadata

  • Download URL: httpquick-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for httpquick-0.1.1.tar.gz
Algorithm Hash digest
SHA256 615510d12e4dc9f0548c084fbba91e9eda07066607dbf4083325db3236d31580
MD5 77d8235302457a95cbacf736a8683996
BLAKE2b-256 8e365872cfa525eedbf582fd09b1e60827aeb92827cd8f988b88b10eb17107a5

See more details on using hashes here.

File details

Details for the file httpquick-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: httpquick-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for httpquick-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c009d15ec2070f5213b07107c7111cffb4381a1112d4ff9d8eb8920d03378ea2
MD5 1417010acea068a3b99520aaf444c87d
BLAKE2b-256 71887b0aa6f81dd074d190cee3402cec8b10569e718380e4b8e7142781106e53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page