Skip to main content

Python wrapper for libcurl to make http requests in a more pythonic way

Project description

https://github.com/Workfellow-Open-Source/curlite/actions/workflows/test.yml/badge.svg

Curlite

curlite is a Python library that provides a simple interface to perform HTTP requests using the curl command. It exposes a similar interface to the popular requests library. Unlike many other wrappers around curl, curlite does not require any external dependencies. as the name imply, the wrapper is pretty thin and should not require much maintenance.

This wrapper supports simple usage only. It was implemented to solve edge cases that we faced with requests unable to fetch certificate files from windows certificate stores.

Installation

You can install curlite using pip:

$ pip install curlite

Usage

You can use curlite to perform HTTP requests using the curl command. Here’s an example of how to use curlite.get() to retrieve data from a website:

import curlite

response = curlite.get('http://www.example.com')

print(response.text)

Here’s an example of how to use curlite.post() to send data to a website:

import curlite

data = {'username': 'foo', 'password': 'bar'}
response = curlite.post('http://www.example.com/login', json=data)

print(response.text)

You can also use curlite.request() to send requests using any HTTP method:

import curlite

response = curlite.request('PUT', 'http://www.example.com/data', json='new data')

print(response.text)

Contributing

We welcome contributions from the community. If you would like to contribute, please fork the repository and submit a pull request. Before submitting a pull request, please ensure that your changes pass the tests and follow our coding standards.

License

curlite is distributed under the MIT license. See LICENSE for more information. curlite is maintained as part of Workfellow’s open source projects. See https://www.workfellow.ai for more information.

Keywords: curl, requests, http, https, ssl, certificate, windows, curlite, curl wrapper, libcurl, httpx

Home-page: https://github.com/Workfellow-Open-Source/curlite

Project-URL: Bug Tracker, https://github.com/Workfellow-Open-Source/curlite

Project-URL: Documentation, https://github.com/Workfellow-Open-Source/curlite

Requires-Python: >=3.9

Author: Mohammed Salman

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

curlite-0.1.8.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

curlite-0.1.8.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file curlite-0.1.8.1.tar.gz.

File metadata

  • Download URL: curlite-0.1.8.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for curlite-0.1.8.1.tar.gz
Algorithm Hash digest
SHA256 fe9a63d5fa7842d2810cdf2a7aebe790ded516c4350677116964fd1743004be2
MD5 82265c95ba59dc44e4c37b81869ac5d3
BLAKE2b-256 6abca8dfb3bc1f18c61bfc55090f68d4d745f5ee7a3dea88e78726ccdbd301e1

See more details on using hashes here.

File details

Details for the file curlite-0.1.8.1-py3-none-any.whl.

File metadata

  • Download URL: curlite-0.1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for curlite-0.1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 078f897ce7d367b2ed5cf4fd1592f21892e7cf0372dcd5bce0f93434e9035132
MD5 42aaa224abfcc9a7633a5e4ba78a7c6b
BLAKE2b-256 862becf605b5fc5cd424e22a291349db148c25ae756f3dd63206d6354f14a6e1

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