Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrmp-0.1.3-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for pyrmp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 49ded62b8e36e9044c4f702b7a4ed2c21bd8556c87a16fdc78b07bb6cccee590
MD5 04b78f2be82c58e7a232a100cb294bd6
BLAKE2b-256 a34b334af094443ed3a2b6113a5907b2832c0326f03b5c34dd069df93060afc9

See more details on using hashes here.

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

Hashes for pyrmp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79838557c993d75ebedabb0f693f62012839024296e0d9772f3f7f5c1461197e
MD5 d4c1bc8894cdaa32a034440d0dee6cf8
BLAKE2b-256 8457d7b7532238a85fe3e23c372c3d8953e6f621dd3fc3ebdd406850281f044d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page