Skip to main content

curler

Import curl command in python and use it with requests, httpx, etc. libraries.

🎉 Installation

Install curler package using pip command:

pip install -U curler

🧩 Usage

import curler

command = """curl 'https://pypi.python.org/project/arv-easy-analysis' \
  -H 'Accept-Encoding:gzip,deflate,sdch' \
  -H 'Accept-Language:en-US,en;q=0.8'"""
curler.parse_curl(command)
# Output:

ParsedCurl(
    method="GET",
    url="https://pypi.python.org/project/arv-easy-analysis",
    params={},
    data=None,
    data_binary=None,
    headers={
        "Accept-Encoding": "gzip,deflate,sdch",
        "Accept-Language": "en-US,en;q=0.8",
    },
    cookies={},
    insecure=False,
    user=(),
    proxy={},
    compressed=False,
    include=False,
    silent=False,
)

🧪 You can also check package tests to gain more insights about this package.

😎 Acknowledgment

Metadata

Release files for curler 0.2.2

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

Source distribution (sdist)

Source distribution for curler 0.2.2
File Size Uploaded
curler-0.2.2.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for curler 0.2.2
File Interpreter ABI Platform
curler-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / curler-0.2.2.tar.gz

Download URL curler-0.2.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dbac5ab0a476b93b141b801c753174b94e3cd7e34aa096b6ccbb3f785234d2aa
BLAKE2b-256 checksum
How to use checksums
5d32f89d9f29979144e93c412690928d3f5ebfdd754a658a600589d18944320c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / curler-0.2.2-py3-none-any.whl

Download URL curler-0.2.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
343e19738ea8643d72f1f07e601d9d8e8a5de5bb8e99e7ce2571fbe40cbc6689
BLAKE2b-256 checksum
How to use checksums
52404eecaf8b630093f8fd3d6841cc4dda353c401d432b9df3767fb7ff2068ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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