Skip to main content

yet another library to convert request object to curl command

Project description

yet another library to convert request object to curl command

PyPI PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curlify3-0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

curlify3-0.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for curlify3-0.5.tar.gz
Algorithm Hash digest
SHA256 c60962f1176692db3f9a5eddc431a19767e24b8fa7def107c737532ef5aa868e
MD5 2dcb234e5f3adaf6fd737a9acc4bed70
BLAKE2b-256 888dd4785749668fd526b01cdb74cbe51a504e7901e69cd9cfe94719fc0cd2f8

See more details on using hashes here.

Provenance

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

Hashes for curlify3-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 742b08f26b2cc830fa015a132a4d5a8c10bb48cd6bad9682d8659fae619caa75
MD5 965e2f0ef4e06791618e4e6ea7fe366b
BLAKE2b-256 724494b9eabcd5f0360ac6dcfcbc58148903b113bbd78d84040068aad2771fea

See more details on using hashes here.

Provenance

Supported by

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