Skip to main content

Calculate affinity between MyAnimeList users

Project description

forthebadge1 forthebadge2 forthebadge3

malaffinity

pypi travis codecov 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 for more info.

Install

pip install malaffinity

Dependencies

  • BeautifulSoup4

  • lxml

  • Requests

Examples

from malaffinity import MALAffinity

ma = MALAffinity("YOUR_USERNAME")

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

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

or

import malaffinity

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

# ...

Documentation

Documentation at https://malaffinity.readthedocs.io

Cat Gif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

malaffinity-2.5.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

malaffinity-2.5.2-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file malaffinity-2.5.2.tar.gz.

File metadata

  • Download URL: malaffinity-2.5.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for malaffinity-2.5.2.tar.gz
Algorithm Hash digest
SHA256 97f97756eb604309c61036604822bcaf253cb3739432aec873a46e517d0ed6ab
MD5 114516e2b9bb64ddeef96d0a12b2d8b4
BLAKE2b-256 a3e97fb15bf4e2683b92e2a567b2402d3ad911e6b4c3459f430bc26797e8f435

See more details on using hashes here.

File details

Details for the file malaffinity-2.5.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for malaffinity-2.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4c57538de3667a085ec1a3ef6148ecda3025b02c0edb736e82c3b79166fe57c
MD5 28b664cde45a4720740748aa62e31db7
BLAKE2b-256 b5cd91a7ed13c79ea3be24907a590aba4cb7c0613b94177145f0e30caf09a97f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page