Metadata-Version: 2.4
Name: lfc-torque-airtable
Version: 0.1.3
Summary: Torque airtable connection for LFC
Home-page: https://code.librehq.com/ots/mediawiki/lfc-torque-airtable
Author: Open Tech Strategies, LLC
Author-email: frankduncan@opentechstrategies.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: torqueclient
Requires-Dist: pyairtable
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# lfc-torque-airtable python package

This is a standalone application that should be installed via:

```
$ pip install lfc-torque-airtable
```

## Usage from commandline

```
$ lfc-torque-airtable \
        --airtable-api-key <airtable_api_key> \
        --torque-endpoint <torque-endpoint> \
        --torque-user <torque-user> \
        --torque-password <torque-password \
        --dry-run \
        <competition_name> <application_number>
```

The options are:
* `airtable-api-key` - can be found opass at clients/lever-for-change/airtable
* `torque-endpoint` - usually https://torque.leverforchange.org/GlobalView
* `torque-user` - your username, or in the case of the extension, usually csv2wiki
* `torque-password` - the api key you use for torque
* `dry-run` - include when you want information about the push, rather than actuallypushing it
* `competition_name` - the competition shortname in torque
* `application_number` - the application number in torque

## Usage from inside python

```

from lfc_torque_airtable import torque_to_airtable
from torqueclient import Torque

torque = Torque(torque_endpoint, torque_user, torque_password)
converter = TorqueToAirtable(airtable_api_key, torque)
converter.dry_run = dry_run

converter.convert_proposal(competition, application_no)
```

Where the variables are the same as the options above
