Skip to main content

Introduction

A collection of Types and Schemas for use in various projects in the Unstructured ecosystem.

The project is intended to be very lightweight, and to play the role of the abstraction in "Concretions can depend on abstractions, but not vice-versa".

In other words, this project should exclusively define types and remain lightweight enough to encourage other projects to take it on as a dependency. Ideally, the project would itself have no dependencies. For rapid development in early phases, we take a dependency on Pydantic for easier modeling.

Right now, it is mostly utilized for defining unstructured's plugin architecture to enable developers to define their own plugins.

Note: This package is automatically published to PyPI on every merge to main.

Requirements

  • Python 3.12
  • uv: pip install uv

Quick start

  • make install
  • make test

unstructured-plugins command

Basic Usage

unstructured-plugins publish plugin_hello_world:PLUGIN_MANIFEST --registry http://localhost:8080/

CLI Arguments

Registry Configuration

  • --registry: URL to registry to publish to
  • --registry-project: Some registries require objects to be organized into projects
  • --registry-username: Username for authentication
  • --registry-password: Password for authentication
  • --channel: Channel or tag to push or read from (default: 'dev')
  • --from-channel: Used for promoting from one channel to another

Metadata Overrides (publish only)

  • --override-name: Override the plugin name from the manifest
  • --override-type: Override the plugin type from the manifest
  • --override-subtype: Override the plugin subtype from the manifest
  • --dry-run: Show what would be published without making any changes to the registry

Adding plugin icon (publish only)

  • --icon-path: Path to the plugin icon (currently only .svg files are supported)

Environment Variables

Configs can also be provided as env vars:

  • PLUGIN_REGISTRY
  • PLUGIN_REGISTRY_USERNAME
  • PLUGIN_REGISTRY_PASSWORD
  • PLUGIN_REGISTRY_PROJECT
  • PLUGIN_REGISTRY_VERIFY_SSL

Publishing Multiple Variants

You can publish multiple plugin variants from a single manifest using override flags:

unstructured-plugins publish s3_protocol:PLUGIN_MANIFEST \
  --override-type index \
  --override-subtype vast \
  --override-name "VAST Indexer" \
  --channel dev

Using Dry-Run

Preview what will be published before making changes:

unstructured-plugins publish s3_protocol:PLUGIN_MANIFEST \
  --override-type index \
  --override-subtype vast \
  --override-name "VAST Indexer" \
  --dry-run

This will show:

  • Registry path where plugin will be published
  • Tags that will be created
  • Overrides that were applied
  • Complete metadata payload
  • Plugin index entry
  • Command to run for real publish

Plugin icon

You can add an icon to the plugin by using --icon-path flag. Icon has to be an .svg file. It gets converted into an object that contains a base64 encoded string of the given svg. Icon gets added to the default presentation layer.

{
  ...,
  "presentation": {
    "default": {
      ...,
      "icon": {
        "value": "PHN2ZyB4bWxucz0i...",
        "original_file_extension": "svg",
        "encoding": "base64",
        "mime_type": "image/svg+xml"
      },
      ...
    }
  }
  ...
}

Metadata

Release files for utic-dev-tools 0.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for utic-dev-tools 0.2.11
File Interpreter ABI Platform
utic_dev_tools-0.2.11-py3-none-any.whl Python 3 none any Details

Release files / utic_dev_tools-0.2.11-py3-none-any.whl

Download URL utic_dev_tools-0.2.11-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
997567a09d14a2c88eb7aa737ed513b37ba3f7669276e69532ceb047a59b7eb8
BLAKE2b-256 checksum
How to use checksums
45ffe417d015d87bea2b4898af592f085886a2b5242fa965cf847d5b5c84903f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.2.11 This release

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page