Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script to import database from libra #28

Closed
feclare opened this issue Apr 25, 2017 · 2 comments
Closed

script to import database from libra #28

feclare opened this issue Apr 25, 2017 · 2 comments
Labels
enhancement Indicates new feature requests

Comments

@feclare
Copy link

feclare commented Apr 25, 2017

I created a simple python script to transform the csv file from libra to the openscale csv format.
https://gist.github.com/feclare/9ce446a640ac1b8854456a4da468dc05

@oliexdev oliexdev added the enhancement Indicates new feature requests label Apr 25, 2017
@oliexdev
Copy link
Owner

Hi feclare,

awesome thanks for the script.

Best regards
oli

@sa5bke
Copy link

sa5bke commented Sep 20, 2023

I googled importing from libra and came to this issue. The mentioned script is for python2 so I had to do some small changes to get it work in python3:

10c10
<     print("Missing file to transform\n")
---
>     print "Missing file to transform\n"
13,14c13,14
< r = csv.reader(open(sys.argv[1]), delimiter=";")
< writer = csv.writer(open("openScale_data_Libra.csv", "w"), delimiter=",")
---
> r = csv.reader(file(sys.argv[1]), delimiter=";")
> writer = csv.writer(file("openScale_data_Libra.csv", "w"), delimiter=",")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants