File: PKG-INFO

package info (click to toggle)
pycdio 2.1.1-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,912 kB
  • sloc: python: 3,486; makefile: 48
file content (196 lines) | stat: -rw-r--r-- 8,545 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
Metadata-Version: 1.1
Name: pycdio
Version: 2.1.1
Summary: Python OO interface to libcdio (CD Input and Control library)
Home-page: http://www.gnu.org/software/libcdio
Author: Rocky Bernstein
Author-email: rocky@gnu.org
License: GPL
Description: |Package Status 1| |Package Status 2| |Pypi Installs|
        
        
        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.
        
        
        Sample Usage
        ============
        
        Getting CD-ROM Drive Information
        --------------------------------
        
        .. code-block:: python
        
            import sys
            import cdio, pycdio
        
            try:
                d = cdio.Device(driver_id=pycdio.DRIVER_UNKNOWN)
                drive_name = d.get_device()
            except IOError:
                print("Problem finding a CD-ROM")
                sys.exit(1)
        
            ok, vendor, model, release = d.get_hwinfo()
            print("drive: %s, vendor: %s, model: %s, release: %s" \
              % (drive_name, vendor, model, release))
        
            # Show CD-Text for an audio CD
            cdt = d.get_cdtext()
            i_tracks = d.get_num_tracks()
            i_first_track = pycdio.get_first_track_num(d.cd)
        
            for t in range(i_first_track, i_tracks + i_first_track):
                for i in range(pycdio.MIN_CDTEXT_FIELD, pycdio.MAX_CDTEXT_FIELDS):
                    value = cdt.get(i, t)
                    # value can be empty but exist, compared to NULL values
                    if value is not None:
                        print("\t%s: %s" % (pycdio.cdtext_field2str(i), value))
                        pass
                    pass
                pass
            return
            d.close()
        
        Other sample code can be found in the *example* directory of the distribution.
        
        Requirements
        =============
        
        * A C compiler so the extension can be compiled when it is installed.
        * libcdio (http://www.gnu.org/software/libcdio) and it's header files installed.
        * SWIG http://www.swig.org
        * pkg-config http://pkg-config.freedesktop.org
        
        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
            $ pip install -e .
            $ make check
        
        SWIG Problems
        ===============
        
        I've tried to make this work back to Python 2.3 or so.
        
        I've noticed however problems in various distutils.
        
        If you see a message like this when running `make check`:
        
        ::
        
             File "/home/rocky/.pyenv/versions/3.5.6/lib/python3.5/distutils/unixccompiler.py", line 207, in library_dir_option
              return "-L" + dir
             TypeError: Can't convert 'bytes' object to str implicitly
        
        
        Copy in a recent distutils `unixccompiler.py` like this:
        
        ::
        
           $ cp admin-tools/unixccompiler.py /home/rocky/.pyenv/versions/3.5.6/lib/python3.5/distutils/unixccompiler.py
        
        The distutils distribution says that it tries to be compatible with all Python versions from 2.3. The
        `unixccompiler.py` in `admin_tools` is from the Python 3.7.4 distribution.
        
        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.
        
        pycdio for enterprise
        =====================
        
        Available as part of the Tidelift Subscription.
        
        The maintainers of pycdio and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pycdio?utm_source=pypi-pycdio&utm_medium=referral&utm_campaign=readme>`_
        
        Security contact information
        ============================
        
        To report a security vulnerability, please use the `Tidelift security contact <https://tidelift.com/security>`_ and Tidelift will coordinate the fix and disclosure.
        
        .. |Package Status 1| image:: https://repology.org/badge/tiny-repos/pycdio.svg
        		 :target: https://repology.org/project/pycdio/versions
        .. |Package Status 2| image:: https://repology.org/badge/tiny-repos/python:pycdio.svg
        		 :target: https://repology.org/project/pycdio/versions
        .. |Pypi Installs| image:: https://pepy.tech/badge/pycdio
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.4
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7