I hereby claim:
- I am acviana on github.
- I am acv (https://keybase.io/acv) on keybase.
- I have a public key ASARGh9PzYhkW7ifTJAzViwVjjlHNXkPKGOIS5vBgON-fgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import requests | |
| import json | |
| with open('driver-en.js', 'r') as f: | |
| data = f.readlines() | |
| output_list =[] | |
| for counter, record in enumerate(data): |
| ''' | |
| This module is a script demonstrating some basic features of the | |
| SQLAlchemy ORM declarative base. First shared with the Baltimore | |
| Python meetup 06/19/13. | |
| It requires either a MySQL instance or SQLite to run as written but | |
| you can modify it run with any SQL flavor SQLAlchemy supports. | |
| Alex C. Viana | |
| alexcostaviana [at] gmail [dot] com |
| def check_date_format(date): | |
| ''' | |
| Check if that date string has a 'MMM DD YYYY' format. Return a boolean. | |
| ''' | |
| output = True | |
| if isinstance(date,unicode) == False: | |
| return False | |
| month, day, year = date.split() | |
| if set(month) >= set(string.ascii_letters): | |
| return False |