Get export Locataires
Tags: #bazimo #pm #naas_drivers #asset #scheduler #naas #csv
Author: Florent Ravenel

Input

Import library

1
from naas_drivers import bazimo
2
import naas
Copied!

Setup Bazimo

1
# Credentials
2
bazimo_email = "bazimo_email"
3
bazimo_pwd = "bazimo_pwd"
4
5
# Export name
6
bazimo_export = "Locataires"
7
8
# Export output
9
csv_output = f"Export_{bazimo_export}.csv"
Copied!

Schedule your notebook

1
# Get your data updated everyday 15 min from 9 to 20 during week days.
2
naas.scheduler.add(cron="*/15 9-20 * * 1-5")
3
4
#-> Uncomment this line and run the cell to delete your scheduler
5
# naas.scheduler.delete()
Copied!

Model

Get export

1
df_bazimo = bazimo.connect(bazimo_email, bazimo_pwd).exports.get(bazimo_export)
2
df_bazimo
Copied!

Output

Save dataframe in csv

1
df_bazimo.to_csv(csv_output)
Copied!

Share your dataframe with naas

-> You can integrate the link below into your Excel spreasheet. Check the procedure here
1
naas.asset.add(csv_output)
2
3
#-> Uncomment this line and run the cell to delete your asset
4
# naas.asset.delete(csv_output)
Copied!
Copy link
Edit on GitHub