Skip to main content
# Wit Python SDK

`pywit` is the Python SDK for [Wit.AI](http://wit.ai).

## Prerequisites

This package requires:

* libsox (with -dev files on Debian/Ubuntu, `brew install sox` on OS X)
* libcurl (with -dev files on Debian/Ubuntu, `brew install curl` on OS X)
* a recent enough version of Python 2.7:
* for OS X users: you can install it via Homebrew using `brew install python`. The version currently shipped with OS X is too old
* for Linux users: make sure the python dev files are installed (`sudo apt-get install python-dev` on Debian)

## Installation instructions

### Using pip

```bash
pip install git+https://github.com/wit-ai/pywit.git
```

### Regular way

Run the following commands into the main directory (where `setup.py` and `pywit.c` are located):
```bash
python setup.py build
sudo python setup.py install
```

## Usage

```python
import wit

access_token = 'ACCESS_TOKEN'

wit.init()
print('Reponse: {}'.format(wit.text_query('turn on the lights in the kitchen', access_token)))
print('Response: {}'.format(wit.voice_query_auto(access_token)))
wit.close()
```

See example files for further information.

Metadata

Release files for wit 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wit 1.0
File Size Uploaded
wit-1.0.tar.gz 3.3 kB Details

Release files / wit-1.0.tar.gz

Download URL wit-1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e0f487611380dc8b890a8088bb82e741a15edd3ff6855375249bbfc177866d2
BLAKE2b-256 checksum
How to use checksums
5cb01dfcacba90fdca37ae7a8f062ec1ca61bfcf7527d88a9513dc48eff3e45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

6.0.1

1 release file

6.0.0

1 release file

5.1.0

1 release file

5.0.0

1 release file

4.3.0

2 release files

4.2.0

1 release file

4.1.0

1 release file

4.0.0

1 release file

3.5.0

1 release file

3.4.1

1 release file

3.4.0

1 release file

3.3.0

1 release file

3.2

1 release file

3.1

1 release file

3.0

1 release file

2.0

1 release file

1.1

1 release file

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page