{ "info": { "author": "Jimming Cheng", "author_email": "jimming@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# tesla_client\n\nThis library allows access to the unofficial Tesla API for reading data and issuing commands to Tesla vehicles.\n\nA key feature of this library is that it offers an easy way to sync OAuth credentials with a data store of your choice. Credentials are auto-saved on login, or during token refreshes.\n\n## Quick Start\n\n``` {.sourceCode .python}\nimport tesla_client\n\ntesla_client.init(CLIENT_ID, CLIENT_SECRET) # Get these values from https://pastebin.com/pS7Z6yyP\n\n# Define an Account subclass of your own to manage OAuth credential storage\nclass MyTeslaAccount(tesla_client.Account):\n def get_credentials(self):\n return your_credentials_store.get()\n\n def save_credentials(self, creds):\n your_credentials_store.save(creds)\n\n\naccount = MyTeslaAccount()\n\n# Log in (and automatically save the OAuth credentials)\naccount.login('mrsteven@gmail.com', 'password')\n\n# Access a vehicle in this account\nvehicle = account.get_vehicles()[0]\n\n# Fetch some data from the vehicle\nvehicle.data_request('drive_state')\n\n# Send a command to the vehicle\nvehicle.command('honk_horn')\n```\n\nThe Tesla API is not officially supported by Tesla, Inc. It may stop working at any time. For detailed documentation of API commands, see https://tesla-api.timdorr.com/. Thanks to Tim Dorr for his work in documenting the unofficial API.\n\nTesla, Inc. does not endorse or support this python library.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tesla-client", "package_url": "https://pypi.org/project/tesla-client/", "platform": "", "project_url": "https://pypi.org/project/tesla-client/", "project_urls": null, "release_url": "https://pypi.org/project/tesla-client/1.0.4/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Tesla API Client", "version": "1.0.4" }, "last_serial": 4913376, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "8139a2efbf743f04bce7c9ef8631f8af", "sha256": "2261cdcd6b4f2f951818b2af2ab749a69007cfa34b81e38665761f32a6c4ac34" }, "downloads": -1, "filename": "tesla_client-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "8139a2efbf743f04bce7c9ef8631f8af", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4212, "upload_time": "2019-03-08T01:40:05", "url": "https://files.pythonhosted.org/packages/1f/fd/72958dc669915b3485b3d1e51bd918a2855331078adc8c568fe519124273/tesla_client-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c499016311a4a4f686467f150e36aabe", "sha256": "87b4755cab55307b850b2b7495d8e41697c84ef3f1abb10a7c24ed869669e5d0" }, "downloads": -1, "filename": "tesla_client-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c499016311a4a4f686467f150e36aabe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2926, "upload_time": "2019-03-08T01:40:07", "url": "https://files.pythonhosted.org/packages/cf/6b/0b2707d60884e8350165e510bbf077e04ac6c07ac411fee0431e66b759fc/tesla_client-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8139a2efbf743f04bce7c9ef8631f8af", "sha256": "2261cdcd6b4f2f951818b2af2ab749a69007cfa34b81e38665761f32a6c4ac34" }, "downloads": -1, "filename": "tesla_client-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "8139a2efbf743f04bce7c9ef8631f8af", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4212, "upload_time": "2019-03-08T01:40:05", "url": "https://files.pythonhosted.org/packages/1f/fd/72958dc669915b3485b3d1e51bd918a2855331078adc8c568fe519124273/tesla_client-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c499016311a4a4f686467f150e36aabe", "sha256": "87b4755cab55307b850b2b7495d8e41697c84ef3f1abb10a7c24ed869669e5d0" }, "downloads": -1, "filename": "tesla_client-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c499016311a4a4f686467f150e36aabe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2926, "upload_time": "2019-03-08T01:40:07", "url": "https://files.pythonhosted.org/packages/cf/6b/0b2707d60884e8350165e510bbf077e04ac6c07ac411fee0431e66b759fc/tesla_client-1.0.4.tar.gz" } ] }