Metadata-Version: 2.0
Name: malaffinity
Version: 2.2.3
Summary: Calculate affinity between MyAnimeList users
Home-page: https://github.com/erkghlerngm44/malaffinity
Author: erkghlerngm44
Author-email: erkghlerngm44@protonmail.com
License: MIT
Keywords: affinity mal myanimelist
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: beautifulsoup4 (<5,>=4.6)
Requires-Dist: lxml (>=3.8,<4)
Requires-Dist: requests (>=2.18,<3)
Requires-Dist: statistics (<2,>=1.0)
Provides-Extra: doc
Requires-Dist: sphinx (<2,>=1.6); extra == 'doc'
Requires-Dist: sphinx-rtd-theme; extra == 'doc'
Provides-Extra: test
Requires-Dist: coverage (<5,>=4.4); extra == 'test'
Requires-Dist: mock (>=2.0,<3); extra == 'test'
Requires-Dist: pytest (>=3.1,<4); extra == 'test'

|forthebadge1| |forthebadge2| |forthebadge3|


malaffinity
===========

|pypi| |travis| |coveralls| |rtd|

Calculate affinity between MyAnimeList users


What is this?
-------------

Calculate the affinity (Pearson's Correlation \* 100) between a "base"
user and another user. Refer to the `docs <#documentation>`__ for more info.


Install
-------

.. code-block:: bash

    pip install malaffinity


Dependencies
------------

* BeautifulSoup4
* lxml
* Requests


Examples
--------

.. code-block:: python

    from malaffinity import MALAffinity

    ma = MALAffinity("YOUR_USERNAME")

    affinity, shared = ma.calculate_affinity("OTHER_USERNAME")

    print(affinity)
    # 79.00545465639877
    print(shared)
    # 82

.. code-block:: python

    import malaffinity

    affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")

    # ...


Documentation
-------------

Documentation at https://malaffinity.readthedocs.io


Legal Stuff
-----------

Licensed under MIT. See `LICENSE <LICENSE>`__ for more info.


Cat Gif
-------

.. figure:: https://i.imgur.com/sq42SnU.gif
   :alt:


.. |forthebadge1| image:: http://forthebadge.com/images/badges/fuck-it-ship-it.svg
   :target: http://forthebadge.com
.. |forthebadge2| image:: http://forthebadge.com/images/badges/contains-cat-gifs.svg
   :target: http://forthebadge.com
.. |forthebadge3| image:: http://forthebadge.com/images/badges/built-with-love.svg
   :target: http://forthebadge.com

.. |pypi| image:: https://img.shields.io/pypi/v/malaffinity.svg
   :target: https://pypi.org/project/malaffinity/
.. |travis| image:: https://travis-ci.org/erkghlerngm44/malaffinity.svg?branch=master
   :target: https://travis-ci.org/erkghlerngm44/malaffinity?branch=master
.. |coveralls| image:: https://coveralls.io/repos/github/erkghlerngm44/malaffinity/badge.svg?branch=master
   :target: https://coveralls.io/github/erkghlerngm44/malaffinity?branch=master
.. |rtd| image:: https://readthedocs.org/projects/malaffinity/badge/?version=latest
   :target: http://malaffinity.readthedocs.io/en/latest/


