python-benedict
ruff
| python-benedict | ruff | |
|---|---|---|
| 4 | 138 | |
| 1,601 | 44,521 | |
| 0.6% | 2.4% | |
| 7.4 | 10.0 | |
| 6 days ago | 5 days ago | |
| Python | Rust | |
| MIT License | MIT 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.
python-benedict
- Supercharge Your Python Dictionaries with python-benedict!
View the Project on GitHub
- What are the best Python libraries to learn for beginners?
python-benedict: Dictionary manipulation library
- The hand-picked selection of the best Python libraries and tools of 2022
python-benedict — a dict on steroids
- Released python-benedict 0.24.0
ruff
- Ty: An fast Python type checker and LSP
There was a hang/performance bug [1, 2] that was reported just after the beta release, which we've since fixed [3]. You might try seeing if we get through your entire project now?
(And as an aside, there _is_ a verbose mode: if you add `-vv` you'll get DEBUG-level log messages printing out the name of each file as we start to check it, and you can set TY_MAX_PARALLELISM=1 in your env to make it very clear which file is causing the hang. That's how we debug these kinds of issues when they're reported to us.)
[1] https://github.com/astral-sh/ty/issues/1968
[2] https://github.com/astral-sh/ty/issues/1993
[3] https://github.com/astral-sh/ruff/pull/22030
- Python Linters: A Guide for Clean Code
Ruff Documentation
- My Experience Creating CI Workflows and Contributing Tests to an Existing Project
To begin with, I created a ci.yml file that runs on push and pull request to the main branch. The workflow has two major jobs. The first is the test job, which runs on a matrix of Ubuntu, Windows, and macOS to ensure cross-platform reliability. It checks out the repository, sets up Python 3.12 with pip caching, installs all necessary dependencies, runs linting and formatting checks using ruff, performs type checking with mypy(static type checker for Python), and finally executes the full test suite with coverage reporting. The second job is a build job that runs only if the tests pass successfully. It installs the build tools, creates distribution packages using python -m build, and uploads the generated artifacts so they can be reviewed.
- Developer Tooling #007
ruff Description: An extremely fast Python linter and code formatter, written in Rust. What we like: Orders of magnitude faster than other Python linters, very active development. What we don't like: Still a zero-point release (0.14 as of this article), which allows for breaking changes in minor and patch releases.
- Python Code Quality Tools Beyond Linting
Let's start the conversation on how to 'measure' maintainable, and architecturally sound Python code. And keep Goodhart's law: "When a measure becomes a target, it ceases to be a good measure" in mind ;-)
- We adopt an approach I'll call "Thanks I Hate It (TIHI)"
- Exploring the dangerous power of unquoted Python strings, and how they caused CVE-2024-9287
The wise path is the one that avoids the shell entirely when not needed. Most linters (like ruff) will detect this for you.
- Uv format: Code Formatting Comes to uv (experimentally)
- What Rust projects are you most excited about?
I am also looking forward to uv, the really fast Python package manager written in Rust. I think Rust tooling for Python has great potential. Astral is also making a project called Ruff, which is a formatter and I'm also very excited about that.
- Python MCP Remote Server — The Dawn of the Streamable HTTP Era ~ With a Minimalist Template Featuring uv / Docker / pytest ~
Ruff: A Rust-based, ultra-fast Python linter and formatter developed by Astral (official website). What's astounding is not just its speed, but its ability to cover most of the checks and formatting previously done by multiple tools like Flake8, isort, pydocstyle, pyupgrade, etc., with Ruff alone. This simplifies configuration files and significantly reduces tool management costs. Ruff hooks are defined in .pre-commit-config.yaml. When you try to commit, static code analysis (detecting potential bugs or deprecated practices) and formatting (unifying coding style) are automatically executed. If issues are found, the commit is aborted, prompting you to fix them. In many cases, Ruff can automatically fix the problems it finds.
What are some alternatives?
countries-states-cities-database - 🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, SQLSERVER, MONGODB, SQLITE, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities
pyright - Static Type Checker for Python
bidict - The bidirectional mapping library for Python.
mypy - Optional static typing for Python
prodict - Prodict, what Python dict meant to be.
prospector - Inspects Python source files and provides information about type and location of classes, methods etc