pyobjc-framework-iTunesLibrary 11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iTunesLibrary/__init__.py +41 -0
- iTunesLibrary/_metadata.py +142 -0
- pyobjc_framework_iTunesLibrary-11.0.dist-info/METADATA +58 -0
- pyobjc_framework_iTunesLibrary-11.0.dist-info/RECORD +7 -0
- pyobjc_framework_iTunesLibrary-11.0.dist-info/WHEEL +6 -0
- pyobjc_framework_iTunesLibrary-11.0.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_iTunesLibrary-11.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the iTunesLibrary framework.
|
|
3
|
+
|
|
4
|
+
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
+
documentation for details on how to use these functions and classes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _setup():
|
|
10
|
+
import sys
|
|
11
|
+
import os
|
|
12
|
+
|
|
13
|
+
import Foundation
|
|
14
|
+
import objc
|
|
15
|
+
from . import _metadata
|
|
16
|
+
|
|
17
|
+
frameworkPath = "/System/Library/Frameworks/iTunesLibrary.framework"
|
|
18
|
+
if not os.path.exists(frameworkPath):
|
|
19
|
+
# macOS 10.15 or earlier
|
|
20
|
+
frameworkPath = "/Library/Frameworks/iTunesLibrary.framework"
|
|
21
|
+
|
|
22
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
23
|
+
name="iTunesLibrary",
|
|
24
|
+
frameworkIdentifier="com.apple.iTunesLibrary",
|
|
25
|
+
frameworkPath=objc.pathForFramework(frameworkPath),
|
|
26
|
+
globals_dict=globals(),
|
|
27
|
+
inline_list=None,
|
|
28
|
+
parents=(Foundation,),
|
|
29
|
+
metadict=_metadata.__dict__,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
globals()["__dir__"] = dir_func
|
|
33
|
+
globals()["__getattr__"] = getattr_func
|
|
34
|
+
|
|
35
|
+
for cls, sel in (("ITLibrary", b"init"),):
|
|
36
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
37
|
+
|
|
38
|
+
del sys.modules["iTunesLibrary._metadata"]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
globals().pop("_setup")()
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Tue Jun 11 10:22:23 2024
|
|
4
|
+
#
|
|
5
|
+
# flake8: noqa
|
|
6
|
+
|
|
7
|
+
import objc, sys
|
|
8
|
+
from typing import NewType
|
|
9
|
+
|
|
10
|
+
if sys.maxsize > 2**32:
|
|
11
|
+
|
|
12
|
+
def sel32or64(a, b):
|
|
13
|
+
return b
|
|
14
|
+
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
def sel32or64(a, b):
|
|
18
|
+
return a
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if objc.arch == "arm64":
|
|
22
|
+
|
|
23
|
+
def selAorI(a, b):
|
|
24
|
+
return a
|
|
25
|
+
|
|
26
|
+
else:
|
|
27
|
+
|
|
28
|
+
def selAorI(a, b):
|
|
29
|
+
return b
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
misc = {}
|
|
33
|
+
constants = """$ITLibMediaEntityPropertyPersistentID$ITLibMediaItemPropertyAddedDate$ITLibMediaItemPropertyAlbumArtist$ITLibMediaItemPropertyAlbumDiscCount$ITLibMediaItemPropertyAlbumDiscNumber$ITLibMediaItemPropertyAlbumIsCompilation$ITLibMediaItemPropertyAlbumIsGapless$ITLibMediaItemPropertyAlbumRating$ITLibMediaItemPropertyAlbumRatingComputed$ITLibMediaItemPropertyAlbumTitle$ITLibMediaItemPropertyAlbumTrackCount$ITLibMediaItemPropertyArtistName$ITLibMediaItemPropertyArtwork$ITLibMediaItemPropertyBeatsPerMinute$ITLibMediaItemPropertyBitRate$ITLibMediaItemPropertyCategory$ITLibMediaItemPropertyComments$ITLibMediaItemPropertyComposer$ITLibMediaItemPropertyContentRating$ITLibMediaItemPropertyDescription$ITLibMediaItemPropertyFileSize$ITLibMediaItemPropertyFileType$ITLibMediaItemPropertyGenre$ITLibMediaItemPropertyGrouping$ITLibMediaItemPropertyHasArtwork$ITLibMediaItemPropertyIsDRMProtected$ITLibMediaItemPropertyIsPurchased$ITLibMediaItemPropertyIsUserDisabled$ITLibMediaItemPropertyIsVideo$ITLibMediaItemPropertyKind$ITLibMediaItemPropertyLastPlayDate$ITLibMediaItemPropertyLocation$ITLibMediaItemPropertyLocationType$ITLibMediaItemPropertyLyricsContentRating$ITLibMediaItemPropertyMediaKind$ITLibMediaItemPropertyModifiedDate$ITLibMediaItemPropertyMovementCount$ITLibMediaItemPropertyMovementName$ITLibMediaItemPropertyMovementNumber$ITLibMediaItemPropertyPlayCount$ITLibMediaItemPropertyPlayStatus$ITLibMediaItemPropertyRating$ITLibMediaItemPropertyRatingComputed$ITLibMediaItemPropertyReleaseDate$ITLibMediaItemPropertySampleRate$ITLibMediaItemPropertySize$ITLibMediaItemPropertySkipDate$ITLibMediaItemPropertySortAlbumArtist$ITLibMediaItemPropertySortAlbumTitle$ITLibMediaItemPropertySortArtistName$ITLibMediaItemPropertySortComposer$ITLibMediaItemPropertySortTitle$ITLibMediaItemPropertyStartTime$ITLibMediaItemPropertyStopTime$ITLibMediaItemPropertyTitle$ITLibMediaItemPropertyTotalTime$ITLibMediaItemPropertyTrackNumber$ITLibMediaItemPropertyUserSkipCount$ITLibMediaItemPropertyVideoEpisode$ITLibMediaItemPropertyVideoEpisodeOrder$ITLibMediaItemPropertyVideoHeight$ITLibMediaItemPropertyVideoIsHD$ITLibMediaItemPropertyVideoSeason$ITLibMediaItemPropertyVideoSeries$ITLibMediaItemPropertyVideoSortSeries$ITLibMediaItemPropertyVideoWidth$ITLibMediaItemPropertyVoiceOverLanguage$ITLibMediaItemPropertyVolumeAdjustment$ITLibMediaItemPropertyVolumeNormalizationEnergy$ITLibMediaItemPropertyWork$ITLibMediaItemPropertyYear$ITLibPlaylistPropertyAllItemsPlaylist$ITLibPlaylistPropertyDistinguisedKind$ITLibPlaylistPropertyItems$ITLibPlaylistPropertyKind$ITLibPlaylistPropertyMaster$ITLibPlaylistPropertyName$ITLibPlaylistPropertyParentPersistentID$ITLibPlaylistPropertyPrimary$ITLibPlaylistPropertyVisible$ITLibraryDidChangeNotification$"""
|
|
34
|
+
enums = """$ITLibArtworkFormatBMP@6$ITLibArtworkFormatBitmap@1$ITLibArtworkFormatGIF@4$ITLibArtworkFormatJPEG@2$ITLibArtworkFormatJPEG2000@3$ITLibArtworkFormatNone@0$ITLibArtworkFormatPICT@8$ITLibArtworkFormatPNG@5$ITLibArtworkFormatTIFF@7$ITLibDistinguishedPlaylistKind90sMusic@42$ITLibDistinguishedPlaylistKindApplications@51$ITLibDistinguishedPlaylistKindAudiobooks@4$ITLibDistinguishedPlaylistKindBooks@4$ITLibDistinguishedPlaylistKindClassicalMusic@48$ITLibDistinguishedPlaylistKindHomeVideos@50$ITLibDistinguishedPlaylistKindLibraryMusicVideos@49$ITLibDistinguishedPlaylistKindLovedSongs@52$ITLibDistinguishedPlaylistKindMovies@1$ITLibDistinguishedPlaylistKindMusic@3$ITLibDistinguishedPlaylistKindMusicShowsAndMovies@53$ITLibDistinguishedPlaylistKindMusicVideos@47$ITLibDistinguishedPlaylistKindMyTopRated@43$ITLibDistinguishedPlaylistKindNone@0$ITLibDistinguishedPlaylistKindPodcasts@7$ITLibDistinguishedPlaylistKindPurchases@16$ITLibDistinguishedPlaylistKindRecentlyAdded@46$ITLibDistinguishedPlaylistKindRecentlyPlayed@45$ITLibDistinguishedPlaylistKindRingtones@5$ITLibDistinguishedPlaylistKindTVShows@2$ITLibDistinguishedPlaylistKindTop25MostPlayed@44$ITLibDistinguishedPlaylistKindVoiceMemos@14$ITLibDistinguishedPlaylistKindiTunesU@26$ITLibExportFeatureNone@0$ITLibInitOptionLazyLoadData@1$ITLibInitOptionNone@0$ITLibMediaItemLocationTypeFile@1$ITLibMediaItemLocationTypeRemote@3$ITLibMediaItemLocationTypeURL@2$ITLibMediaItemLocationTypeUnknown@0$ITLibMediaItemLyricsContentRatingClean@2$ITLibMediaItemLyricsContentRatingExplicit@1$ITLibMediaItemLyricsContentRatingNone@0$ITLibMediaItemMediaKindAlertTone@21$ITLibMediaItemMediaKindAudiobook@5$ITLibMediaItemMediaKindBook@19$ITLibMediaItemMediaKindDigitalBooklet@15$ITLibMediaItemMediaKindHomeVideo@12$ITLibMediaItemMediaKindIOSApplication@16$ITLibMediaItemMediaKindInteractiveBooklet@9$ITLibMediaItemMediaKindMovie@3$ITLibMediaItemMediaKindMusicVideo@7$ITLibMediaItemMediaKindPDFBook@20$ITLibMediaItemMediaKindPDFBooklet@6$ITLibMediaItemMediaKindPodcast@4$ITLibMediaItemMediaKindRingtone@14$ITLibMediaItemMediaKindSong@2$ITLibMediaItemMediaKindTVShow@8$ITLibMediaItemMediaKindUnknown@1$ITLibMediaItemMediaKindVoiceMemo@17$ITLibMediaItemMediaKindiTunesU@18$ITLibMediaItemPlayStatusNone@0$ITLibMediaItemPlayStatusPartiallyPlayed@1$ITLibMediaItemPlayStatusUnplayed@2$ITLibPlaylistKindFolder@3$ITLibPlaylistKindGenius@2$ITLibPlaylistKindGeniusMix@4$ITLibPlaylistKindRegular@0$ITLibPlaylistKindSmart@1$"""
|
|
35
|
+
misc.update(
|
|
36
|
+
{
|
|
37
|
+
"ITLibPlaylistKind": NewType("ITLibPlaylistKind", int),
|
|
38
|
+
"ITLibInitOptions": NewType("ITLibInitOptions", int),
|
|
39
|
+
"ITLibMediaItemLyricsContentRating": NewType(
|
|
40
|
+
"ITLibMediaItemLyricsContentRating", int
|
|
41
|
+
),
|
|
42
|
+
"ITLibExportFeature": NewType("ITLibExportFeature", int),
|
|
43
|
+
"ITLibMediaItemPlayStatus": NewType("ITLibMediaItemPlayStatus", int),
|
|
44
|
+
"ITLibMediaItemLocationType": NewType("ITLibMediaItemLocationType", int),
|
|
45
|
+
"ITLibDistinguishedPlaylistKind": NewType(
|
|
46
|
+
"ITLibDistinguishedPlaylistKind", int
|
|
47
|
+
),
|
|
48
|
+
"ITLibMediaItemMediaKind": NewType("ITLibMediaItemMediaKind", int),
|
|
49
|
+
"ITLibArtworkFormat": NewType("ITLibArtworkFormat", int),
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
misc.update({})
|
|
53
|
+
misc.update({})
|
|
54
|
+
aliases = {
|
|
55
|
+
"ITLibDistinguishedPlaylistKindBooks": "ITLibDistinguishedPlaylistKindAudiobooks"
|
|
56
|
+
}
|
|
57
|
+
r = objc.registerMetaDataForSelector
|
|
58
|
+
objc._updatingMetadata(True)
|
|
59
|
+
try:
|
|
60
|
+
r(b"ITLibAlbum", b"isCompilation", {"retval": {"type": "Z"}})
|
|
61
|
+
r(b"ITLibAlbum", b"isGapless", {"retval": {"type": "Z"}})
|
|
62
|
+
r(b"ITLibAlbum", b"isRatingComputed", {"retval": {"type": "Z"}})
|
|
63
|
+
r(
|
|
64
|
+
b"ITLibMediaEntity",
|
|
65
|
+
b"enumerateValuesExceptForProperties:usingBlock:",
|
|
66
|
+
{
|
|
67
|
+
"arguments": {
|
|
68
|
+
3: {
|
|
69
|
+
"callable": {
|
|
70
|
+
"retval": {"type": b"v"},
|
|
71
|
+
"arguments": {
|
|
72
|
+
0: {"type": b"^v"},
|
|
73
|
+
1: {"type": b"@"},
|
|
74
|
+
2: {"type": b"@"},
|
|
75
|
+
3: {"type": b"o^Z"},
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
)
|
|
82
|
+
r(
|
|
83
|
+
b"ITLibMediaEntity",
|
|
84
|
+
b"enumerateValuesForProperties:usingBlock:",
|
|
85
|
+
{
|
|
86
|
+
"arguments": {
|
|
87
|
+
3: {
|
|
88
|
+
"callable": {
|
|
89
|
+
"retval": {"type": b"v"},
|
|
90
|
+
"arguments": {
|
|
91
|
+
0: {"type": b"^v"},
|
|
92
|
+
1: {"type": b"@"},
|
|
93
|
+
2: {"type": b"@"},
|
|
94
|
+
3: {"type": b"o^Z"},
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
)
|
|
101
|
+
r(b"ITLibMediaItem", b"hasArtworkAvailable", {"retval": {"type": "Z"}})
|
|
102
|
+
r(b"ITLibMediaItem", b"isCloud", {"retval": {"type": "Z"}})
|
|
103
|
+
r(b"ITLibMediaItem", b"isDRMProtected", {"retval": {"type": "Z"}})
|
|
104
|
+
r(b"ITLibMediaItem", b"isPurchased", {"retval": {"type": "Z"}})
|
|
105
|
+
r(b"ITLibMediaItem", b"isRatingComputed", {"retval": {"type": "Z"}})
|
|
106
|
+
r(b"ITLibMediaItem", b"isUserDisabled", {"retval": {"type": "Z"}})
|
|
107
|
+
r(b"ITLibMediaItem", b"isVideo", {"retval": {"type": "Z"}})
|
|
108
|
+
r(b"ITLibMediaItemVideoInfo", b"isHD", {"retval": {"type": "Z"}})
|
|
109
|
+
r(b"ITLibPlaylist", b"isAllItemsPlaylist", {"retval": {"type": "Z"}})
|
|
110
|
+
r(b"ITLibPlaylist", b"isMaster", {"retval": {"type": "Z"}})
|
|
111
|
+
r(b"ITLibPlaylist", b"isPrimary", {"retval": {"type": b"Z"}})
|
|
112
|
+
r(b"ITLibPlaylist", b"isVisible", {"retval": {"type": "Z"}})
|
|
113
|
+
r(
|
|
114
|
+
b"ITLibrary",
|
|
115
|
+
b"initWithAPIVersion:error:",
|
|
116
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
117
|
+
)
|
|
118
|
+
r(
|
|
119
|
+
b"ITLibrary",
|
|
120
|
+
b"initWithAPIVersion:options:error:",
|
|
121
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
122
|
+
)
|
|
123
|
+
r(
|
|
124
|
+
b"ITLibrary",
|
|
125
|
+
b"libraryWithAPIVersion:error:",
|
|
126
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
127
|
+
)
|
|
128
|
+
r(
|
|
129
|
+
b"ITLibrary",
|
|
130
|
+
b"libraryWithAPIVersion:options:error:",
|
|
131
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
132
|
+
)
|
|
133
|
+
r(b"ITLibrary", b"reloadData", {"retval": {"type": "Z"}})
|
|
134
|
+
r(b"ITLibrary", b"shouldShowContentRating", {"retval": {"type": "Z"}})
|
|
135
|
+
finally:
|
|
136
|
+
objc._updatingMetadata(False)
|
|
137
|
+
|
|
138
|
+
objc.registerNewKeywordsFromSelector("ITLibrary", b"initWithAPIVersion:error:")
|
|
139
|
+
objc.registerNewKeywordsFromSelector("ITLibrary", b"initWithAPIVersion:options:error:")
|
|
140
|
+
expressions = {}
|
|
141
|
+
|
|
142
|
+
# END OF FILE
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyobjc-framework-iTunesLibrary
|
|
3
|
+
Version: 11.0
|
|
4
|
+
Summary: Wrappers for the framework iTunesLibrary on macOS
|
|
5
|
+
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
|
+
Author: Ronald Oussoren
|
|
7
|
+
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
+
License: MIT License
|
|
9
|
+
Keywords: PyObjC,iTunesLibrary
|
|
10
|
+
Platform: MacOS X (>=10.6)
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Objective C
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
34
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
35
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
36
|
+
Requires-Dist: pyobjc-core >=11.0
|
|
37
|
+
Requires-Dist: pyobjc-framework-Cocoa >=11.0
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Wrappers for the "iTunesLibrary" framework on macOS.
|
|
41
|
+
|
|
42
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
43
|
+
for information on how to use this framework and PyObjC's documentation
|
|
44
|
+
for general tips and tricks regarding the translation between Python
|
|
45
|
+
and (Objective-)C frameworks
|
|
46
|
+
|
|
47
|
+
Note that using the library requires a signed application bundle.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Project links
|
|
51
|
+
-------------
|
|
52
|
+
|
|
53
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
54
|
+
|
|
55
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
56
|
+
|
|
57
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
58
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
iTunesLibrary/__init__.py,sha256=1SahcMmx_I_-HEcWTjcvoaKiVZFORMZqnXOfm09zdN8,1129
|
|
2
|
+
iTunesLibrary/_metadata.py,sha256=msPb1NLeSRWbiFHzqjrvMVpXEenYR0vjfgYka9nHzug,9624
|
|
3
|
+
pyobjc_framework_iTunesLibrary-11.0.dist-info/METADATA,sha256=RXy9fnW-7SOgy2k5ciY3DJUHKH9tLbFXxRf8WHGe7mc,2321
|
|
4
|
+
pyobjc_framework_iTunesLibrary-11.0.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
5
|
+
pyobjc_framework_iTunesLibrary-11.0.dist-info/pyobjc-build-info.txt,sha256=R5YEsJoyZ8GByMQk4k_4WWEg6V4RNO715NMQwx6YaNI,85
|
|
6
|
+
pyobjc_framework_iTunesLibrary-11.0.dist-info/top_level.txt,sha256=FGkIMMsbHW7FGymvZfN_ML_gbVRh0HLezKN4mNMTH8w,14
|
|
7
|
+
pyobjc_framework_iTunesLibrary-11.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
iTunesLibrary
|