semvec/pypi-packages huggingface dataset:
madcc 0.1.3
madtech cryptocurrency functions
License: MIT
Requires Python: ~=3.4
Keywords: personal project cryptocurrency kraken gdax coinmarketcap

madcc: Useful cryptocurrency tools
==================================

.. image:: https://pypip.in/v/madcc/badge.png
  :target: https://pypi.python.org/pypi/madcc
  :alt: PyPI package version
.. image:: https://travis-ci.org/madeddie/madcc.svg?branch=master
  :target: https://travis-ci.org/madeddie/madcc
  :alt: Travis build status
.. image:: https://img.shields.io/coveralls/github/madeddie/madcc.svg
  :target: https://coveralls.io/github/madeddie/madcc
  :alt: Coveralls code coverage
.. image:: https://codecov.io/gh/madeddie/madcc/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/madeddie/madcc
  :alt: Codecov code coverage
.. image:: https://requires.io/github/madeddie/madcc/requirements.svg?branch=master
  :target: https://requires.io/github/madeddie/madcc/requirements/?branch=master
  :alt: Requirements Status

A collection of useful cryptocurrency utils and functions. Makes use of:

- `kraken API <https://www.kraken.com/help/api>`
- `krakenex <https://github.com/veox/python3-krakenex>`.

----

Included functions:

- None (yet)

Scripts:

- kraken_limits - Used to show the current withdraw and deposit limits on Kraken.
- crypto_assers - Look up value of a list of crypto assets defined in a txt file.
logicoma 0.4
Package for creating simple web crawlers.
License: MIT
Keywords: Web Crawling

Logicoma
========

Logicoma is Python package for creating simple web crawlers with as little code
as necessary. It aims to make simple web crawlers as quick as possible.

If some complex crawling is needed, this package may not be the right choice,
`Scrapy <https://scrapy.org/>`_ or something else could be better choice.


Example
-------

Download images or even entire galleries from `Imgur <https://imgur.com/>`_:

.. code:: python

    import click
    import logicoma

    @logicoma.crawler()
    def crawler(links):
        return links

    @crawler.handler(r'//imgur\.com/')
    def imgur_gallery(client, url):
        response, page = client.get_page(url)
        images = page.find(class_='post-images').find_all('a', class_='zoom')
        for img in images:
            img_url = logicoma.url_join(url, img.get('href'))
            yield logicoma.Download(img_url)

    @crawler.handler(r'//i\.imgur\.com/')
    def imgur_image(url):
        yield logicoma.Download(url)

    @click.command()
    @click.option('-c', '--count', type=int, default=1, help='Number of threads')
    @click.argument('links', nargs=-1)
    def cli(**kwargs):
        crawler(**kwargs)

    if __name__ == '__main__':
        cli()

Exmples with comments are in the `examples` directory.


Installation
------------

Install it using pip ::

    pip3 install logicoma

or clone repository ::

    git clone https://github.com/fpob/logicoma
    cd logicoma

and install Python package including dependencies ::

    python3 setup.py install

Recommended packages
^^^^^^^^^^^^^^^^^^^^

* `click <http://click.pocoo.org/5/>`_ - package for creating command line interfaces
* `browsercookie <https://pypi.org/project/browsercookie/>`_ - loads cookies used by web browser