Skip to content

Commit

Permalink
release 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
roccodm committed Nov 13, 2012
1 parent f09ff34 commit 2dc834a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

15 changes: 5 additions & 10 deletions cnv2db.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@
# 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
# November 2012
#
###############################################################
''' 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
'''


Expand All @@ -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):
Expand Down
5 changes: 4 additions & 1 deletion cnv2db_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
# 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
# November 2012
#
###############################################################
''' CHANGELOG
v. 0.4.1
1) Splitted source in two files
v. 0.4.0
1) Rewritten in class style
Expand Down

0 comments on commit 2dc834a

Please sign in to comment.