Skip to main content

A simple curl clone in Python

Project description

cURLpy

A simple curl implementation built from scratch using Python 3.

The goal of this project is to use as few dependencies as possible — preferably none.

Current status: This project currently has no dependencies.

Installation

Install from PyPI:

pip install curlpy-nicolaszmarzagao

Usage

cURLpy works similarly to curl. Here are some features already implemented:

GET Requests

HTTP

python3 -m curlpy example.com

HTTPS

python3 -m curlpy https://example.com

Specific path

python3 -m curlpy https://example.com/hello/world

Specific port

python3 -m curlpy https://example.com:8080

Or:

python3 -m curlpy https://example.com/ -p 8080

Include HTTP headers

python3 -m curlpy example.com -i

Local Development

Clone the repository using SSH:

git clone git@github.com:nicolaszmarzagao/curlpy.git
cd curlpy

Create and activate a virtual environment:

python3 -m venv .venv
source .venv/bin/activate

Install cURLpy locally in editable mode:

python3 -m pip install -e .

Run the tests:

python3 -m unittest discover -s tests -v

Run cURLpy:

python3 -m curlpy

Contributing

Feel free to fork this repository, open issues, suggest features, or contribute with pull requests.

This project is licensed under the MIT License.

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

curlpy_nicolaszmarzagao-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curlpy_nicolaszmarzagao-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file curlpy_nicolaszmarzagao-0.1.1.tar.gz.

File metadata

  • Download URL: curlpy_nicolaszmarzagao-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for curlpy_nicolaszmarzagao-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a740546cf42bbbcd69b03e8f69331b04f18ddb8529bedc3b3767566bdd07ecd6
MD5 53b91edcbdaa916ead0a869479706832
BLAKE2b-256 1029dc4d455f27f8b0cfee0788657a2f5ca5dfacbd74a935dafeafa519daea07

See more details on using hashes here.

File details

Details for the file curlpy_nicolaszmarzagao-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for curlpy_nicolaszmarzagao-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d90aeff3fbea92096ac1782b0923915bbe4b055f2afba48d6c10b1d2d068eb2f
MD5 4673283257f2aed91376a0b432e8afc0
BLAKE2b-256 6bfc3663966e7e7a9934997fc6cddfe2295765c5f6a1f3c5ad96fc5faa424122

See more details on using hashes here.

Supported by

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