semvec/pypi-packages huggingface dataset:
saapi 0.2
Simple wrapper for Shopee Affiliate API.
Requires Python: >=3.9
Keywords: Shopee, API

# SaAPI
> :warning: **Esse pacote não é oficial.**

Um simples wrapper para a API de afiliados da Shopee[^1].

```python
from saapi import SaAPI

client = SaAPI({
    "app_id": "seu_app_id",
    "secret": "seu_secret"
})
res = client.queries.product_offer_v2(
    {"keyword": "tênis"},
    {"nodes": ["itemId", "productName"]}
)

print(res)
# { "nodes": [
#    {'itemId': 22093519050, 'productName': 'Tênis Sapatênis Polo Masculino'},
#    ...
#   ]
# }
```
Todas as queries e mutations que não estão depreciados foram implementados, os 
campos que foram depreciados não foram implementados.

[![Downloads](https://static.pepy.tech/badge/saapi/month)](https://pepy.tech/project/saapi)
[![Supported Versions](https://img.shields.io/pypi/pyversions/saapi.svg)](https://pypi.org/project/saapi)
[![Contributors](https://img.shields.io/github/contributors/renangalvao/saapi.svg)](https://github.com/renangalvao/saapi/graphs/contributors)

## Instalação
```console
$ pip install saapi
```
Versão mínima do python 3.9.


## Uso com tipos
Todas as operações possuem tipos para facilitar o uso e evitar erros, seja argumentos
ou campos de retorno.

```python
from saapi import SaAPI
from saapi.queries.product_offer_v2 import ProductOfferV2Node, ProductOfferV2SortType
from saapi.queries import PageInfoResParams

client = SaAPI({
    "app_id": "seu_app_id",
    "secret": "seu_secret"
})
res = client.queries.product_offer_v2(
    {
        "keyword": "blusa",
        "limit": 10,
        "sortType": ProductOfferV2SortType.COMMISSION_DESC
    },
    {
        "nodes": [
            ProductOfferV2Node.itemId,
            ProductOfferV2Node.productName,
            ProductOfferV2Node.offerLink
        ],
        "pageInfo": [
            PageInfoResParams.hasNextPage
        ]
    }
)
```


## Lidando com erros
```python
import logging
from saapi import SaAPI
from saapi.errors import SaAPIError, SaAPIErrorCode

client = SaAPI({
    "app_id": "seu_app_id",
    "secret": "seu_secret"
})
try:
    res = client.queries.product_offer_v2({},{"nodes": [...]})
    # seu código
except SaAPIError as err:
    if err.extensions["code"] == SaAPIErrorCode.IDENTITY_AUTHENTICATION_ERROR:
        logging.exception(err.message)
    else:
        logging.exception("algo deu errado")
```

## Outros países
Caso as credenciais sejam de outro país, é possível configurar:
```python
from saapi import SaAPI
from saapi.countries import Country

client = SaAPI({
    ...,
    "country": Country.INDONESIA
})
```


## Desenvolvimento
Faça um clone, configure um ambiente virtual e instale ``pip install --editable .[all]``. Para fazer
testes você deve utilizar o comando ``tox``. Tenha em mente que para testar em todas as versões você
precisa tê-las instaladas e com acesso global/local. Particularmente utilizei o asdf[^2] para isso.

[^1]: [Documentação](https://affiliate.shopee.com.br/open_api/home). É preciso estar logado para visualizar a documentação.
[^2]: [asdf](https://asdf-vm.com/)
coinalyze 0.1.1
Unofficial Python client for coinalyze.net REST API
Requires Python: >=3.11

# coinalyze

[![Ruff][ruff-badge]](https://github.com/astral-sh/ruff)
[![PyPI][pypi-badge]](https://pypi.org/project/coinalyze/)
[![Python versions][python-versions-badge]](https://github.com/ivarurdalen/coinalyze)
[![MIT License Badge][license-badge]][license]

This is an unofficial Python client for [coinalyze.net REST API](https://api.coinalyze.net/v1/doc/).

## Features

- Implementation of all endpoints.
- Uses [httpx](https://www.python-httpx.org/) for making HTTP requests
- Uses [pyrate-limiter](https://github.com/vutran1710/PyrateLimiter/tree/master) for maintaining [40 API calls per minute](https://api.coinalyze.net/v1/doc/).
- Uses [httpx-retries](https://github.com/will-ockmore/httpx-retries) for handling retries.
- Provides convenience functions to get results as pandas DataFrames

## Installation

```bash
pip install coinalyze
```

## Usage

1. Add your API key from [coinalyze.net](https://coinalyze.net/account/api-key/) to your environment variables as `COINALYZE_API_KEY`.
2. Then use the client as shown in the example below.

See more examples in the [coinalyze_client notebook](https://github.com/ivarurdalen/coinalyze/tree/main/examples/coinalyze_client.ipynb).

```python
import os
from coinalyze import CoinalyzeClient, HistoryEndpoint, Interval, response_to_df

client = CoinalyzeClient(api_key=os.getenv("COINALYZE_API_KEY"))

# Get exchange information as a list of dictionaries
client.get_exchanges()

# Get the supported future markets as a DataFrame
future_markets_df = response_to_df(client.get_future_markets())

# Get the current predicted funding rate
response = client.get_current_predicted_funding_rate("BTCUSDT_PERP.A")

# Get the open interest history as a DataFrame for a symbol
oi_df = client.get_history_df(
        endpoint=HistoryEndpoint.OI,
        symbols="BTCUSDT_PERP.A",
        interval=Interval.H4,
        start="2025-06-01",
        end="2025-06-20",
    )
```

[ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
[license]: ./LICENSE
[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg
[python-versions-badge]: https://img.shields.io/pypi/pyversions/coinalyze.svg
[pypi-badge]: https://img.shields.io/pypi/v/coinalyze
rebay 0.10.3
Scrape an ebay shop's inventory into a Reverb compatible format.
Requires Python: <3.12,>=3.10

# rebay

Scrape an ebay shop's inventory into a Reverb compatible format.

## Installation

Requires Python 3.10 <= version < 3.12.

Install with:

Clone this repository and open it in a shell.<br>
Then use the command:
(mac)
<pre>
pip3 install .
</pre>
(windows/linux)
<pre>
pip install .
</pre>

Alternatively, if you have [Git](https://git-scm.com/) and [Github CLI](https://cli.github.com/) installed and authenticated,
you should be able to install with:<br>
(mac)
<pre>
pip3 install git+https://github.com/matt-manes/rebay
</pre>
(windows/linux)
<pre>
pip install git+https://github.com/matt-manes/rebay
</pre>


## Usage
This package will be installed as a script,
so you don't need to have any particular folder open in terminal to run it.<br>
I'd suggest running it from the same location everytime though so that you only have one set of output and log folders.<br>

To run in terminal:
<pre>
>rebay shopname
</pre>
To see tool help, type `rebay -h`:
<pre>
>rebay -h
usage: rebay [-h] [-t MAX_THREADS] shop_name

positional arguments:
  shop_name             The name of the shop to scrape.

options:
  -h, --help            show this help message and exit
  -t MAX_THREADS, --max_threads MAX_THREADS
                        Max number of threads to use. Default is 5. Too many and they'll error page you.
</pre>
bbg-api-controller 0.1.2
A Python package providing utility functions for bbg api controller
Requires Python: >=3.7

# Bloomberg API Controller (BBG API Controller)

A Python package providing utility functions for Bloomberg API controller. This package helps streamline the process of handling Bloomberg data fetching process and provides related database management.

## Features

- Bloomberg API data fetching and parsing
- MongoDB integration for data storage

## Installation

You can install the package using pip:

```bash
pip install git+https://github.com/nailen1/module-bbg_api_controller.git
```

## Package Structure

```
bbg_api_controller/
├── __init__.py            # Package initialization
├── application.py         # Application level functionality
├── composed.py           # Collection of composed or partial functions
├── connector.py          # Bloomberg connection management
├── utils.py              # Utility functions
├── basis/                # Core functionality
│   ├── __init__.py       # Subpackage initialization
│   ├── fetcher.py        # Data fetching operations
│   └── ...               # Other base modules
└── consts/               # Constants and configurations
    ├── __init__.py       # Subpackage initialization
    ├── bbg_consts.py     # Bloomberg-specific constants
    └── ...               # Other constant definitions
```

## Usage

```python
from bbg_api_controller import application

# Example usage code
# ...
```

# Requirements

- pdblp
- pandas
- tqdm
- python-dotenv
- canonical_transformer
- string_date_controller
- shining_pebbles
- mongodb_controller

## Version History

### v0.1.2
- Added MANIFEST.in to include requirements.txt and other non-Python files in the package
- Improved package distribution configuration

### v0.1.1
- Added `recurse_squared` function for recursive data fetching, parsing, and insertion process across multiple dates
- Improved package structure documentation

## License

This project is licensed under the MIT License.

## Author

**June Young Park**
AI Management Development Team Lead & Quant Strategist at LIFE Asset Management

LIFE Asset Management is a hedge fund management firm that integrates value investing and engagement strategies with quantitative approaches and financial technology, headquartered in Seoul, South Korea.

## Contact

- Email: juneyoungpaak@gmail.com
- Location: TWO IFC, Yeouido, Seoul