semvec/pypi-packages huggingface dataset:
peaka 1.1.0
A Python client for Peaka
Requires Python: >=3.8
Keywords: data, peaka

# Peaka Python client

Client for [Peaka](https://peaka.com/), a Zero-ETL data integration platform. 
Provides a low-level client and a DBAPI 2.0 implementation and a SQLAlchemy adapter.
It supports Python>=3.8 and PyPy.

## Usage

### The Python Database API (DBAPI)

**Installation**

```
$ pip install peaka
```

**Quick Start**

Use the DBAPI interface to query Peaka:

You can call the `connect_to_peaka` method with your Peaka `api_key`. `catalog`, `schema`, `timezone` and `zone` are the optional parameters.

```python
from peaka.dbapi import connect_to_peaka

conn = connect_to_peaka(api_key="<YOUR_API_KEY>", catalog="<CATALOG_NAME>", schema="<SCHEMA_NAME>", timezone="<TIMEZONE>", zone="<'eu' | 'us'>")
    
cur = conn.cursor()
cur.execute("SELECT * FROM <table_name>")
rows = cur.fetchall()
```

You can query your `table` directly, if you enter the `catalog` and `schema` when you connect.

### SQLAlchemy

**Installation**

```
$ pip install peaka[sqlalchemy]
```

**Usage**

To connect to Peaka using SQLAlchemy, use a connection string (URL) following this pattern:

```
peaka://dbc.peaka.studio:4567/<catalog>/<schema>?http_scheme=https&extra_credential=[["peakaKey",<YOUR_API_KEY>]]&access_token=true
```

NOTE: `schema` is optional

**Examples**:

```python
from sqlalchemy import create_engine
from sqlalchemy.schema import Table, MetaData
from sqlalchemy.sql.expression import select, text

engine = create_engine('peaka://dbc.peaka.studio:4567/<CATALOG_NAME>/<SCHEMA_NAME>?http_scheme=https&extra_credential=[["peakaKey",<YOUR_API_KEY>]]&access_token=true')
connection = engine.connect()

rows = connection.execute(text("SELECT * FROM <TABLE_NAME>")).fetchall()

# or using SQLAlchemy schema
nodes = Table(
    '<TABLE_NAME>',
    MetaData(schema='<SCHEMA_NAME>'),
    peaka_autoload=True,
    autoload_with=engine
)
rows = connection.execute(select(nodes)).fetchall()
```

In order to pass additional connection attributes use [connect_args](https://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine.params.connect_args) method.
Attributes can also be passed in the connection string.
luke-roberts-cloud-api 0.0.17
Exposes the API of the Luke Roberts cloud via utility classes. Luke Roberts is a Lighting Manufacturer.
Requires Python: >=3.8

# Luke Roberts Cloud API

This is a Python library for abstracting the HTTP API of the lamp control for Luke Roberts lamps.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install luke_roberts_cloud_api
```

## Usage

```python
import luke_roberts_cloud_api.luke_roberts_cloud as lr

# setup connection
lrcloud = lr.LukeRobertsCloud(API_KEY)
lrcloud.fetch()
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
crypto-alpine 0.1.4
Python library for cryptocurrency trading
Requires Python: <4.0,>=3.11

# crypto-alpine

Python library for cryptocurrency trading using the most common exchanges.

## How to install

```
pip install -U crypto-alpine
```

## Documentation

1. Set environment variables (optional)

```
export API_SECRET_KEY=xxx
export API_ACCESS_KEY=yyy
export API_PASSPHRASE=zzz
```

2. Initialize

```
from alpine.exchanges import Wrapper

w = Wrapper('bitget')
```

Note that if you don't want to use enviroment variables (if you wish to use the library within your code), you can define them during the initialization:

```
from alpine.exchanges import Wrapper

w = Wrapper('bitget', <access_key>, <secret_key>, <passphrase>)
```

3. Set a leverage

```
w.set_leverage(leverage, position, symbol, margin_coin)
# Example: w.set_leverage(10, "long", "FETUSDT", "usdt")
```

4. Create an order

```
w.create_order(position, symbol, price, amount, margin_coin, take_profit, stop_loss)
# Example: w.create_order("long", "FETUSDT", 2.5, 100, "usdt", 3, 2)
```

5. Get order detail

```
w.get_order_detail(symbol, order_id)
# Example: w.get_order_detail("FETUSDT", "123456")
```

6. Get current position detail

```
w.get_current_position(symbol, margin_coin)
# Example: w.get_current_position("FETUSDT", "usdt")
```

7. Get historical position detail

```
w.get_historical_position(symbol, margin_coin)
# Example: w.get_historical_position("FETUSDT", "usdt")
```

## Current supported cryptocurrency exchanges

- bitget

## Need help 

Please create an issue if you need a feature/exchange to be implemented.

## Support

If you wish to support the project:

- Ethereum: 0xf11B49666d3386C96Af1A496bFA5688c83B25E8e
- Solana: C7USpoN4kxEm81w3mpK7FuNQ7zcMWY9fqyuacPafRqnk
- Bitcoin (segwit): bc1qcq7fdn4khlsc5ldmlf0ezks8p9r5q2hn04lyy5
ast-decompiler 0.8.0
Python module to decompile AST to Python code
Requires Python: >=3.8
Keywords: ast, decompiler

**************
ast_decompiler
**************

ast_decompiler is a module for generating Python code given an AST.

A usage example::

    >> import ast
    >> from ast_decompiler import decompile

    >> decompile(ast.parse('(a + b) * c'))
    (a + b) * c

This module supports Python 3.8 through 3.13.

====================
Tests and formatting
====================

To run the tests, install ``pytest`` in a virtual environment. Then, either use
``tox``, or simply run ``pytest tests/``.

The code is formatted with Black.