{"action":"reopened","number":42,"pull_request":{"url":"https://api.github.com/repos/Knio/pynmea2/pulls/42","id":46046636,"html_url":"https://github.com/Knio/pynmea2/pull/42","diff_url":"https://github.com/Knio/pynmea2/pull/42.diff","patch_url":"https://github.com/Knio/pynmea2/pull/42.patch","issue_url":"https://api.github.com/repos/Knio/pynmea2/issues/42","number":42,"state":"open","locked":false,"title":"Added NMEAFile class","user":{"login":"lobocv","id":6772396,"avatar_url":"https://avatars.githubusercontent.com/u/6772396?v=3","gravatar_id":"","url":"https://api.github.com/users/lobocv","html_url":"https://github.com/lobocv","followers_url":"https://api.github.com/users/lobocv/followers","following_url":"https://api.github.com/users/lobocv/following{/other_user}","gists_url":"https://api.github.com/users/lobocv/gists{/gist_id}","starred_url":"https://api.github.com/users/lobocv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobocv/subscriptions","organizations_url":"https://api.github.com/users/lobocv/orgs","repos_url":"https://api.github.com/users/lobocv/repos","events_url":"https://api.github.com/users/lobocv/events{/privacy}","received_events_url":"https://api.github.com/users/lobocv/received_events","type":"User","site_admin":false},"body":"I've added a NMEAFile class that behaves just like a python file object. This class can be used to read NMEASentence objects from files in a manner analogous to the python file object. This means you can iterate through the NMEAFile object, call read() to return a list of all the lines as NMEASentences.\r\n\r\nFor example:\r\n`\r\n\r\n    with pynmea.NMEAFile(filepath) as f:\r\n        for nmea_string in f:\r\n                print nmea_string.latitude, nmea_string.longitude\r\n\r\n`\r\n  ","created_at":"2015-09-25T19:06:16Z","updated_at":"2015-09-27T23:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb8e72b0ed0cbcd0e168328d3de3a503ee3190d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Knio/pynmea2/pulls/42/commits","review_comments_url":"https://api.github.com/repos/Knio/pynmea2/pulls/42/comments","review_comment_url":"https://api.github.com/repos/Knio/pynmea2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Knio/pynmea2/issues/42/comments","statuses_url":"https://api.github.com/repos/Knio/pynmea2/statuses/f6589df85ef46ee9fc0104cf455c2025a32ee5b5","head":{"label":"lobocv:master","ref":"master","sha":"f6589df85ef46ee9fc0104cf455c2025a32ee5b5","user":{"login":"lobocv","id":6772396,"avatar_url":"https://avatars.githubusercontent.com/u/6772396?v=3","gravatar_id":"","url":"https://api.github.com/users/lobocv","html_url":"https://github.com/lobocv","followers_url":"https://api.github.com/users/lobocv/followers","following_url":"https://api.github.com/users/lobocv/following{/other_user}","gists_url":"https://api.github.com/users/lobocv/gists{/gist_id}","starred_url":"https://api.github.com/users/lobocv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobocv/subscriptions","organizations_url":"https://api.github.com/users/lobocv/orgs","repos_url":"https://api.github.com/users/lobocv/repos","events_url":"https://api.github.com/users/lobocv/events{/privacy}","received_events_url":"https://api.github.com/users/lobocv/received_events","type":"User","site_admin":false},"repo":{"id":43166455,"name":"pynmea2","full_name":"lobocv/pynmea2","owner":{"login":"lobocv","id":6772396,"avatar_url":"https://avatars.githubusercontent.com/u/6772396?v=3","gravatar_id":"","url":"https://api.github.com/users/lobocv","html_url":"https://github.com/lobocv","followers_url":"https://api.github.com/users/lobocv/followers","following_url":"https://api.github.com/users/lobocv/following{/other_user}","gists_url":"https://api.github.com/users/lobocv/gists{/gist_id}","starred_url":"https://api.github.com/users/lobocv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobocv/subscriptions","organizations_url":"https://api.github.com/users/lobocv/orgs","repos_url":"https://api.github.com/users/lobocv/repos","events_url":"https://api.github.com/users/lobocv/events{/privacy}","received_events_url":"https://api.github.com/users/lobocv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lobocv/pynmea2","description":"Python library for parsing the NMEA 0183 protocol (GPS)","fork":true,"url":"https://api.github.com/repos/lobocv/pynmea2","forks_url":"https://api.github.com/repos/lobocv/pynmea2/forks","keys_url":"https://api.github.com/repos/lobocv/pynmea2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lobocv/pynmea2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lobocv/pynmea2/teams","hooks_url":"https://api.github.com/repos/lobocv/pynmea2/hooks","issue_events_url":"https://api.github.com/repos/lobocv/pynmea2/issues/events{/number}","events_url":"https://api.github.com/repos/lobocv/pynmea2/events","assignees_url":"https://api.github.com/repos/lobocv/pynmea2/assignees{/user}","branches_url":"https://api.github.com/repos/lobocv/pynmea2/branches{/branch}","tags_url":"https://api.github.com/repos/lobocv/pynmea2/tags","blobs_url":"https://api.github.com/repos/lobocv/pynmea2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lobocv/pynmea2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lobocv/pynmea2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lobocv/pynmea2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lobocv/pynmea2/statuses/{sha}","languages_url":"https://api.github.com/repos/lobocv/pynmea2/languages","stargazers_url":"https://api.github.com/repos/lobocv/pynmea2/stargazers","contributors_url":"https://api.github.com/repos/lobocv/pynmea2/contributors","subscribers_url":"https://api.github.com/repos/lobocv/pynmea2/subscribers","subscription_url":"https://api.github.com/repos/lobocv/pynmea2/subscription","commits_url":"https://api.github.com/repos/lobocv/pynmea2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lobocv/pynmea2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lobocv/pynmea2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lobocv/pynmea2/issues/comments{/number}","contents_url":"https://api.github.com/repos/lobocv/pynmea2/contents/{+path}","compare_url":"https://api.github.com/repos/lobocv/pynmea2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lobocv/pynmea2/merges","archive_url":"https://api.github.com/repos/lobocv/pynmea2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lobocv/pynmea2/downloads","issues_url":"https://api.github.com/repos/lobocv/pynmea2/issues{/number}","pulls_url":"https://api.github.com/repos/lobocv/pynmea2/pulls{/number}","milestones_url":"https://api.github.com/repos/lobocv/pynmea2/milestones{/number}","notifications_url":"https://api.github.com/repos/lobocv/pynmea2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lobocv/pynmea2/labels{/name}","releases_url":"https://api.github.com/repos/lobocv/pynmea2/releases{/id}","created_at":"2015-09-25T17:59:25Z","updated_at":"2015-09-25T17:59:26Z","pushed_at":"2015-09-27T23:26:55Z","git_url":"git://github.com/lobocv/pynmea2.git","ssh_url":"git@github.com:lobocv/pynmea2.git","clone_url":"https://github.com/lobocv/pynmea2.git","svn_url":"https://github.com/lobocv/pynmea2","homepage":"","size":629,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Knio:master","ref":"master","sha":"3cab379fe73d562be8cb86e8dc2489dc6d6c9be3","user":{"login":"Knio","id":83974,"avatar_url":"https://avatars.githubusercontent.com/u/83974?v=3","gravatar_id":"","url":"https://api.github.com/users/Knio","html_url":"https://github.com/Knio","followers_url":"https://api.github.com/users/Knio/followers","following_url":"https://api.github.com/users/Knio/following{/other_user}","gists_url":"https://api.github.com/users/Knio/gists{/gist_id}","starred_url":"https://api.github.com/users/Knio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knio/subscriptions","organizations_url":"https://api.github.com/users/Knio/orgs","repos_url":"https://api.github.com/users/Knio/repos","events_url":"https://api.github.com/users/Knio/events{/privacy}","received_events_url":"https://api.github.com/users/Knio/received_events","type":"User","site_admin":false},"repo":{"id":11167307,"name":"pynmea2","full_name":"Knio/pynmea2","owner":{"login":"Knio","id":83974,"avatar_url":"https://avatars.githubusercontent.com/u/83974?v=3","gravatar_id":"","url":"https://api.github.com/users/Knio","html_url":"https://github.com/Knio","followers_url":"https://api.github.com/users/Knio/followers","following_url":"https://api.github.com/users/Knio/following{/other_user}","gists_url":"https://api.github.com/users/Knio/gists{/gist_id}","starred_url":"https://api.github.com/users/Knio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knio/subscriptions","organizations_url":"https://api.github.com/users/Knio/orgs","repos_url":"https://api.github.com/users/Knio/repos","events_url":"https://api.github.com/users/Knio/events{/privacy}","received_events_url":"https://api.github.com/users/Knio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Knio/pynmea2","description":"Python library for parsing the NMEA 0183 protocol (GPS)","fork":false,"url":"https://api.github.com/repos/Knio/pynmea2","forks_url":"https://api.github.com/repos/Knio/pynmea2/forks","keys_url":"https://api.github.com/repos/Knio/pynmea2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Knio/pynmea2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Knio/pynmea2/teams","hooks_url":"https://api.github.com/repos/Knio/pynmea2/hooks","issue_events_url":"https://api.github.com/repos/Knio/pynmea2/issues/events{/number}","events_url":"https://api.github.com/repos/Knio/pynmea2/events","assignees_url":"https://api.github.com/repos/Knio/pynmea2/assignees{/user}","branches_url":"https://api.github.com/repos/Knio/pynmea2/branches{/branch}","tags_url":"https://api.github.com/repos/Knio/pynmea2/tags","blobs_url":"https://api.github.com/repos/Knio/pynmea2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Knio/pynmea2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Knio/pynmea2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Knio/pynmea2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Knio/pynmea2/statuses/{sha}","languages_url":"https://api.github.com/repos/Knio/pynmea2/languages","stargazers_url":"https://api.github.com/repos/Knio/pynmea2/stargazers","contributors_url":"https://api.github.com/repos/Knio/pynmea2/contributors","subscribers_url":"https://api.github.com/repos/Knio/pynmea2/subscribers","subscription_url":"https://api.github.com/repos/Knio/pynmea2/subscription","commits_url":"https://api.github.com/repos/Knio/pynmea2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Knio/pynmea2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Knio/pynmea2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Knio/pynmea2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Knio/pynmea2/contents/{+path}","compare_url":"https://api.github.com/repos/Knio/pynmea2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Knio/pynmea2/merges","archive_url":"https://api.github.com/repos/Knio/pynmea2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Knio/pynmea2/downloads","issues_url":"https://api.github.com/repos/Knio/pynmea2/issues{/number}","pulls_url":"https://api.github.com/repos/Knio/pynmea2/pulls{/number}","milestones_url":"https://api.github.com/repos/Knio/pynmea2/milestones{/number}","notifications_url":"https://api.github.com/repos/Knio/pynmea2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Knio/pynmea2/labels{/name}","releases_url":"https://api.github.com/repos/Knio/pynmea2/releases{/id}","created_at":"2013-07-04T04:49:36Z","updated_at":"2015-09-21T20:08:34Z","pushed_at":"2015-09-27T23:27:30Z","git_url":"git://github.com/Knio/pynmea2.git","ssh_url":"git@github.com:Knio/pynmea2.git","clone_url":"https://github.com/Knio/pynmea2.git","svn_url":"https://github.com/Knio/pynmea2","homepage":"","size":629,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":3,"forks":25,"open_issues":3,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Knio/pynmea2/pulls/42"},"html":{"href":"https://github.com/Knio/pynmea2/pull/42"},"issue":{"href":"https://api.github.com/repos/Knio/pynmea2/issues/42"},"comments":{"href":"https://api.github.com/repos/Knio/pynmea2/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/Knio/pynmea2/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/Knio/pynmea2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Knio/pynmea2/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/Knio/pynmea2/statuses/f6589df85ef46ee9fc0104cf455c2025a32ee5b5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":4,"review_comments":0,"commits":4,"additions":107,"deletions":0,"changed_files":4}}