Tansy

Latest version: v0.9.2

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.6.0

The big NAFF to interactions.py update, alongside some goodies.

Changes
* CHORE💥: Upgrade to interactions.py v5, the successor of NAFF.
* FEAT: Add in class-based slash commands! See an example of them in the README.
* FEAT: Add in `describe`, a la discord.py.

**Full Changelog**: https://github.com/AstreaTSS/tansy/compare/v0.5.2...v0.6.0

0.5.2

Bug fixes are fun.

Updates
- FIX: Allow functions with `*args, **kwargs` to work fine for the patched interaction commands.

**Full Changelog**: https://github.com/AstreaTSS/tansy/compare/v0.5.1...v0.5.2

0.5.1

...in my defense, it worked in editable mode.

Changes
- FIX: Properly import `tansy.install_naff_speedups()`.

**Full Changelog**: https://github.com/AstreaTSS/tansy/compare/v0.5.0...v0.5.1

0.5.0

Time to show why `tansy` was never marketed as *just* a better way of making slash commands.

Updates
- FEAT: Added speedups for NAFF itself. They can be installed/patched in via `tansy.install_naff_speedups()` - take a look at that function's docstring for more information. Currently, the speedups include speedups to embeds, interaction commands, and HTTP serialization.
- FEAT: Tansy slash commands now allow passing in custom `inspect.Signature`s if you want to.
- FIX: Pass kwargs into no parameter callbacks, basically allowing fields like `**kwargs` to be properly processed.
- REFACTOR: Tansy slash's post inits have been split into multiple parts to clean out the code.

**Full Changelog**: https://github.com/AstreaTSS/tansy/compare/v0.4.0...v0.5.0

0.4.0

This one is quite the doozy, but it shouldn't be breaking.

Updates
- FEAT💥: Rework how defaults are handled. This shouldn't affect 99% of usecases, and should offer quite the speedup for your code. In fact, if you were using the raw callback in your code, you no longer have to worry about `ParamInfo` being passed to your parameters! It now acts how you expect it to act.
- FEAT: Allow `**kwargs` in a command - `tansy` will ignore it when parsing.
- FEAT: Added aliases for some things. `TansySlashCommand` now has the alias of `SlashCommand`, and `slash_command` was made an alias of `tansy_slash_command`. This should better fit your importing style, hopefully.
- PERF: A decent bit of code was optimized here and there. You may notice it.
- REFACTOR: Changed some things so that aliases became the actual name and vice versa.
- FIX: Properly mark an option as option if it's in the format of `arg: type = default` (`arg: type = Option(default=default` is fine, don't worry about it).
- FIX: Call `callback` via `call_with_binding`.


**Full Changelog**: https://github.com/AstreaTSS/tansy/compare/v0.3.1...v0.4.0

0.3.1

Quick, technically breaking one: specifying a converter but not a type for `Param/Option` no longer will make tansy assume the type is a string. This assumption made no sense when you realize most people are defining their type of option via annotations - this behavior would make the option a string type regardless of what annotation they put in.

**Full Changelog**: https://github.com/Astrea49/tansy/compare/v0.3.0...v0.3.1

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.