Skip to content

Unofficial Python bindings to the Lucid Motors API

License

Notifications You must be signed in to change notification settings

tht2020/python-lucidmotors

 
 

Repository files navigation

python-lucidmotors

Unofficial Python bindings to the Lucid Motors API. No affiliation with Lucid Motors.

To install dependencies, assuming you have Python development tools already, run:

pip install -r requirements.txt

Try fiddling with examples/vehicle_info.py. With no arguments it will prompt for your Lucid username and password, then print out your user profile and vehicle information.

It may fail due to validation errors the first few times, because the types in lucidmotors/vehicle.py and lucidmotors/user.py need to be extended to understand values from all different Lucid trims/styles in all kinds of different states, which will take some time.

To generate an anonymized test case from your data, use examples/anonymize_login_response.py. This will log in, remove identifying information from the API response, and write it to a file. Check the file to ensure anonymization actually worked, then you can share it as a test case.

If you're feeling adventurous, try playing with examples/test_all_actions.py which will run through every action we have figured out out thus far. A "stress test" of sorts.

About

Unofficial Python bindings to the Lucid Motors API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%