Skip to main content
### 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()
```

Metadata

Release files for Latchsdk 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 Latchsdk 1.0
File Size Uploaded Provenance Actions
latchsdk-1.0.0.zip 15.2 kB Without provenance Details for latchsdk-1.0.0.zip

Release files / latchsdk-1.0.0.zip

Download URL latchsdk-1.0.0.zip
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e21926e04533d0fa870a6492445bbffc1ccb893456997a08dba558f610586c64
BLAKE2b-256 checksum
How to use checksums
b992883c11d6bcf212f335d23284d6cd8633ba9c157ae4cb86c52569d1bf1de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Latchsdk 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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