pyobjc-framework-Photos 10.2__tar.gz → 11.0__tar.gz
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.
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/Photos/__init__.py +14 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/Photos/_metadata.py +52 -20
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/pyobjc_framework_Photos.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/pyobjc_framework_Photos.egg-info/SOURCES.txt +5 -8
- pyobjc_framework_photos-11.0/Lib/pyobjc_framework_Photos.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_photos-11.0/Lib/pyobjc_framework_Photos.egg-info/requires.txt +2 -0
- pyobjc_framework_photos-11.0/Modules/_Photos.m +66 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_photostypes.py +2 -0
- pyobjc-framework-Photos-10.2/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_photos-11.0/metadata/raw/arm64-14.5.fwinfo +139 -6
- pyobjc_framework_photos-11.0/metadata/raw/arm64-15.0.fwinfo +7282 -0
- pyobjc-framework-Photos-10.2/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_photos-11.0/metadata/raw/x86_64-14.5.fwinfo +139 -6
- pyobjc_framework_photos-11.0/metadata/raw/x86_64-15.0.fwinfo +7282 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/setup.py +2 -3
- pyobjc-framework-Photos-10.2/Lib/pyobjc_framework_Photos.egg-info/requires.txt +0 -2
- pyobjc-framework-Photos-10.2/Modules/_Photos.m +0 -35
- pyobjc-framework-Photos-10.2/metadata/raw/arm64-12.0.fwinfo +0 -6566
- pyobjc-framework-Photos-10.2/metadata/raw/arm64-12.3.fwinfo +0 -6641
- pyobjc-framework-Photos-10.2/metadata/raw/arm64-13.0.fwinfo +0 -7061
- pyobjc-framework-Photos-10.2/metadata/raw/x86_64-12.0.fwinfo +0 -6566
- pyobjc-framework-Photos-10.2/metadata/raw/x86_64-12.3.fwinfo +0 -6641
- pyobjc-framework-Photos-10.2/metadata/raw/x86_64-13.0.fwinfo +0 -7061
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/pyobjc_framework_Photos.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/pyobjc_framework_Photos.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Lib/pyobjc_framework_Photos.egg-info/top_level.txt +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/License.txt +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/Modules/_Photos_protocols.m +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phadjustmentdata.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phasset.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phassetchangerequest.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phassetresourcecreationoptions.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phassetresourcemanager.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phchange.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phcloudidentifier.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phcollection.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phcontenteditinginput.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phcontenteditingoutput.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_pherror.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phfetchoptions.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phfetchresult.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phimagemanager.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phlivephoto.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phlivephotoeditingcontext.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_photos.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phpersistentchange.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phpersistentchangefetchresult.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phphotolibrary.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_phproject.py +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/Photos.fwinfo +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/raw/x86_64-10.15.fwinfo +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/setup.cfg +0 -0
|
@@ -36,6 +36,20 @@ def _setup():
|
|
|
36
36
|
globals()["__dir__"] = dir_func
|
|
37
37
|
globals()["__getattr__"] = getattr_func
|
|
38
38
|
|
|
39
|
+
for cls, sel in (
|
|
40
|
+
("PHPersistentChangeToken", b"init"),
|
|
41
|
+
("PHPersistentChangeToken", b"new"),
|
|
42
|
+
("PHLivePhoto", b"init"),
|
|
43
|
+
("PHPersistentObjectChangeDetails", b"init"),
|
|
44
|
+
("PHPersistentObjectChangeDetails", b"new"),
|
|
45
|
+
("PHLivePhotoEditingContext", b"init"),
|
|
46
|
+
("PHPersistentChangeFetchResult", b"init"),
|
|
47
|
+
("PHPersistentChangeFetchResult", b"new"),
|
|
48
|
+
("PHPersistentChange", b"init"),
|
|
49
|
+
("PHPersistentChange", b"new"),
|
|
50
|
+
):
|
|
51
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
52
|
+
|
|
39
53
|
del sys.modules["Photos._metadata"]
|
|
40
54
|
|
|
41
55
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Tue Jun 11 10:17:10 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$PHContentEditingInputCancelledKey$PHContentEditingInputErrorKey$PHContentEditingInputResultIsInCloudKey$PHImageCancelledKey$PHImageErrorKey$PHImageManagerMaximumSize@{CGSize=dd}$PHImageResultIsDegradedKey$PHImageResultIsInCloudKey$PHImageResultRequestIDKey$PHLivePhotoEditingErrorDomain$PHLivePhotoInfoCancelledKey$PHLivePhotoInfoErrorKey$PHLivePhotoInfoIsDegradedKey$PHLivePhotoShouldRenderAtPlaybackTime$PHLocalIdentifierNotFound$PHLocalIdentifiersErrorKey$PHPhotosErrorDomain$"""
|
|
34
|
-
enums = """$PHAccessLevelAddOnly@1$PHAccessLevelReadWrite@2$PHAssetBurstSelectionTypeAutoPick@1$PHAssetBurstSelectionTypeNone@0$PHAssetBurstSelectionTypeUserPick@2$PHAssetCollectionSubtypeAlbumCloudShared@101$PHAssetCollectionSubtypeAlbumImported@6$PHAssetCollectionSubtypeAlbumMyPhotoStream@100$PHAssetCollectionSubtypeAlbumRegular@2$PHAssetCollectionSubtypeAlbumSyncedAlbum@5$PHAssetCollectionSubtypeAlbumSyncedEvent@3$PHAssetCollectionSubtypeAlbumSyncedFaces@4$PHAssetCollectionSubtypeAny@9223372036854775807$PHAssetCollectionSubtypeSmartAlbumAllHidden@205$PHAssetCollectionSubtypeSmartAlbumAnimated@214$PHAssetCollectionSubtypeSmartAlbumBursts@207$PHAssetCollectionSubtypeSmartAlbumCinematic@218$PHAssetCollectionSubtypeSmartAlbumDepthEffect@212$PHAssetCollectionSubtypeSmartAlbumFavorites@203$PHAssetCollectionSubtypeSmartAlbumGeneric@200$PHAssetCollectionSubtypeSmartAlbumLivePhotos@213$PHAssetCollectionSubtypeSmartAlbumLongExposures@215$PHAssetCollectionSubtypeSmartAlbumPanoramas@201$PHAssetCollectionSubtypeSmartAlbumRAW@217$PHAssetCollectionSubtypeSmartAlbumRecentlyAdded@206$PHAssetCollectionSubtypeSmartAlbumScreenshots@211$PHAssetCollectionSubtypeSmartAlbumSelfPortraits@210$PHAssetCollectionSubtypeSmartAlbumSlomoVideos@208$PHAssetCollectionSubtypeSmartAlbumTimelapses@204$PHAssetCollectionSubtypeSmartAlbumUnableToUpload@216$PHAssetCollectionSubtypeSmartAlbumUserLibrary@209$PHAssetCollectionSubtypeSmartAlbumVideos@202$PHAssetCollectionTypeAlbum@1$PHAssetCollectionTypeMoment@3$PHAssetCollectionTypeSmartAlbum@2$PHAssetEditOperationContent@2$PHAssetEditOperationDelete@1$PHAssetEditOperationProperties@3$PHAssetMediaSubtypeNone@0$PHAssetMediaSubtypePhotoDepthEffect@16$PHAssetMediaSubtypePhotoHDR@2$PHAssetMediaSubtypePhotoLive@8$PHAssetMediaSubtypePhotoPanorama@1$PHAssetMediaSubtypePhotoScreenshot@4$PHAssetMediaSubtypeVideoCinematic@2097152$PHAssetMediaSubtypeVideoHighFrameRate@131072$PHAssetMediaSubtypeVideoStreamed@65536$PHAssetMediaSubtypeVideoTimelapse@262144$PHAssetMediaTypeAudio@3$PHAssetMediaTypeImage@1$PHAssetMediaTypeUnknown@0$PHAssetMediaTypeVideo@2$PHAssetPlaybackStyleImage@1$PHAssetPlaybackStyleImageAnimated@2$PHAssetPlaybackStyleLivePhoto@3$PHAssetPlaybackStyleUnsupported@0$PHAssetPlaybackStyleVideo@4$PHAssetPlaybackStyleVideoLooping@5$PHAssetResourceTypeAdjustmentBasePairedVideo@11$PHAssetResourceTypeAdjustmentBasePhoto@8$PHAssetResourceTypeAdjustmentBaseVideo@12$PHAssetResourceTypeAdjustmentData@7$PHAssetResourceTypeAlternatePhoto@4$PHAssetResourceTypeAudio@3$PHAssetResourceTypeFullSizePairedVideo@10$PHAssetResourceTypeFullSizePhoto@5$PHAssetResourceTypeFullSizeVideo@6$PHAssetResourceTypePairedVideo@9$PHAssetResourceTypePhoto@1$PHAssetResourceTypePhotoProxy@19$PHAssetResourceTypeVideo@2$PHAssetSourceTypeCloudShared@2$PHAssetSourceTypeNone@0$PHAssetSourceTypeUserLibrary@1$PHAssetSourceTypeiTunesSynced@4$PHAuthorizationStatusAuthorized@3$PHAuthorizationStatusDenied@2$PHAuthorizationStatusLimited@4$PHAuthorizationStatusNotDetermined@0$PHAuthorizationStatusRestricted@1$PHCollectionEditOperationAddContent@3$PHCollectionEditOperationCreateContent@4$PHCollectionEditOperationDelete@6$PHCollectionEditOperationDeleteContent@1$PHCollectionEditOperationRearrangeContent@5$PHCollectionEditOperationRemoveContent@2$PHCollectionEditOperationRename@7$PHCollectionListSubtypeAny@9223372036854775807$PHCollectionListSubtypeMomentListCluster@1$PHCollectionListSubtypeMomentListYear@2$PHCollectionListSubtypeRegularFolder@100$PHCollectionListSubtypeSmartFolderEvents@200$PHCollectionListSubtypeSmartFolderFaces@201$PHCollectionListTypeFolder@2$PHCollectionListTypeMomentList@1$PHCollectionListTypeSmartFolder@3$PHImageContentModeAspectFill@1$PHImageContentModeAspectFit@0$PHImageContentModeDefault@0$PHImageRequestOptionsDeliveryModeFastFormat@2$PHImageRequestOptionsDeliveryModeHighQualityFormat@1$PHImageRequestOptionsDeliveryModeOpportunistic@0$PHImageRequestOptionsResizeModeExact@2$PHImageRequestOptionsResizeModeFast@1$PHImageRequestOptionsResizeModeNone@0$PHImageRequestOptionsVersionCurrent@0$PHImageRequestOptionsVersionOriginal@2$PHImageRequestOptionsVersionUnadjusted@1$PHInvalidAssetResourceDataRequestID@0$PHInvalidImageRequestID@0$PHLivePhotoEditingErrorCodeAborted@1$PHLivePhotoEditingErrorCodeUnknown@0$PHLivePhotoFrameTypePhoto@0$PHLivePhotoFrameTypeVideo@1$PHLivePhotoRequestIDInvalid@0$PHObjectTypeAsset@1$PHObjectTypeAssetCollection@2$PHObjectTypeCollectionList@3$PHPhotosErrorAccessRestricted@3310$PHPhotosErrorAccessUserDenied@3311$PHPhotosErrorChangeNotSupported@3300$PHPhotosErrorIdentifierNotFound@3201$PHPhotosErrorInternalError@-1$PHPhotosErrorInvalid@-1$PHPhotosErrorInvalidResource@3302$PHPhotosErrorLibraryInFileProviderSyncRoot@5423$PHPhotosErrorLibraryVolumeOffline@3114$PHPhotosErrorMissingResource@3303$PHPhotosErrorMultipleIdentifiersFound@3202$PHPhotosErrorNetworkAccessRequired@3164$PHPhotosErrorNetworkError@3169$PHPhotosErrorNotEnoughSpace@3305$PHPhotosErrorOperationInterrupted@3301$PHPhotosErrorPersistentChangeDetailsUnavailable@3210$PHPhotosErrorPersistentChangeTokenExpired@3105$PHPhotosErrorRelinquishingLibraryBundleToWriter@3142$PHPhotosErrorRequestNotSupportedForAsset@3306$PHPhotosErrorSwitchingSystemPhotoLibrary@3143$PHPhotosErrorUserCancelled@3072$PHVideoRequestOptionsDeliveryModeAutomatic@0$PHVideoRequestOptionsDeliveryModeFastFormat@3$PHVideoRequestOptionsDeliveryModeHighQualityFormat@1$PHVideoRequestOptionsDeliveryModeMediumQualityFormat@2$PHVideoRequestOptionsVersionCurrent@0$PHVideoRequestOptionsVersionOriginal@1$"""
|
|
34
|
+
enums = """$PHAccessLevelAddOnly@1$PHAccessLevelReadWrite@2$PHAssetBurstSelectionTypeAutoPick@1$PHAssetBurstSelectionTypeNone@0$PHAssetBurstSelectionTypeUserPick@2$PHAssetCollectionSubtypeAlbumCloudShared@101$PHAssetCollectionSubtypeAlbumImported@6$PHAssetCollectionSubtypeAlbumMyPhotoStream@100$PHAssetCollectionSubtypeAlbumRegular@2$PHAssetCollectionSubtypeAlbumSyncedAlbum@5$PHAssetCollectionSubtypeAlbumSyncedEvent@3$PHAssetCollectionSubtypeAlbumSyncedFaces@4$PHAssetCollectionSubtypeAny@9223372036854775807$PHAssetCollectionSubtypeSmartAlbumAllHidden@205$PHAssetCollectionSubtypeSmartAlbumAnimated@214$PHAssetCollectionSubtypeSmartAlbumBursts@207$PHAssetCollectionSubtypeSmartAlbumCinematic@218$PHAssetCollectionSubtypeSmartAlbumDepthEffect@212$PHAssetCollectionSubtypeSmartAlbumFavorites@203$PHAssetCollectionSubtypeSmartAlbumGeneric@200$PHAssetCollectionSubtypeSmartAlbumLivePhotos@213$PHAssetCollectionSubtypeSmartAlbumLongExposures@215$PHAssetCollectionSubtypeSmartAlbumPanoramas@201$PHAssetCollectionSubtypeSmartAlbumRAW@217$PHAssetCollectionSubtypeSmartAlbumRecentlyAdded@206$PHAssetCollectionSubtypeSmartAlbumScreenshots@211$PHAssetCollectionSubtypeSmartAlbumSelfPortraits@210$PHAssetCollectionSubtypeSmartAlbumSlomoVideos@208$PHAssetCollectionSubtypeSmartAlbumSpatial@219$PHAssetCollectionSubtypeSmartAlbumTimelapses@204$PHAssetCollectionSubtypeSmartAlbumUnableToUpload@216$PHAssetCollectionSubtypeSmartAlbumUserLibrary@209$PHAssetCollectionSubtypeSmartAlbumVideos@202$PHAssetCollectionTypeAlbum@1$PHAssetCollectionTypeMoment@3$PHAssetCollectionTypeSmartAlbum@2$PHAssetEditOperationContent@2$PHAssetEditOperationDelete@1$PHAssetEditOperationProperties@3$PHAssetMediaSubtypeNone@0$PHAssetMediaSubtypePhotoDepthEffect@16$PHAssetMediaSubtypePhotoHDR@2$PHAssetMediaSubtypePhotoLive@8$PHAssetMediaSubtypePhotoPanorama@1$PHAssetMediaSubtypePhotoScreenshot@4$PHAssetMediaSubtypeSpatialMedia@1024$PHAssetMediaSubtypeVideoCinematic@2097152$PHAssetMediaSubtypeVideoHighFrameRate@131072$PHAssetMediaSubtypeVideoStreamed@65536$PHAssetMediaSubtypeVideoTimelapse@262144$PHAssetMediaTypeAudio@3$PHAssetMediaTypeImage@1$PHAssetMediaTypeUnknown@0$PHAssetMediaTypeVideo@2$PHAssetPlaybackStyleImage@1$PHAssetPlaybackStyleImageAnimated@2$PHAssetPlaybackStyleLivePhoto@3$PHAssetPlaybackStyleUnsupported@0$PHAssetPlaybackStyleVideo@4$PHAssetPlaybackStyleVideoLooping@5$PHAssetResourceTypeAdjustmentBasePairedVideo@11$PHAssetResourceTypeAdjustmentBasePhoto@8$PHAssetResourceTypeAdjustmentBaseVideo@12$PHAssetResourceTypeAdjustmentData@7$PHAssetResourceTypeAlternatePhoto@4$PHAssetResourceTypeAudio@3$PHAssetResourceTypeFullSizePairedVideo@10$PHAssetResourceTypeFullSizePhoto@5$PHAssetResourceTypeFullSizeVideo@6$PHAssetResourceTypePairedVideo@9$PHAssetResourceTypePhoto@1$PHAssetResourceTypePhotoProxy@19$PHAssetResourceTypeVideo@2$PHAssetSourceTypeCloudShared@2$PHAssetSourceTypeNone@0$PHAssetSourceTypeUserLibrary@1$PHAssetSourceTypeiTunesSynced@4$PHAuthorizationStatusAuthorized@3$PHAuthorizationStatusDenied@2$PHAuthorizationStatusLimited@4$PHAuthorizationStatusNotDetermined@0$PHAuthorizationStatusRestricted@1$PHCollectionEditOperationAddContent@3$PHCollectionEditOperationCreateContent@4$PHCollectionEditOperationDelete@6$PHCollectionEditOperationDeleteContent@1$PHCollectionEditOperationRearrangeContent@5$PHCollectionEditOperationRemoveContent@2$PHCollectionEditOperationRename@7$PHCollectionListSubtypeAny@9223372036854775807$PHCollectionListSubtypeMomentListCluster@1$PHCollectionListSubtypeMomentListYear@2$PHCollectionListSubtypeRegularFolder@100$PHCollectionListSubtypeSmartFolderEvents@200$PHCollectionListSubtypeSmartFolderFaces@201$PHCollectionListTypeFolder@2$PHCollectionListTypeMomentList@1$PHCollectionListTypeSmartFolder@3$PHImageContentModeAspectFill@1$PHImageContentModeAspectFit@0$PHImageContentModeDefault@0$PHImageRequestOptionsDeliveryModeFastFormat@2$PHImageRequestOptionsDeliveryModeHighQualityFormat@1$PHImageRequestOptionsDeliveryModeOpportunistic@0$PHImageRequestOptionsResizeModeExact@2$PHImageRequestOptionsResizeModeFast@1$PHImageRequestOptionsResizeModeNone@0$PHImageRequestOptionsVersionCurrent@0$PHImageRequestOptionsVersionOriginal@2$PHImageRequestOptionsVersionUnadjusted@1$PHInvalidAssetResourceDataRequestID@0$PHInvalidImageRequestID@0$PHLivePhotoEditingErrorCodeAborted@1$PHLivePhotoEditingErrorCodeUnknown@0$PHLivePhotoFrameTypePhoto@0$PHLivePhotoFrameTypeVideo@1$PHLivePhotoRequestIDInvalid@0$PHObjectTypeAsset@1$PHObjectTypeAssetCollection@2$PHObjectTypeCollectionList@3$PHPhotosErrorAccessRestricted@3310$PHPhotosErrorAccessUserDenied@3311$PHPhotosErrorChangeNotSupported@3300$PHPhotosErrorIdentifierNotFound@3201$PHPhotosErrorInternalError@-1$PHPhotosErrorInvalid@-1$PHPhotosErrorInvalidResource@3302$PHPhotosErrorLibraryInFileProviderSyncRoot@5423$PHPhotosErrorLibraryVolumeOffline@3114$PHPhotosErrorMissingResource@3303$PHPhotosErrorMultipleIdentifiersFound@3202$PHPhotosErrorNetworkAccessRequired@3164$PHPhotosErrorNetworkError@3169$PHPhotosErrorNotEnoughSpace@3305$PHPhotosErrorOperationInterrupted@3301$PHPhotosErrorPersistentChangeDetailsUnavailable@3210$PHPhotosErrorPersistentChangeTokenExpired@3105$PHPhotosErrorRelinquishingLibraryBundleToWriter@3142$PHPhotosErrorRequestNotSupportedForAsset@3306$PHPhotosErrorSwitchingSystemPhotoLibrary@3143$PHPhotosErrorUserCancelled@3072$PHVideoRequestOptionsDeliveryModeAutomatic@0$PHVideoRequestOptionsDeliveryModeFastFormat@3$PHVideoRequestOptionsDeliveryModeHighQualityFormat@1$PHVideoRequestOptionsDeliveryModeMediumQualityFormat@2$PHVideoRequestOptionsVersionCurrent@0$PHVideoRequestOptionsVersionOriginal@1$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
37
|
"PHLivePhotoEditingErrorCode": NewType("PHLivePhotoEditingErrorCode", int),
|
|
@@ -88,17 +88,9 @@ try:
|
|
|
88
88
|
b"photoLibraryDidChange:",
|
|
89
89
|
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
90
90
|
)
|
|
91
|
-
r(
|
|
92
|
-
b"NSObject",
|
|
93
|
-
b"renderScale",
|
|
94
|
-
{"required": True, "retval": {"type": sel32or64(b"f", b"d")}},
|
|
95
|
-
)
|
|
91
|
+
r(b"NSObject", b"renderScale", {"required": True, "retval": {"type": "d"}})
|
|
96
92
|
r(b"NSObject", b"time", {"required": True, "retval": {"type": "{CMTime=qiIq}"}})
|
|
97
|
-
r(
|
|
98
|
-
b"NSObject",
|
|
99
|
-
b"type",
|
|
100
|
-
{"required": True, "retval": {"type": sel32or64(b"i", b"q")}},
|
|
101
|
-
)
|
|
93
|
+
r(b"NSObject", b"type", {"required": True, "retval": {"type": "q"}})
|
|
102
94
|
r(b"PHAsset", b"canPerformEditOperation:", {"retval": {"type": "Z"}})
|
|
103
95
|
r(b"PHAsset", b"hasAdjustments", {"retval": {"type": b"Z"}})
|
|
104
96
|
r(b"PHAsset", b"isFavorite", {"retval": {"type": "Z"}})
|
|
@@ -177,6 +169,18 @@ try:
|
|
|
177
169
|
b"isNetworkAccessAllowed",
|
|
178
170
|
{"retval": {"type": b"Z"}},
|
|
179
171
|
)
|
|
172
|
+
r(
|
|
173
|
+
b"PHAssetResourceRequestOptions",
|
|
174
|
+
b"progressHandler",
|
|
175
|
+
{
|
|
176
|
+
"retval": {
|
|
177
|
+
"callable": {
|
|
178
|
+
"retval": {"type": b"v"},
|
|
179
|
+
"arguments": {0: {"type": b"^v"}},
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
)
|
|
180
184
|
r(
|
|
181
185
|
b"PHAssetResourceRequestOptions",
|
|
182
186
|
b"setNetworkAccessAllowed:",
|
|
@@ -190,7 +194,7 @@ try:
|
|
|
190
194
|
2: {
|
|
191
195
|
"callable": {
|
|
192
196
|
"retval": {"type": b"v"},
|
|
193
|
-
"arguments": {0: {"type": b"^v"}},
|
|
197
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"d"}},
|
|
194
198
|
}
|
|
195
199
|
}
|
|
196
200
|
}
|
|
@@ -209,6 +213,18 @@ try:
|
|
|
209
213
|
r(b"PHCollection", b"canContainAssets", {"retval": {"type": b"Z"}})
|
|
210
214
|
r(b"PHCollection", b"canContainCollections", {"retval": {"type": b"Z"}})
|
|
211
215
|
r(b"PHCollection", b"canPerformEditOperation:", {"retval": {"type": b"Z"}})
|
|
216
|
+
r(
|
|
217
|
+
b"PHContentEditingInputRequestOptions",
|
|
218
|
+
b"canHandleAdjustmentData",
|
|
219
|
+
{
|
|
220
|
+
"retval": {
|
|
221
|
+
"callable": {
|
|
222
|
+
"retval": {"type": b"Z"},
|
|
223
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
)
|
|
212
228
|
r(
|
|
213
229
|
b"PHContentEditingInputRequestOptions",
|
|
214
230
|
b"isNetworkAccessAllowed",
|
|
@@ -237,8 +253,8 @@ try:
|
|
|
237
253
|
"arguments": {
|
|
238
254
|
2: {
|
|
239
255
|
"callable": {
|
|
240
|
-
"retval": {"type": b"
|
|
241
|
-
"arguments": {0: {"type": b"^v"}},
|
|
256
|
+
"retval": {"type": b"Z"},
|
|
257
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
242
258
|
}
|
|
243
259
|
}
|
|
244
260
|
}
|
|
@@ -298,7 +314,7 @@ try:
|
|
|
298
314
|
"arguments": {
|
|
299
315
|
0: {"type": b"^v"},
|
|
300
316
|
1: {"type": b"@"},
|
|
301
|
-
2: {"type":
|
|
317
|
+
2: {"type": b"Q"},
|
|
302
318
|
3: {"type": b"o^Z"},
|
|
303
319
|
},
|
|
304
320
|
}
|
|
@@ -317,7 +333,7 @@ try:
|
|
|
317
333
|
"arguments": {
|
|
318
334
|
0: {"type": b"^v"},
|
|
319
335
|
1: {"type": b"@"},
|
|
320
|
-
2: {"type":
|
|
336
|
+
2: {"type": b"Q"},
|
|
321
337
|
3: {"type": b"o^Z"},
|
|
322
338
|
},
|
|
323
339
|
}
|
|
@@ -336,7 +352,7 @@ try:
|
|
|
336
352
|
"arguments": {
|
|
337
353
|
0: {"type": b"^v"},
|
|
338
354
|
1: {"type": b"@"},
|
|
339
|
-
2: {"type":
|
|
355
|
+
2: {"type": b"Q"},
|
|
340
356
|
3: {"type": b"o^Z"},
|
|
341
357
|
},
|
|
342
358
|
}
|
|
@@ -738,7 +754,7 @@ try:
|
|
|
738
754
|
"arguments": {
|
|
739
755
|
2: {
|
|
740
756
|
"callable": {
|
|
741
|
-
"retval": {"type": b"
|
|
757
|
+
"retval": {"type": b"v"},
|
|
742
758
|
"arguments": {0: {"type": b"^v"}},
|
|
743
759
|
}
|
|
744
760
|
},
|
|
@@ -763,7 +779,7 @@ try:
|
|
|
763
779
|
"arguments": {
|
|
764
780
|
2: {
|
|
765
781
|
"callable": {
|
|
766
|
-
"retval": {"type": b"
|
|
782
|
+
"retval": {"type": b"v"},
|
|
767
783
|
"arguments": {0: {"type": b"^v"}},
|
|
768
784
|
}
|
|
769
785
|
},
|
|
@@ -865,6 +881,22 @@ try:
|
|
|
865
881
|
)
|
|
866
882
|
finally:
|
|
867
883
|
objc._updatingMetadata(False)
|
|
884
|
+
|
|
885
|
+
objc.registerNewKeywordsFromSelector(
|
|
886
|
+
"PHAdjustmentData", b"initWithFormatIdentifier:formatVersion:data:"
|
|
887
|
+
)
|
|
888
|
+
objc.registerNewKeywordsFromSelector("PHCloudIdentifier", b"initWithStringValue:")
|
|
889
|
+
objc.registerNewKeywordsFromSelector(
|
|
890
|
+
"PHContentEditingOutput", b"initWithContentEditingInput:"
|
|
891
|
+
)
|
|
892
|
+
objc.registerNewKeywordsFromSelector(
|
|
893
|
+
"PHContentEditingOutput", b"initWithPlaceholderForCreatedAsset:"
|
|
894
|
+
)
|
|
895
|
+
objc.registerNewKeywordsFromSelector(
|
|
896
|
+
"PHLivePhotoEditingContext", b"initWithLivePhotoEditingInput:"
|
|
897
|
+
)
|
|
898
|
+
objc.registerNewKeywordsFromSelector("PHProjectChangeRequest", b"initWithProject:")
|
|
899
|
+
objc.registerNewKeywordsFromSelector("null", b"initWithPlaceholderForCreatedAsset:")
|
|
868
900
|
expressions = {}
|
|
869
901
|
|
|
870
902
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-Photos
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework Photos on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
36
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
37
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_Photos.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_Photos.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_Photos.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_Photos.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_Photos.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_Photos.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_Photos.egg-info/top_level.txt
|
|
14
15
|
Modules/_Photos.m
|
|
@@ -40,15 +41,11 @@ PyObjCTest/test_phphotolibrary.py
|
|
|
40
41
|
PyObjCTest/test_phproject.py
|
|
41
42
|
metadata/Photos.fwinfo
|
|
42
43
|
metadata/metadata.ini
|
|
43
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
44
|
-
metadata/raw/arm64-12.3.fwinfo
|
|
45
|
-
metadata/raw/arm64-13.0.fwinfo
|
|
46
44
|
metadata/raw/arm64-13.3.fwinfo
|
|
47
|
-
metadata/raw/arm64-14.
|
|
45
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
46
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
48
47
|
metadata/raw/x86_64-10.15.fwinfo
|
|
49
48
|
metadata/raw/x86_64-10.16.fwinfo
|
|
50
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
51
|
-
metadata/raw/x86_64-12.3.fwinfo
|
|
52
|
-
metadata/raw/x86_64-13.0.fwinfo
|
|
53
49
|
metadata/raw/x86_64-13.3.fwinfo
|
|
54
|
-
metadata/raw/x86_64-14.
|
|
50
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
51
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <Photos/Photos.h>
|
|
6
|
+
|
|
7
|
+
/* We include the source code here instead of
|
|
8
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
9
|
+
*/
|
|
10
|
+
#include "_Photos_protocols.m"
|
|
11
|
+
|
|
12
|
+
static PyMethodDef mod_methods[] = {
|
|
13
|
+
{0, 0, 0, 0} /* sentinel */
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
static int mod_exec_module(PyObject* m)
|
|
17
|
+
{
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
22
|
+
{
|
|
23
|
+
.slot = Py_mod_exec,
|
|
24
|
+
.value = (void*)mod_exec_module
|
|
25
|
+
},
|
|
26
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
27
|
+
{
|
|
28
|
+
/* This extension does not use the CPython API other than initializing
|
|
29
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
30
|
+
* GILs
|
|
31
|
+
*/
|
|
32
|
+
.slot = Py_mod_multiple_interpreters,
|
|
33
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
34
|
+
},
|
|
35
|
+
#endif
|
|
36
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
37
|
+
{
|
|
38
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
39
|
+
.slot = Py_mod_gil,
|
|
40
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
41
|
+
},
|
|
42
|
+
#endif
|
|
43
|
+
{ /* Sentinel */
|
|
44
|
+
.slot = 0,
|
|
45
|
+
.value = 0
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
static struct PyModuleDef mod_module = {
|
|
50
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
51
|
+
.m_name = "_Photos",
|
|
52
|
+
.m_doc = NULL,
|
|
53
|
+
.m_size = 0,
|
|
54
|
+
.m_methods = mod_methods,
|
|
55
|
+
.m_slots = mod_slots,
|
|
56
|
+
.m_traverse = NULL,
|
|
57
|
+
.m_clear = NULL,
|
|
58
|
+
.m_free = NULL,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
PyObject* PyInit__Photos(void);
|
|
62
|
+
|
|
63
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__Photos(void)
|
|
64
|
+
{
|
|
65
|
+
return PyModuleDef_Init(&mod_module);
|
|
66
|
+
}
|
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-Photos
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework Photos on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Wrappers for the "Photos" framework on macOS.
|
{pyobjc-framework-Photos-10.2 → pyobjc_framework_photos-11.0}/PyObjCTest/test_photostypes.py
RENAMED
|
@@ -33,6 +33,7 @@ class TestPhotosTypes(TestCase):
|
|
|
33
33
|
self.assertEqual(Photos.PHAssetMediaSubtypePhotoScreenshot, (1 << 2))
|
|
34
34
|
self.assertEqual(Photos.PHAssetMediaSubtypePhotoLive, (1 << 3))
|
|
35
35
|
self.assertEqual(Photos.PHAssetMediaSubtypePhotoDepthEffect, (1 << 4))
|
|
36
|
+
self.assertEqual(Photos.PHAssetMediaSubtypeSpatialMedia, (1 << 10))
|
|
36
37
|
|
|
37
38
|
self.assertEqual(Photos.PHAssetMediaSubtypeVideoStreamed, (1 << 16))
|
|
38
39
|
self.assertEqual(Photos.PHAssetMediaSubtypeVideoHighFrameRate, (1 << 17))
|
|
@@ -91,6 +92,7 @@ class TestPhotosTypes(TestCase):
|
|
|
91
92
|
self.assertEqual(Photos.PHAssetCollectionSubtypeSmartAlbumUnableToUpload, 216)
|
|
92
93
|
self.assertEqual(Photos.PHAssetCollectionSubtypeSmartAlbumRAW, 217)
|
|
93
94
|
self.assertEqual(Photos.PHAssetCollectionSubtypeSmartAlbumCinematic, 218)
|
|
95
|
+
self.assertEqual(Photos.PHAssetCollectionSubtypeSmartAlbumSpatial, 219)
|
|
94
96
|
self.assertEqual(Photos.PHAssetCollectionSubtypeAny, sys.maxsize)
|
|
95
97
|
|
|
96
98
|
self.assertEqual(Photos.PHAssetEditOperationDelete, 1)
|