semvec/pypi-packages huggingface dataset:
cherrypy-dynpool 2.4.0
A dynamic thread pool tool for CherryPy.

cherrypy-dynpool
================

A dynamic threadpool tool for CherryPy


Usage::

    from cherrypy_dynpool import ThreadPoolMonitor

    ...

    cherrypy.engine.threadpool_monitor = ThreadPoolMonitor(cherrypy.engine)
    cherrypy.engine.threadpool_monitor.subscribe()
    cherrypy.config.update({
        'server.thread_pool': 5,
        'server.thread_pool_max': -1,
        'server.thread_pool_minspare': 5,
        'server.thread_pool_maxspare': 15,
        'server.thread_pool_frequency': 2,
        'server.thread_pool_log_frequency': 1,
        'server.thread_pool_shrink_frequency': 5,
    })

    ...

    cherrypy.engine.start()
    cherrypy.engine.threadpool_monitor.configure(
        thread_pool=cherrypy.server.httpserver.requests,
        logger=cherrypy.log
    )
gcapi-python 0.0.9
Unofficial Python library for Gain Capital API from Forex.com

# gcapi-python
Python package for [Gain Capital API](http://docs.labs.gaincapital.com/) used for trading on [Forex.com](https://www.forex.com/en-ca/)

[![PyPI version](https://badge.fury.io/py/gcapi-python.svg)](https://badge.fury.io/py/gcapi-python)

## Table of Contents
* [Getting Started](#Getting-Started)
    * [Installation](#Installation)
    * [Usage](#Usage)
    * [Functions](#Functions)
        * [Account Information](#Account-Information)
        * [Margin Information](#Margin-Information)
        * [Market Information](#Market-Information)
        * [Pricing](#Pricing)
        * [Trading](#Trading)
        * [List Open Positions](#List-Open-Positions)
    * [Examples](#Examples)
* [Contact](#Contact)

## Getting Started

### Installation

```bash
pip install gcapi-python
```

### Usage
After installing, import into your project

```python
from gcapi import GCapiClient
```

Initialize with [Forex.com](https://www.forex.com/en-ca/) credentials and app key.

```python
api = GCapiClient(username='usr', password='***', appkey='***', proxies=None)
```

### Endpoints

#### Account Information

```python
api.get_account_info(get=None)
```

#### Margin Information

```python
api.get_margin_info(get=None)
```

#### Market Information

```python
api.get_market_info(market_name,get=None)
```

#### Pricing

```python
api.get_prices(market_id=None, num_ticks=None, from_ts=None, to_ts=None, price_type=None)
```

```python
api.get_ohlc(market_id=None, num_ticks=None, interval="HOUR", span=1, from_ts=None, to_ts=None)
```

#### Trading

```python
api.trade_order(quantity, offer_price, direction, trading_acc_id=None, market_id=None, market_name=None, stop_loss=None, 
                take_profit=None, trigger_price=None)
```

#### List Open Positions

```python
api.list_open_positions(trading_acc_id=None)
```

### Examples

Click [here](https://github.com/rickykim93/gcapi-python/tree/master/examples) to see examples

## Contact
Please contact [**Kyu Mok (Ricky) Kim**](mailto:rickykim93@hotmail.com) if you have any questions, suggestions, or feedback.

Website: [rickykim.net](https://rickykim.net/)
py-midiplus-fit 1.1.0
A library for interacting with the MiDiPLUS FIT midi controller.
Requires Python: >=3.6

# py_midiplus_fit
This is a simple library to interact with the MiDiPLUS FIT midi controller.
A simple usage example, in the form of a tool to test the controller, is available in `__init__.py` of this package, and can be run with `python -m py_midiplus_fit`.