Git Product home page Git Product logo

sat-descarga-masiva-python's Introduction

sat-descarga-masiva-python

Libreria de python que permite hacer descarga masiva de CFDIs a travez del Web Service del SAT en México.

Note: I'm not sure if I should be writing this in English or Spanish since its use is primarily for accountable systems in Mexico. if you don't speak Spanish and you need to use this library, by all means, contact me.

Estado Actual

La libreria ya ha sido utilizada y funciona al 100%. Sin embargo tiene muchas areas de oportunidad que se iran solventando conforme tenga tiempo y si gustas colaborar, eres bienvenido :)

El objetivo actual de este repositorio es optimizar y mejorar el codigo para que sea mas facil de utilizar y pueda ser instalada a traves de pip.

Adicionalmente hace falta trabajar en la documentacion y, de ser posible, eliminar la dependencia de la libreria "chilkat2" pues es de codigo cerrado y hay que descargarla ya compilada e instalar de manera independiente.

Instalación

Requiere las siguientes librerias:

Si utilizas entorno virtual hay que descomprimir el binario .so o .exe en tu carpeta site-packages

  • lxml
  • pyOpenSSL
  • requests

Uso

Los desarrolladores de SmarterWeb escribieron sobre como utilizar este Web Service. Ahi puedes observar los pasos generales a seguir para hacer la descarga masiva.

Respecto a las particularidades de la libreria presente, cada parte del proceso esta representado por una clase.

Ejemplo de uso:

login = Login.TokenRequest()
token = login.soapRequest(b'certificate', 'llave privada formato PEM')

Se planea cambiar esta estructura para hacer mas pythonica

sat-descarga-masiva-python's People

Contributors

guillermo11bq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sat-descarga-masiva-python's Issues

Duda - Uso de cert y key

Si solo necesito los metadatos de las facturas y no todo lo demas, hay alguna manera de solamente utilizar mi email registrado y el password en lugar de usar todo el cert y el key?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.