Refactor Pexel Downloader: Split functionality into client, config, a…#9
Merged
Gabriellgpc merged 5 commits intomainfrom Mar 14, 2026
Merged
Refactor Pexel Downloader: Split functionality into client, config, a…#9Gabriellgpc merged 5 commits intomainfrom
Gabriellgpc merged 5 commits intomainfrom
Conversation
…nd constants modules - Created `client.py` for PexelDownloader class handling image and video downloads. - Introduced `config.py` for managing configuration settings and API key retrieval. - Added `constants.py` for defining base URL and enums for image and video sizes. - Removed old `downloader.py` and `pexel_downloader.py` files to streamline the codebase. - Updated project structure with a new `pyproject.toml` for dependency management. - Implemented tests for the new structure, including CLI and downloader functionality. - Removed outdated `requirements.txt` and `setup.py` in favor of the new project configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…nd constants modules
client.pyfor PexelDownloader class handling image and video downloads.config.pyfor managing configuration settings and API key retrieval.constants.pyfor defining base URL and enums for image and video sizes.downloader.pyandpexel_downloader.pyfiles to streamline the codebase.pyproject.tomlfor dependency management.requirements.txtandsetup.pyin favor of the new project configuration.