Skip to main content

Scoring, ranking and search utilities for CollaborativeNotes

Project description

collaborativenotes-utils

Scoring, ranking and search utilities for the CollaborativeNotes Django app.

Install

pip install collaborativenotes-utils

Usage

from collaborativenotes_utils import rank_notes, calculate_weighted_rating, search_score

# Rank notes by relevance to a search query + rating + downloads
ranked = rank_notes(notes, query="databases")

# Bayesian weighted rating (avoids bias from notes with few votes)
rating = calculate_weighted_rating([5, 4, 3, 5, 4])

# Get a single note's relevance score
score = search_score(note, query="normalisation")

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

collaborativenotes_utils-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

collaborativenotes_utils-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file collaborativenotes_utils-0.1.0.tar.gz.

File metadata

File hashes

Hashes for collaborativenotes_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0fcbbc2285eb4dab8137a7195cc378f443995815897b8abad41af3ad13a5ee3
MD5 850e150a3605ac09f16be290b2230ab8
BLAKE2b-256 ba9bce90461852bc79e7e3af1032304a49ea6af59ae64732e9c546f0c393d580

See more details on using hashes here.

File details

Details for the file collaborativenotes_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collaborativenotes_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbe4d32eebcea830bf3240bcd4cb4aeee39ef2b014daf7d1954207e97b9d65f1
MD5 8e33199743fedfea05ec9eb50100ca55
BLAKE2b-256 ebeb754f6003cdc9778e0e7b93bd580e858ff608a80d0b60c5aa3eae9f61d06e

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