semvec/pypi-packages huggingface dataset:
bt-api-py 0.13.1
implement backtesting and trading of quantitative strategy

# bt_api_py

#### introduction
This is a Python package that integrates with Binance and OKX for spot and contract trading, offering three types of API interfaces: standard mode, asynchronous mode, and WebSocket mode.

#### how to install

- directly install from pypi:

`pip install bt_api_py`

- or clone the project and install from source:
``` bash
git clone https://github.com/cloudQuant/bt_api_py
pip install -r ./bt_api_py/requirements.txt
pip install ./bt_api_py/
```

#### run tests
- First, create an `account_config.yaml` file in the `btpy/configs` folder to configure account information.  
  - Refer to the format in `account_config_example.yaml`.  
  - To successfully run the tests, you will need APIs for Binance and OKX exchanges, and ensure there are at least 10 USDT in both the spot and contract accounts.  
- In the `btpy` folder, run the following commands:  
  - `pytest tests -n 4`  # Run tests using 4 CPUs.  
  - `pytest tests -n 4 --picked`  # Use 4 CPUs to only test new or previously failed tests.

####  how to use

This is a part of btpy package, which is used to high frequency trading and market making.
now, it aims to integrate with backtrader and let backtrader can trade crypto.
ovsgui 1.0.6
Online Variable System GUI - A GUI for managing online variables through Firebase
Requires Python: >=3.6

# OVSGUI - Online Variable System GUI

**OVSGUI** is a graphical user interface (GUI) for managing online variables through Firebase. It provides an intuitive interface for users to interact with variables, retrieve, delete, and manage them. The application supports token-based access and displays variable details such as creator information, creation time, and more.

## Features

- **Token Authentication**: Secure access to the variable system using unique tokens.
- **Variable Management**: View and manage variables, including deletion of variables.
- **Real-time Updates**: Dynamic interaction with Firebase data.
- **User Interface**: Modern GUI built with `customtkinter` for a smooth user experience.
- **Variable Details**: View detailed information about each variable, including creator, IP, creation date, and value.

## Installation

To install **OVSGUI** and use it in your Python environment, follow the steps below.

### Using pip

You can install the package directly from PyPI:

```bash
pip install ovsgui
```
ovsystem 1.0.7
Online Variables System: Manage variables with Firebase
Requires Python: >=3.6

# OVS (Online Variables System)

OVS is a Python library designed for managing and storing variables using Firebase Realtime Database. The library allows you to create, update, and retrieve variables through a specific token.

## Features

- Connects to Firebase Realtime Database.
- Retrieve, create, and update variables.
- Supports listing all variables.

## Requirements

- Python 3.6 or higher
- Firebase Admin SDK
- `python-dotenv` package

## Installation

```bash
pip install ovsystem
```
fxdb 0.1.0
Add your description here
Requires Python: >=3.7

# fxdb - Fast Execute in Database

**fxdb** - A lightweight, single-file library for easy and efficient database interactions.

## Features

- Single file, no external dependencies.
- Streamlined operations for inserting, updating, and querying data.
- Simple integration with dictionaries and dataframes.
- Built-in **backup functionality** for data security.
- Focused on core database operations (CRUD).

## Installation

Install **fxdb** via pip:

```bash
pip install fxdb
```

## Quick Start

### 1. Initialize a Database Instance

You can initialize the database by specifying the file path. If the file does not exist, it will be automatically created:

```python
from fxdb import fxdb

# Example 1: Default database file
db = fxdb('data')

# Example 2: Custom database file
db = fxdb('data.sqlite3')

# Example 3: Database in a specific directory
db = fxdb('path/to/data/demo.db')
```

### 2. Backup Functionality

Ensure your data is secure with automatic backups:

```python
db.backup(backup_dir="database_backup", keep_num=5)
```

- **backup_dir**: Directory to store backups.
- **keep_num**: Maximum number of backups to retain.

### 3. Table Operations

Interact with tables seamlessly. Use `db['table_name']` to access or create a table:

```python
table = db['test_table']
```

##### Automatic Table Creation
- When inserting data, fxdb automatically creates the table based on the full set of keys provided in your data.
- All keys across your dataset are analyzed to define the table structure, ensuring consistency and avoiding key mismatches.

### 4.Insert Data

Insert records into the table:

```python
# Insert a single record
table.insert(name="Jack", age=25)

# Insert multiple records from a dictionary
table.insert_from_dict([
    {"name": "Bob", "age": 25, "city": "Los Angeles"},
    {"name": "Charlie", "age": 35, "city": "Chicago"}
])

# Insert data from a DataFrame
table.insert_from_df(data)
```

### 5.Upsert Data

Update or insert records if they already exist:

```python
# Upsert from a dictionary
table.upsert_from_dict(data, keys=["name"])

# Upsert from a DataFrame
table.upsert_from_df(data, keys=["name","gender"])
```

### 6.Query Data

Retrieve data with minimal effort:

```python
# Fetch all records
records = table.all()

# Select records matching specific criteria
jack = table.select(name="Jack")
```

### 7.Delete Data

Remove data from the table:

```python
# Delete records matching specific criteria
table.delete(name="Jack")

# Truncate all data in the table
table.truncate()

# Drop the entire table
table.drop()
```

## License

This project is licensed under the [MIT License](LICENSE).