Snippets about python
4 snippets
-
SNP137
Read and write JSON in Python
The json module, with the two options that make the output readable.
11 lines of py in 1 block, 5 lines of explanation.
#694 -
SNP114
Rename files in bulk with Python
A pathlib loop beats fighting with the shell's rename command every time.
9 lines of py in 1 block, 5 lines of explanation.
#942 -
SNP028
Python virtual environments
Keep every project's packages to itself.
5 lines of sh in 2 blocks, 4 lines of explanation.
#945 -
SNP017
Auto order episodes of Buffy the Vampire Slayer and Angel
Order the episodes of Buffy the Vampire Slayer and Angel automatically to the "best viewing order"
300 lines of py in 1 block, 6 lines of explanation.
#924