Metadata-Version: 1.1
Name: gnosis-py
Version: 2.6.9
Summary: Gnosis libraries for Python Projects
Home-page: https://github.com/gnosis/gnosis-py
Author: Uxío
Author-email: uxio@gnosis.pm
License: MIT License
Description: Django Ethereum (gnosis-py)
        ############################
        
        .. class:: no-web no-pdf
        
        |travis| |coveralls| |python| |django| |pipy|
        
        Gnosis-py includes a set of libraries to work with Gnosis projects.
        Currently `Gnosis Safe <https://github.com/gnosis/safe-contracts>`_ is supported.
        
        Quick start
        -----------
        
        Just run ``pip install gnosis-py`` or add it to your **requirements.txt**
        
        Ethereum utils
        --------------
        gnosis.eth
        ~~~~~~~~~~~~~~~~~~~~
        - ``class EthereumClient (ethereum_node_url: str)``: Class to connect and do operations
          with a ethereum node. Uses web3 and raw rpc calls for things not supported in web3.
          Only ``http/https`` urls are suppored for the node url.
        
        gnosis.eth.constants
        ~~~~~~~~~~~~~~~~~~~~
        - ``NULL_ADDRESS (0x000...0)``
        - ``SENTINEL_ADDRESS (0x000...1)``
        - Maximum an minimum values for `R`, `S` and `V` in ethereum signatures
        
        gnosis.eth.utils
        ~~~~~~~~~~~~~~~~
        
        Contains utils for ethereum operations:
        
        - ``get_eth_address_with_key() -> Tuple[str, bytes]``: Returns a tuple of a valid public ethereum checksumed
          address with the private key.
        - ``get_eth_address_with_invalid_checksum() -> str``: Returns an invalid checksumed ethereum
          public address.
        - ``generate_address_2(from_: Union[str, bytes], salt: Union[str, bytes], init_code: [str, bytes]) -> str``:
          Calculates the address of a new contract created using the new CREATE2 opcode.
        
        Ethereum django utils
        ---------------------
        Now ``django-eth`` is part of this package, available under ``gnosis.eth.django``
        You can find a set of helpers for working with Ethereum using Django and Django Rest framework.
        
        It includes:
        
        - Basic serializers (signature, transaction)
        - Serializer fields (Ethereum address field, hexadecimal field)
        - Model fields (Ethereum address, Ethereum big integer field)
        - Utils for testing
        
        Contributors
        ------------
        - Denís Graña (denis@gnosis.pm)
        - Giacomo Licari (giacomo.licari@gnosis.pm)
        - Uxío Fuentefría (uxio@gnosis.pm)
        
        .. |travis| image:: https://travis-ci.com/gnosis/gnosis-py.svg?branch=master
            :target: https://travis-ci.com/gnosis/gnosis-py
            :alt: Travis CI build
        
        .. |coveralls| image:: https://coveralls.io/repos/github/gnosis/gnosis-py/badge.svg?branch=master
            :target: https://coveralls.io/github/gnosis/gnosis-py?branch=master
            :alt: Coveralls
        
        .. |python| image:: https://img.shields.io/badge/Python-3.6-blue.svg
            :alt: Python 3.7
        
        .. |django| image:: https://img.shields.io/badge/Django-2-blue.svg
            :alt: Django 2.2
        
        .. |pipy| image:: https://badge.fury.io/py/gnosis-py.svg
            :target: https://badge.fury.io/py/gnosis-py
            :alt: Pypi package
        
Keywords: ethereum,django,rest,gnosis
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
