pyobjc-framework-UniformTypeIdentifiers
Wrappers for the framework UniformTypeIdentifiers on macOS
What it is and what it does
This package wraps Apple's UniformTypeIdentifiers framework for use in Python on macOS. It lets you work with macOS's native type system—identifying file types, querying type properties, and handling uniform type descriptors—directly from Python code. The wrapper translates between Python and Objective-C, so you call the framework's methods as if they were Python functions, but you'll need to consult Apple's official documentation to understand what each method does, since the wrapper itself provides only the bridge, not the documentation.
You'll use this when building macOS applications that need to identify or work with file types at the system level, or when integrating with other Cocoa frameworks that depend on UniformTypeIdentifiers. It requires Python 3.10 or later and depends on pyobjc-core and pyobjc-framework-Cocoa, which handle the core Objective-C interop.
Use it for:
- Identify file types in a macOS file picker or drag-and-drop handler without relying on file extensions.
- Query type properties (MIME types, file extensions, descriptions) for files your application handles.
- Build macOS desktop applications that integrate with Cocoa and need native type system support.
- Filter or validate files based on their uniform type identifier in a native macOS context.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to macOS's UniformTypeIdentifiers framework, enabling type identification and handling of file types and uniform type descriptors in native macOS applications.
Yes, if you are building a macOS application in Python and need to work with the native UniformTypeIdentifiers framework. The package is actively maintained, has no known vulnerabilities, and installs with low friction. However, it is only useful on macOS and requires Python 3.10+; it is not a general-purpose library for cross-platform type identification.
Install
pyobjc-framework-uniformtypeidentifiers on PyPI
pip
pip install pyobjc-framework-uniformtypeidentifiersuv
uv add pyobjc-framework-uniformtypeidentifierspoetry
poetry add pyobjc-framework-uniformtypeidentifiersInstalling pyobjc-framework-UniformTypeIdentifiers
Before you install
Low friction installation with active maintenance—released 3 days ago with a recent commit history. Depends on pyobjc-core and pyobjc-framework-Cocoa, both part of the same PyObjC ecosystem, so dependency resolution is straightforward.
License in practice
MIT license is permissive; you can use this package in commercial or proprietary projects without restriction, though you must include the license notice.
Quickstart
pip install pyobjc-framework-uniformtypeidentifiers
from UniformTypeIdentifiers import UTType
# Query a uniform type identifier
uttype = UTType.typeWithFilenameExtension_('txt')
if uttype:
print(uttype.identifier())
macOS only; requires Python 3.10 or later and a working Objective-C bridge (provided by pyobjc-core).
Verify before relying
- Whether this framework wrapper includes type-checking stubs or runtime type hints for IDE support.
- Performance characteristics when handling large numbers of type identifiers or frequent type lookups.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pyobjc-core, pyobjc-framework-Cocoa |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 951,167/month — #4,657 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_uniformtypeidentifiers-12.2.2-py2.py3-none-any.whl
Keywords: PyObjC, UniformTypeIdentifiers
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyobjc-framework-ClassKitProvides Python bindings to Apple's ClassKit…
permissive · top 15,000 on PyPI
pyobjc-framework-PhotosProvides Python bindings to macOS's Photos…
permissive · top 15,000 on PyPI
pyobjc-framework-FileProviderProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-VisionProvides Python bindings to macOS's Vision…
permissive · top 5,000 on PyPI
pyobjc-framework-FileProviderUIProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-AutomaticAssessmentConfigurationProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-VideoSubscriberAccountProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-LocalAuthenticationEmbeddedUIProvides Python bindings for macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-NetworkProvides Python bindings to Apple's Network…
permissive · top 15,000 on PyPI
pyobjc-framework-SafetyKitProvides Python bindings to macOS's SafetyKit…
permissive · top 15,000 on PyPI