Skip to main content

university-trending

A configurable trending engine for the University platform. This is an optional level two module that depends only on university-core.

  • Signals: views, reactions, comments, shares, event registrations, community joins and marketplace orders, taken from ids-only events and kept as hourly buckets with no user ids.
  • Scoring combines weighted engagement, velocity (rising now versus earlier) and recency (gravity decay). It never ranks by total likes, and the weights, window, gravity and velocity are all configurable. The algorithm itself can be swapped.
  • Anti-gaming: each person counts once per signal per item per window, items need a minimum number of distinct people, and lists cap items per author.
  • Permission-aware: every listed item is checked against the viewer (privacy, blocks, audiences, moderation). There are trending lists per type and per scope (for example an institution).
  • Feeds: social's ranked "trending" feed uses these scores automatically, through Core's content.trending_scores hook.
pip install university-trending

See the module documentation.

Metadata

Release files for university-trending 0.1.0

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

Source distribution (sdist)

Source distribution for university-trending 0.1.0
File Size Uploaded Provenance Actions
university_trending-0.1.0.tar.gz 12.3 kB With provenance Details for university_trending-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for university-trending 0.1.0
File Interpreter ABI Platform Actions
university_trending-0.1.0-py3-none-any.whl Python 3 none any Details for university_trending-0.1.0-py3-none-any.whl

Total release size: 26.7 kB

Security for university-trending 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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