/python-pcep

My code for learning the Python PCEP

Primary LanguagePythonOtherNOASSERTION

python-pcep

My notes and code for learning the Python PCEP. Slowly building this and it may become a Wikibook or published book, not sure. I don't really plan on this being a substitute for the official Python Essentials 1 course material, but you never know.

Syntax highlighting

“Welcome to my house! Enter freely. Go safely, and leave something of the happiness you bring.”Count Dracula, Bram Stoker

I will use the Dracula theme for syntax highlighting the code snippets in the eventual PDF and EPUB along with the Twilio Sans Mono font.

Dracula colour palette

This section was taken verbatim from the Dracula theme GitHub repository as allowed by their use of the MIT License:

Palette Hex RGB HSL Color Picker Boxes
Background #282a36 40 42 54 231° 15% 18% Background Color
Current Line #44475a 68 71 90 232° 14% 31% Current Line Color
Selection #44475a 68 71 90 232° 14% 31% Selection Color
Foreground (variables) #f8f8f2 248 248 242 60° 30% 96% Foreground Color
Comment #6272a4 98 114 164 225° 27% 51% Comment Color
Cyan (built-in functions) #8be9fd 139 233 253 191° 97% 77% Cyan Color
Green (function names) #50fa7b 80 250 123 135° 94% 65% Green Color
Orange (function parameters in italic) #ffb86c 255 184 108 31° 100% 71% Orange Color
Pink (keywords) #ff79c6 255 121 198 326° 100% 74% Pink Color
Purple #bd93f9 189 147 249 265° 89% 78% Purple Color
Red (errors) #ff5555 255 85 85 0° 100% 67% Red Color
Yellow (strings) #f1fa8c 241 250 140 65° 92% 76% Yellow Color

For more details about how to apply these different colors to represent different code symbols, please see the Dracula Specification.

Credits

  • idleburg for providing the Creative Commons licences in the beautiful Markdown format

Licencing

This book is available under the copyleft Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence similar to the Wikimedia Foundation projects such as Wikipedia, Wikibooks and Wikiversity. Please credit me as "Hal Motley" if you use this content. 😀

My Python source code examples are available under the copyfree The 3-Clause BSD License.

Dracula Theme is available under the lenient copyfree MIT License – "Copyright (c) 2023 Dracula Theme". I would like to thank the authors Zeno Rocha and Lucas de França for making this theme completely free and open-source! You can also purchase Dracula PRO to support them.

Twilio provided Twilio Sans Mono under the copyleft SIL OFL licence.