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
- Package page: https://pypi.org/project/arctic-fox-movies/
- Install command:
pip install arctic-fox-movies
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)
pippipenv
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
.envfile 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.
Metadata
Release files for arctic-fox-movies 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arctic_fox_movies-0.1.3.tar.gz | 8.4 kB | With provenance | Details for arctic_fox_movies-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arctic_fox_movies-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for arctic_fox_movies-0.1.3-py3-none-any.whl |
Total release size: 16.8 kB
Release files / arctic_fox_movies-0.1.3.tar.gz
| Download URL | arctic_fox_movies-0.1.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5870f40d008564b4b2286ffb853d0fa99f8feaf607e52fa3efc4c22327ce0c59
|
|
BLAKE2b-256 checksum How to use checksums |
020b55a886b967c2d230877b05e4458b071b5eae5b8a02f06769ef6401396a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.
Transparency logRelease files / arctic_fox_movies-0.1.3-py3-none-any.whl
| Download URL | arctic_fox_movies-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
274af05ce67461553af4f50de84027548a961dce2c3b868fc7ac16bdc8b826af
|
|
BLAKE2b-256 checksum How to use checksums |
855e1eb78c71d4350425279fe3b3be763e2c9de6e2bf71b1c8e8d5ad0a91067d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.
Transparency logSecurity for arctic-fox-movies 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for arctic_fox_movies-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.