skillfed

pyobjc-framework-UniformTypeIdentifiers

Wrappers for the framework UniformTypeIdentifiers on macOS

pyobjc-framework-uniformtypeidentifiers v12.2.2 951.2K downloads/30d#4,657 on PyPI803
Permissive license MIT Active released

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-uniformtypeidentifiers

uv

uv add pyobjc-framework-uniformtypeidentifiers

poetry

poetry add pyobjc-framework-uniformtypeidentifiers

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS X :: CocoaIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XProgramming Language :: Objective CProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Free Threading :: 3 - StableProgramming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User Interfaces

Tags

macos uniform type identifierspyobjc framework bindingsfile type identification macoscocoa framework wrappersobjective-c python bridgemacos type system python
macos-onlycocoa-bindingsobjective-c-interop

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

pyobjc-framework-ClassKit

Provides Python bindings to Apple's ClassKit…

permissive · top 15,000 on PyPI

pyobjc-framework-Photos

Provides Python bindings to macOS's Photos…

permissive · top 15,000 on PyPI

pyobjc-framework-FileProvider

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-Vision

Provides Python bindings to macOS's Vision…

permissive · top 5,000 on PyPI

pyobjc-framework-FileProviderUI

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-AutomaticAssessmentConfiguration

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-VideoSubscriberAccount

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-LocalAuthenticationEmbeddedUI

Provides Python bindings for macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-SafetyKit

Provides Python bindings to macOS's SafetyKit…

permissive · top 15,000 on PyPI