curlify3 0.5
pip install curlify3
Latest version
Released:
yet another library to convert request object to curl command
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: A.Shpak
- Requires: Python >=3.8
Classifiers
- Programming Language
Project description
yet another library to convert request object to curl command
Support request's objects from:
- requests
- httpx
- aiohttp server
- starlette/fastapi
Installation
pip install curlify3
Example
from curlify3 import to_curl
import requests
response = requests.get("http://google.ru")
print(to_curl(response.request))
# curl -H 'user-agent: python-requests/2.32.3' -H 'accept-encoding: gzip, deflate' -H 'accept: */*' -H 'connection: keep-alive' http://www.google.ru/
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: A.Shpak
- Requires: Python >=3.8
Classifiers
- Programming Language
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
File details
Details for the file curlify3-0.5.tar.gz
.
File metadata
- Download URL: curlify3-0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c60962f1176692db3f9a5eddc431a19767e24b8fa7def107c737532ef5aa868e |
|
MD5 | 2dcb234e5f3adaf6fd737a9acc4bed70 |
|
BLAKE2b-256 | 888dd4785749668fd526b01cdb74cbe51a504e7901e69cd9cfe94719fc0cd2f8 |
File details
Details for the file curlify3-0.5-py3-none-any.whl
.
File metadata
- Download URL: curlify3-0.5-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742b08f26b2cc830fa015a132a4d5a8c10bb48cd6bad9682d8659fae619caa75 |
|
MD5 | 965e2f0ef4e06791618e4e6ea7fe366b |
|
BLAKE2b-256 | 724494b9eabcd5f0360ac6dcfcbc58148903b113bbd78d84040068aad2771fea |