Skip to main content

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

  • The code and rules in pyrformance are licensed under MIT.
  • semgrep is licensed under GNU LGPL.

If you use pyrformance, you should accept both licenses.

Project details


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.2.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

pyrformance-0.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrformance-0.2.0.tar.gz.

File metadata

  • Download URL: pyrformance-0.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for pyrformance-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b7d1db2bc00a8a34ffeb3eea73a66e0933b5a15ff4604531eb3a827b71f5c079
MD5 3c5a326aaaca634dcc3d715a472f73a5
BLAKE2b-256 95fdf40c37da9c7b41ab1c0c354f6d0396ffb3cd6dc687137b9acde8beda9f34

See more details on using hashes here.

File details

Details for the file pyrformance-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrformance-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a5884264a2811ab83d0496f60b7044f88d917adad9945debd3329b94a76a56e
MD5 00fb173f2bd3d7e5233eb10ac18e5778
BLAKE2b-256 f333f638d9bb846d9138d637fd48aa1fe9fcbf3d6007d55fcd90b2850e518905

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page