You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm new to Python and the OCPP library. I'm currently working on a project where I'm using the OCPP library to manage charge points. I've written some code(inspired by #263), but I'm not sure if I'm following the best practices for Python and OCPP.
Here's a brief overview of my project:
I'm using FastAPI to create a WebSocket endpoint for each charge point.
I've created a CentralSystem class that manages the charge points. Each charge point is an instance of the ChargePointV16 class.
I'm doing database queries in async action functions
I would appreciate it if you could review my code and provide any feedback or suggestions for improvement. Specifically, I'm interested in knowing if I'm using the OCPP library correctly and if there are any Python best practices that I should be following. Thank you for your time and assistance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm new to Python and the OCPP library. I'm currently working on a project where I'm using the OCPP library to manage charge points. I've written some code(inspired by #263), but I'm not sure if I'm following the best practices for Python and OCPP.
Here's a brief overview of my project:
Here's a snippet of my code:
I would appreciate it if you could review my code and provide any feedback or suggestions for improvement. Specifically, I'm interested in knowing if I'm using the OCPP library correctly and if there are any Python best practices that I should be following. Thank you for your time and assistance.
Beta Was this translation helpful? Give feedback.
All reactions