Skip to main content

Make Python CLI tools win the speed race, by cheating!

Project description

Jump the Gun

Make Python CLI tools win the speed race, by cheating!

What?

Make Python CLI tools blazing fast, by entirely avoiding the time taken for Python interpreter startup and module imports.

Why?

CLI tools should be fast. Ideally, running them should be near-instant.

This is especially significant, for example, when running code linting and formatting tools on just a few files in SCM hooks, such as via pre-commit.

Installation

Install into the same Python env where you have tools like black or flake8 installed:

pip install git+https://github.com/taleinat/jumpthegun.git

Usage

Example:

jumpthegun start black
time jumpthegun run black --help
time black --check .
time jumpthegun run black --check .
jumpthegun stop black

Copyright & License

Copyright 2022-2023 Tal Einat.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version 3.90 of the filelock library is included in this codebase as-is. It is made available under the terms of the Unlicense software license. See it's LICENSE file for details.

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

jumpthegun-0.0.2.tar.gz (23.2 kB view hashes)

Uploaded Source

Built Distribution

jumpthegun-0.0.2-py3-none-any.whl (27.4 kB view hashes)

Uploaded Python 3

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