semvec/pypi-packages huggingface dataset:
sucolo-database-services 0.4.3
A Python client for Sucolo's database services.
License: MIT
Requires Python: <3.14,>=3.10
Keywords: database, elasticsearch, redis, geospatial

# Sucolo Database Services

A Python package providing database services for the Sucolo project, including Elasticsearch and Redis clients with additional utilities for data processing and analysis.

## Features

- Elasticsearch client integration
- Redis client integration
- Data processing utilities
- H3 geospatial indexing support
- Type-safe data handling with Pydantic

## Requirements

- Python 3.10, 3.11, 3.12, 3.13
- Poetry for dependency management

## Installation

1. Clone the repository:

```bash
git clone https://github.com/yourusername/sucolo-database_services.git
cd sucolo-database_services
```

1. Install dependencies using Poetry:

```bash
poetry install
```

1. Set up your environment variables in `.env` file:

```bash
# Example .env configuration
ELASTICSEARCH_HOST=localhost
ELASTICSEARCH_PORT=9200
REDIS_HOST=localhost
REDIS_PORT=6379
```

## Development

### Code Style

This project uses several tools to maintain code quality:

- Black for code formatting
- Flake8 for linting
- MyPy for type checking
- isort for import sorting

Run the following command to format and check the code:

```bash
make format
```

### Testing

Run tests using pytest:

```bash
make test
```

## Project Structure

```bash
sucolo_database_services/
├── elasticsearch_client/     # Elasticsearch client implementation
├── redis_client/             # Redis client implementation
├── services/                 # Service layer (feature, metadata, management, etc.)
├── utils/                    # Utility functions and helpers
├── tests/                    # Test suite for all services and modules
├── data_access.py            # Aggregated data access layer
└── __init__.py
```

## Dependencies

Main dependencies:

- elasticsearch
- redis
- pandas
- geopandas
- h3
- pydantic
- python-dotenv

## License

[Add your license information here]

## Contributing

[Add contribution guidelines here]
sucolo-database-services-stubs 0.4.3
Type stubs for sucolo-database-services
License: MIT
Requires Python: <3.14,>=3.10
Keywords: database, elasticsearch, redis, geospatial, typing, stubs

# Type stubs for sucolo-database-services

This package provides type stubs for [sucolo-database-services](https://github.com/Stashq/sucolo-database_services).

## Installation

```bash
pip install types-sucolo-database-services-stubs
```

## Usage

The stubs will be automatically used by type checkers like mypy when you have both the main package and the stubs installed.

## Versioning

The version of this package matches the version of the main package it provides stubs for.

## License

MIT License - see the LICENSE file for details.
scraprr 0.1.14
a Rust-based web scraping library for Python
License: MIT
Requires Python: >=3.7

# scraprr

**scraprr** is a library for scraping HTML from the web.

---

## Functions

- **Fetch** HTML from an HTTP or HTTPS site
- **Extract** specific tags (`<ul>`, `<li>`, `<div>`, etc.)
- **Requests** with headers, cookies, and query strings

---

## Examples

```rust
use scraprr::{fetch_url, fetch_url_with_options, RequestOptions, extract_tag};

fn main() {
    // Basic GET request
    let html = fetch_url("http://localhost:8000/demo.html");
    println!("Raw HTML:\n{}", html);

    // Extract the first <ul> tag and its contents
    let tag = extract_tag(&html, "ul");
    println!("First <ul> tag:\n{}", tag);

    // Custom headers, cookies, and query parameters
    let opts = RequestOptions {
        headers: Some({
            let mut h = std::collections::HashMap::new();
            h.insert("User-Agent".into(), "scrapr/0.1".into());
            h
        }),
        cookies: Some({
            let mut c = std::collections::HashMap::new();
            c.insert("sessionid".into(), "abc123".into());
            c
        }),
        query: Some({
            let mut q = std::collections::HashMap::new();
            q.insert("q".into(), "Rust programming".into());
            q
        }),
    };

    let response = fetch_url_with_options("https://www.wikipedia.org", opts);
    println!("Wikipedia page HTML:\n{}", response);
}
```

```python
import scraprr

opts = scraprr.RequestOptions(
    headers={"User-Agent": "XYZ/1.0"},
    cookies={"sessionid": "abc123"},
    query={"q": "Shrek"}
)

text = scraprr.fetch_url_with_options("https://html.duckduckgo.com/html", opts)

print(text)
```

# Installation:

## MacOS arm64

```bash
curl -sSL https://raw.githubusercontent.com/dariush-g/scraprr/main/install_scraprr.sh | bash
```

## Linux

```
pip install scraprr
```