apiverve-translator


Nameapiverve-translator JSON
Version 1.1.5 PyPI version JSON
download
home_pageNone
SummaryTranslator is a simple tool for translating text. It returns the translated text.
upload_time2024-09-21 07:06:01
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords translator translation translate text translation language translation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Translator API
============

Translator is a simple tool for translating text. It returns the translated text.

![Build Status](https://img.shields.io/badge/build-passing-green)
![Code Climate](https://img.shields.io/badge/maintainability-B-purple)
![Prod Ready](https://img.shields.io/badge/production-ready-blue)

This is a Python API Wrapper for the [Translator API](https://apiverve.com/marketplace/api/translator)

---

## Installation
	pip install apiverve-translator

---

## Configuration

Before using the translator API client, you have to setup your account and obtain your API Key.  
You can get it by signing up at [https://apiverve.com](https://apiverve.com)

---

## Usage

The Translator API documentation is found here: [https://docs.apiverve.com/api/translator](https://docs.apiverve.com/api/translator).  
You can find parameters, example responses, and status codes documented here.

### Setup

```
# Import the client module
from apiverve_translator.apiClient import TranslatorAPIClient

# Initialize the client with your APIVerve API key
api = TranslatorAPIClient("[YOUR_API_KEY]")
```

---


### Perform Request
Using the API client, you can perform requests to the API.

###### Define Query

```
query = {  "text": "I'm so excited that tomorrow is going to be sunny! Can't wait!",  "source": "en",  "target": "es" }
```

###### Simple Request

```
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
```

###### Example Response

```
{
  "status": "ok",
  "error": null,
  "data": {
    "sourceLang": "en",
    "targetLang": "es",
    "translatedText": "¡Estoy tan emocionada porque mañana hará sol! ¡No puedo esperar!"
  },
  "code": 200
}
```

---

## Customer Support

Need any assistance? [Get in touch with Customer Support](https://apiverve.com/contact).

---

## Updates
Stay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.

---

## Legal

All usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms) and all legal documents and agreements.

---

## License
Licensed under the The MIT License (MIT)

Copyright (©) 2024 APIVerve, and Evlar LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "apiverve-translator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "translator, translation, translate, text translation, language translation",
    "author": null,
    "author_email": "APIVerve <hello@apiverve.com>",
    "download_url": "https://files.pythonhosted.org/packages/08/95/29a18f157e560f4b8a6d80fbfb55fd21ad0e04f710e50c78d96b0b2adcfa/apiverve_translator-1.1.5.tar.gz",
    "platform": null,
    "description": "Translator API\r\n============\r\n\r\nTranslator is a simple tool for translating text. It returns the translated text.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n\r\nThis is a Python API Wrapper for the [Translator API](https://apiverve.com/marketplace/api/translator)\r\n\r\n---\r\n\r\n## Installation\r\n\tpip install apiverve-translator\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the translator API client, you have to setup your account and obtain your API Key.  \r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com)\r\n\r\n---\r\n\r\n## Usage\r\n\r\nThe Translator API documentation is found here: [https://docs.apiverve.com/api/translator](https://docs.apiverve.com/api/translator).  \r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```\r\n# Import the client module\r\nfrom apiverve_translator.apiClient import TranslatorAPIClient\r\n\r\n# Initialize the client with your APIVerve API key\r\napi = TranslatorAPIClient(\"[YOUR_API_KEY]\")\r\n```\r\n\r\n---\r\n\r\n\r\n### Perform Request\r\nUsing the API client, you can perform requests to the API.\r\n\r\n###### Define Query\r\n\r\n```\r\nquery = {  \"text\": \"I'm so excited that tomorrow is going to be sunny! Can't wait!\",  \"source\": \"en\",  \"target\": \"es\" }\r\n```\r\n\r\n###### Simple Request\r\n\r\n```\r\n# Make a request to the API\r\nresult = api.execute(query)\r\n\r\n# Print the result\r\nprint(result)\r\n```\r\n\r\n###### Example Response\r\n\r\n```\r\n{\r\n  \"status\": \"ok\",\r\n  \"error\": null,\r\n  \"data\": {\r\n    \"sourceLang\": \"en\",\r\n    \"targetLang\": \"es\",\r\n    \"translatedText\": \"\u00a1Estoy tan emocionada porque ma\u00f1ana har\u00e1 sol! \u00a1No puedo esperar!\"\r\n  },\r\n  \"code\": 200\r\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact).\r\n\r\n---\r\n\r\n## Updates\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms) and all legal documents and agreements.\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2024 APIVerve, and Evlar LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Translator is a simple tool for translating text. It returns the translated text.",
    "version": "1.1.5",
    "project_urls": {
        "Documentation": "https://docs.apiverve.com/api/translator?utm_source=pypi",
        "Homepage": "https://apiverve.com?utm_source=pypi",
        "Repository": "https://github.com/apiverve/translator.Python-API",
        "Twitter": "https://twitter.com/apivervehq"
    },
    "split_keywords": [
        "translator",
        " translation",
        " translate",
        " text translation",
        " language translation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ca5256185f172de2a55a0ce088647c3e2e79322526ecf066b0352d784e45260",
                "md5": "8df41fa9ea0ac111c546f1d600867bb8",
                "sha256": "86f15efd34fe7d32e0bf000a69a873d92147dcfeebaa9e3affb0125932c84c32"
            },
            "downloads": -1,
            "filename": "apiverve_translator-1.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8df41fa9ea0ac111c546f1d600867bb8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 7183,
            "upload_time": "2024-09-21T07:06:00",
            "upload_time_iso_8601": "2024-09-21T07:06:00.456213Z",
            "url": "https://files.pythonhosted.org/packages/5c/a5/256185f172de2a55a0ce088647c3e2e79322526ecf066b0352d784e45260/apiverve_translator-1.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "089529a18f157e560f4b8a6d80fbfb55fd21ad0e04f710e50c78d96b0b2adcfa",
                "md5": "6a449c99ae62f379afac1da0eb717832",
                "sha256": "4a5df196227599b7c024be59de7e51f1d3393080fde8502d24290ff2c1f0ded1"
            },
            "downloads": -1,
            "filename": "apiverve_translator-1.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "6a449c99ae62f379afac1da0eb717832",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 7062,
            "upload_time": "2024-09-21T07:06:01",
            "upload_time_iso_8601": "2024-09-21T07:06:01.360527Z",
            "url": "https://files.pythonhosted.org/packages/08/95/29a18f157e560f4b8a6d80fbfb55fd21ad0e04f710e50c78d96b0b2adcfa/apiverve_translator-1.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-21 07:06:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "apiverve",
    "github_project": "translator.Python-API",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "apiverve-translator"
}
        
Elapsed time: 0.28443s