semvec/pypi-packages huggingface dataset:
pytlx 0.1.1
Download leveraged token data from TLX Fi.
Requires Python: >=3.7
Keywords: leverage, toros, crypto

# PyTLX

Download leveraged token data from [TLX Fi](https://tlx.fi)

[![codecov](https://codecov.io/gh/dhruvan2006/pytlx/graph/badge.svg?token=GVWV3STI3C)](https://codecov.io/gh/dhruvan2006/pytlx)
[![PyPI Version](https://img.shields.io/pypi/v/pytlx)](https://github.com/dhruvan2006/pytlx)
[![License](https://img.shields.io/github/license/dhruvan2006/pytlx)](https://github.com/dhruvan2006/pytlx)

## Installation

Install PyTLX using pip:
```bash
pip install pytlx
```

## Quick Start

### Example Usage
```python
import pytlx as tlx

# Initialize a token by its ticker
token = tlx.Token("BTC5L")

# Fetch historical data for the token
data = token.history()
print(data)
```

# API Documentation

## Token Class

### Description
The `Token` class provides a Python interface for interacting with the TLX platform, fetching token data, contract information, and historical prices.

---

### Initialization

#### `Token(ticker: str)`
- **Parameters**:
  - `ticker` (str): The token's identifier (e.g., `BTC5L`).
- **Description**:
  Initializes the `Token` object for fetching leveraged token data.

---

### Methods

#### `get_contract_addresses() -> List[Dict[str, Any]]`
- **Description**:
  Fetches all leveraged token contract addresses and related metadata from the smart contract on the Optimism blockchain.
- **Returns**:
  A list of dictionaries containing contract address data:
  - `addr` (str): Contract address.
  - `symbol` (str): Token symbol.
  - Other metadata fields as provided by the contract.

---

#### `get_contract_address() -> Optional[str]`
- **Description**:
  Retrieves the specific contract address associated with the initialized token's ticker.
- **Returns**:
  - `str`: Contract address if the ticker is found.
  - `None`: If the ticker does not exist in the metadata.

---

#### `history(granularity: str = "1d", start: str = "1900-01-01") -> pd.DataFrame`
- **Description**:
  Fetches historical price data for the token using the TLX API.
- **Parameters**:
  - `granularity` (str): Data interval (e.g., `1d`, `6h`).
  - `start` (str): Start date in `YYYY-MM-DD` format (default: `"1900-01-01"`).
- **Returns**:
  A `pandas.DataFrame` with the following columns:
  - `Date`: The timestamp of the data point (index).
  - `Price`: The historical price of the token.

- **Raises**:
  - `ValueError`: If the ticker is invalid.
  - `HTTPError`: If the API call fails.

---

#### `get_contract_addresses() -> List[Dict[str, Any]]`
- **Description**:
  Retrieves all contract addresses and metadata for leveraged tokens by interacting with the Optimism smart contract.
- **Returns**:
  A list of dictionaries with details:
  - `addr` (str): Token contract address.
  - `symbol` (str): Token ticker.
  - Additional metadata like `totalSupply`, `targetLeverage`, and `isActive`.
yahel 0.1.0
Pacote para visualização de dados com mapas de calor, gráficos de pizza e gráficos de área.
Requires Python: >=3.6

# Yahel

**Yahel** é um pacote Python para cientistas e analistas de dados, permitindo criar visualizações como:
- Mapas de Calor
- Gráficos de Pizza
- Gráficos de Área

## Instalação

Instale via pip:
```bash
pip install yahel
bbsky 0.1.6
Client for Blackbaud Sky API
Requires Python: >=3.10

## Overview
    
[![PyPI](https://img.shields.io/pypi/v/bbsky)](https://pypi.org/project/bbsky/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![python](https://img.shields.io/badge/Python-3.10-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
[![python](https://img.shields.io/badge/Python-3.11-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
[![python](https://img.shields.io/badge/Python-3.12-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)

`bbsky` provides a high-level Python client for interacting with the Blackbaud Sky API. 
You can use the client to authenticate and make requests to various endpoints provided by the Blackbaud Sky API.
See the Blackbaud Sky API documentation 
[here](https://developer.blackbaud.com/skyapi/) 
for more information on the Sky API itself.

**Important Note:** `bbsky` is a third-party client and is not affiliated with or endorsed by Blackbaud.

## Installation

To install the package, use pip:

```bash
pip install bbsky
```

## Usage

To see all available CLI commands, run:

```bash
bbsky --help
```

### Setting up Blackbaud App Credentials

First you'll need to setup your Blackbaud Sky account and then update your config.
After getting your credentials from Blackbaud, you can use the CLI here to set them up:

```bash
bbsky config --help

# Follow along with the prompts to set your credentials
bbsky config create
```

After that a config file will be created in your home directory at `~/.bbsky/config/config.json`.

### Getting a User Token

To get a user token, you can use the CLI:

```bash
bbsky server start
```

This will start a local server that you can use to authenticate with Blackbaud. 
After authenticating, you'll be prompted to cache the token locally.

If you need to refresh your token, run:
    
```bash
bbsky token refresh
```

### Using the Client

Here's a basic example of how to use the client:

```python
from bbsky import BBSky

sky = BBSky()
results = sky.search_constituents(constituent_quick_find="Smith", limit=5)
print(results)
```

## Development

[![Rye](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/rye/main/artwork/badge.json)](https://rye.astral.sh)


We use [Rye](https://rye.astral.sh/) for managing the development environment.
See the [Rye documentation](https://rye.astral.sh/guide/) for more information on how to use it.