pycarwings2


Namepycarwings2 JSON
Version 2.14 PyPI version JSON
download
home_pagehttps://github.com/filcole/pycarwings2
SummaryPython library for interacting with the Nissan Leaf Carwings telematics service
upload_time2022-12-29 16:05:27
maintainer
docs_urlNone
authorPhil Cole
requires_python
licenseApache Software License
keywords nissan leaf carwings nissan+you
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # pycarwings2

[![Build Status](https://travis-ci.com/filcole/pycarwings2.svg?branch=master)](https://travis-ci.com/filcole/pycarwings2)
[![PyPI](https://img.shields.io/pypi/v/pycarwings2)](https://pypi.org/project/pycarwings2)
[![Python](https://img.shields.io/pypi/pyversions/pycarwings2)](https://pypi.org/project/pycarwings2)
[![Downloads](https://img.shields.io/pypi/dm/pycarwings2)](https://pypi.org/project/pycarwings2)
[![License](https://img.shields.io/pypi/l/pycarwings2)](https://pypi.org/project/pycarwings2)

Python3 version of the pycarwings2 library.

Library for connecting and interacting with Nissan's CARWINGS service for Nissan LEAF cars.
Uses the (newly secure!) REST/JSON API rather than the previous XML-based API.

Note: The US may use an entirely RESTful API as mentioned in [this gist by BenWoodford](https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942) and [Issue 30](https://github.com/jdhorne/pycarwings2/issues/30)  Please report if this works in the US.  I am based in the UK.

Inspired by original pycarwings library: https://github.com/haykinson/pycarwings including code from https://github.com/jdhorne/pycarwings2 and https://github.com/BenWoodford/pycarwings2

## Asynchronous methods

Note that several of the most interesting methods in the CARWINGS service are
asynchronous--you ask the service to do something, and it just says "ok". You then
have to poll a corresponding method to find out if the operation was successful.

Recently the polling has continued to return zero, yet when querying the data
held on the Nissan servers the last update date changes, indicating a response
has been received from the car, see examples/get-leaf-info.py for how this can
be handled.

More details are located at the top of [pycarwings2.py](https://github.com/filcole/pycarwings2/blob/HomeAssistant/pycarwings2/pycarwings2.py).

## Installation

    pip3 install pycarwings2

## Example usage

* Copy file ./examples/config.ini to ./examples/my_config.ini
* Edit my_config.ini and enter your username, password and region
* Run python3 ./examples/get-leaf-info.py

## License

Copyright 2016 Jason Horne
Copyright 2018 Phil Cole

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/filcole/pycarwings2",
    "name": "pycarwings2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "nissan leaf carwings nissan+you",
    "author": "Phil Cole",
    "author_email": "filcole@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9f/a2/e2163a5f55f89c52b37c4fad43c3a19951eba1314ce83acfc8d2a3f06d33/pycarwings2-2.14.tar.gz",
    "platform": null,
    "description": "# pycarwings2\n\n[![Build Status](https://travis-ci.com/filcole/pycarwings2.svg?branch=master)](https://travis-ci.com/filcole/pycarwings2)\n[![PyPI](https://img.shields.io/pypi/v/pycarwings2)](https://pypi.org/project/pycarwings2)\n[![Python](https://img.shields.io/pypi/pyversions/pycarwings2)](https://pypi.org/project/pycarwings2)\n[![Downloads](https://img.shields.io/pypi/dm/pycarwings2)](https://pypi.org/project/pycarwings2)\n[![License](https://img.shields.io/pypi/l/pycarwings2)](https://pypi.org/project/pycarwings2)\n\nPython3 version of the pycarwings2 library.\n\nLibrary for connecting and interacting with Nissan's CARWINGS service for Nissan LEAF cars.\nUses the (newly secure!) REST/JSON API rather than the previous XML-based API.\n\nNote: The US may use an entirely RESTful API as mentioned in [this gist by BenWoodford](https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942) and [Issue 30](https://github.com/jdhorne/pycarwings2/issues/30)  Please report if this works in the US.  I am based in the UK.\n\nInspired by original pycarwings library: https://github.com/haykinson/pycarwings including code from https://github.com/jdhorne/pycarwings2 and https://github.com/BenWoodford/pycarwings2\n\n## Asynchronous methods\n\nNote that several of the most interesting methods in the CARWINGS service are\nasynchronous--you ask the service to do something, and it just says \"ok\". You then\nhave to poll a corresponding method to find out if the operation was successful.\n\nRecently the polling has continued to return zero, yet when querying the data\nheld on the Nissan servers the last update date changes, indicating a response\nhas been received from the car, see examples/get-leaf-info.py for how this can\nbe handled.\n\nMore details are located at the top of [pycarwings2.py](https://github.com/filcole/pycarwings2/blob/HomeAssistant/pycarwings2/pycarwings2.py).\n\n## Installation\n\n    pip3 install pycarwings2\n\n## Example usage\n\n* Copy file ./examples/config.ini to ./examples/my_config.ini\n* Edit my_config.ini and enter your username, password and region\n* Run python3 ./examples/get-leaf-info.py\n\n## License\n\nCopyright 2016 Jason Horne\nCopyright 2018 Phil Cole\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License",
    "summary": "Python library for interacting with the Nissan Leaf Carwings telematics service",
    "version": "2.14",
    "split_keywords": [
        "nissan",
        "leaf",
        "carwings",
        "nissan+you"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "313a3bed6227ba7922a19bf2a41c5089",
                "sha256": "901d3da1f4be7cb01b0cecfab8ac5ff20a80930ca050289a0035a13ffdd6fcf2"
            },
            "downloads": -1,
            "filename": "pycarwings2-2.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "313a3bed6227ba7922a19bf2a41c5089",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17424,
            "upload_time": "2022-12-29T16:05:25",
            "upload_time_iso_8601": "2022-12-29T16:05:25.670428Z",
            "url": "https://files.pythonhosted.org/packages/04/31/56c472894a853308baf938db11560cc6e2809552b8ab67bb0246c023cf88/pycarwings2-2.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "01a99140333b012de30653cf99c145dc",
                "sha256": "d1bad190cd4f20b8803dfb062bd186c41e69be94f7ace6252f768d586f348d48"
            },
            "downloads": -1,
            "filename": "pycarwings2-2.14.tar.gz",
            "has_sig": false,
            "md5_digest": "01a99140333b012de30653cf99c145dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 17521,
            "upload_time": "2022-12-29T16:05:27",
            "upload_time_iso_8601": "2022-12-29T16:05:27.242734Z",
            "url": "https://files.pythonhosted.org/packages/9f/a2/e2163a5f55f89c52b37c4fad43c3a19951eba1314ce83acfc8d2a3f06d33/pycarwings2-2.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-29 16:05:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "filcole",
    "github_project": "pycarwings2",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pycarwings2"
}
        
Elapsed time: 0.07963s