r/supriya_python • u/josephine-dsp • Aug 08 '25
Supriya v25.8b2 released, with expanded examples
Hi, darlings!
I've just cut the v25.8b2 release: https://github.com/supriya-project/supriya/releases/tag/v25.8b2
This includes a new example demonstrating keyboard input (both with MIDI and QWERTY keyboards for those who don't have any MIDI instruments on hand), as well as an example on converting the initial keyboard input example into an asyncio-enabled one.
You can find the new keyboard input examples, along with the first three "Hello, world!" variant examples here: https://supriya-project.github.io/supriya/examples/index.html
The past few releases have also seen other expanded docs, including ...
- an extensive discussion of testing: https://supriya-project.github.io/supriya/developers/testing.html
- how Supriya's documentation system works: https://supriya-project.github.io/supriya/developers/documenting.html
- and core concepts: https://supriya-project.github.io/supriya/introduction/concepts.html
... amongst others.
I'm diligently chipping away at the unfinished docs (marked with a warning icon in the left sidebars), and adding new topics as I have time.
xoxo
- joséphine
View all comments
Show parent comment
3
u/josephine-dsp Aug 09 '25
Thanks. I hesitated for a long time about writing all of this documentation. One, because the API was in flux for many years. And two, because how do I ensure that the documentation itself doesn't become stale? It took a lot of figuring out, but I'm happy with the techniques I've developed.
The tests described in the documentation *on testing* are actually *in* the test suite and their source just selectively referenced in the documentation. And those tests actually get run during the documentation build step. (Almost) anytime you see shell sessions in the documentation, I'm actually running real shell sessions in the background, and capturing their output for inclusion in the docs. That's true for the tests in the docs, for the example script invocations shown in the docs, etc.
And, with virtually no exceptions, every code block shown in the docs is run in an interpreter session too, where non-whitelisted failures in that interpreter session will fail the entire doc building process.
Code execution needs to be pervasive to prevent staleness in documentation.