cd_http
cd_http is a Python package designed for HTTP request handling and manipulation. This package provides a set of tools and utilities to simplify HTTP operations in your projects.
Features
- Easy HTTP Requests: Simplify the process of making HTTP requests.
- Proxy Support: Seamlessly integrate proxy support for your requests.
- Customizable Headers: Easily add and manage custom headers for your HTTP requests.
- Version Management: Track and manage the package version efficiently.
- Session support added 0.2.1
Installation
To install cd_http, simply use pip:
pip install cd-http
Usage
Basic Example
import cd_http as cdh
# Make a simple GET request
response = cdh.http.get('https://api.example.com/data')
print(response.text)
Using Proxies
import cd_http as cdh
proxy = 'http://proxy.example.com:8080'
response = cdh.http.get('https://api.example.com/data', proxy=proxy)
print(response.text)
Custom Headers
import cd_http as cdh
headers = {'Authorization': 'Bearer YOUR_TOKEN'}
response = cdh.http.get('https://api.example.com/data', headers=headers)
print(response.json())
Download files
import cd_http as cdh
url = "some file you want to download.mp4"
cdh.http.download_file("destination filepath", url=url)
Examples
You can find more example scripts in the examples directory of the package. These scripts demonstrate various use cases and features of the cd_http package.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue on the GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
For more information and DONATIONS, visit codedocta.com.
Metadata
Release files for cd-http 0.2.4
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 |
|---|---|---|---|---|
| cd_http-0.2.4.tar.gz | 4.1 kB | Without provenance | Details for cd_http-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cd_http-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for cd_http-0.2.4-py3-none-any.whl |
Total release size: 9.6 kB
Release files / cd_http-0.2.4.tar.gz
| Download URL | cd_http-0.2.4.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1011a06d6aed179212f79a633755a19705d66183e83976d3e0093a1b6d991923
|
|
BLAKE2b-256 checksum How to use checksums |
34c754884934ca06fab23eb8d953dffda4d55ff194b81f0ada458c0e646a8fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Windows/10
|
Release files / cd_http-0.2.4-py3-none-any.whl
| Download URL | cd_http-0.2.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea2781945c1f8d3cc2df2b4a6cc2becaca1f20178239b776cdc57ee782ed6f0e
|
|
BLAKE2b-256 checksum How to use checksums |
ef9789ea46397531c7f90b180e414de79bcdd4a7c3ce3873653363d57f9ad689
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Windows/10
|
Security for cd-http 0.2.4
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.