Snippets about python

4 snippets

Back to all snippets

  1. 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 python
  2. 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 python
  3. SNP028

    Python virtual environments

    Keep every project's packages to itself.

    5 lines of sh in 2 blocks, 4 lines of explanation.

    #945 python
  4. 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 python