urwid
serenity
Our great sponsors
urwid | serenity | |
---|---|---|
19 | 15 | |
2,722 | 4,385 | |
1.1% | 2.2% | |
9.5 | 9.2 | |
4 days ago | 1 day ago | |
Python | Rust | |
GNU Lesser General Public License v3.0 only | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
urwid
-
Fx – Terminal JSON Viewer
Pretty cool! I actually wrote something VERY similar a couple of years ago: sless[1]. It's a tool for viewing json-based structured logs. Just like your tool, you can explore into a json object. The difference is, it expects the input to have many json objects, newline separated, and it shows few keys as a preview of the object, to make looking for something in the log easier. It's not quite complete but basic browsing works. It was mainly written to learn more about Urwid[2], a library similar to Curses.
-
Any guide to creating a terminal application?
In addition to the other great libraries already mentioned, since you're in Python you may want to consider urwid, it's really robust and has a lot of built-ins.
- Menus in Python
-
Grab raw keyboard inputs
To go full in on the latter case, people often use libraries like Cursive (akin to urwid for Python but without the horrendously confusing error messages caused duck typing) or tui.
-
Textual: The Definitive Guide - Part 1.
If you have experience with text user interfaces in the past, you might come across other frameworks such as urwid, curtsies, asciimatics, prompt-toolkit to name a few. Nevertheless, If you have not, you are just fine because you are in the right place to learn about TUIs in general and using Textual specifically. I’ll show you how to develop a wordle clone step by step.
- Is there a library for creating interactive long running terminal applications?
-
How can I make a TUI?
Check also urwid. It's more likely a modern text-based interface library for Python. https://github.com/urwid/urwid
-
What is the correct way to create a console application?
Curses seems difficult to use but you should investigate whether it works with what you want to do. https://urwid.org/ seems fun as an alternative.
-
Print colour in terminal
You can also take a look at https://urwid.org/
-
I looking for a TUI liberary/framework with good aesthetics.
urwid is Python, and looks good.
serenity
-
Patterns for Web API wrappers/clients
https://github.com/serenity-rs/serenity/: A Discord client, has a file containing formattable endpoint strings that are then passed to a macro to build the endpoint. These endpoints are then obtained by deconstructing an enum with the relevant fields, which is used by the client upstream to make request. I really like this approach, the use of macros and enums feels quite natural.
-
Wanting to make a bot in rust using serenity
What would be the best coding lang for this bot, I worked with discord.py in the past but I would like to use Serenity which allows you to make a discord bot with rust.
-
Create and deploy a Discord bot in Rust, in under 20 minutes (for free)
(https://github.com/serenity-rs/serenity/pull/1899).
With forced functional programming, you may be referring to serenity's builders? For example
```rust
I am one of the core team members at shuttle, and we've released the support for Serenity (a Rust library for the Discord API) a while back and now we have a tutorial ready for anyone willing to give it a go: https://www.shuttle.rs/blog/2022/09/14/serentity-discord-bot (creating a simple Discord bot, extending it to a weather forecast bot and deploying it with shuttle, for free).
We've released the support for Serenity (a Rust library for the Discord API) a while back and now we have a tutorial ready for anyone willing to give it a go!
-
Where to host a small rust web code?
I coded a small discord bot for fun with some friends (using serenityserenity).
-
Shuttle v0.5.1 is out ━ create and deploy a Discord bot with shuttle & Serenity!
For anyone who wants to get a Discord bot up and running (with Rust) - shuttle v.0.5.1 is out, with added Serenity support.
-
Bot update or migration guide?
The long term way is to use Discord's interactions system, which involves application commands (slash commands, as well as context menu commands for users and messages), message components (buttons, select menus) and modals. There appears to be some examples provided by your library, including one for slash commands and one for message components, so you could have a look at them to see how to update your bot.
-
How would i send my friend a message via rust on discord?
Use this crate : https://docs.rs/serenity/latest/serenity/ / https://github.com/serenity-rs/serenity ?
-
Discord bot in rust: you choose the bot’s purpose
I’m looking to make a discord bot in using the great serenity framework. The only problem is I don’t have any ideas for what the bot should do. I have decent experience with rust and have used it for small webassembly applications at work. I’ve also used serenity a bit to make a Wordle leaderboard for a server. If you have a great idea and want to work on something together, or just want to learn rust, I am definitely willing to teach a bit as well. I don’t care if the idea has been done before, I want to learn as well!
What are some alternatives?
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
mpd-discord-rpc - Rust application which displays your currently playing song / album / artist from MPD in Discord using Rich Presence.
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
twilight - Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
blessed - Blessed is an easy, practical library for making python terminal apps
songbird - An async Rust library for the Discord voice API
Toga - A Python native, OS native GUI toolkit.
docs.rs - crates.io documentation generator
kivy - Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
discord-presence - Discord Rich Presence in Rust, with 1st party Bevy support
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
rillrate - Real-time UI for bots and tools