Metadata-Version: 1.1
Name: signxml-sunat
Version: 1.0.2
Summary: SUNAT - sign and verify xml
Home-page: https://github.com/danilobrinu/signxml_sunat
Author: @danilobrinu
Author-email: ddbn.c2@gmail.com
License: UNKNOWN
Description: SignXML Sunat: XML Signature in Python for SUNAT
        ================================================
        
        *SignXML Sunat* is an implementation of the W3C `XML Signature <http://en.wikipedia.org/wiki/XML_Signature>`_ standard in
        Python.
        *SignXML Sunat* implements all of the required components of the standard, and most recommended ones. Its features are:
        
        * Well-supported, portable, reliable dependencies: `lxml <https://github.com/lxml/lxml>`_, `xmlsec
          <https://github.com/mehcode/python-xmlsec>`_
        * Simple interface with useful defaults
        * Compactness, readability, and extensibility
        
        Installation
        ------------
        ::
        
            pip install git+https://github.com/danilobrinu/signxml_sunat.git
            
        
        Note: SignXML SUNAT depends on `lxml <https://github.com/lxml/lxml>`_ and `xmlsec
        <https://github.com/mehcode/python-xmlsec>`__
        
        +--------------+----------+-------------------------------------------------------------------------------------------------+
        | OS           | Python   | Command                                                                                         |
        +==============+==========+=================================================================================================+
        | Ubuntu 16.04,| Python 3 |                                                                                                 |
        | 18.04        |          | ``pip install lxml xmlsec``                                                                     |
        +--------------+----------+-------------------------------------------------------------------------------------------------+
        
        Note: In windows you need install a binary for lxml and xmlsec `<https://www.lfd.uci.edu/~gohlke/pythonlibs>`__
        
        Synopsis
        --------
        
        SignXML SUNAT uses the ElementTree API (also supported by lxml) to work with XML data.
        
        .. code-block:: python
        
            from signxml_sunat import XMLSigner, XMLVerifier
        
            signed_root = XMLSigner().sign('doc.xml', key_data='rsakey.pem', cert_data='rsacert.pem')
            # if you need password
            # signed_root = XMLSigner().sign('doc.xml', key_data='rsakey.pem', cert_data='rsacert.pem', password='p4ssw0rd')
            verified = XMLVerifier().verify('signed_doc.xml', key_data='rsakey.pem')
            # if you need password
            # verified_data = XMLVerifier().verify('signed_doc.xml', key_data='rsakey.pem', password='p4ssw0rd')
        
        
        Authors
        -------
        * Danilo Britto NuÃ±ez
        
        Bugs
        ~~~~
        Please report bugs, issues, feature requests, etc. on `GitHub <https://github.com/danilobrinu/signxml_sunat/issues>`_.
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
