{"action":"created","issue":{"url":"https://api.github.com/repos/hadiasghari/pyasn/issues/51","repository_url":"https://api.github.com/repos/hadiasghari/pyasn","labels_url":"https://api.github.com/repos/hadiasghari/pyasn/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/hadiasghari/pyasn/issues/51/comments","events_url":"https://api.github.com/repos/hadiasghari/pyasn/issues/51/events","html_url":"https://github.com/hadiasghari/pyasn/pull/51","id":278006254,"number":51,"title":"Allow pyasn to be initialised with an ipasn_string","user":{"login":"teor2345","id":8951843,"avatar_url":"https://avatars0.githubusercontent.com/u/8951843?v=4","gravatar_id":"","url":"https://api.github.com/users/teor2345","html_url":"https://github.com/teor2345","followers_url":"https://api.github.com/users/teor2345/followers","following_url":"https://api.github.com/users/teor2345/following{/other_user}","gists_url":"https://api.github.com/users/teor2345/gists{/gist_id}","starred_url":"https://api.github.com/users/teor2345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teor2345/subscriptions","organizations_url":"https://api.github.com/users/teor2345/orgs","repos_url":"https://api.github.com/users/teor2345/repos","events_url":"https://api.github.com/users/teor2345/events{/privacy}","received_events_url":"https://api.github.com/users/teor2345/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-30T05:51:56Z","updated_at":"2017-12-01T20:08:08Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/hadiasghari/pyasn/pulls/51","html_url":"https://github.com/hadiasghari/pyasn/pull/51","diff_url":"https://github.com/hadiasghari/pyasn/pull/51.diff","patch_url":"https://github.com/hadiasghari/pyasn/pull/51.patch"},"body":"If the ipasn data is already loaded into a string, this avoids creating a temporary file for ipasn_file.\r\n\r\nThis is implemented in a backwards-compatible way: the new ipasn_string argument is a keyword argument, and it is only used if ipasn_file is None."},"comment":{"url":"https://api.github.com/repos/hadiasghari/pyasn/issues/comments/348601862","html_url":"https://github.com/hadiasghari/pyasn/pull/51#issuecomment-348601862","issue_url":"https://api.github.com/repos/hadiasghari/pyasn/issues/51","id":348601862,"user":{"login":"teor2345","id":8951843,"avatar_url":"https://avatars0.githubusercontent.com/u/8951843?v=4","gravatar_id":"","url":"https://api.github.com/users/teor2345","html_url":"https://github.com/teor2345","followers_url":"https://api.github.com/users/teor2345/followers","following_url":"https://api.github.com/users/teor2345/following{/other_user}","gists_url":"https://api.github.com/users/teor2345/gists{/gist_id}","starred_url":"https://api.github.com/users/teor2345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teor2345/subscriptions","organizations_url":"https://api.github.com/users/teor2345/orgs","repos_url":"https://api.github.com/users/teor2345/repos","events_url":"https://api.github.com/users/teor2345/events{/privacy}","received_events_url":"https://api.github.com/users/teor2345/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T20:08:08Z","updated_at":"2017-12-01T20:08:08Z","author_association":"NONE","body":"\n> Hi @teor2345, thank you for the PR. Can you tell me what your use-case is for this functionality? Where do you load the ipasn_string from?\n\nWe run a cooperating group of data collecting instances on different machines.\nThey receive their configuration from a central point.\n\nHere is the use case in detail:\n1. The central point reads the config from a file and checks it is valid using pyasn\n2. The central point reads the file into a string, and sends the string along with many other config strings to the data collecting instances\n3. The data collecting instances read the config from the string, and load it using pyasn\n\nThis avoids the data collecting instances dumping the string to a file (they have no ability to write files) and then reading it out again using pyasn. It would be slower and more error-prone to write a file (for example, if the directory wasn't writeable, or the disk was full)."}}
{"actor":{"display_login":"teor2345"}}