Skip to main content

CLI for creating, exporting, viewing, and editing Trazzo brush archives (.tzb)

Project description

trazzo-tools

CLI for creating, exporting, viewing, and editing Trazzo brush archives (.tzb).

Requirements

  • Python 3.10+

Installation

pip install trazzo-tools

After installation, the trazzo-tools command will be available in your terminal.

Commands

create

Creates a .tzb archive from a brush definition.

trazzo-tools create --data brush.json --preview preview.png [--texture texture.png] [--output ./output]
Option Short Required Description
--data -d Yes Path to JSON brush definition
--preview -p Yes Path to preview image
--texture -t No Path to texture image
--output -o No Output directory (default: .)

Output: <output>/<name>.tzb


export

Exports a .tzb archive back to its source files.

trazzo-tools export brush.tzb [--output ./output]

Output:

  • <name>.json — brush definition
  • <name>_preview.png — preview image
  • <name>_texture.png — texture image

view

Displays the contents of a .tzb archive.

trazzo-tools view brush.tzb

edit

Edits a .tzb archive. Without flags, enters interactive mode.

# Interactive mode
trazzo-tools edit brush.tzb

# Direct mode (applies changes without prompting)
trazzo-tools edit brush.tzb --name "New Name" --radius 35.0
Option Type Description
--name string Brush name
--author string Author
--engine string Engine (pixel)
--category string Category (pen)
--radius float Radius
--opacity float Opacity (0.0–1.0)
--hardness float Hardness (0.0–1.0)
--spacing float Spacing
--flow float Flow (0.0–1.0)
--jitter float Jitter
--rotation float Rotation (degrees)
--elliptical-ratio float Elliptical ratio
--elliptical-angle float Elliptical angle
--eraser / --no-eraser bool Eraser mode
--blend-mode string Blend mode (normal)
--rotation-random float Rotation random
--rotation-zoom float Rotation zoom
--size-pressure / --no-size-pressure bool Size pressure
--opacity-pressure / --no-opacity-pressure bool Opacity pressure
--preview string Path to preview image
--texture string Path to texture image

Brush definition (JSON)

{
  "name": "My Brush",
  "author": "Author",
  "engine": "pixel",
  "category": "pen",
  "format": "tzbrush-v1",
  "params": {
    "radius": 20.0,
    "opacity": 1.0,
    "hardness": 0.8,
    "spacing": 0.3,
    "flow": 1.0,
    "jitter": 0.0,
    "rotation": 0.0,
    "ellipticalRatio": 1.0,
    "ellipticalAngle": 90.0
  },
  "modifiers": {
    "eraser": false,
    "blendMode": "normal",
    "rotationRandom": 0.0,
    "rotationZoom": 0.0,
    "sizePressure": false,
    "opacityPressure": false
  }
}

.tzb format

A .tzb file is a SQLite database with the following tables:

Table Description
brushes General brush info (name, author, engine, category)
brush_params Stroke parameters
brush_modifiers Behavior modifiers
brush_texture Texture image (blob)
brush_preview Preview image (blob)
tzb_meta Format metadata

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trazzo_tools-1.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trazzo_tools-1.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file trazzo_tools-1.0.1.tar.gz.

File metadata

  • Download URL: trazzo_tools-1.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for trazzo_tools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c72a311e7d78252ab7c8783b8493dda89a0421c4f384dd91f0d5df73b99efa0
MD5 57571310cab8e09418bd6b1fe130d818
BLAKE2b-256 87baa5672624d29d01d63e150c05df177449a5951a4d41b35754bc10439e5c72

See more details on using hashes here.

File details

Details for the file trazzo_tools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: trazzo_tools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for trazzo_tools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 789d0b57e2af29368510fa5ae7f7ac07e8faa8c9a036061932548da80cb05607
MD5 d924183b69fca48b50cfff60920ec266
BLAKE2b-256 8549cdbd3c3731261a462b00173281e8d85c729b3aec40891b150424b338ff32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page