A Python wrapper for the RateMyProfessor GraphQL API
Project description
pyrmp
Python wrapper for the RateMyProfessor GraphQL API.
Install
pip install pyrmp
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.3.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.3-py3-none-any.whl
(22.0 kB
view details)
File details
Details for the file pyrmp-0.1.3.tar.gz.
File metadata
- Download URL: pyrmp-0.1.3.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 |
49ded62b8e36e9044c4f702b7a4ed2c21bd8556c87a16fdc78b07bb6cccee590
|
|
| MD5 |
04b78f2be82c58e7a232a100cb294bd6
|
|
| BLAKE2b-256 |
a34b334af094443ed3a2b6113a5907b2832c0326f03b5c34dd069df93060afc9
|
File details
Details for the file pyrmp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyrmp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.0 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 |
79838557c993d75ebedabb0f693f62012839024296e0d9772f3f7f5c1461197e
|
|
| MD5 |
d4c1bc8894cdaa32a034440d0dee6cf8
|
|
| BLAKE2b-256 |
8457d7b7532238a85fe3e23c372c3d8953e6f621dd3fc3ebdd406850281f044d
|