Process

Process is where the real magic begins!

import os
import metdley as met

met.auth(os.getenv("METDLEY_API_KEY"))

met.process.csv("many_upcs.csv")

In this example the file many_upcs.csv contains a single column containing multiple UPCs, what is returned is a full sheet containing all the metadata for each track linked to the included UPCs.

By default, the file will be placed directly next to the original with metdley_ appended to the filename. If you wish to change this behavior you can optionally include a file path as the second input.

met.process.csv("many_upcs.csv", "./processed")

Process is not limited to UPCs, it can take in:

  • Artist ID
  • UPC
  • ISRC
  • Album ID
  • Artist, Track Title
  • Artist, Album Title

Process currently only supports CSV in and CSV out.