A Python wrapper for the RateMyProfessor GraphQL API
Project description
pyrmp
Python wrapper for the RateMyProfessor GraphQL API.
Install
pip install pyrmp
Or install directly from GitHub:
pip install git+https://github.com/aarush-murari/pyrmp.git
Quick Start
from pyrmp import RateMyProfessorClient
with RateMyProfessorClient() as client:
# Search for teachers (returns ratings by default)
teachers = client.search_teachers("John Smith")
for teacher in teachers.items:
print(f"{teacher.full_name} - {teacher.avg_rating}/5 ({teacher.num_ratings} ratings)")
# Get teacher details
details = client.get_teacher_details(teachers.items[0].id)
print(f"Department: {details.department}")
print(f"Would take again: {details.would_take_again_percent}%")
# Get ratings
ratings = client.get_teacher_ratings(details.id, count=5)
for rating in ratings.items:
print(f" {rating.clarity_rating}/5 - {rating.comment[:50]}")
CLI
# Search teachers (includes ratings)
pyrmp search "John Smith" --count 10
# Get teacher details
pyrmp teacher "John Smith"
# Get ratings for a teacher
pyrmp ratings "Teacher-941174"
# Search schools
pyrmp schools "MIT"
# JSON output (pipe to jq)
pyrmp search "John Smith" --json | jq '.[] | .name'
# Hide IDs
pyrmp search "John Smith" --no-ids
Documentation
See the Sphynx documentation for full API reference, examples, and advanced usage.
License
MPL-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrmp-0.1.5.tar.gz
(20.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyrmp-0.1.5-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file pyrmp-0.1.5.tar.gz.
File metadata
- Download URL: pyrmp-0.1.5.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06133f895eda76e0c9a13f283b17fc9f29d98b851413d38f1ba2d12f395ef0ea
|
|
| MD5 |
dc5262943e796053975a7be0c1a77f2d
|
|
| BLAKE2b-256 |
9c1ad0446d6b0da555cec1968bfcba50ebfecaff0179512d1961ec9476572a0a
|
File details
Details for the file pyrmp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pyrmp-0.1.5-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670152adcb0891afb85b947d33f7264f7da3ac3fb8eb519352788b9f5e9ff50c
|
|
| MD5 |
d3f8fcaeb0bc2384e29a4132a0d4be74
|
|
| BLAKE2b-256 |
47c2319f0d2c5e84ccce87909830f9649bf61373b5c7f0a47223444709887c85
|