A test repo to compare different Python IDEs.
.idea | Added PyCharm .idea project. | 2016-08-14 12:24:19 |
---|---|---|
bored | Add a dataclass and datavalidation, add Path example. | 2021-04-04 12:41:39 |
counter | Add a profile decorator. | 2021-01-09 17:52:58 |
decorators | Add functools.wraps() to the profile decorator. | 2021-01-10 00:27:32 |
sitesize | types: no need for Union[int, float], and handle fact os.cpu_count() could be None. | 2021-01-09 23:53:23 |
README.md | Add requirements.txt | 2022-01-23 10:15:27 |
project.cson | Add Atom atom-project-manager project.cson file. | 2016-08-14 13:34:49 |
requirements.in | Add requirements.txt | 2022-01-23 10:15:27 |
requirements.txt | Add requirements.txt | 2022-01-23 10:15:27 |
testpython.code-workspace | Add a Microsoft Code workspace file. | 2020-12-27 11:15:03 |
testpython.py | Add a dataclass and datavalidation, add Path example. | 2021-04-04 12:41:39 |
testpython.sublime-project | Update Sublime Text project for Python3. | 2020-12-27 11:33:32 |
This is just a test project. You can do anything here, test python and IDE projects.
This branch is of Python 3 code. There's a python2 branch too.
You can get a copy of this project by clicking on the ZIP or TAR buttons near the top right of the GitList web page.
You can clone from the origin with:
git clone ssh://USERNAME@dlma.com/~/git/testpython.git
This project has example Visual Studio Code, PyCharm, Atom, and Sublime Text 3 projects.
The best IDE of all, for those who live on the CLI. Create two panes in tmux, run vim in one, and run entr in the other with a command like:
find . -type f -name \*.py | entr -c sh -c 'ctags -R *; ./testpython.py'
or run in pdb:
find . -type f -name \*.py | entr -c sh -c 'ctags -R *; python3 -m pdb testpython.py'
Tip: In vim you can do a multi-file grep and use the QuickFix window with commands like...
:grep -rI searchterm .
:cw
See this QuickFix tip for sorting results by filename.
Download Microsoft's Visual Studio Code from code.visualstudio.com. Code uses the testpython.code-workspace project file. I prefer this to GitHub's Atom. Both are based on GitHub's Electron.
PyCharm uses the .idea directory. JetBrains suggests sharing the .idea directory except for workspace.xml and tasks.xml.
Sublime uses the testpython.sublime-project file.
Download from atom.io. These are useful modules:
If you install project-manager, it looks for a local "project.cson" file, and
merges those settings with what is in the .atom projects.cson
file.
requirements.txt specifies the requirements for Python modules and apps. Install the requirements with:
python3 -m pip install -r requirements.txt
Ideally, track why modules are required, create requirements.in with only the the top-level requirements, and let pip-compile (from pip-tools) figure out the next-level dependencies.
(venv) $ python3 -m pip install pip-tools
(venv) $ pip-compile requirements.in
Otherwise, you can make requirements.txt directly with pip freeze:
(venv) $ python3 -m pip freeze > requirements.txt
Yes.