Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Date:
2006-11-21 11:23:54 -0500 (Tue, 21 Nov 2006)
Version:
4737
Author:

Nathan R. Yergler <nathan@creativecommons.org>

Organization:
Creative Commons

cctagutils is a package which provides a pluggable facility for retrieving and verifying license metadata embedded and linked to content files. Metadata may be embedded directly in the file, or provided in a web page linked to the file (in this case the URL is actually embedded in the file).

cctagutils uses handlers for different file types, and ships with an ID3 handler for MP3 files and an XMP handler for many other file types. The XMP handler is used as a default fall-back for all files. Information about embedding metadata is available in the CC wiki; see Resources below.

Installation

cctagutils and its dependencies may be installed using easy_install (recommended)

$ easy_install cctagutils

or by using the standard distutils setup.py:

$ python setup.py install

If installing using setup.py, ccrdf will also need to be installed along with its dependencies. Using easy_install will automatically download and install these dependencies.

Usage

cctagutils is primarily accessed through the metadata module. For example:

>>> import cctagutils
>>> file_info = cctagutils.metadata.open('test/test.mp3')

The metadata module will use entry points to look up the best fit handler for extracting metadata from the file.

Extending cctagutils

cctagutils uses entry points for providing metadata handlers for new file types. A metadata handler should subclass cctagutils.handler.base.BaseMetadata. The package for the handler should declare that it implements the cctagutils.handler entry point.

The cctagutils package declares itself as the entry points for MP3 and PDF files using the ID3 and XMP implementations respectively.

Limitations and Known Issues

  • This is an alpha release of 0.5, and the API is still subject to change.

  • Handler lookup is currently based on file extensions, and should be improved to use something like the MIME type.

Resources

Change History

0.5 (TBD)

  • Reorganized source tree to work better with PyPI and setuptools

  • Converted to using entry points for file-type handling extensibility

Download

Release files for cctagutils 0.5a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cctagutils 0.5a2
File Size Uploaded
cctagutils-0.5a2.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cctagutils 0.5a2
File Interpreter ABI Platform
cctagutils-0.5a2-py2.4.egg Legacy Egg format - - Details

Total release size: 62.6 kB

Release files / cctagutils-0.5a2.tar.gz

Download URL cctagutils-0.5a2.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d5f2059224f093c2aa70ba6e4c48b954959049988cdd190a7aa6011dc3960ad7
BLAKE2b-256 checksum
How to use checksums
b4515aee153e0a80d2a9788f2a6e49517fed1f75e22c97796ddcff14613da052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cctagutils-0.5a2-py2.4.egg

Download URL cctagutils-0.5a2-py2.4.egg
Size 46.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
6fdf5c5ec2ff400578996c9c512eea8feae198d739bc029f2b48c66ec8f39073
BLAKE2b-256 checksum
How to use checksums
a87cfecdc997b0f113e7bfc4b4554830a5328e8e015931286c63e6779eaa92fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page