Skip to main content

No project description provided

Project description

Using entry_points to create in your makes scripts that start really slowly because it imports pkg_resources, which is a horrible thing to do if you want your trivial script to execute more or less instantly. check it out:

importing fastentrypoints in your file produces scripts that look like this:

from package.module import entry_function

This is faster than whatever the heck the normal console scripts do.


To use fastentrypoints, simply copy into your project folder in the same directory as, and import fastentrypoints in your file. This monkey-patches setuptools.command.easy_install.ScriptWriter.get_args() in the background, which, in turn, produces wonderfully simple entry scripts (like the one above) when you install the package.

If you install fastentrypoints as a module, you have the fastep executable, which will copy into the working directory (or into a list of directories you give it as arguments). It is available from PyPI.

You can’t really make it a proper depenency because setuptools has to import it to work, so chicken-egg. right? Luckily, the script is trivial and will not hurt you project much to copy this 40-line file into the folder.

Let me know if there are places where this doesn’t work well. I’ve mostly tested it with console_scripts so far, since I don’t write the other thing.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page