Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 902 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 902 Bytes

Dataskakare

Python package with not so common data wrangling functions and API wrappers.

Dataskakare currently contains the following:

  • A cache enabled Google Vision wrapper.
  • A set of generators for the Europeana Search API.
  • A set of string transformations related to museum collections.
  • A cache enabled Google Translate wrapper.

Installing

pip install dataskakare

Usage Examples

from dataskakare import Europeana
from dataskakare import GoogleVision
from dataskalare.data_transformation import *

search = Europeana('europeana api key')

for item in search.provider_subject_generator('Stiftelsen Nordiska museet', 'Dräkt : Byxor'):
    print(item)

vision = GoogleVision('path to google service account file', cache=False) # true by default

vision.get_colors('url to image')
vision.get_labels('url to image')
vision.is_black_and_white('url to image')