Welcome to friendlypins’ documentation!¶
friendlypins¶
friendlypins package¶
Subpackages¶
friendlypins.scripts package¶
Submodules¶
Command line tool for converting webp images into jpegs
WARNING This is a prototype, that needs to be more fully tested before it should be considered production ready.
-
friendlypins.scripts.webp2jpeg.
configure_logging
(verbosity)[source]¶ Configures the global logger for the application
Parameters: verbosity (int) – numeric value for the verbosity level for the log the larger the number, the more verbose the output
-
friendlypins.scripts.webp2jpeg.
get_args
(args)[source]¶ Helper method used to parse command line parameters
Parameters: args (str) – optional command line arguements to be parsed if not provided, args will be parsed from the console Returns: parsed arguments Return type: argparse.Namespace
-
friendlypins.scripts.webp2jpeg.
main
(args=None)[source]¶ Entry point function
Params str args: sample command line parameters to use when launching the tool used for debug and testing purposes only When not provided, arguments will be parsed from the command line Returns: error code produced by completing the given operation Return type: int
Module contents¶
Command line interfaces for interacting with project APIs
Submodules¶
friendlypins.api module¶
friendlypins.board module¶
Primitives for interacting with Pinterest boards
-
class
friendlypins.board.
Board
(data, rest_io)[source]¶ Bases:
object
Abstraction around a Pinterest board
Parameters: - data (dict) – Raw Pinterest API data describing the board
- rest_io (
friendlypins.utils.rest_io.RestIO
) – reference to the Pinterest REST API
-
pins
¶ Generator for iterating over the pins linked to this board
Return type: Generator of friendlypins.pin.Pin
friendlypins.headers module¶
friendlypins.pin module¶
Primitives for operating on Pinterest pins
-
class
friendlypins.pin.
Pin
(data, rest_io)[source]¶ Bases:
object
Abstraction around a Pinterest pin
Parameters: - data (dict) – Raw Pinterest API data describing a pin
- rest_io (
friendlypins.utils.rest_io.RestIO
) – reference to the Pinterest REST API
-
media_type
¶ Gets descriptor for the type of data stored in the pin’s link
Returns None if the type of data associated with the Pin is unknown
Return type: str
-
thumbnail
¶ Gets the thumbnail image associated with this pin
Return type: friendlypins.thumbnail.Thumbnail
friendlypins.thumbnail module¶
Primitives for operating on Pinterest pins
friendlypins.user module¶
Interfaces for interacting with Pinterest users
-
class
friendlypins.user.
User
(data, rest_io)[source]¶ Bases:
object
Abstraction around a Pinterest user and their associated data
Parameters: - data (dict) – JSON data parsed from the API
- rest_io (
friendlypins.utils.rest_io.RestIO
) – reference to the Pinterest REST API
-
boards
¶ Generator for iterating over the boards owned by this user
Return type: Generator of friendlypins.board.Board
friendlypins.version module¶
Module contents¶
Package definition for the project
Overview¶
User friendly Python wrapper for the Pinterest developer APIs. This project is currently in very early development, with only a bare minimum of functionality, intended for some of my personal projects. I’m sharing it here in case someone finds the implementation helpful for their projects. Also, if anyone would like to contribute to this pet project feel free to fork it and send me pull requests for any changes you may like.
Comments, suggestions and bugs may be reported to the project maintainer