For single-file scripts, I can always execute them directly, at least on linux, by setting executable permissions on the script and adding a shebang (#! /bin/python) at the top of the file.
Is an equivalent possible for packages, so that I don't need to prefix the package name with python -m some_package on the command line?
Update: I'm aware there are workarounds, such as wrapping it in a script. Not only is this not always practical, but also my question isn't about finding any way to do it, rather to understand what the "official" analog to running "some_script.py" directly, but for packages, assuming that such an analog even exists at all or is simply not intended or not defined anywhere.
#!/bin/python" (no space). Readman pythonand try#!/bin/python -m some_package.#!/usr/bin/python3Or#!/usr/bin/env python3Seen discussions on which is better.