Repository navigation
Releases
v0.9.0
pikslide ships macros for a data flow diagram's parts, and a recipe for each kind of diagram most asked for, as help topics. A minor version, not a patch: it adds, and fixes nothing alone.
Changes that can break a diagram: none. A diagram that laid out draws as it did.
What it adds:
- dfd.pik, which
include "dfd.pik"finds: dfdprocess and dfdstore (DeMarco/Yourdon), dfdgsprocess and dfdgsstore (Gane-Sarson), and dfdentity draw a DFD's processes, data stores and external entities, at sizes held in variables such as dfdstorewid. A store's name too long for it warns, as in a box.pikslide --help dfdlists them. (#74) - An include passes over a file already being read, the diagram itself or a file that includes this one, so that a diagram named dfd.pik includes pikslide's, where that was an include cycle. parse() takes
path=, the file the source was read from. (#74) - A recipe for each kind of diagram, a whole diagram with its notes in comments:
pikslide --help flowchart(quicksort),--help architecture, and--help dfd, which gives one in each notation after the macros;--help recipeslists them. --help llm names them, the skill says to read one before drawing such a diagram, and pikslide-mcp's help tool says it has them. (#75, #78) --help linesays where a bent line's labels go, on none of its segments, and so how to draw a labeled line that bends. (#75)
And the rest:
- docs/dfd.md shows each DFD notation, and each dfd.pik macro, with its picture. (#78)
- docs/cookbook is gone: its recipes are the help topics now, and FizzBuzz's flowchart is bench/tasks/fizzbuzz.pik, the benchmark's answer, which a run can't reach. (#75)
Fixes #81
On PyPI: https://pypi.org/project/pikslide/0.9.0/
What's Changed
- Bundle macros for a data flow diagram's parts: dfd.pik by @mkyutani in #76
- Ship the cookbook's recipes as help topics, and drop docs/cookbook by @mkyutani in #77
- Show each DFD notation whole: a Gane-Sarson recipe, and docs/dfd.md by @mkyutani in #79
- Bump the version to 0.9.0 by @mkyutani in #82
Full Changelog: v0.8.0...v0.9.0
v0.8.0
pikslide draws text and lines in the deck's own text color, sizes a dot as it sizes a circle, and says what a release's number will promise from 1.0.0. A minor version, not a patch: some diagrams draw otherwise.
Changes that can break a diagram:
- Text and lines are the theme's text color, text1, not black, so that a template's text color, or a theme changed afterwards, colors them. With no --template, or a template on the Office theme, text1 is black and a diagram looks as it did; the slide's XML says tx1 where it said 000000. A diagram that wants black whatever the theme says
color = blackandstroke = black. (#66) - A dot's radius, diameter, width and height each set all of its size, keeping it round, as a circle's do:
dot rad 0.2is a dot 0.4 across, where it was the default 0.03, anddot wid 0.5a dot, not an ellipse 0.03 high. A diagram that sized a dot finds it drawn at that size, and what follows it moved by as much. A dot's edge points are on its outline, as a circle's are, where pikchr puts them all at its center: afterline down,dot rad 0.1sits below the line's end, touching it. A dot meant to mark a point is placedatit,dot at last line.end, as--help dotsays now. (#68, #70)
And the rest:
- README's Versions says what a release's number promises from 1.0.0, and what a minor release may still change; CONTRIBUTING.md picks a release's number by it. (#59)
- pikslide ships py.typed, so that a type checker reads the Python API's hints. Both packages link their changelog, the GitHub releases. CI tests with each dependency at the lowest version pyproject.toml allows. (#60)
- A release is made only from a commit on main, and its v* tag stays where it was made. SECURITY.md says how to report a vulnerability. (#61)
- Every change reaches main through an issue and a pull request. (#56)
- bench: pikslide 0.7.0 against python-pptx and hand-written XML, five runs of each. (#57)
Fixes #72
On PyPI: https://pypi.org/project/pikslide/0.8.0/
What's Changed
- Take a change into main only through a pull request that closes an issue by @mkyutani in #58
- Release only from main, and say how to report a vulnerability by @mkyutani in #62
- Ready the package for 1.0.0: py.typed, a changelog link, the lowest dependencies by @mkyutani in #63
- bench: pikslide 0.7.0 against python-pptx and hand-written XML, five runs each by @mkyutani in #65
- Say what a release's number promises from 1.0.0 by @mkyutani in #64
- Draw text and lines in the theme's text color, text1, not black by @mkyutani in #67
- Size a dot by its radius, and keep it round as a circle by @mkyutani in #69
- Say that a dot's edge points are on its outline by @mkyutani in #71
- Bump the version to 0.8.0 by @mkyutani in #73
Full Changelog: v0.7.0...v0.8.0
v0.7.0
pikslide ships macros for figures whose shape is the point, points at the line and column of every error, and sets text as PowerPoint does. A minor version, not a patch: some diagrams lay out or draw otherwise, and some that ran are errors now.
Changes that can break a diagram:
- An oval is a pill, PowerPoint's roundRect with half its shorter side as radius, as --help said, not an ellipse: its points, chop and fit follow. (#52)
- A spline is a smooth curve through its points, as PowerPoint's Curve draws one, not straight segments. (#41)
- A macro's argument or body that is an expression is one value, as if in parentheses: with
define row { 5 - $1 },row(1 + 1)is 3, not 5. (#45) monoandmonospace, which did nothing, are errors; so isfillon a line that isn't closed, or on an arc. (#46, #53)fitmeasures text as PowerPoint sets it: kerned only from 12pt, with no ligatures, so text at the default 10.5pt comes out a little wider. (#49)- The prelude's
arrowheadandscale, which nothing read, are gone.
And the rest:
include "figures.pik": macros pikslide ships for cycles, chevrons, pyramids, funnels, Venn diagrams, a two-by-two matrix and hubs, each a block whose parts are named in it, at the sizefigwidandfightgive.pikslide --help figureslists them; docs/figures.md shows them. (#38)- A layout error names its file, line and column, with the line and a caret, as a syntax error does, in --check's JSON too; a syntax error in a template's settings file is reported, not a traceback. (#40)
alignedturns a straight line's labels to its direction. (#54)- A closed line or spline is filled, by its
fillor thefillvariable. (#53) x,yand the compass words name variables, being points only where a point can stand, and a reserved word as a variable's name is an error that says so;connectoris an ordinary name. (#46, #47)- Chinese and Korean text is marked as such, not as Japanese, so that PowerPoint sets it in the theme's font for it;
langsets the language of text in Han alone (lang = "zh-CN"). (#44) - On Windows, Office's cloud fonts are found, and an
includeorimagepath with a drive or a leading slash is rejected as absolute, not with a traceback. (#43, #50) - --renderer direct sets a line of East Asian text where PowerPoint does. (#51)
- An object behind one that is behind another doesn't warn of overlapping it either: three circles, each behind the one before.
- CI tests on Windows and macOS too. (#42)
- docs/examples: four diagrams Claude Code drew, each from one prompt, shown with it.
On PyPI: https://pypi.org/project/pikslide/0.7.0/
Full Changelog: v0.6.0...v0.7.0
v0.6.0
pikslide now comes to LLM hosts that don't give the LLM a shell: an MCP server, pikslide-mcp, a package of its own released with pikslide from the same tag, and a plugin with a skill, for Claude and OpenAI hosts. A minor version, not a patch: new packages and a new way to use it, though the command itself is unchanged.
uvx pikslide-mcp [--root DIR] [--font SOURCE ...]: an MCP server whose tools arehelp(--help),check(--check's JSON) andrender, which writes the deck and returns its picture for the LLM to look at. Paths are relative to the workspace, and nothing is written outside it. Its version is pikslide's, which it pins. (#33)- A plugin, with a skill that teaches an LLM to draw with pikslide: read
--help llm, write the .pik, fix what--checkwarns about, render and look. In Claude Code,/plugin install pikslide --marketplace mkyutani/pikslideinstalls it from this repository, and it starts pikslide-mcp in the project. (#33) pikslide-plugin-0.6.0.zip, attached to this release: the plugin with pikslide's wheel in its skill, so that in a host's sandbox the skill installs pikslide with no network. (#33)
On PyPI: https://pypi.org/project/pikslide/0.6.0/
Full Changelog: v0.5.0...v0.6.0
v0.5.0
--png and --pdf no longer need PowerPoint or LibreOffice: pikslide draws the picture itself where PowerPoint isn't. A minor version, not a patch: auto falls back to that rather than to LibreOffice, --png's output names what drew the picture, and atan2, group and vertical are reserved words now.
--renderer directdraws the PNG, or a PDF of it, from the layout, as PowerPoint draws the deck: each preset's own outline, its shaded faces, arrowheads at PowerPoint's sizes, text in the fontsfitmeasured with, a bold a font has no face for emboldened, Japanese line breaking.auto, the default, is PowerPoint where it's reachable, and direct where it isn't or fails, with a note; LibreOffice only when named.wrote d.png (drawn by PowerPoint). (#34)--pngand--pdfleave the PowerPoint the user has open running, and the deck open in it, which they used to close without asking. (#35)pikslide --install-font SOURCEinstalls fonts from a file, a directory or zip of them, or a URL, wherefitand direct find them. A font only where PowerPoint doesn't draw with it (under WSL, one in WSL's own fonts), and one with no glyphs for some of the text set in it (Arial, for Japanese), are warnings. (#37)start KIND [SIZE]andend KIND [SIZE]set a line's arrowhead at that end: triangle, open, stealth, diamond, oval or none, small or large. (#36)atan2(Y, X), in degrees: a shape turned along a slanted line. (#36)verticalsets an object's text vertically, as PowerPoint's 縦書き. (#36)groupwrites a block as a PowerPoint group, whose objects move together, drawn the same as without. (#36)- A text with no strings draws nothing. (#36)
- An
attachto circularArrow, leftCircularArrow, leftRightCircularArrow or curvedLeftArrow no longer fails: the preset definitions' slips are read as PowerPoint reads them. --help llmis laid out, and worded, for an LLM: 23,093 characters, from 27,993.
On PyPI: https://pypi.org/project/pikslide/0.5.0/
Full Changelog: v0.4.0...v0.5.0
v0.4.0
A tool that assembles a deck can draw a diagram onto a slide of its own, with pikslide as a library. A minor version, not a patch: a shape whose name an earlier one already has is named -2, -3 now, so a deck the command writes can name its shapes differently.
parse(),layout()andrender_into()draw a diagram onto a python-pptx slide, at the origin the caller gives, with text measured in a template's theme as --template does.layout(slide_layout=)measures in the master of the slide's layout.result.objects()andresult.warnings()are --check's. (#21)- Each shape's name is its own: a name an earlier object already has, the same label in two blocks or
box 1in each, moves on to-2,-3. The cookbook's DFD has anUpper-2. - --check's object list covers all that is drawn, a line's
labelsand a callout'sleadertoo, so the box round it takes in all of a diagram.
On PyPI: https://pypi.org/project/pikslide/0.4.0/
What's Changed
Full Changelog: v0.3.0...v0.4.0
v0.3.0
A preset shape turns and mirrors, a callout's tip stays on the slide, and a deck with only some of a preset's adjust values opens in PowerPoint. A minor version, not a patch: rotate, flipH and flipV are reserved words now, so a program that named a variable or a macro so stops parsing; and a slide with a callout, or on a template whose master has no body placeholder, comes out differently.
rotate DEG,flipHandflipVturn and mirror a preset shape, as PowerPoint does.widandhtsize it unturned; its edges,A.widandA.htare where it's drawn. (#26)adjustwith only some of a preset's values wrote a deck PowerPoint couldn't open; now every value is written.--pngand--pdfsay when PowerPoint couldn't open a deck, in a message no longer garbled on a Japanese Windows. (#27)- A macro's argument is still pasted in as text, as in pikchr, but an operator that takes only part of it (
5 - $1with1 + 1) is a warning naming the call. (#28) - With
--template, a layout with a title and no content placeholder, in a template whose master has no body placeholder, puts the diagram below the title, not on it; and a diagram on a title the slide keeps is a warning. (#29) - The slide holds a callout's tip and leader line, which were cut off, and
--checkgives a callout'stip. (#30)
On PyPI: https://pypi.org/project/pikslide/0.3.0/
What's Changed
New Contributors
Full Changelog: v0.2.2...v0.3.0
v0.2.2
PyPI's one-line summary of pikslide now says that an LLM can write its diagrams, as the README does. And this is the first version whose GitHub release the release workflow makes itself, with these notes and the wheel and the sdist. A patch: nothing in the package itself has changed since 0.2.1.
On PyPI: https://pypi.org/project/pikslide/0.2.2/
Full Changelog: v0.2.1...v0.2.2
v0.2.1
PyPI shows the README and the links a release came with, and 0.2.0's are out of date. Its picture is loaded from main, so it shows the one drawn as a slide next to the old .pik's source; it has no link to the tutorial; and the Documentation link goes to spec.md. A patch: nothing in the package itself has changed since 0.2.0.
On PyPI: https://pypi.org/project/pikslide/0.2.1/
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Attached lines (attach, with path straight, elbow or curved), preset shapes' handles (adjust, tip at), the overlap warnings and a curved arc reach PyPI only with a new release. A minor version, not a patch: adjust, tip, attach and path are reserved words now, so a program that named a variable or a macro so stops parsing, and an arc or a line with only from P draws differently.
On PyPI: https://pypi.org/project/pikslide/0.2.0/
Full Changelog: v0.1.2...v0.2.0