{
"info": {
"author": "Stark Bank",
"author_email": "developers@starkbank.com",
"bugtrack_url": null,
"classifiers": [],
"description": "## Description\n\nLib created in order to sign XML content for SOAP Envelops when a signature is required. \nThis library is intended to be used within WebServices that require certificate signature values inside the XML body.\nPure Python coded. Its features consist in extracting .CERT or .PEM files and PrivateKeys to add values \non Signatures elements as ***SignatureValue*** and ***X509Certificate*** with ***rsa-sha1*** encryption type,\ncompliant with http://www.w3.org/2000/09/xmldsig. \nSign a XML file or buffered string using A1 or A3 certificate, PKCS1_v1_5 supported by RFC3447. \nIt serializes the data to request SOAP RPC services. Creates POST requests on WebServices as NFe and NFSe.\n\n## Table of Contents\n\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Features](#features)\n- [Contributing](#contributing)\n- [Support](#support)\n- [License](#license)\n\n\n\n\n\n[](https://www.python.org/)\n[](https://travis-ci.org/badges/badgerbadgerbadger)\n[](https://coveralls.io/r/badges/badgerbadgerbadger) \n[](https://pypi.python.org/pypi/ansicolortags/)\n\n---\n\n\n## Installation\n\n### Pip install \n- Firstly, install library with pip:\n\n```shell\npip install starkbank-nfe\n```\n---\n- Or clone this repo and install library:\n\n```shell \ngit clone https://github.com/starkbank/nfe\npython setup.py install\n``` \n\n## Features\n> Using the following libs: \n- lxml, pyCrypto, requests, ssl, rsa\n\n\n---\n## Usage\n\n### Using this lib:\n##### We can create a new Rps, Consult Nfes and Cancel Nfes\n```python\n# coding: utf-8\nfrom gateways.saopaulo import SaopauloGateway\n\ncertificateContent = open(\"./certificate.crt\", \"rb\").read()\nprivateKeyContent = open(\"./rsaKey.pem\").read()\n\n###Create Nfe:\n\nnota = {\n \"CPFCNPJRemetente\": \"01234567890987\",\n \"InscricaoPrestador\": \"01234567\",\n \"SerieRPS\": \"TESTE\",\n \"NumeroRPS\": \"9117092019\",\n \"TipoRPS\": \"RPS\",\n \"DataEmissao\": \"2019-07-09\",\n \"StatusRPS\": \"N\",\n \"TributacaoRPS\": \"T\",\n \"ValorServicos\": \"1\",\n \"ValorDeducoes\": \"0\",\n \"ValorPIS\": \"0\",\n \"ValorIR\": \"0\",\n \"ValorCSLL\": \"0\",\n \"ValorCOFINS\": \"0\",\n \"ValorINSS\": \"0\",\n \"CodigoServico\": \"05895\",\n \"AliquotaServicos\": \"2\",\n \"ISSRetido\": \"false\",\n \"CPFCNPJTomador\": \"01234567654321\",\n \"RazaoSocialTomador\": \"SOME COMPANY NAME\",\n \"Logradouro\": \"Rua Um\",\n \"NumeroEndereco\": \"123\",\n \"ComplementoEndereco\": \"Centro\",\n \"Bairro\": \"Vila Unica\",\n \"Cidade\": \"3550308\",\n \"UF\": \"SP\",\n \"CEP\": \"00000000\",\n \"EmailTomador\": \"none@none.com\",\n \"Discriminacao\": \"Teste de emissao de NFS-e de boletos prestados\",\n}\n\nprint(SaopauloGateway.sendRps(\n privateKeyContent=privateKeyContent,\n certificateContent=certificateContent,\n **nota\n))\n\n###How to delete a Nfe:\n\nnota = {\n \"CPFCNPJRemetente\": \"01234567890123\",\n \"InscricaoPrestador\": \"01234567\",\n \"NumeroNFe\": \"001\"\n}\n\nprint(SaopauloGateway.cancelRps(\n privateKeyContent=privateKeyContent,\n certificateContent=certificateContent,\n **nota\n))\n\n###Consult sent Nfes\n\nparameters = {\n \"CPFCNPJRemetente\": \"01234567890123\",\n \"InscricaoPrestador\": \"01234567\",\n \"dtInicio\": \"2019-09-15\",\n \"dtFim\": \"2019-09-18\",\n}\n\nprint(SaopauloGateway.consultNfes(\n privateKeyContent=privateKeyContent,\n certificateContent=certificateContent,\n **parameters\n))\n\n```\n\n---\n\n## Contributing\n\n#### Get started\n\n- **Step 1**\n - \ud83c\udf74 Fork this repo!\n\n- **Step 2**\n - \ud83d\udd28\ud83d\udd28 Clone this repo to your local machine using `https://github.com/starkbank/nfe`\n\n- **Step 3**\n - \ud83d\udd03 Create a new pull request using `https://github.com/starkbank/nfe/compare/`\n\n---\n\n## Support\n\nReach out to me at one of the following places!\n\n- E-mail at `developers@starkbank.com`\n- Github at `@starkbank`\n\n---\n\n## License\n\n[](https://pypi.python.org/pypi/ansicolortags/)\n- Copyright 2019 \u00a9 STARK BANK S.A.",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/starkbank/nfe",
"keywords": "nfe,nfse,xml,xml signer,stark bank,starkbank",
"license": "MIT License",
"maintainer": "",
"maintainer_email": "",
"name": "starkbank-nfe",
"package_url": "https://pypi.org/project/starkbank-nfe/",
"platform": "",
"project_url": "https://pypi.org/project/starkbank-nfe/",
"project_urls": {
"Homepage": "https://github.com/starkbank/nfe"
},
"release_url": "https://pypi.org/project/starkbank-nfe/0.1.5/",
"requires_dist": null,
"requires_python": "",
"summary": "Python xml signer and webservice requester",
"version": "0.1.5",
"yanked": false,
"yanked_reason": null
},
"last_serial": 7021346,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "f2ccb45a5d753929173c6c9cb42b5c58",
"sha256": "732edf93672edabf8e200faa6e81364f7ff2113d6d2cf994bc2922b773d9e861"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "f2ccb45a5d753929173c6c9cb42b5c58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7671,
"upload_time": "2019-10-11T23:15:28",
"upload_time_iso_8601": "2019-10-11T23:15:28.770658Z",
"url": "https://files.pythonhosted.org/packages/fd/40/fb61cc6f7d57190138fd56c39ca97c375ec39a9f52b3dc404045ed71f5c7/starkbank-nfe-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "59bafb0afaaf150a368a3620d2d4d020",
"sha256": "303847360670fe06b6082e7a15117f36662773ba4f3a3eb1737b4fd371037944"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "59bafb0afaaf150a368a3620d2d4d020",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7683,
"upload_time": "2019-10-11T23:38:50",
"upload_time_iso_8601": "2019-10-11T23:38:50.145463Z",
"url": "https://files.pythonhosted.org/packages/f9/24/5acb480cf1cabf875a85a782f9b3bf45a11fe1b9634931e5a543a705f9e9/starkbank-nfe-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "216011800b15fb62f1563f5f938044ec",
"sha256": "a31f135834e56cfabf09a65bf89a20e96014de731fdeae27fa2a72843e5c4793"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "216011800b15fb62f1563f5f938044ec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7722,
"upload_time": "2019-10-12T00:05:06",
"upload_time_iso_8601": "2019-10-12T00:05:06.024632Z",
"url": "https://files.pythonhosted.org/packages/ff/51/fd96417109c41374f7800b7906a39f08cf40006ba467340100b81648ee9d/starkbank-nfe-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "52705ad83c010b76622fad68b20e45ac",
"sha256": "4d5a54066f48ae3515f0fba003e501245fdaa34241353bd7997757fdf4905c0b"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "52705ad83c010b76622fad68b20e45ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7710,
"upload_time": "2019-10-12T00:47:54",
"upload_time_iso_8601": "2019-10-12T00:47:54.406460Z",
"url": "https://files.pythonhosted.org/packages/ef/94/b3ec914b522b3ab0731e6687fd1639a2fa27a9f5f167cf50437ae44344e4/starkbank-nfe-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "5a14dac2ee85a8a4ddf8cc3711ab6204",
"sha256": "81aff245eafe3704f8e7c0fc0d68fcf6047d75f6e80aee1ecf86bf1f66a106ce"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "5a14dac2ee85a8a4ddf8cc3711ab6204",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22805,
"upload_time": "2019-10-17T00:05:19",
"upload_time_iso_8601": "2019-10-17T00:05:19.530698Z",
"url": "https://files.pythonhosted.org/packages/ee/56/e9b5a36d76d2a6a8fd38f077d631a1d768efc12cf56114c3f22a089f6b25/starkbank-nfe-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "a1a3d5ffc552c1efd976f6ee4cb7ef0b",
"sha256": "2d4293369108698d97bac4e9698f4520d3bd72c9177598c6e8ca5fea5909790c"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "a1a3d5ffc552c1efd976f6ee4cb7ef0b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22628,
"upload_time": "2019-10-29T23:11:49",
"upload_time_iso_8601": "2019-10-29T23:11:49.439002Z",
"url": "https://files.pythonhosted.org/packages/c8/42/16900f93885507065010b549d4ac3f31f6c903563bad161f0b88657d7049/starkbank-nfe-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "a1a3d5ffc552c1efd976f6ee4cb7ef0b",
"sha256": "2d4293369108698d97bac4e9698f4520d3bd72c9177598c6e8ca5fea5909790c"
},
"downloads": -1,
"filename": "starkbank-nfe-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "a1a3d5ffc552c1efd976f6ee4cb7ef0b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22628,
"upload_time": "2019-10-29T23:11:49",
"upload_time_iso_8601": "2019-10-29T23:11:49.439002Z",
"url": "https://files.pythonhosted.org/packages/c8/42/16900f93885507065010b549d4ac3f31f6c903563bad161f0b88657d7049/starkbank-nfe-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"vulnerabilities": []
}