rauljrz / pyafipws

Automatically exported from code.google.com/p/pyafipws
GNU General Public License v3.0
0 stars 0 forks source link

pyafipws

PyAfipWs contains Python modules to operate with web services regarding AFIP (Argentina's "IRS") and other government agencies, mainly related to electronic invoicing, several taxes and traceability.

Copyright 2008 - 2015 (C) Mariano Reingart reingart@gmail.com (creator and maintainter). All rights reserved.

License: GPLv3+, with "commercial" exception available to include it and distribute with propietary programs

General Information:

More information at Python Argentina Magazine article (English) and JAIIO 2012 paper (Spanish)

Project Structure:

Features implemented:

Web services supported so far:

AFIP:

ARBA:

ANMAT/SEDRONAR/SENASA (SNT):

Installation Instructions:

Quick-Start

On Ubuntu (GNU/Linux), you will need to install httplib2 and openssl binding. Then you can download the compressed file, unzip it and use:

   sudo apt-get install python-httplib2 python-m2crypto
   wget https://pyafipws.googlecode.com/archive/default.zip
   unzip default.zip
   cd pyafipws-default
   sudo pip install -r requirements.txt

Note: M2Crypto is optional, the library will use OpenSSL directly (using subprocess)

Virtual environment (testing):

The following commands clone the repository, creates a virtualenv and install the packages there (including the latest versions of the dependencies) to avoid conflicts with other libraries:

   sudo apt-get install python-dev swig python-virtualenv mercurial python-pip libssl-dev
   hg clone https://code.google.com/p/pyafipws
   cd pyafipws
   virtualenv venv
   source venv/bin/activate
   pip install -r requirements.txt

Dependency installation (development):

For SOAP webservices PySimpleSOAP is needed (spin-off of this library, inspired by the PHP SOAP extension):

    hg clone https://code.google.com/p/pysimplesoap/ 
    cd pysimplesoap
    hg update reingart
    sudo python setup.py install

For PDF generation, you will need the PyFPDF (PHP's FPDF library, python port):

    hg clone https://code.google.com/p/pyfpdf/ 
    cd pyfpdf
    sudo python setup.py install

For the GUI app, you will need wxPython:

    sudo apt-get install wxpython

PythonCard is being replaced by gui2py:

    hg clone https://code.google.com/p/gui2py/ 
    cd gui2py
    sudo python setup.py install

For the WEB app, you will need web2py.

On Windows, you can see available installers released for evaluation purposes on Downloads

For more information see the source code installation steps in the wiki