diff --git a/README.md b/README.md index ad2e8b0..f7430d9 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ cnv2db A simple Seabird cnv file parser that stores the data into a mysql db - For the sql structure, see below, at the end of the code - Requisites: python-mysqldb library version 0.4.0 @@ -16,3 +14,20 @@ cnv2db Author: Rocco De Marco - November 2012 email: "rocco_demarco(a)an_ismar_cnr_it" | sed s/"_"/\./g | sed s/"(a)"/"@"/g + + File included: + + cnv2db_class: parser class + cnv2db: main program + tables.sql: table definition sql + db.py_entry.txt: web2py db model (if you plan to use with web2py framework) + + + Prerequisite: + 1) Create a mysql database + 2) update mysql access information inside cnv2db file + + Usage: + + python cnv2db your_cnv_file + diff --git a/cnv2db.py b/cnv2db.py index 957d78b..c12f159 100755 --- a/cnv2db.py +++ b/cnv2db.py @@ -9,7 +9,7 @@ # For the sql structure, see below, at the end of the code # # Requisites: python-mysqldb library -# version 0.4 +# version 0.4.1 # License: CC-BY-NC-SA v. 3.0 # Author: # Rocco De Marco (rocco_demarco(a)an_ismar_cnr_it) -> s/_/\./g @@ -17,12 +17,7 @@ # ############################################################### ''' CHANGELOG -v. 0.4.0 -1) Rewritten in class style - -v. 0.3.2: -1) choosed "NMEA UTC (Time)" as date/time parameter instead than start_date - + see cnv2db_class.py ''' @@ -33,9 +28,9 @@ # Database mysql access host = "localhost" -user = "ctd" -passwd = "DPYbLSE8eW8pEHFx" -db = "acustica" +user = "username" +passwd = "password" +db = "database" # Dummy function called in case of error def die(message): diff --git a/cnv2db_class.py b/cnv2db_class.py index 00150eb..09d2b38 100755 --- a/cnv2db_class.py +++ b/cnv2db_class.py @@ -9,7 +9,7 @@ # For the sql structure, see below, at the end of the code # # Requisites: python-mysqldb library -# version 0.4 +# version 0.4.1 # License: CC-BY-NC-SA v. 3.0 # Author: # Rocco De Marco (rocco_demarco(a)an_ismar_cnr_it) -> s/_/\./g @@ -17,6 +17,9 @@ # ############################################################### ''' CHANGELOG +v. 0.4.1 +1) Splitted source in two files + v. 0.4.0 1) Rewritten in class style