semvec/pypi-packages huggingface dataset:
robust-http 0.1.2
High-level HTTP client with caching, UA rotation, retries, and optional Tor support.
License: MIT
Requires Python: <4.0,>=3.9
Keywords: http, requests, caching, tor, scraping, retry

# robust_http

A smarter **requests** session for robust, fault-tolerant HTTP requests.

Net net: a smoother crawling experience.

**Why use it?**

One-line drop-in for `requests.Session` that automatically:

* Keeps long-running crawls stable with automatic retries
* Cuts redundant network traffic via transparent caching
* Throttles requests to respect rate limits
* 🧅 Adds optional Tor routing for privacy-sensitive use cases

**Features**

- Transparent cache (via `requests_cache`)
- User-Agent rotation (via `fake_useragent`)
- Throttling with jitter
- Retry logic with exponential backoff
- Tor proxy support with circuit rotation
- `TorManager` for NEWNYM signals and proxy config

## Installation

```bash
pip install robust_http
```

## Usage

You can use it like a drop-in replacement for **requests.Session**, either directly or as a context manager:

```python
from robust_http import session

client = session(use_tor=True, rotate_tor_every=50)
resp = client.get("https://example.com/api")
print(resp.json())
```

Or:

```python
from robust_http import session

with session(use_tor=True, rotate_tor_every=50) as client:
    resp = client.get("https://example.com/api")
    print(resp.json())
```

## Tor Support

To enable Tor-based routing, pass `use_tor=True` to your client.

👉 See [**TOR_SETUP.md**](TOR_SETUP.md) for instructions to set up Tor locally.
sidpy-lite 0.12.9
Python utilities for storing, visualizing, and processing Spectroscopic and Imaging Data (SID) jupyterlite compatible
License: MIT
Keywords: imaging, spectra, multidimensional, scientific, visualization, processing, storage, hdf5

sidpy-lite
==========

.. image:: https://github.com/pycroscopy/sidpy-lite/workflows/build/badge.svg?branch=main
    :target: https://github.com/pycroscopy/sidpy-lite/actions?query=workflow%3Abuild
    :alt: GiHub Actions

.. image:: https://img.shields.io/pypi/v/sidpy-lite.svg
    :target: https://pypi.org/project/sidpy-lite/
    :alt: PyPI
    
.. image:: https://img.shields.io/conda/vn/conda-forge/sidpy-lite.svg
    :target: https://github.com/conda-forge/sidpy-lite-feedstock
    :alt: conda-forge
   
.. image:: https://codecov.io/gh/pycroscopy/sidpy-lite/branch/master/graph/badge.svg?token=BCFR4FR6AL
    :target: https://codecov.io/gh/pycroscopy/sidpy-lite
    :alt: coverage

.. image:: https://img.shields.io/pypi/l/sidpy-lite.svg
    :target: https://pypi.org/project/sidpy-lite/
    :alt: License

.. image:: http://pepy.tech/badge/sidpy-lite
    :target: http://pepy.tech/project/sidpy-lite
    :alt: Downloads

.. image:: https://zenodo.org/badge/138171750.svg
   :target: https://zenodo.org/badge/latestdoi/138171750
   :alt: USID DOI

Python utilities for storing and visualizing Spectroscopic and Imaging Data (SID)

Please see our `website <https://pycroscopy.github.io/sidpy-lite/index.html>`_ for more information.