Skip to main content

A Cython project with scikit-build

Project description

bin2text

A Cython project with scikit-build

Overview

This project provides Python bindings for the libcurl library, enabling HTTP client capabilities in Python with native performance through Cython integration.

Note: This project is not just for Python developers! C++ developers can also use the pre-built libcurl library included in this package instead of building libcurl from source.

Features

  • Python bindings for libcurl HTTP client
  • Built with Cython for optimal performance
  • CMake integration via scikit-build
  • Support for HTTP/HTTPS protocols
  • Test-driven development approach

Installation

pip install bin2text

For the latest development version:

pip install git+https://github.com/mohammadraziei/bin2text.git

Quick Start

Basic HTTP Request

from bin2text import curl

# Create a curl instance
c = curl.Curl()

# Perform a GET request
response = c.get("https://httpbin.org/get")
print(response.status_code)
print(response.text)

# Perform a POST request
response = c.post("https://httpbin.org/post", data={"key": "value"})
print(response.json())

Development

Run tests:

pytest -n auto

License

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

bin2text-0.0.1.tar.gz (11.3 kB view details)

Uploaded Source

File details

Details for the file bin2text-0.0.1.tar.gz.

File metadata

  • Download URL: bin2text-0.0.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for bin2text-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6809258baf6165434679ada8705454aca1f6d01ce93ff13de88db119c7ae9f0e
MD5 460cb3b2da59d9c0d5e0512f83fdc54b
BLAKE2b-256 3fa320a9bd435ec4046c648334ac5eccf8fa55b095f863145b8835a01c9790d3

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