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/.
- 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
- Monthly guest speakers
100% Satisfaction Guaranteed!
Cancel your membership at any time.
FREE Network Automation Tips
The latest network automation tips, delivered weekly!
You've successfully subscribed to Packet Coders.
Success! Your account is fully activated, you now have access to all content.
Welcome back! You've successfully signed in.
Nearly there! To activate your account, please click the link in the email we just sent you.