Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DevelopersToolbox/python-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Execute a given shell command and return stdin, stdout and stderr.
human-duration.py Convert a given number of seconds into something more human friendly.
ordinal.py Suffix a given number with the correct ordinal.
version-compare.py Compare two version strings.
which.py A python implementation of the UNIX which command.

About

A collection of Python snippets.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.