Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. import psycopg2, pprint, json,codecs, os
  4.  
  5. file_directory = r"E:\Projects\qwerty.json"
  6. # conn = psycopg2.connect(dbname='roxana_test',
  7. # user='roxana_consumer',
  8. # port=5432,
  9. # host='debalid-aws-instance.c5iybfyguusg.eu-west-1.rds.amazonaws.com',
  10. # password='qwerty1234')
  11. #
  12.  
  13.  
  14. row = json.load(codecs.open(os.path.join("E:\Projects", "qwerty.json")), 'r', encoding='utf_row = 8')
  15. # cur = conn.cursor()
  16.  
  17. print(row)
  18.  
  19.  
  20. # data = json.loads(json_data)
  21. # pprint(data)
  22. # print('q')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement