Skip to main content

internet-data-curl

A modular Python library for querying internet data through curl.

Why this library

  • Uses curl under the hood for reliable HTTP querying.
  • Keeps querying logic modular through provider classes.
  • Works as both an importable library and a CLI.

Install

pip install internet-data-curl

For local development:

pip install -e ".[dev]"

Quick start

from data_curl import DataClient
from data_curl.providers.generic import GenericProvider

client = DataClient()
provider = GenericProvider(client)
result = provider.query("https://httpbin.org/get", params={"q": "hello"})
print(result.status_code)
print(result.json())

CLI

data-curl generic https://httpbin.org/get --param q=hello

Core concepts

  • DataClient: wraps curl execution and response parsing.
  • BaseProvider: extension point for modular providers.
  • QueryResult: standardized response object.

Add your own provider

from data_curl.providers.base import BaseProvider

class WeatherProvider(BaseProvider):
    name = "weather"

    def query_city(self, city: str):
        return self.client.get(
            "https://example.com/weather",
            params={"city": city},
        )

Publish to PyPI

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Metadata

Release files for internet-data-curl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for internet-data-curl 0.1.0
File Size Uploaded Provenance Actions
internet_data_curl-0.1.0.tar.gz 5.8 kB Without provenance Details for internet_data_curl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for internet-data-curl 0.1.0
File Interpreter ABI Platform Actions
internet_data_curl-0.1.0-py3-none-any.whl Python 3 none any Details for internet_data_curl-0.1.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / internet_data_curl-0.1.0.tar.gz

Download URL internet_data_curl-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c726b2ca64a4e9f35b71685a4d3ad5ec4623eadc2cb34bdf7fbb1d54231b2268
BLAKE2b-256 checksum
How to use checksums
57fbf4082e2797cf11a5da9d71dac701b5e0ef496ef755edf10bc4e78015ec00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / internet_data_curl-0.1.0-py3-none-any.whl

Download URL internet_data_curl-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b763fcad729921e9b4c53e79215490bd1adfd06cbf7e2b749fa2a8ba8e95b8ff
BLAKE2b-256 checksum
How to use checksums
d64333d2715c19db23842106900d48cf269e606544bcb65e95e546737db28ac2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for internet-data-curl 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page