SaaSHub helps you find the best software and product alternatives Learn more →
Top 17 Python syntax-highlighting Projects
-
Project mention: Rich is a Python library for rich text and beautiful formatting in the terminal | news.ycombinator.com | 2024-03-14
-
Project mention: Does anyone prefer the CLI over the shell, or other way around? If so, why? | /r/mysql | 2023-04-23
Also, check out MyCLI. https://github.com/dbcli/mycli "Terminal Client for MySQL with AutoCompletion and Syntax Highlighting"
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Project mention: Everything You Never Wanted to Know About CMake (Redux) | news.ycombinator.com | 2023-06-25
Disclaimer: I'm making a competing build system.
I won't tell you specific build systems, but I will tell you what to look for.
Look for power. Unlimited power. [1]
Usually, this means a few things:
1. The build system uses a general-purpose language, even if the language needs features to be added.
2. The build system does not reduce the power of the general-purpose language. For example, say it starts with Python but prohibits recursion. In that case, you know it is not unlimited power. Looking at you, Starlark.
3. The build can be dynamically changed, i.e., the build is not statically determined before it even begins.
4. Each task has unlimited power. This means that the task can use a general-purpose language, not just run external processes.
5. And there has to be some thought put it in user experience.
Why are these important? Well, let's look at why with CMake, which fails all of them.
For #1, CMake's language started as a limited language for enumerating lists. (Hence, CMakeLists.txt is the file name.) And yet, it's grown to be as general-purpose as possible. Why? Because when you need an if statement, nothing else will do, and when you need a loop, nothing else will do.
And that brings us to #2: if CMake's language started limited, are there still places where it's limited? I argue yes, and I point to the article where it says that your couldn't dynamically call functions until recently. There are probably other places.
For #3, CMake's whole model precludes it. CMake generates the build upfront then expects another build system to actually execute it. There is no changing the build without regenerating it. (And even then, CMake did a poor job until the addition of `--fresh`.) A fully dynamic build should be able to add targets and make others targets depend on those new targets dynamically, among other things.
For #4, obviously CMake limits what tasks can do because Ninja and Make limit tasks to running commands.
As another example, to implement a LaTeX target, you technically need a while loop to iterate until a fixed point. To do that with Make and Ninja, you have to jump through hoops or use an external script that may not work on all platforms.
CMake obviously fails #5, and to see how much other build systems fail it, just look for comments pouring hate on those build systems. CMake fails the most, but I haven't seen one that passes yet.
As an example, CMake barely got a debugger. Wow! Cool! It's been 20 years! My build system will have a debugger in public release #2 (one after the MVP) that will be capable of outputting to multiple TTY's like gdb-dashboard. [2] They should have had this years ago!
Should other comments suggest specific build systems, like the one that suggested Bazel, judge them by this list. Some will be better than others. None will pass everything, IMO, which is why I'm making my own.
-
HTTP Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
-
-
GitHub: https://github.com/dbcli/litecli
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Why not just use Python’s built-in pdb debugger or another existing one like ipdb or pdbpp?
-
Try https://github.com/numirias/semshi Semantic Highlighting for Python in Neovim
-
rainbow_csv
🌈Rainbow CSV - Vim plugin: Highlight columns in CSV and TSV files and run queries in SQL-like language
Probably not an exact fit, but this plugin came to mind: rainbow_csv
-
Aura-Text
Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the necessary tools for developers. It is build using PyQt6 and Python.
So, here's the story in short. I'm making an IDE using PyQt6 (GitHub) and I want to add Gist support. My IDE currently has Pastebin support, which doesn't require any logins. The issue with implementing Gist is, that you'll have to log in to GitHub. So my question is, how can I locally store the user's passwords safely?
-
syntax-highlighting
A fork of Tiago Barroso's Syntax Highlighting add-on with support for Anki 2.1 (by glutanimate)
Syntax Highlighting (https://ankiweb.net/shared/info/1463041493) (Anki addon) Allows you to insert syntax-highlighted code snippets into your notes.
-
Project mention: rich-argparse: A rich help formatter for argparse | news.ycombinator.com | 2023-10-19
-
-
There is a new Anki add-on for syntax highlighting [link] which apparently changes color scheme based on the selected theme (e.g., light or dark), but I have not used it myself.
-
-
quo
🚦🛠️⚙️Quo, a toolkit for writing Command-Line Interface applications and a Text User Interface framework for Python.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python syntax-highlighting related posts
- Show HN: Tailspin – A Log File Highlighter
- Ask HN: Programmers and Technologists in Scotland
- does someone use anki for learning programming?
- What is your personal way of using Anki?
- Syntax Highlighting for Code add-on and dark mode
- better than admitting I'm too too lazy to correct the command
- coBib 4.0: a modern UI using Textualize libraries
-
A note from our sponsor - SaaSHub
www.saashub.com | 19 Mar 2024
Index
What are some of the best open-source syntax-highlighting projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | rich | 46,683 |
2 | mycli | 11,218 |
3 | gdb-dashboard | 10,265 |
4 | HTTP Prompt | 8,858 |
5 | rich-cli | 2,925 |
6 | litecli | 2,004 |
7 | pygments | 1,676 |
8 | pdbpp | 1,234 |
9 | semshi | 1,004 |
10 | rainbow_csv | 564 |
11 | Aura-Text | 256 |
12 | syntax-highlighting | 106 |
13 | rich-argparse | 77 |
14 | rainbow_csv.nvim | 56 |
15 | anki-code-highlighter | 48 |
16 | NimPlus | 39 |
17 | quo | 30 |