Linter that makes your Python code faster.
Project description
pyrformance
Linter that makes your Python code faster.
Pyrformance is a collection semgrep rules and a thin wrapper on top of semgrep CLI for a simple way of running these rules. All rules are non-opinionated and performance-focused.
Features:
- Non-opinionated. If pyrformance reports something, changing it will make your code faster. That's it. It won't tell you to change something just because it's a "pythonic", consistent, or whatever else.
- Benchmarked. For each rule, we have a true-north-powered benchmark that shows that the rule indeed makes code faster. We don't play guessing or advice something just because a random Medium article says so.
- Tested. We have tests for each rule, which is quite unusual for semgrep-rules you can find in the wild.
- Never compromises readability. We do our best to not recommend any changes that would make the code less readable, even if that would be faster.
Installation
python3 -m pip install pyrformance
Usage
python3 -m pyrformance ./your_project/
License
If you use pyrformance, you should accept both licenses.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrformance-0.1.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for pyrformance-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab8e455d1854284f873f63c92dd958a6af8e68decdfa09099a00ad6583579d6 |
|
MD5 | b40d4846a6adfaec22c4ad96e511d828 |
|
BLAKE2b-256 | 55544006b1a023c12f3f77850a5345ad6989dfce7ddf75f4f9e6f590315d80dc |