cURL Parser
Parse cURL commands returning object representing the request.
How to install?
curlparser is available on PyPi:
Using pip
$ pip install curlparser
Using poetry
$ poetry add curlparser
Using pipenv
$ pipenv install curlparser
How to use?
>>> import curlparser
>>> result = curlparser.parse(
"""
curl \
--header 'Content-Type: application/json' \
--request PUT \
--user nlecoy:my_password \
--data '{"username":"xyz", "password":"xyz"}' \
https://api.github.com/repos/nlecoy/curlparser
"""
)
>>> result.url
'https://api.github.com/repos/nlecoy/curlparser'
>>> result.auth
('nlecoy', 'my_password')
>>> result.json
{'username': 'xyz', 'password': 'xyz'}
Available parameters
curlparser's parse method will return a ParsedCommand object containing the following fields:
- method
- url
- auth
- cookies
- data
- json
- header
- verify
License
cURL Parser is distributed under the Apache 2.0. See LICENSE for more information.
Metadata
Release files for curlparser 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| curlparser-0.1.0.tar.gz | 6.8 kB | Without provenance | Details for curlparser-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| curlparser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for curlparser-0.1.0-py3-none-any.whl |
Total release size: 13.9 kB
Release files / curlparser-0.1.0.tar.gz
| Download URL | curlparser-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6cb7b675ed7c08338f2ce0ba64012aa3b9e908577d1f54c8f5f94a3057099ae
|
|
BLAKE2b-256 checksum How to use checksums |
e6e2c1e12c18eed63a64e2e912cbd56f7ba97e498164cfe361797141ea457856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.1 Darwin/20.2.0
|
Release files / curlparser-0.1.0-py3-none-any.whl
| Download URL | curlparser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d2020367571fc02dbab0e583ff52a8e31d13e05bbd5dbb893aa75322744f527
|
|
BLAKE2b-256 checksum How to use checksums |
d1957064417db2c45b91fab6547c09ec27092ef32ac87d0ac7300d88266da1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.1 Darwin/20.2.0
|
Security for curlparser 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.