eyed3 Package

eyed3 Package

Top-level module.

eyed3.__init__.LOCAL_ENCODING = 'UTF-8'

The local encoding, used when parsing command line options, console output, etc. The default is always latin1 if it cannot be determined, it is NOT the value shown.

eyed3.__init__.LOCAL_FS_ENCODING = 'UTF-8'

The local file system encoding, the default is latin1 if it cannot be determined.

exception eyed3.__init__.Exception(*args)[source]

Bases: exceptions.Exception

Base exception type for all eyed3 exceptions.

eyed3.__init__.require(version_spec)[source]

Check for a specific version of eyeD3. Returns None when the loaded version of eyed3 is <= version_spec and raises a eyed3.Exception otherwise. version_spec may be a string or int tuple. In either case at least 2 version values must be specified. For example, “0.7”, (0,7,1), etc.

API compatibility is currently based on major and minor version values, therefore neither version 0.6 or 0.8 is compatible for version 0.7.

core Module

Basic core types and utilities.

eyed3.core.AUDIO_NONE = 0

Audio type selecter for no audio.

eyed3.core.AUDIO_MP3 = 1

Audio type selecter for mpeg (mp3) audio.

eyed3.core.load(path, tag_version=None)[source]

Loads the file identified by path and returns a concrete type of eyed3.core.AudioFile. If path is not a file an IOError is raised. None is returned when the file type (i.e. mime-type) is not recognized. The following AudioFile types are supported:

If tag_version is not None (the default) only a specific version of metadata is loaded. This value must be a version constant specific to the eventual format of the metadata.

class eyed3.core.AudioInfo[source]

Bases: object

A base container for common audio details.

time_secs = 0

The number of seconds of audio data (i.e., the playtime)

size_bytes = 0

The number of bytes of audio data.

class eyed3.core.Tag[source]

Bases: object

An abstract interface for audio tag (meta) data (e.g. artist, title, etc.)

artist[source]
album[source]
title[source]
track_num[source]

Track number property. Must return a 2-tuple of (track-number, total-number-of-tracks). Either tuple value may be None.

class eyed3.core.AudioFile(path)[source]

Bases: object

Abstract base class for audio file types (AudioInfo + Tag)

Construct with a path and invoke _read. All other members are set to None.

rename(name, fsencoding='UTF-8')[source]

Rename the file to name. The encoding used for the file name is eyed3.LOCAL_FS_ENCODING unless overridden by fsencoding. Note, if the target file already exists, or the full path contains non-existent directories the operation will fail with eyed3.Exception.

info[source]

Returns a concrete implemenation of eyed3.core.AudioInfo

tag[source]

Returns a concrete implemenation of eyed3.core.Tag

path[source]

The absolute path of this file.

class eyed3.core.Date(year, month=None, day=None, hour=None, minute=None, second=None)[source]

Bases: object

A class for representing a date and time (optional). This class differs from datetime.datetime in that the default values for month, day, hour, minute, and second is None and not ‘January 1, 00:00:00’. This allows for an object that is simply 1987, and not January 1 12AM, for example.

TIME_STAMP_FORMATS = ['%Y', '%Y-%m', '%Y-%m-%d', '%Y-%m-%dT%H', '%Y-%m-%dT%H:%M', '%Y-%m-%dT%H:%M:%S', '%Y-%m-%dT%HZ', '%Y-%m-%dT%H:%MZ', '%Y-%m-%dT%H:%M:%SZ', '%Y-%m-%d %H:%M:%S', '%Y-00-00']

Valid time stamp formats per ISO 8601 and used by c strptime.

year[source]
month[source]
day[source]
hour[source]
minute[source]
second[source]
static parse(s)[source]
eyed3.core.parseError(ex)[source]

info Module

main Module

eyed3.main.main(args, config)[source]
eyed3.main.profileMain(args, config)[source]

This is the main function for profiling http://code.google.com/appengine/kb/commontasks.html#profiling

eyed3.main.parseCommandLine(cmd_line_args=None)[source]

Table Of Contents

Previous topic

eyed3

Next topic

id3 Package

This Page