Skip to main content

Python OO interface to libcdio (CD Input and Control library)

Project description

# Introduction

pycdio is a Python interface to the libcdio, the [CD Input and Control library](http://www.gnu.org/software/libcdio)

You can get the source at the same place as libcdio: ftp://ftp.gnu.org:/pub/gnu/libcdio/

The pycdio and libcdio libraries encapsulate CD-ROM reading and control. Python programs wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM can use this library.

# Requirements

To build on Debian (e.g. Ubuntu):

apt-get install python-dev apt-get install libcdio-dev apt-get install libiso9660-dev apt-get install swig pkg-config

# Completeness

libcdio is rather large and yet may still grow a bit.

What is in pycdio is incomplete; over time it may grow to completion depending on various factors: e.g. interest, whether others help out.

Sections of libcdio that are currently missing are the (SCSI) MMC commands, and the cdparanoia library. Of the audio controls, I put in those things that didn’t require any thought. The ISO 9660 library is pretty complete, except file stat() information which is at present is pretty minimal.

That said, what’s in there is very usable It contains probably more access capabilities than what most media players that don’t use libcdio have.

The encapsulation by SWIG is done in two parts. The lower-level python interface is called pycdio and is generated by SWIG.

The more object-oriented module is cdio; it is a Python class that uses pycdio. Although pycdio is perfectly usable on its own, it is expected that cdio is what most people will use. As pycdio more closely models the C interface, it is conceivable (if unlikely) that diehard libcdio C users who are very familiar with that interface could prefer that.

It is probably possible to change the SWIG in such a way to combine these pieces. However there are the problems. First, I’m not that much of a SWIG expert. Second it looks as though the resulting SWIG code would be more complex. Third the separation makes translation very straight forward to understand and maintain: first get what’s in C into Python as a one-to-one translation. Then we implement some nice abstraction off of that. The abstraction can be modified without having to redo the underlying translation. (But the reverse is generally not true: usually changes to the C-to-python translation, pycdio, do result in small, but obvious and straightforward changes to the abstraction layer cdio.)

There is much to be done - you want to help out, please do so!

Standalone documentation is missing although many of the methods, classes and functions have some document strings. See also the programs in the example directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycdio-0.19.tar.gz (196.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pycdio-0.19-py3.2-linux-i686.egg (251.5 kB view details)

Uploaded Egg

pycdio-0.19-py2.7-linux-i686.egg (253.9 kB view details)

Uploaded Egg

File details

Details for the file pycdio-0.19.tar.gz.

File metadata

  • Download URL: pycdio-0.19.tar.gz
  • Upload date:
  • Size: 196.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycdio-0.19.tar.gz
Algorithm Hash digest
SHA256 9ecccf1f1311bf4cf23588b46e6f2a27bc97f9f5c9e2968d84680b561a076f81
MD5 a6b00666ce8d77ab80a4084a8ff1136b
BLAKE2b-256 b8f8a300e6879f5b3500cc5422dba3c7070f7e780966221bf5c108e15d2ff364

See more details on using hashes here.

File details

Details for the file pycdio-0.19-py3.2-linux-i686.egg.

File metadata

File hashes

Hashes for pycdio-0.19-py3.2-linux-i686.egg
Algorithm Hash digest
SHA256 c7f9a3df9c7bba39f3f048e10569dffbd073f3eecf06da389fae6d3995541213
MD5 d66635d430582ecace82fb6bd56d3fb5
BLAKE2b-256 e69420ba47a7223ae171424d898d4c26b14772439e181ee52fc385e7f364e903

See more details on using hashes here.

File details

Details for the file pycdio-0.19-py2.7-linux-i686.egg.

File metadata

File hashes

Hashes for pycdio-0.19-py2.7-linux-i686.egg
Algorithm Hash digest
SHA256 5acb2d79061167171aee4da44aee5c951cd444de514ad19bca2f5e1c7cbbdc04
MD5 f7daaee083f7a0791059a45fedb3d449
BLAKE2b-256 b05f64103b5d4aa23442f2ddcbf5b01fd4f58ecdeebaa276bf4ea8231835b826

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page