Metadata-Version: 2.5
Name: university-trending
Version: 0.1.0
Summary: University Trending: configurable trending engine (velocity, engagement, recency, shares, comments, views) for the University platform.
Project-URL: Homepage, https://github.com/NzeStan/University
Project-URL: Documentation, https://github.com/NzeStan/University/blob/main/docs/modules/trending.md
Project-URL: Source, https://github.com/NzeStan/University
Project-URL: Changelog, https://github.com/NzeStan/University/blob/main/CHANGELOG.md
Author-email: Ifeanyi Stanley <nnamaniifeanyi10@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: africa,django,drf,engagement,feeds,ranking,trending,university,velocity
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: university-core<0.2,>=0.1
Provides-Extra: test
Requires-Dist: drf-spectacular>=0.27; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest-django>=4.8; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# university-trending

A configurable trending engine for the [University platform](https://github.com/NzeStan/University).
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.

```bash
pip install university-trending
```

See [the module documentation](../../docs/modules/trending.md).
