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

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.0.tar.gz (9.4 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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trazzo_tools-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 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.0.tar.gz
Algorithm Hash digest
SHA256 bb9e368f1c445e4b42273ec9c2addc4fb1a8df163e582369f9e75de1811da221
MD5 30a730bea23b68e4c179e8f5381d8259
BLAKE2b-256 91a3931eff80781133650c1aeec40cb3ac6741a79383f0641fc68abd7adda9af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trazzo_tools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afef39c424c03e816e16dadde59c5cff93b92bc0f0b09ae7f9dab4da11ccf976
MD5 d9043d137d1303201882ac15cf96f6a0
BLAKE2b-256 396f25923e8a9cff8220bfa2c0e22e741c3946da238e70dd55ff9ac82473e3bc

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