Skip to main content

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

Metadata

Release files for malaffinity 2.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for malaffinity 2.5.2
File Size Uploaded
malaffinity-2.5.2.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for malaffinity 2.5.2
File Interpreter ABI Platform
malaffinity-2.5.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 18.1 kB

Release files / malaffinity-2.5.2.tar.gz

Download URL malaffinity-2.5.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
97f97756eb604309c61036604822bcaf253cb3739432aec873a46e517d0ed6ab
BLAKE2b-256 checksum
How to use checksums
a3e97fb15bf4e2683b92e2a567b2402d3ad911e6b4c3459f430bc26797e8f435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / malaffinity-2.5.2-py2.py3-none-any.whl

Download URL malaffinity-2.5.2-py2.py3-none-any.whl
Size 10.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d4c57538de3667a085ec1a3ef6148ecda3025b02c0edb736e82c3b79166fe57c
BLAKE2b-256 checksum
How to use checksums
b5cd91a7ed13c79ea3be24907a590aba4cb7c0613b94177145f0e30caf09a97f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.5.2 This release

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page