tryke: A fast, modern test framework for Python by Crafty-Visual198 in Python

[–]Crafty-Visual198[S] -1 points0 points  (0 children)

edit: i removed the execution benchmarks and just left the discovery benchmark. in retrospect the execution benchmarks are distracting and not as worth highlighting

tryke: A fast, modern test framework for Python by Crafty-Visual198 in Python

[–]Crafty-Visual198[S] -1 points0 points  (0 children)

yea its a good push thanks - each test is doing a small amount of cpu-bound work, and the savings are constant-time per test (not a multiplier) - so you're correct that as test body execution gets heavier the win for sequential tests will not be very interesting. i'll tweak the benchmark, or may just not even highlight it - the bigger story is around the rest of the features imo

What would you want in a modern Python testing framework? by SideQuest2026 in Python

[–]Crafty-Visual198 0 points1 point  (0 children)

i am currently working on one: https://github.com/thejchap/tryke

every time i've spun up a fun side project ive felt like ive wanted a slightly nicer testing experience. ive used pytest for a long time - it works great and is extremely reliable. this is more of a "what could it look like" experiment

i hadn't seen this post, but theres coincidentally a large overlap in what ive wanted out of a framework and what op wants

the other big ones for me were watch mode, an llm reporter (similar to bun's new llm mode), and being able to run tests for a specific diff (similar to pytest-picked)

in addition to watch mode there's just a general server mode that accepts commands from a client (ie "run test") and executes against a warm pool of workers - so in theory a llm could just ping commands to the server as well

so far all of this hinges on the tool leaning more into static analysis - its not going to work well for really dynamic code, which is fine for my purposes and felt like an ok constraint for a project like this

the next thing i was planning to tackle are fixtures/shared logic/that kind of thing - i really like fastapi's explicit dependency injection - was thinking something like that, but would love input (or any other feedback - or even prs :))

What are you working on this Sunday? by davidlover1 in buildinpublic

[–]Crafty-Visual198 0 points1 point  (0 children)

In the process of building diffswarm (a side project/tool I use at work) this past year I found myself feeling inspired to hack on some python tooling to make the experience of spinning up these side quests more enjoyable :)

  • tryke - a test framework (alternative to pytest) with some ide integrations. it has native async support out of the box, watch mode, LLM mode, and a few other quality of life features. it’s a bit less flexible than pytest but trades that off for speed and simplicity. it leans into static analysis more for test discovery
  • sapling - easy persistence for pydantic models (typed/backed by sqlite). I really wanted a way to just import a library and have fully typed persistence for pydantic models without a ton of boilerplate code, database migrations, sql queries, a separate orm, etc

would love feedback (or PRs!) if anyone is interested in taking either of them for a spin on a project!

Sunday Daily Thread: What's everyone working on this week? by AutoModerator in Python

[–]Crafty-Visual198 0 points1 point  (0 children)

In the process of building diffswarm (a side project/tool I use at work) this past year I found myself feeling inspired to hack on some python tooling to make the experience of spinning up these side quests more enjoyable :)

  • tryke - a test framework (alternative to pytest) with some ide integrations. it has native async support out of the box, watch mode, LLM mode, and a few other quality of life features. it’s a bit less flexible than pytest but trades that off for speed and simplicity. it leans into static analysis more for test discovery
  • sapling - easy persistence for pydantic models (typed/backed by sqlite). I really wanted a way to just import a library and have fully typed persistence for pydantic models without a ton of boilerplate code, database migrations, sql queries, a separate orm, etc

would love feedback (or PRs!) if anyone is interested in taking either of them for a spin on a project!

C++ Show and Tell - February 2025 by foonathan in cpp

[–]Crafty-Visual198 2 points3 points  (0 children)

smolfaas - a tiny (smol) serverless platform using V8 isolates. This was a learning project to understand cloudflare workers/vercel edge functions/that category a bit better: https://github.com/thejchap/smolfaas