Skip to main content

A lighthearted Python package for exploring and discovering movies from the IMDB Top 250 list with fun utilities for movie selection and analysis.

Project description

Python package

Arctic Fox Movies

Arctic Fox Movies is a lighthearted Python package for exploring the IMDB Top 250 dataset and discovering what to watch next.

It includes tools to:

  • pick a movie based on your constraints,
  • generate a movie quiz from random clues,
  • search by lead actor,
  • find collaboration movies between two people,
  • list movies by a director, and
  • spin a random pick by genre.

Dataset source: IMDB Top 250 Movies (Kaggle)

PyPI

Example Program

The project uses the package entry point in src/arcticfoxmovies/__main__.py.

Run the program from the repository root:

pipenv run python -m arcticfoxmovies --help

Function Reference

Import path:

from arcticfoxmovies.movies import (
	movie_night_picker,
	quiz,
	play_quiz,
	lead_actor,
	find_collabs,
	find_movie_by_director,
	genre_roulette,
	find_shape_of_dataframe,
)

movie_night_picker(genres_to_avoid=None, runtime_max=150, minimum_rating=8.0)

Returns either a movie dictionary or the fallback string "No movies match your criteria!".

movie = movie_night_picker(
	genres_to_avoid=["Horror", "War"],
	runtime_max=180,
	minimum_rating=8.3,
)
print(movie)

quiz(attributes)

Builds a quiz question and returns quiz metadata.

Allowed values in attributes are "director", "runtime", and "year".

q = quiz(["director", "year"])
print(q["question"])
print("Answer:", q["answer"])

play_quiz(attributes)

Interactive wrapper around quiz(...).

play_quiz(["director", "runtime", "year"])

lead_actor(actor)

Returns movies where actor appears as the first listed cast member.

tom_hanks_movies = lead_actor("Tom Hanks")
print(tom_hanks_movies[:5])

find_collabs(person1, person2)

Returns movies where both people appear among directors, writers, or cast.

shared = find_collabs("Morgan Freeman", "Tim Robbins")
print(shared)

find_movie_by_director(director)

Returns all dataset movies directed by director.

nolan_movies = find_movie_by_director("Christopher Nolan")
print(nolan_movies)

genre_roulette(genre, avoid_year=None)

Returns one random movie title for genre, optionally skipping one year.

pick = genre_roulette("Drama", avoid_year=1994)
print(pick)

Developer Setup

1. Prerequisites

  • Python 3.9+ (CI currently validates 3.9, 3.10, 3.11)
  • pip
  • pipenv

Install pipenv if needed:

python -m pip install --user pipenv

2. Clone and install dependencies

git clone https://github.com/swe-students-spring2026/3-package-arctic_fox.git
cd 3-package-arctic_fox
pipenv install --dev
pipenv run pip install -e .

3. Run tests

pipenv run pytest

4. Build package artifacts

pipenv run python -m build

Artifacts are produced in dist/.

5. Validate artifacts and upload to PyPI

pipenv run twine check dist/*
pipenv run twine upload dist/*

Configuration and Data

  • No local .env file is required to run this package.
  • The dataset ships in the repository at data/IMDB Top 250 Movies.csv.
  • No database setup or seed/import step is required.

Teammates

License

Licensed under the MIT License. See LICENSE.

Course Exercise

This repository is part of the package engineering exercise documented in instructions.md.

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

arctic_fox_movies-0.1.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

arctic_fox_movies-0.1.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file arctic_fox_movies-0.1.3.tar.gz.

File metadata

  • Download URL: arctic_fox_movies-0.1.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arctic_fox_movies-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5870f40d008564b4b2286ffb853d0fa99f8feaf607e52fa3efc4c22327ce0c59
MD5 62ec5e8bed328f00fd91559fe80dd6c3
BLAKE2b-256 020b55a886b967c2d230877b05e4458b071b5eae5b8a02f06769ef6401396a88

See more details on using hashes here.

Provenance

The following attestation bundles were made for arctic_fox_movies-0.1.3.tar.gz:

Publisher: python-package.yml on swe-students-spring2026/3-package-arctic_fox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arctic_fox_movies-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for arctic_fox_movies-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 274af05ce67461553af4f50de84027548a961dce2c3b868fc7ac16bdc8b826af
MD5 c307b8c8c168b4102c68f21e3a4dbea8
BLAKE2b-256 855e1eb78c71d4350425279fe3b3be763e2c9de6e2bf71b1c8e8d5ad0a91067d

See more details on using hashes here.

Provenance

The following attestation bundles were made for arctic_fox_movies-0.1.3-py3-none-any.whl:

Publisher: python-package.yml on swe-students-spring2026/3-package-arctic_fox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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