{"action":"created","issue":{"url":"https://api.github.com/repos/mstuttgart/pysigep/issues/15","repository_url":"https://api.github.com/repos/mstuttgart/pysigep","labels_url":"https://api.github.com/repos/mstuttgart/pysigep/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/mstuttgart/pysigep/issues/15/comments","events_url":"https://api.github.com/repos/mstuttgart/pysigep/issues/15/events","html_url":"https://github.com/mstuttgart/pysigep/issues/15","id":190689068,"number":15,"title":"Lib mais atualizada","user":{"login":"danimaribeiro","id":854781,"avatar_url":"https://avatars.githubusercontent.com/u/854781?v=3","gravatar_id":"","url":"https://api.github.com/users/danimaribeiro","html_url":"https://github.com/danimaribeiro","followers_url":"https://api.github.com/users/danimaribeiro/followers","following_url":"https://api.github.com/users/danimaribeiro/following{/other_user}","gists_url":"https://api.github.com/users/danimaribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/danimaribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimaribeiro/subscriptions","organizations_url":"https://api.github.com/users/danimaribeiro/orgs","repos_url":"https://api.github.com/users/danimaribeiro/repos","events_url":"https://api.github.com/users/danimaribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/danimaribeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-21T11:25:06Z","updated_at":"2016-11-22T22:01:21Z","closed_at":null,"body":"Qual seria a lib que você recomendaria usar?\r\n\r\nhttps://github.com/kmee/pySigepWeb \r\nou esta?"},"comment":{"url":"https://api.github.com/repos/mstuttgart/pysigep/issues/comments/262378915","html_url":"https://github.com/mstuttgart/pysigep/issues/15#issuecomment-262378915","issue_url":"https://api.github.com/repos/mstuttgart/pysigep/issues/15","id":262378915,"user":{"login":"danimaribeiro","id":854781,"avatar_url":"https://avatars.githubusercontent.com/u/854781?v=3","gravatar_id":"","url":"https://api.github.com/users/danimaribeiro","html_url":"https://github.com/danimaribeiro","followers_url":"https://api.github.com/users/danimaribeiro/followers","following_url":"https://api.github.com/users/danimaribeiro/following{/other_user}","gists_url":"https://api.github.com/users/danimaribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/danimaribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimaribeiro/subscriptions","organizations_url":"https://api.github.com/users/danimaribeiro/orgs","repos_url":"https://api.github.com/users/danimaribeiro/repos","events_url":"https://api.github.com/users/danimaribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/danimaribeiro/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:01:21Z","updated_at":"2016-11-22T22:01:21Z","body":"Comecei a fazer uns testes com a lib.\r\nQue tu acha destas mudanças?\r\n\r\nhttps://github.com/danimaribeiro/pysigep/commit/f0849529d686fd4aaf25a0229379199bf072dfb1\r\n\r\nPrincipalmente esta função:\r\nhttps://github.com/danimaribeiro/pysigep/blob/develop/pysigep/webservices/webservice_base.py#L38\r\nhttps://github.com/danimaribeiro/pysigep/blob/develop/pysigep/webservices/webservice_base.py#L75\r\n\r\nEla automaticamente limpa namespaces desnecessários e usa o objectify do lxml para converter em um objeto python.\r\n\r\nPara usar o retorno:\r\nhttps://github.com/Trust-Code/trustcode-addons/blob/10.0/delivery_correios/models/delivery.py#L49\r\nhttps://github.com/Trust-Code/trustcode-addons/blob/10.0/delivery_correios/models/delivery.py#L90\r\n\r\nQue tu acha também de remover algumas classes e fazer algo no estilo:\r\nhttps://github.com/danimaribeiro/PyTrustNFe/blob/master/pytrustnfe/nfse/paulistana/__init__.py\r\nAcho que fica mais fácil de manter a lib, o xml sendo gerado com o jinja permite que seja copiado direto dos exemplos do manual, não é necessário ficar criando classes com os atributos e metodos com os parametros necessários.\r\n\r\nSe tu não achar legal, vou modificar o buscaCliente e o calcularPrecoPrazo para o formato da lib e envio um PR.\r\n\r\n\r\n"}}
{"actor":{"display_login":"danimaribeiro"}}