{"action":"opened","issue":{"url":"https://api.github.com/repos/ivankorobkov/python-inject/issues/15","labels_url":"https://api.github.com/repos/ivankorobkov/python-inject/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ivankorobkov/python-inject/issues/15/comments","events_url":"https://api.github.com/repos/ivankorobkov/python-inject/issues/15/events","html_url":"https://github.com/ivankorobkov/python-inject/issues/15","id":98731678,"number":15,"title":"thread local instances similar to bind_to_constructor","user":{"login":"peick","id":503214,"avatar_url":"https://avatars.githubusercontent.com/u/503214?v=3","gravatar_id":"","url":"https://api.github.com/users/peick","html_url":"https://github.com/peick","followers_url":"https://api.github.com/users/peick/followers","following_url":"https://api.github.com/users/peick/following{/other_user}","gists_url":"https://api.github.com/users/peick/gists{/gist_id}","starred_url":"https://api.github.com/users/peick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peick/subscriptions","organizations_url":"https://api.github.com/users/peick/orgs","repos_url":"https://api.github.com/users/peick/repos","events_url":"https://api.github.com/users/peick/events{/privacy}","received_events_url":"https://api.github.com/users/peick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T12:15:14Z","updated_at":"2015-08-03T12:15:14Z","closed_at":null,"body":"I'm missing a variant of `bind_to_constructor` to register thread local instances. `bind_to_constructor` registers an instance globally for all threads.\r\n\r\n`bind_to_provider` is not suitable in my case, because I don't want to create a different instance of every inject call."}}