pyTagger.operations package

Submodules

pyTagger.operations.ask module

pyTagger.operations.ask.askMultipleChoice(i, title, choices, clear=True)[source]
pyTagger.operations.ask.askOrEnterMultipleChoice(i, title, choices, clear=True)[source]
pyTagger.operations.ask.editSet(i, title, items, clear=True)[source]
pyTagger.operations.ask.get_input()[source]
pyTagger.operations.ask.wrapped_out(i, v)[source]

pyTagger.operations.conform module

class pyTagger.operations.conform.LibraryStandard[source]

Bases: object

assignID(tags)[source]
clearComments(tags)[source]
clearMedia(tags)[source]
clearRating(tags)[source]
digitalMedia(tags)[source]
extractArtist(tags)[source]
processFile(fullPath)[source]
removeAnnotations(tags)[source]
timestamp(tags)[source]

pyTagger.operations.find_duplicates module

pyTagger.operations.find_duplicates.findClones(client)[source]
pyTagger.operations.find_duplicates.findIsonomTracks(client, track, minScore)[source]
pyTagger.operations.find_duplicates.findIsonoms(client, snapshot, minScore)[source]

pyTagger.operations.from_csv module

class pyTagger.operations.from_csv.Context[source]

Bases: object

parse(inFile, excelFormat=True)[source]
push(c)[source]
separator
class pyTagger.operations.from_csv.DoubleQuoteState[source]

Bases: pyTagger.operations.from_csv.State

onCharacter(context, c)[source]
run(context, c)[source]
class pyTagger.operations.from_csv.EndOfFieldState[source]

Bases: pyTagger.operations.from_csv.State

run(context, c)[source]
class pyTagger.operations.from_csv.EscapingDoubleQuoteState[source]

Bases: pyTagger.operations.from_csv.State

onCharacter(context, c)[source]
run(context, c)[source]
class pyTagger.operations.from_csv.InitialState[source]

Bases: pyTagger.operations.from_csv.State

class pyTagger.operations.from_csv.NewLineState[source]

Bases: pyTagger.operations.from_csv.State

isEndOfRecord()[source]
onCharacter(context, c)[source]
run(context, c)[source]
class pyTagger.operations.from_csv.RawState[source]

Bases: pyTagger.operations.from_csv.State

run(context, c)[source]
class pyTagger.operations.from_csv.State[source]

Bases: object

DoubleQuote = <pyTagger.operations.from_csv.DoubleQuoteState object>
EndOfField = <pyTagger.operations.from_csv.EndOfFieldState object>
EscapingDoubleQuote = <pyTagger.operations.from_csv.EscapingDoubleQuoteState object>
Initial = <pyTagger.operations.from_csv.InitialState object>
NewLine = <pyTagger.operations.from_csv.NewLineState object>
Raw = <pyTagger.operations.from_csv.RawState object>
isEndOfRecord
onCharacter(context, c)[source]
run(context, c)[source]
pyTagger.operations.from_csv.convert(inFileName, outFileName, outputColumns=None, excelFormat=True, compact=True)[source]

pyTagger.operations.hash module

pyTagger.operations.hash.hashBuffer(b)[source]
pyTagger.operations.hash.hashFile(fileName, offset=0)[source]

pyTagger.operations.interview module

class pyTagger.operations.interview.Interview(rows)[source]

Bases: object

browseForCurrent()[source]
chooseCurrent(i, newStatus=u’ready’)[source]
chooseCurrentAsManual()[source]
conduct()[source]
currentToOutput()[source]
discard()[source]
dropCurrent()[source]
inputToOutput(newStatus=None)[source]
isComplete()[source]
loadCurrent()[source]
quit()[source]
saveState(fileName)[source]

pyTagger.operations.name module

pyTagger.operations.name.buildPath(tags, ext=u’mp3’)[source]
pyTagger.operations.name.imageFileName(tags, mime_type)[source]

pyTagger.operations.on_directory module

pyTagger.operations.on_directory.buildHashTable(path)[source]
pyTagger.operations.on_directory.buildSnapshot(path, outFileName, id3Reader, compact=False, walkFilter=None)[source]
pyTagger.operations.on_directory.deleteEmptyDirectories(path)[source]
pyTagger.operations.on_directory.deleteFiles(path)[source]
pyTagger.operations.on_directory.extractImages(path, outputDir, id3Proxy)[source]
pyTagger.operations.on_directory.needsMove(current, proposed)[source]
pyTagger.operations.on_directory.prepareForLibrary(path)[source]
pyTagger.operations.on_directory.renameFiles(path, destDir, reader)[source]
pyTagger.operations.on_directory.replaceFiles(fileOfFilePairs)[source]
pyTagger.operations.on_directory.walk(path, filterFn=None)[source]
pyTagger.operations.on_directory.walkAll(path)[source]

pyTagger.operations.on_mp3 module

pyTagger.operations.on_mp3.extractImages(id3Proxy, hashTable, outputDir, fileName)[source]
pyTagger.operations.on_mp3.updateFromSnapshot(id3Proxy, snapshot, upgrade=False)[source]
pyTagger.operations.on_mp3.updateOne(id3Proxy, fileName, updates, upgrade=False)[source]

pyTagger.operations.to_csv module

pyTagger.operations.to_csv.flattenOne(row)[source]
pyTagger.operations.to_csv.flattenSnapshot(snapshot)[source]
pyTagger.operations.to_csv.listFlattenedColumns(snapshot)[source]
pyTagger.operations.to_csv.writeCsv(snapshot, outFileName, excelFormat=True)[source]

pyTagger.operations.two_tags module

pyTagger.operations.two_tags.difference(a, b)[source]

Compare two file snapshots and return the difference a should be considered the source, like the JSON snapshot. b should be considered the destination, like the file

pyTagger.operations.two_tags.union(newer, older)[source]

Create a union of two file snapshots

When both snapshots have the same key, the value in newer will be chosen

Module contents