# cheran-senthil/PyRival

⚡ Competitive Programming Library

Repository: https://github.com/cheran-senthil/PyRival
Canonical: https://ross.abutalabs.com/products/pyrival
Homepage: https://pyrival.readthedocs.io/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: competitive-programming, python, data-structures, algorithms
Last push: 2026-09-02T05:27:28+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 8, longevity 100
- inputs: {"age_days": 2918, "days_push": 0, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1283, forks 307 (observed 2026-09-03T02:15:09.964536+00:00)

## What it is
PyRival is a Python library of algorithms, data structures, and templates for competitive programming. It includes battle-tested snippets for number theory, graphs, geometry, and strings, plus tools like stress testers and interactive runners.

## Use cases
- prepare a python template for codeforces contests
- find a fast fenwick tree implementation in python
- implement miller-rabin primality testing for a contest problem
- stress test a brute force solution against an optimized one
- copy snippets for fft, ntt, or chinese remainder theorem
- speed up competitive programming solutions for pypy

## When to choose
- you compete in online judges like Codeforces or AtCoder using Python or PyPy
- you want a curated, tested collection of contest-ready algorithm snippets
- you need a single-file template that works across Python and PyPy versions

## When to avoid
- you need a production-grade general-purpose algorithms library with stable APIs
- you want pip-installable dependencies for application development rather than copy-paste snippets
- you work in a language other than Python

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, testing
- domain: developer-tools, education
- platform: python
- tags: competitive-programming, algorithms, data-structures, codeforces, templates, snippets

## Member repositories
- cheran-senthil/PyRival (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:09.964536+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:56:47.982716+00:00, confidence not recorded.
  - readme: https://github.com/cheran-senthil/PyRival (fetched 2026-09-03T02:15:09.964536+00:00, sha fce43d992b20)
  - registry_pypi: https://pypi.org/pypi/pyrival/json (fetched 2026-08-29T12:13:12.939194+00:00, sha ea039a535e40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
