Skip to main content

Formeler SDK for Python

Project description

Formeler SDK

Formeler SDK is a cloud language detection api SDK, It's design to make get started quick and easy with the ability to scale up to complex applications.

An Example

from formeler import Formeler

def test_detect():
    api = Formeler("YOUR-API-KEY")
    result = api.lang_id.detect("Dies ist ein Test")
    print(result)

def main():
    test_detect()

if __name__ == "__main__":
    main()

If the API call is successful,the result variable will contain the following JSON response:

{
  "result": "success",
  "language": "de",
  "tokenCount": "4"
}

More Example

You can find additional examples in the examples directory of this repository.

API errors

The Formeler API may return an error in the response. You can identify these by checking the result field in the returned object. An error response will follow this structure:

{
  "result": "failed",
  "message": "unauthorized"
}

Project details


Download files

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

Source Distribution

formeler-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

formeler-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file formeler-1.0.0.tar.gz.

File metadata

  • Download URL: formeler-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for formeler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1214ed8634cafcb8ec81e2375e9374f1cbb89ff6b0f63b3653e47b6596343f5b
MD5 e672973df9a5b373d9873b0149ffaa2d
BLAKE2b-256 4c21fb1f523e2c9b5993c633e5c13302b8158387fa15f90dfc023b140da23129

See more details on using hashes here.

File details

Details for the file formeler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: formeler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for formeler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 944694ed94951f2ef7cf2078fc1a2e0cf2a4e5c49dd635078324d452ca708c55
MD5 539a34d86e467c248c816432a8059fb6
BLAKE2b-256 6663115e6179388591dd589a7a261e4c01871aee8ad00c8f3e5be4a1ad063fe1

See more details on using hashes here.

Supported by

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