Metadata-Version: 2.1
Name: ifcclient
Version: 0.0.1
Summary: Using python to connect the Infinite Flight Connect API v2.
Home-page: https://github.com/rollingonroad/InfiniteFlightConnect
Author: David Wu
Author-email: toffino@aliyun.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Description-Content-Type: text/markdown
License-File: LICENSE

# Infinite Flight Connect API Client

Using python to connect the Infinite Flight Connect API v1/v2.

## Installation

```sh
pip3 install ifcclient
```

## Usage

Before getting started, make sure to enable the Infinite Flight Coneect in the app `Settings > General > Enable Infinite Flight Connect`

First, import the module in Python and init the object.
```py
import ifcclient

ifc = IFClient()
```

There are three ways to use the Infinite Flight Connected API V2, GetState, SetState, RunCommand. 

###GetState
```py
get_state_by_name(name)
```

###SetState
```py
set_state_by_name(name, value)
```

###RunCommand
```py
run_command_by_name(command)
```

## Future updates

- [ ] To support Connect API v1

