Metadata-Version: 1.1
Name: django-cc
Version: 0.2.1
Summary: Django wallet for Bitcoin and other cryptocurrencies
Home-page: https://github.com/limpbrains/django-cc
Author: Ivan Vershigora
Author-email: ivan.vershigora@gmail.com
License: MIT License
Download-URL: https://github.com/limpbrains/django-cc/tarball/0.2.1
Description: # django-cc #
        
        
        Django-cryptocurrencies web wallet for Bitcoin and other cryptocurrencies.
        
        Simple pluggable application inspired by django-bitcoin.
        
        Python 3
        
        ## Features ##
        * Multi-currency
        * Celery support
        * Withdraw and Deposite
        * 3 types of balances: balance, unconfirmed, holded
        
        ## Quick start ##
        
        Edit Currency model
        ```python
        
        from cc.models import Currency
        
        currency = Currency.object.create(
            label = 'Bitcoin',
            ticker = 'BTC',
            api_url = 'http://root:toor@localhost:8332'
        )
        ```
        
        Start celery worker
        ```bash
        $ celery worker -A tst.cel.app
        ```
        
        Get new addresses for wallets
        
        ```bash
        $ celery call cc.tasks.refill_addresses_queue
        ```
        
        Now you can create wallets, deposite and withdraw funds
        
        ```python
        
        from cc.models import Wallet
        
        wallet = Wallet.objects.create(
            currency=currency
        )
        
        wallet.get_address()
        
        wallet.withdraw('mvEnyQ9b9iTA11QMHAwSVtHUrtD4CTfiDB', Decimal('0.01'))
        ```
        
        After creating a withdraw transaction you need to run
        
        ```bash
        $ celery call cc.tasks.process_withdraw_transactions
        ```
        
        Query for new deposite transactions:
        ```bash
        $ cc.tasks.query_transactions
        ```
        
        If you want to catch event from bitcoind, but these calls options in bitcoin.conf file
        
        ```
        walletnotify=~/env/bin/celery call cc.tasks.query_transaction --args='["BTC", "'%s'"]'
        blocknotify=~/env/bin/celery call cc.tasks.query_transactions --args='["BTC"]'
        
        ```
        where "BTC" - ticker (short name) of the Currency
        
Keywords: bitcoin litecoin django wallet cryptocurrency
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Build Tools
