Skip to content

kimmolinna/pycaruna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycaruna

Caruna API for Python

The module includes the following functions:

  • login_caruna (username: str,password: str)
  • get_metering_points (s : requests.Session,token : str, customer : str)
  • get_cons_hours (s : requests.Session,token : str,customer : str,metering_point : str,year : str,month : str, day : str)
  • logout_caruna(s)

Sample use of code:

import pycaruna
(session,info) = pycaruna.login_caruna("username", "password")
customer = info['user']['ownCustomerNumbers'][0]
token = info['token']
metering_points = pycaruna.get_metering_points(session, token, customer)
consumption = pycaruna.get_cons_hours(session, token, customer, metering_points[0][0], "2023", "1", "3")
response = pycaruna.logout_caruna(session)

About

Caruna API for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages