An open API service indexing awesome lists of open source software.

https://github.com/developerstoolbox/python-snippets

A collection of Python snippets.
https://github.com/developerstoolbox/python-snippets

python python-snippets snippets wolfsoftware

Last synced: 9 months ago
JSON representation

A collection of Python snippets.

Awesome Lists containing this project

README

          



DevelopersToolbox logo




Github Build Status


License


Created




Release


Released


Commits since release















## Overview

his is a collection of useful(ish) Python snippets. The snippets are all simple self-contained pieces of code (a class or subroutine), but non of them are large enough to require having a repository in their own right.

## Bash Snippets

| Name | Description |
| ------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [execute-shell-command.py](src/execute-shell-command/execute-shell-command.py) | Execute a given shell command and return stdin, stdout and stderr. |
| [human-duration.py](src/human-duration/human-duration.py) | Convert a given number of seconds into something more human friendly. |
| [ordinal.py](src/ordinal/ordinal.py) | Suffix a given number with the correct ordinal. |
| [version-compare.py](src/version-compare/version-compare.py) | Compare two version strings. |
| [which.py](src/which/which.py) | A python implementation of the UNIX which command. |