Support `console_scripts`
See original GitHub issueI tried running scalene
on one of my CLI programs. It didn’t go well:
- I tried running
python -m scalene --help
; this does not work - I generally write my CLI programs to launch
console_scripts
entry points, which doesn’t seem supported. - I added an explicit
if __name__ == "__main__"
to my CLI program andscalene
no longer aborted; however it also didn’t produce any output beyond what my program already produced.
Any guidance on proper usage would be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Command Line Scripts — Python Packaging Tutorial
Many Python packages include command line tools. This is useful for distributing support tools which are associated with a library, or just taking...
Read more >The Scripting Console View
Overview. The Scripting Console is a tool in Code Composer Studio which allows users to specify commands to the IDE through a console....
Read more >Entry Points - setuptools 65.6.3.post20221224 documentation
The package would like to provide commands to be run at the terminal. This functionality is known as console scripts. The command may...
Read more >Representative Console - Client Scripting API - BeyondTrust
Use the BeyondTrust Remote Support Client Script (BRCS), which is a file that contains a sequence of commands to be executed by the...
Read more >Scripting console | PyCharm Documentation - JetBrains
The IDE Scripting Console can be used to write simple scripts that automate PyCharm features and extract various information.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a new pull request for support console_scripts. 😸
Updated to provide conventional command-line help and output redirection.
Will work on the other issue described here.