The Python snippet collection contains helper functions for Python 3.6. It includes utilities for most common data types, such as primitivies, lists, dictionaries and date objects.
Python, String
Python's f-strings can do a lot more than you might expect. Learn a few useful tips and tricks in this quick guide.
Python, String
Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components.
Python, String
Converts the values of RGB components to a hexadecimal color code.
Python, Math
Converts an integer to its roman numeral representation.
Accepts value between 1
and 3999
(both inclusive).
Python, String
Converts a given string into a list of words.
Python, List
Checks if the a value is an empty sequence or collection.
Python, String
Converts a string to kebab case.
Python, String
Splits a multiline string into a list of lines.
Python, String
Learn two ways to format a string in Python with this quick tip.
Python, List
Takes any number of iterable objects or objects with a length property and returns the longest one.
Python, String
Converts a string to camelcase.
Python, String
Converts a string to snake case.
Python, String
Capitalizes the first letter of a string.
Python, String
Decapitalizes the first letter of a string.
Python, String
Converts a string to a URL-friendly slug.