Skip to content

m-agustin/Makeuppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Makeuppy

A simple asynchronous wrapper for MakeUp api

Base: https://makeup-api.herokuapp.com/api/v1/products.json
Session: aiohttp.ClientSession

The parameters according to the API:

Parameter Data Type Description
product_type string The type of makeup being searched for (ie. lipstick, eyeliner). See list of product types below. Will return a list of all products of this type
product_category string Sub-category for each makeup-type. (ie. lip gloss is a category of lipstick). See product types below. If a category exists it will be under 'By Category'. Will return a list of all products of this category
product_tags string list separated by commas
brand string Brand of the product. Will return all products for each brand

Usage example:

    import asyncio
    from aio_makeup import MakeUp

    async def main():
        async with MakeUp() as make_up:
            blush_powder = await make_up._get(endpoint='blush', extension='powder')
            vegan = await make_up.tags(product_tags='vegan', product_type='bronzer', product_category='powder')
            
    asyncio.run(main())

About

A simple asynchronous wrapper for MakeUp api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages