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.2.tar.gz (5.1 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: curlpy_nicolaszmarzagao-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 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.2.tar.gz
Algorithm Hash digest
SHA256 8012358d5ad740df5de7b08a05ee219514521a403e306fb1148676bb4ba236df
MD5 fd42a61e5fe9a6cab280edac08a6ef08
BLAKE2b-256 acc25fc1db9e92c2c7de5dce244ccb40a1c6dbaabc6f90165320a3d85caeb938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for curlpy_nicolaszmarzagao-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0db5a1e9029154cf1a486ec921607c95bbdc5c599bc80d1f104d6b3ca5a19f2
MD5 ba30c55727de94fbb37db2602f41a6c9
BLAKE2b-256 e47a5c1dfc86f7cb23edf051cab4f997dcdc63f83951e053078fc8cbad2fa5ad

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