Module pyreddit.services

Services are used to retrieve media contents from external sources.

Summary

This module is comprised of a main entrypoint (ServicesWrapper) which is a facade for the services logic, a base abstract class for all services (Service), which determines the common logic of all services, and a class for each service provider, which implements in practice the steps to retrieve the media information.

A Generic service class is also present, which will be used if no handler for a specific service is found.

Sub-modules

pyreddit.services.generic_service

Service for when a suitable specific service is not found.

pyreddit.services.gfycat_service

Service for Gfycat GIFs.

pyreddit.services.imgur_service

Service for Imgur images and videos.

pyreddit.services.service

Abstract Base static Class for every service.

pyreddit.services.services_wrapper

Entrypoint of the whole services pattern.

pyreddit.services.vreddit_service

Service for v.redd.it GIFs.

pyreddit.services.youtube_service

Service for Youtube URLs.