{"id":16209367,"url":"https://github.com/ayushgoel/mstranslator","last_synced_at":"2025-04-07T20:42:38.672Z","repository":{"id":57443750,"uuid":"53189451","full_name":"ayushgoel/mstranslator","owner":"ayushgoel","description":"Python wrapper for Microsoft Translate","archived":false,"fork":false,"pushed_at":"2016-03-18T19:20:31.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T18:22:00.415Z","etag":null,"topics":["mstranslator","python","python-wrapper","translation"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayushgoel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-05T07:28:23.000Z","updated_at":"2018-03-22T05:43:03.000Z","dependencies_parsed_at":"2022-09-10T18:41:35.507Z","dependency_job_id":null,"html_url":"https://github.com/ayushgoel/mstranslator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushgoel%2Fmstranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushgoel%2Fmstranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushgoel%2Fmstranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushgoel%2Fmstranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayushgoel","download_url":"https://codeload.github.com/ayushgoel/mstranslator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247728482,"owners_count":20986268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mstranslator","python","python-wrapper","translation"],"created_at":"2024-10-10T10:29:21.468Z","updated_at":"2025-04-07T20:42:38.203Z","avatar_url":"https://github.com/ayushgoel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mstranslator\n-\n\nPython wrapper for Microsoft Translate services.\n\nThe API lets you:\n\n1. Detect language for given text.\n2. Translate given text to another language supported by Microsft Translate.\n3. `access_token` is managed by the package itself.\n\nUsage\n-\n\n```python\n\n$ import mstranslator.translator as translator\n\n# Create Config instance.\n$ config = translator.Config(\"Client ID\", \"Client Secret\")\n\n# Create translator instance using the Config instance. This instance now uses\n# the same config for all translation related tasks. You can create more than\n# one instances if required.\n$ translator = translator.Translator(config)\n\n# Detect language of the given text. The detected language's code and an\n# authorization header is returned.\n$ translator.detect_language(\"Hello\")\n\n('en',\n u'Authorization Header')\n\n# Translate a given text to another language (Hindi used in example here).\n# Authorization header generated above in detect language call can be reused.\n# If not given in argument, a new one is generated.\n$ print translator.translate(\"hello\", 'en', 'hi', u'Authorization Header')\n\nनमस्कार\n\n```\n\nSteps to upload to PyPI\n-\n\n```bash\n\n$ git pull\n$ vi setup.py # Edit version here.\n$ git commit -m \"Update version to #NEW_VERSION\"\n$ python setup.py check # Should return no errors or warnings.\n$ git tag # NEW_VERSION\n$ git push --tags\n$ git push\n$ python setup.py sdist upload -r pypi # Upload to PyPI\n\n```\n\nAuthor\n-\n\nAyush Goel, ayushgoel111@gmail.com\n\nLicense\n-\n\nmstranslator-2016 is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushgoel%2Fmstranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayushgoel%2Fmstranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushgoel%2Fmstranslator/lists"}