For those of you who are automating your networks with Python, here's a little tool that will save you a ton of time and also make your code look like it's been written by a pro! Its called Black.

Black is an awesome code formatter that you simply point at your code, and it does the work to auto-format it against all the Python PEP formatting standards, in a blink!

Below shows an example:

There is an online version as well if you need to quickly format a block of code, which can found at https://black.now.sh/.

Master Network Automation
Join today and get access to:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 Multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Monthly online meetups

100% Satisfaction Guaranteed!
Cancel your membership at any time.


Join Today