{"id":26562625,"url":"https://github.com/jabercrombia/pixar-api","last_synced_at":"2026-05-09T00:43:32.019Z","repository":{"id":283006863,"uuid":"950150719","full_name":"jabercrombia/Pixar-API","owner":"jabercrombia","description":"Pixar Films API - A FastAPI-based REST API for managing Pixar films, including movie details, box office data, and associated people","archived":false,"fork":false,"pushed_at":"2025-03-18T05:04:50.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:26:07.294Z","etag":null,"topics":["fastapi","pixar"],"latest_commit_sha":null,"homepage":"https://pixar-api.vercel.app/docs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jabercrombia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-17T17:54:44.000Z","updated_at":"2025-03-18T05:04:54.000Z","dependencies_parsed_at":"2025-03-18T23:46:47.569Z","dependency_job_id":null,"html_url":"https://github.com/jabercrombia/Pixar-API","commit_stats":null,"previous_names":["jabercrombia/pixar-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2FPixar-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2FPixar-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2FPixar-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2FPixar-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabercrombia","download_url":"https://codeload.github.com/jabercrombia/Pixar-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973809,"owners_count":20541025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","pixar"],"created_at":"2025-03-22T15:18:23.278Z","updated_at":"2026-05-09T00:43:32.013Z","avatar_url":"https://github.com/jabercrombia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixar Films API\n![homepage image](/static/page.png)\nA FastAPI-based REST API to manage Pixar films and their associated people (directors, actors, etc.).\n\n## Project Structure\n```\nPixar-API/\n│── main.py                 # Main entry point\n│── db.py                   # Database connection\n│── api/                    # API directory\n│   │── films.py            # Films route\n│   │── movies.py           # Movies route\n│── pixar-tables/           # Directory containing data files\n│   │── academy.sql         # Academy awards\n│   │── box-office.sql      # Box office data\n│   │── genres.sql          # Genre Data\n│   │── pixar-films.sql     # Pixar films\n│   │── pixar-people.sql    # People who were involved in the film\n│   │── public-response.sql # Movie scores\n│── requirements.txt        # Dependencies\n│── .env                    # Environment variables\n│── README.md               # Project documentation\n```\n\n## 🚀 Getting Started\n\n### 1️⃣ **Clone the Repository**\n```bash\ngit clone https://github.com/jabercrombia/Pixar-API.git\ncd Pixar-API\n```\n\n### 2️⃣ **Create a Virtual Environment (MacOS/Linux)**\n```bash\npython -m venv venv\nsource venv/bin/activate\n```\n\n#### **On Windows, use:**\n```bash\nvenv\\Scripts\\activate\n```\n\n### 3️⃣ **Install Dependencies**\n```bash\npip install -r requirements.txt\n```\n\n### 4️⃣ **Set Up Environment Variables**\nCreate a `.env` file and add your **PostgreSQL database credentials**:\n```env\nPG_HOST=your-db-host\nPG_PORT=5432\nPG_USER=your-db-user\nPG_PASSWORD=your-db-password\nPG_DATABASE=your-db-name\n```\n\n### 5️⃣ **Set Up Database Tables and Data**\nNavigate to the `pixar-tables` directory and use the provided SQL queries to set up the database tables:\n```bash\npsql -h $PG_HOST -U $PG_USER -d $PG_DATABASE -f pixar-tables/box_office.sql\n```\nFor text-based data, manually insert records using SQL commands inside `films.txt` and `people.txt`.\n\n### 6️⃣ **Run the API**\n```bash\nuvicorn main:app --reload\n```\n\n## 🌝 API Endpoints\n| Method | Endpoint               | Description |\n|--------|------------------------|-------------|\n| GET    | `/api/films/`          | Get all films |\n| GET    | `/api/films/{film_name}`   | Get all people from a specific film |\n\n#### **Available Films for API Search**\nExample api\n```bash\nhttps://pixar-api.vercel.app/api/films/Coco\n```\nUse `/api/films/` with one of the following movie names:\n- Toy Story\n- A Bug's Life\n- Toy Story 2\n- Monsters, Inc.\n- Finding Nemo\n- The Incredibles\n- Cars\n- Ratatouille\n- WALL-E\n- Up\n- Toy Story 3\n- Cars 2\n- Brave\n- Monsters University\n- Inside Out\n- The Good Dinosaur\n- Finding Dory\n- Cars 3\n- Coco\n- Incredibles 2\n- Toy Story 4\n- Onward\n- Soul\n- Luca\n- Turning Red\n- Lightyear\n- Elemental\n- Inside Out 2\n\n\n\n## 🛠 Tech Stack\n- **FastAPI** - Web framework\n- **PostgreSQL** - Database\n- **Uvicorn** - ASGI server\n- **Pandas** - Data processing\n\n## 📝 Additional Notes\n- Ensure that the PostgreSQL database is running and accessible.\n- The `pixar-tables` directory contains structured data that should be uploaded before using the API.\n- Use `psql` or a database management tool like **pgAdmin** to verify data insertion.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fpixar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabercrombia%2Fpixar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fpixar-api/lists"}