semvec/pypi-packages huggingface dataset:
python-ctapi 0.3.0
Python Interface for CoinTracking.info API
License: MIT
Keywords: cointracking info btc api

# python-ctapi
Python interface for [CoinTracking.info API](https://cointracking.info/api/api.php).

I am not associated to cointracking.info -- use at your own risk!

# Requirements:
* requests

# Install
`python setup.py install`
`pip install python-ctapi`

# How to Use
This is an example about how you can use the library

```
#!/usr/bin/env python2

from ctapi import CTAPI

api_key = <YourAPIKey>
api_secret = <YourAPISecret>

# api = CTAPI(api_key, api_secret, debug=True)
api = CTAPI(api_key, api_secret)
trades = api.getTrades()

if trades['success']:
    for t in trades['result']:
        print trades['result'][t]
else:
    print "got no orders"

print api.getBalance()
print api.getHistoricalSummary()
print api.getHistoricalCurrency()
print api.getGroupedBalance()
print api.getGains()
```

# Running Tests
**be aware of the API requests limit of 20 req/h**
`venv/bin/python -m unittest -v ctapi.test.ctapi_tests`

# Contribute
Do you have an idea or found a bug in python-ctapi? Please file an issue and make a PR! :)

## Support Me
If you like the API and wanna support its developer, use the following referral link when registering at cointracking: https://cointracking.info?ref=T161519
blinkt-sim 1.0.0
Simulates Pimoroni's Blinkt! using pygame.
License: MIT
Requires Python: >=3
Keywords: pimoroni blinkt

=================
Blinkt! Simulator
=================

Simulates `Pimoroni's Blinkt!`_ allowing Blinkt! code to developed and tested on any computer.

Usage
-----

::

    try:
        import blinkt
    except ImportError:
        import blinkt_sim as blinkt

Example Application
-------------------

::

    import time
    import sys

    try:
        import blinkt
        print("Blinkt! detected")
    except ImportError:
        from blinkt_sim import blinkt_sim as blinkt
        print("Using Blinkt! simulator")

    print("Press Ctrl+C to exit")

    try:
        while True:
            for i in range(8):
                blinkt.clear()
                blinkt.set_pixel(i, 255, 0, 0, 0.75)
                blinkt.show()
                time.sleep(0.1)

    except KeyboardInterrupt:  # Handle Ctrl+C gracefully
        sys.exit()

Credits
-------

Thanks to `Jannis Hermanns`_ for creating the unicorn-hat-sim_ which was the inspiration for this project.

.. _`Pimoroni's Blinkt!`: https://shop.pimoroni.com/products/blinkt
.. _`Jannis Hermanns`: https://github.com/jayniz
.. _unicorn-hat-sim: https://github.com/jayniz/unicorn-hat-sim
prai 1.0.0
Raiblocks Python RPC client
License: MIT


prai ��
===========
Raiblocks Python RPC client

Install
-------
A somewhat stable version from pypi:

.. code-block:: bash

    $ pip install prai

Or the most recent master version from Github:

.. code-block:: bash

    $ git clone https://github.com/jxub/prai

Usage
-----
.. code-block:: Python

    >>> from prai import Wallet, Account

    # creating a wallet with the rai node url
    >>> w = Wallet(http://localhost:7475)

    >>> w.account_list()
    {  
        "accounts" : [
        ]
    }

    >>> w.accounts_create(count=2)
    {  
        "accounts": [    
            "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",   
            "xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3s00000000"
        ]   
    }

    >>> w.account_balance("xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000")
    {  
        "balance": "10000",  
        "pending": "10000"  
    }

    # using unpacking to pass in the params with *
    >>> w.send(*w.account_list()['accounts'], 10000)
    {  
    "block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"  
    }

    # query the same account as before
    >>> w.account_balance("xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000")
    {  
        "balance": "0",  
        "pending": "0"  
    }


Some notes
----------
Prai is a work in progress, so expect some rough edges and stay tuned for updates ��.

Roadmap
-------
- Finish basic API.
- Add some higher-level features, for example a simple e-commerce payment API.
- Add more validation and tests (ughhh).
- Add hashing of Rai addrsses to shorter to be better for end-user (??!)
��