{ "info": { "author": "Daniel Gon\u00e7alves", "author_email": "daniel@base4.com.br", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Natural Language :: Portuguese (Brazilian)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Office/Business :: Financial :: Point-Of-Sale", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Projeto SATCFe\n==============\n\n.. image:: https://img.shields.io/pypi/status/satcfe.svg\n :target: https://pypi.python.org/pypi/satcfe/\n :alt: Development status\n\n.. image:: https://img.shields.io/pypi/v/satcfe.svg\n :target: https://pypi.python.org/pypi/satcfe/\n :alt: PyPI - Latest version\n\n.. image:: https://img.shields.io/pypi/pyversions/satcfe.svg\n :target: https://pypi.python.org/pypi/satcfe/\n :alt: PyPI - Python version\n\n.. image:: https://img.shields.io/pypi/l/satcfe.svg\n :target: https://pypi.python.org/pypi/satcfe/\n :alt: PyPI - License\n\n.. image:: https://badges.gitter.im/Join%20Chat.svg\n :target: https://gitter.im/base4sistemas/satcfe?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n :alt: Join chat on Gitter\n\n-------\n\n This project is about `SAT-CF-e`_, a system for autorization and\n transmission for fiscal documents, developed by the Secretariat of Finance\n from state of S\u00e3o Paulo, Brazil. The entire project, variables, methods and\n class names, as well as documentation, are written in brazilian portuguese.\n\n Refer to the\n `oficial web site `_ for\n more information (in brazilian portuguese only).\n\n-------\n\n.. image:: https://travis-ci.org/base4sistemas/satcfe.svg?branch=master\n :target: https://travis-ci.org/base4sistemas/satcfe\n :alt: Travis-CI - Build status\n\n.. image:: https://img.shields.io/badge/docs-latest-green.svg\n :target: http://satcfe.readthedocs.io/\n :alt: Latest documentation\n\n-------\n\nEste projeto refere-se \u00e0 tecnologia `SAT-CF-e`_ desenvolvida pela Secretaria da\nFazenda do Estado de S\u00e3o Paulo e faz parte de um grupo de cinco projetos que\nresolvem problemas espec\u00edficos, mas relacionados.\n\nEspecificamente, este projeto \u00e9 uma abstra\u00e7\u00e3o para acesso \u00e0s fun\u00e7\u00f5es da\nbiblioteca SAT que \u00e9 fornecida pelos fabricantes dos equipamentos. Para\nmaiores informa\u00e7\u00f5es, consulte a `documenta\u00e7\u00e3o do projeto `_.\n\nSe estiver procurando meios para emitir um extrato do CF-e-SAT, o\n`Projeto SATExtrato`_ pode ajudar.\n\n\nExemplo de Uso\n--------------\n\nEste \u00e9 um exemplo b\u00e1sico de uso, sobre como consultar o equipamento SAT\nconectado e configurado no computador local:\n\n.. sourcecode:: Python\n\n >>> from satcfe import BibliotecaSAT\n >>> from satcfe import ClienteSATLocal\n >>> cliente = ClienteSATLocal(\n ... BibliotecaSAT('/caminho/para/libsat.so'), # ou DLL no Windows\n ... codigo_ativacao='12345678')\n ...\n >>> resposta = cliente.consultar_sat()\n >>> print(resposta.mensagem)\n 'SAT em Opera\u00e7\u00e3o'\n\nPara conectar e configurar o equipamento SAT voc\u00ea dever\u00e1 seguir as orienta\u00e7\u00f5es\ndo fabricante. Normalmente utiliza-se um equipamento SAT fabricado\nespecificamente para desenvolvimento. Para aprender mais sobre a utiliza\u00e7\u00e3o\ndesta biblioteca, `consulte a documenta\u00e7\u00e3o `_.\nSe precisar de ajuda, voc\u00ea pode recorrer \u00e0 sala de *chat* do projeto\nno `Gitter `_.\n\n\nExecu\u00e7\u00e3o dos Testes\n-------------------\n\nEste \u00e9 um t\u00f3pico voltado para aquelas pessoas interessadas no desenvolvimento\ndeste projeto em si ou para aqueles que queiram experimentar algum *setup*\nalternativo, como outras vers\u00f5es de Python ou das depend\u00eancias do projeto.\n\nPara facilitar a execu\u00e7\u00e3o dos testes e n\u00e3o correr riscos de executar certos\ncomandos em um equipamento real (mesmo que seja um equipamento para\ndesenvolvimento), os testes podem ser executados contra uma biblioteca de\nsimula\u00e7\u00e3o, chamada de **mockuplib**, que acompanha o projeto.\n\nPortanto, a maneira mais pr\u00e1tica \u00e9 usando `Pipenv`_ com `tox`_, contra a\nbiblioteca de simula\u00e7\u00e3o. Primeiro compile a biblioteca de simula\u00e7\u00e3o (voc\u00ea ir\u00e1\nprecisar das ferramentas `GNU Make`_ e `GNU GCC`_) e ent\u00e3o execute ``tox`` via\n``Pipenv``:\n\n.. sourcecode:: text\n\n $ git clone git@github.com:base4sistemas/satcfe.git\n $ cd satcfe\n $ make mockuplib\n $ pipenv install --dev --clear\n $ pipenv run tox\n\nD\u00ea uma olhada no arquivo ``tox.ini`` e procure pela propriedade ``envlist``,\nque relaciona as vers\u00f5es de Python que ser\u00e3o usadas nos testes. Se voc\u00ea quiser\nexecutar os testes contra uma vers\u00e3o espec\u00edfica de Python, utilize a\nop\u00e7\u00e3o ``-e``. Por exemplo, para executar os testes com a vers\u00e3o 3.6 de Python:\n\n.. sourcecode:: text\n\n $ pipenv run tox -e py36\n\nExistem muitas outras configura\u00e7\u00f5es e op\u00e7\u00f5es avan\u00e7adas de testes para\ndesenvolvimento desta biblioteca, caso esteja interessado neste t\u00f3pico, na\n`documenta\u00e7\u00e3o do projeto `_.\n\n.. _`SAT-CF-e`: https://portal.fazenda.sp.gov.br/servicos/sat/\n.. _`Projeto SATExtrato`: https://github.com/base4sistemas/satextrato\n.. _`SATComum`: https://github.com/base4sistemas/satcomum\n.. _`Pipenv`: https://pipenv.readthedocs.io/\n.. _`tox`: https://tox.readthedocs.io/\n.. _`GNU Make`: https://www.gnu.org/software/make/\n.. _`GNU GCC`: https://gcc.gnu.org/\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/base4sistemas/satcfe", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "satcfe", "package_url": "https://pypi.org/project/satcfe/", "platform": "any", "project_url": "https://pypi.org/project/satcfe/", "project_urls": { "Homepage": "https://github.com/base4sistemas/satcfe" }, "release_url": "https://pypi.org/project/satcfe/2.0/", "requires_dist": [ "cerberus", "unidecode", "satcomum (>=2)", "future", "requests ; extra == 'sathub'" ], "requires_python": "", "summary": "Abstra\u00e7\u00e3o do acesso ao equipamento SAT (SAT-CF-e)", "version": "2.0" }, "last_serial": 5903413, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a1f90c2f4c80b3b609d538757cfdcd61", "sha256": "dc18c5e8af23fdb9e330d07cf7352622d3f65f71e37155bcb8c890782713f9bb" }, "downloads": -1, "filename": "satcfe-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a1f90c2f4c80b3b609d538757cfdcd61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22041, "upload_time": "2015-05-02T20:25:52", "url": "https://files.pythonhosted.org/packages/b9/b8/9e86d6aa424f247880965be0ed6651b44dece956be64357e924753007292/satcfe-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "360219054adbd49c824a79871bcf996e", "sha256": "e9a031bbeae639db1bcc9c130d282b0b92e527dbc8eb6a2e9517485f4f37ce48" }, "downloads": -1, "filename": "satcfe-0.0.2.tar.gz", "has_sig": false, "md5_digest": "360219054adbd49c824a79871bcf996e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27894, "upload_time": "2015-05-19T12:00:33", "url": "https://files.pythonhosted.org/packages/37/e2/6145334ef734b133c8505f9f3237212b3de2afa99a4caac8a065560eff06/satcfe-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6ba5abc354abba54168c18e8db149158", "sha256": "7c4724834ee6189968254e6ffcc0dcbd2ff004735790fc371da2c239cac53ba7" }, "downloads": -1, "filename": "satcfe-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6ba5abc354abba54168c18e8db149158", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32337, "upload_time": "2015-07-10T00:21:42", "url": "https://files.pythonhosted.org/packages/00/fe/304d64c6a01792b4fd4c0432d00ec1e7b7e1ce45a48267325551afa37cab/satcfe-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1d7984624993888dbbc06b663651c17a", "sha256": "e3b61de5ee8bea0eb1986b0c29bca7f38de4960447fa65d22ab7e51a437fa9fe" }, "downloads": -1, "filename": "satcfe-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1d7984624993888dbbc06b663651c17a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32523, "upload_time": "2015-07-20T19:52:31", "url": "https://files.pythonhosted.org/packages/d0/f7/a0e84f98185ab2ec0df4db4dbdc1569bf364ce6fc77c69b5141292a90848/satcfe-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "39903c39d545dce40a7f0810ed2b0ce4", "sha256": "e3bf8234b5b41e6ec4feef9ff7535a60a9643b410caba9a78e4a57ed44d01888" }, "downloads": -1, "filename": "satcfe-0.0.5.tar.gz", "has_sig": false, "md5_digest": "39903c39d545dce40a7f0810ed2b0ce4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32516, "upload_time": "2015-08-10T20:27:32", "url": "https://files.pythonhosted.org/packages/b9/e1/605bf73fcc1e075d8871a2e9972f159015864847c6522d1e6cd89a6c7c1f/satcfe-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "74dbcef893430717c891e7c6a6f50161", "sha256": "f581259244a7685b9e1eef94535755c7a83aaf622758b4f61912c7fa0c07ce8c" }, "downloads": -1, "filename": "satcfe-0.0.6.tar.gz", "has_sig": false, "md5_digest": "74dbcef893430717c891e7c6a6f50161", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36414, "upload_time": "2015-09-11T23:46:38", "url": "https://files.pythonhosted.org/packages/b5/56/01e36c12f064d08ef510f976d6c33bc0fe1743bdfe39508b352325a278df/satcfe-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "700ddbd01fb1ed05588b5c08b8ce96f9", "sha256": "25c424629f14a0b11747777bacfc4d9325edf60dc30c353e31c696947c7ab483" }, "downloads": -1, "filename": "satcfe-0.0.7.tar.gz", "has_sig": false, "md5_digest": "700ddbd01fb1ed05588b5c08b8ce96f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38184, "upload_time": "2015-09-23T14:31:33", "url": "https://files.pythonhosted.org/packages/15/d4/7cce5361112695b1720a150cfd3ffc24dd5eae1ea56b805878022647a9de/satcfe-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "41ed0235ca4913e9e4e4038156f35119", "sha256": "f5067ec78adfbb660b73c8ee9a32a6ec15a7c3e738c8e6cbf5e6804edb07d58f" }, "downloads": -1, "filename": "satcfe-0.0.8.tar.gz", "has_sig": false, "md5_digest": "41ed0235ca4913e9e4e4038156f35119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38432, "upload_time": "2015-11-03T13:13:11", "url": "https://files.pythonhosted.org/packages/57/cb/c6c75ab52529aab2972945913f3915d631fe63842d4b570695863363d0b2/satcfe-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "db61253eb01937f5deadf220f30dbdaf", "sha256": "5d73e14598d8a7b1b265aa7fd59176ff26c6c5272f41e4faadb855976c09361c" }, "downloads": -1, "filename": "satcfe-0.0.9.tar.gz", "has_sig": false, "md5_digest": "db61253eb01937f5deadf220f30dbdaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38471, "upload_time": "2015-12-19T16:29:17", "url": "https://files.pythonhosted.org/packages/6f/b0/caaa4c2f80be10cdf66cc1784db8aff1459e30e8174ac9d40445f74a9ef0/satcfe-0.0.9.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "7b27db2096d616a10fa01baa709c2aa5", "sha256": "32742635acb8feaba5f2e0c08e4439df132e850482c9e23fbb8d0232e1f61548" }, "downloads": -1, "filename": "satcfe-1.0.tar.gz", "has_sig": false, "md5_digest": "7b27db2096d616a10fa01baa709c2aa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37717, "upload_time": "2016-07-10T23:19:34", "url": "https://files.pythonhosted.org/packages/52/c9/262cb797272f6b6f4c0e529ccc3cd9fa572d42e0ac24917232cb6e52171f/satcfe-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "f7c6f25137406c08ffb05b1606d80f2c", "sha256": "54f19b036d57a8dd5e103ea331b54d3097068048a235ba98c4fb8aa2c2afd54d" }, "downloads": -1, "filename": "satcfe-1.1.tar.gz", "has_sig": false, "md5_digest": "f7c6f25137406c08ffb05b1606d80f2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43697, "upload_time": "2016-12-26T17:15:17", "url": "https://files.pythonhosted.org/packages/bb/2e/6b73ac2b6515bcbc04832f684077cc2b047fffcea59b299a1285d02beacf/satcfe-1.1.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "e04c852f5f27b681f7135dcbec8bd0f8", "sha256": "0325ea157fa271124d05c8231ce39f8d5583e32c31a8e635a8ed28869793ce9d" }, "downloads": -1, "filename": "satcfe-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e04c852f5f27b681f7135dcbec8bd0f8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 58948, "upload_time": "2019-09-29T18:30:58", "url": "https://files.pythonhosted.org/packages/66/8d/49be579fea4fb1810a093e2f13d8a43d4118c82f5b68f091ca872be629af/satcfe-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8effa5b0e27802aa49f78383a2c367f5", "sha256": "d52b054b887137f4b19627df8361b6ef77d8300a1d7f668155aa517f7314b3ed" }, "downloads": -1, "filename": "satcfe-2.0.tar.gz", "has_sig": false, "md5_digest": "8effa5b0e27802aa49f78383a2c367f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 255489, "upload_time": "2019-09-29T18:31:06", "url": "https://files.pythonhosted.org/packages/b7/a7/6ab8be87d8443505aa803222339cc20502f6fc3ac5a0f3f9375ebf0f02c3/satcfe-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e04c852f5f27b681f7135dcbec8bd0f8", "sha256": "0325ea157fa271124d05c8231ce39f8d5583e32c31a8e635a8ed28869793ce9d" }, "downloads": -1, "filename": "satcfe-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e04c852f5f27b681f7135dcbec8bd0f8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 58948, "upload_time": "2019-09-29T18:30:58", "url": "https://files.pythonhosted.org/packages/66/8d/49be579fea4fb1810a093e2f13d8a43d4118c82f5b68f091ca872be629af/satcfe-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8effa5b0e27802aa49f78383a2c367f5", "sha256": "d52b054b887137f4b19627df8361b6ef77d8300a1d7f668155aa517f7314b3ed" }, "downloads": -1, "filename": "satcfe-2.0.tar.gz", "has_sig": false, "md5_digest": "8effa5b0e27802aa49f78383a2c367f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 255489, "upload_time": "2019-09-29T18:31:06", "url": "https://files.pythonhosted.org/packages/b7/a7/6ab8be87d8443505aa803222339cc20502f6fc3ac5a0f3f9375ebf0f02c3/satcfe-2.0.tar.gz" } ] }