Skip to main content

No project description provided

Project description

### LATCH PYTHON SDK ###


#### PREREQUISITES ####

* Python.

* Read API documentation (https://latch.elevenpaths.com/www/developers/doc_api).

* To get the "Application ID" and "Secret", (fundamental values for integrating Latch in any application), it’s necessary to register a developer account in Latch's website: https://latch.elevenpaths.com. On the upper right side, click on "Developer area".


#### USING THE SDK IN PYTHON ####

* Import "latch" module.
```
import latch
```

* Create a Latch object with the "Application ID" and "Secret" previously obtained.
```
api = latch.Latch("APP_ID_HERE", "SECRET_KEY_HERE")
```

* Optional settings:
```
latch.Latch.set_proxy("PROXY_HOST_HERE", port)
```

* Call to Latch Server. Pairing will return an account id that you should store for future api calls
```
response = api.pair("PAIRING_CODE_HERE")
response = api.status("ACCOUNT_ID_HERE")
response = api.unpair("ACCOUNT_ID_HERE")
```

* After every API call, get Latch response data and errors and handle them.
```
responseData = response.get_data()
responseError = response.get_error()
```

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latchsdk-1.0.0.zip (15.2 kB view details)

Uploaded Source

File details

Details for the file latchsdk-1.0.0.zip.

File metadata

  • Download URL: latchsdk-1.0.0.zip
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for latchsdk-1.0.0.zip
Algorithm Hash digest
SHA256 e21926e04533d0fa870a6492445bbffc1ccb893456997a08dba558f610586c64
MD5 d43ff5e584d79a101ad0e1b1a4d59608
BLAKE2b-256 b992883c11d6bcf212f335d23284d6cd8633ba9c157ae4cb86c52569d1bf1de2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page