GitHub PullRequestEvent at 2014-09-14 14:41:28
Repository: icsv2ledger
Actor: mistotebe
Payload: {"action":"opened","number":72,"pull_request":{"url":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72","id":21204597,"html_url":"https://github.com/quentinsf/icsv2ledger/pull/72","diff_url":"https://github.com/quentinsf/icsv2ledger/pull/72.diff","patch_url":"https://github.com/quentinsf/icsv2ledger/pull/72.patch","issue_url":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/72","number":72,"state":"open","locked":false,"title":"Add non-interactive mode","user":{"login":"mistotebe","id":1913139,"avatar_url":"https://avatars.githubusercontent.com/u/1913139?v=2","gravatar_id":"517860525aba1ec4d27fd30f83c976f1","url":"https://api.github.com/users/mistotebe","html_url":"https://github.com/mistotebe","followers_url":"https://api.github.com/users/mistotebe/followers","following_url":"https://api.github.com/users/mistotebe/following{/other_user}","gists_url":"https://api.github.com/users/mistotebe/gists{/gist_id}","starred_url":"https://api.github.com/users/mistotebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistotebe/subscriptions","organizations_url":"https://api.github.com/users/mistotebe/orgs","repos_url":"https://api.github.com/users/mistotebe/repos","events_url":"https://api.github.com/users/mistotebe/events{/privacy}","received_events_url":"https://api.github.com/users/mistotebe/received_events","type":"User","site_admin":false},"body":"Have had a thousands of lines long CSV (several years worth of transaction history) that I wanted to fold into ledger. Thanks to icsv2ledger it was actually doable, but it had to be an iterative process to find entries that could be easily matched, filter them out (and put them into ledger) and repeat until the only ones that remained were mostly in ledger already or could not be matched automatically anyway and deal with those.\r\n\r\nThis is what I ended up using: I added a new non-interactive mode that processed what it could and the rest was dumped to a separate file for the next iteration. It is not completely polished as it had sufficed, so the CSV header nor skipped lines are preserved, etc.","created_at":"2014-09-14T14:41:28Z","updated_at":"2014-09-14T14:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72/commits","review_comments_url":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72/comments","review_comment_url":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/comments/{number}","comments_url":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/72/comments","statuses_url":"https://api.github.com/repos/quentinsf/icsv2ledger/statuses/ffe3ec642ccc8ff81ed6eeb8d26ae5b9fc91ca8a","head":{"label":"mistotebe:non-interactive-mode","ref":"non-interactive-mode","sha":"ffe3ec642ccc8ff81ed6eeb8d26ae5b9fc91ca8a","user":{"login":"mistotebe","id":1913139,"avatar_url":"https://avatars.githubusercontent.com/u/1913139?v=2","gravatar_id":"517860525aba1ec4d27fd30f83c976f1","url":"https://api.github.com/users/mistotebe","html_url":"https://github.com/mistotebe","followers_url":"https://api.github.com/users/mistotebe/followers","following_url":"https://api.github.com/users/mistotebe/following{/other_user}","gists_url":"https://api.github.com/users/mistotebe/gists{/gist_id}","starred_url":"https://api.github.com/users/mistotebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistotebe/subscriptions","organizations_url":"https://api.github.com/users/mistotebe/orgs","repos_url":"https://api.github.com/users/mistotebe/repos","events_url":"https://api.github.com/users/mistotebe/events{/privacy}","received_events_url":"https://api.github.com/users/mistotebe/received_events","type":"User","site_admin":false},"repo":{"id":24023942,"name":"icsv2ledger","full_name":"mistotebe/icsv2ledger","owner":{"login":"mistotebe","id":1913139,"avatar_url":"https://avatars.githubusercontent.com/u/1913139?v=2","gravatar_id":"517860525aba1ec4d27fd30f83c976f1","url":"https://api.github.com/users/mistotebe","html_url":"https://github.com/mistotebe","followers_url":"https://api.github.com/users/mistotebe/followers","following_url":"https://api.github.com/users/mistotebe/following{/other_user}","gists_url":"https://api.github.com/users/mistotebe/gists{/gist_id}","starred_url":"https://api.github.com/users/mistotebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistotebe/subscriptions","organizations_url":"https://api.github.com/users/mistotebe/orgs","repos_url":"https://api.github.com/users/mistotebe/repos","events_url":"https://api.github.com/users/mistotebe/events{/privacy}","received_events_url":"https://api.github.com/users/mistotebe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mistotebe/icsv2ledger","description":"Interactive importing of CSV files to Ledger","fork":true,"url":"https://api.github.com/repos/mistotebe/icsv2ledger","forks_url":"https://api.github.com/repos/mistotebe/icsv2ledger/forks","keys_url":"https://api.github.com/repos/mistotebe/icsv2ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mistotebe/icsv2ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mistotebe/icsv2ledger/teams","hooks_url":"https://api.github.com/repos/mistotebe/icsv2ledger/hooks","issue_events_url":"https://api.github.com/repos/mistotebe/icsv2ledger/issues/events{/number}","events_url":"https://api.github.com/repos/mistotebe/icsv2ledger/events","assignees_url":"https://api.github.com/repos/mistotebe/icsv2ledger/assignees{/user}","branches_url":"https://api.github.com/repos/mistotebe/icsv2ledger/branches{/branch}","tags_url":"https://api.github.com/repos/mistotebe/icsv2ledger/tags","blobs_url":"https://api.github.com/repos/mistotebe/icsv2ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mistotebe/icsv2ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mistotebe/icsv2ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/mistotebe/icsv2ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mistotebe/icsv2ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/mistotebe/icsv2ledger/languages","stargazers_url":"https://api.github.com/repos/mistotebe/icsv2ledger/stargazers","contributors_url":"https://api.github.com/repos/mistotebe/icsv2ledger/contributors","subscribers_url":"https://api.github.com/repos/mistotebe/icsv2ledger/subscribers","subscription_url":"https://api.github.com/repos/mistotebe/icsv2ledger/subscription","commits_url":"https://api.github.com/repos/mistotebe/icsv2ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/mistotebe/icsv2ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/mistotebe/icsv2ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/mistotebe/icsv2ledger/issues/comments/{number}","contents_url":"https://api.github.com/repos/mistotebe/icsv2ledger/contents/{+path}","compare_url":"https://api.github.com/repos/mistotebe/icsv2ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mistotebe/icsv2ledger/merges","archive_url":"https://api.github.com/repos/mistotebe/icsv2ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mistotebe/icsv2ledger/downloads","issues_url":"https://api.github.com/repos/mistotebe/icsv2ledger/issues{/number}","pulls_url":"https://api.github.com/repos/mistotebe/icsv2ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/mistotebe/icsv2ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/mistotebe/icsv2ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mistotebe/icsv2ledger/labels{/name}","releases_url":"https://api.github.com/repos/mistotebe/icsv2ledger/releases{/id}","created_at":"2014-09-14T14:28:37Z","updated_at":"2014-08-20T16:36:20Z","pushed_at":"2014-09-14T14:29:46Z","git_url":"git://github.com/mistotebe/icsv2ledger.git","ssh_url":"git@github.com:mistotebe/icsv2ledger.git","clone_url":"https://github.com/mistotebe/icsv2ledger.git","svn_url":"https://github.com/mistotebe/icsv2ledger","homepage":"","size":525,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"quentinsf:master","ref":"master","sha":"6d5c0c680aa249ff49d220131fc7905ed9b5de8f","user":{"login":"quentinsf","id":56534,"avatar_url":"https://avatars.githubusercontent.com/u/56534?v=2","gravatar_id":"d926d2ab176e5050e36d6393892e5c4d","url":"https://api.github.com/users/quentinsf","html_url":"https://github.com/quentinsf","followers_url":"https://api.github.com/users/quentinsf/followers","following_url":"https://api.github.com/users/quentinsf/following{/other_user}","gists_url":"https://api.github.com/users/quentinsf/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinsf/subscriptions","organizations_url":"https://api.github.com/users/quentinsf/orgs","repos_url":"https://api.github.com/users/quentinsf/repos","events_url":"https://api.github.com/users/quentinsf/events{/privacy}","received_events_url":"https://api.github.com/users/quentinsf/received_events","type":"User","site_admin":false},"repo":{"id":2542517,"name":"icsv2ledger","full_name":"quentinsf/icsv2ledger","owner":{"login":"quentinsf","id":56534,"avatar_url":"https://avatars.githubusercontent.com/u/56534?v=2","gravatar_id":"d926d2ab176e5050e36d6393892e5c4d","url":"https://api.github.com/users/quentinsf","html_url":"https://github.com/quentinsf","followers_url":"https://api.github.com/users/quentinsf/followers","following_url":"https://api.github.com/users/quentinsf/following{/other_user}","gists_url":"https://api.github.com/users/quentinsf/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinsf/subscriptions","organizations_url":"https://api.github.com/users/quentinsf/orgs","repos_url":"https://api.github.com/users/quentinsf/repos","events_url":"https://api.github.com/users/quentinsf/events{/privacy}","received_events_url":"https://api.github.com/users/quentinsf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quentinsf/icsv2ledger","description":"Interactive importing of CSV files to Ledger","fork":false,"url":"https://api.github.com/repos/quentinsf/icsv2ledger","forks_url":"https://api.github.com/repos/quentinsf/icsv2ledger/forks","keys_url":"https://api.github.com/repos/quentinsf/icsv2ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quentinsf/icsv2ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quentinsf/icsv2ledger/teams","hooks_url":"https://api.github.com/repos/quentinsf/icsv2ledger/hooks","issue_events_url":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/events{/number}","events_url":"https://api.github.com/repos/quentinsf/icsv2ledger/events","assignees_url":"https://api.github.com/repos/quentinsf/icsv2ledger/assignees{/user}","branches_url":"https://api.github.com/repos/quentinsf/icsv2ledger/branches{/branch}","tags_url":"https://api.github.com/repos/quentinsf/icsv2ledger/tags","blobs_url":"https://api.github.com/repos/quentinsf/icsv2ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quentinsf/icsv2ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quentinsf/icsv2ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/quentinsf/icsv2ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quentinsf/icsv2ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/quentinsf/icsv2ledger/languages","stargazers_url":"https://api.github.com/repos/quentinsf/icsv2ledger/stargazers","contributors_url":"https://api.github.com/repos/quentinsf/icsv2ledger/contributors","subscribers_url":"https://api.github.com/repos/quentinsf/icsv2ledger/subscribers","subscription_url":"https://api.github.com/repos/quentinsf/icsv2ledger/subscription","commits_url":"https://api.github.com/repos/quentinsf/icsv2ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/quentinsf/icsv2ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/quentinsf/icsv2ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/comments/{number}","contents_url":"https://api.github.com/repos/quentinsf/icsv2ledger/contents/{+path}","compare_url":"https://api.github.com/repos/quentinsf/icsv2ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quentinsf/icsv2ledger/merges","archive_url":"https://api.github.com/repos/quentinsf/icsv2ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quentinsf/icsv2ledger/downloads","issues_url":"https://api.github.com/repos/quentinsf/icsv2ledger/issues{/number}","pulls_url":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/quentinsf/icsv2ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/quentinsf/icsv2ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quentinsf/icsv2ledger/labels{/name}","releases_url":"https://api.github.com/repos/quentinsf/icsv2ledger/releases{/id}","created_at":"2011-10-09T12:45:00Z","updated_at":"2014-08-20T16:36:20Z","pushed_at":"2014-06-13T09:40:14Z","git_url":"git://github.com/quentinsf/icsv2ledger.git","ssh_url":"git@github.com:quentinsf/icsv2ledger.git","clone_url":"https://github.com/quentinsf/icsv2ledger.git","svn_url":"https://github.com/quentinsf/icsv2ledger","homepage":"","size":525,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":20,"mirror_url":null,"open_issues_count":7,"forks":20,"open_issues":7,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72"},"html":{"href":"https://github.com/quentinsf/icsv2ledger/pull/72"},"issue":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/72"},"comments":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/quentinsf/icsv2ledger/statuses/ffe3ec642ccc8ff81ed6eeb8d26ae5b9fc91ca8a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":42,"deletions":9,"changed_files":1}}