Skip to main content

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

Project description

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

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

curler-0.2.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

curler-0.2.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file curler-0.2.2.tar.gz.

File metadata

  • Download URL: curler-0.2.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for curler-0.2.2.tar.gz
Algorithm Hash digest
SHA256 dbac5ab0a476b93b141b801c753174b94e3cd7e34aa096b6ccbb3f785234d2aa
MD5 282da97d8730c4bc33e283ffb0d2b59c
BLAKE2b-256 5d32f89d9f29979144e93c412690928d3f5ebfdd754a658a600589d18944320c

See more details on using hashes here.

File details

Details for the file curler-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: curler-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for curler-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 343e19738ea8643d72f1f07e601d9d8e8a5de5bb8e99e7ce2571fbe40cbc6689
MD5 6fbdf8d7f9f757c27a322eb25f6f458d
BLAKE2b-256 52404eecaf8b630093f8fd3d6841cc4dda353c401d432b9df3767fb7ff2068ce

See more details on using hashes here.

Supported by

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