Skip to content

wegar-2/pyrecipes

Repository files navigation

pyrecipes


Table of Contents

Contents are stored in two subfolders: scripts and notebooks. Cf. list of the specific contents in subsections below.

scripts

Python scripts with snippets pertaining to various topics

  1. algorithms:
    • sorting - implementations of sorting algorithms
  2. base64enc - doing base64 encoding (WiP!)
  3. bits_n_bytes - working with Pythons bytes, bytearray, encoding numbers and test as bytes, etc.
  4. builtin_gttrs_sttrs - explained difference between __getattr__ and __getattribute__
  5. decorators - overview of key use-cases of decorators
  6. fs - file system operations (using pathlib.Path to iterate over directory contents, both recursively and non-recursively, etc.)
  7. function_self_inspection - how to get function's name from within that function
  8. gcp_notes - investigation of select Google Cloud Platform aspects
  9. hackerrank - notes on Hackerrank problems
  10. heapq_notes - notes on using Python's heapq class
  11. iterators_n_generators - overview of iterators and generators in Python
  12. itertools_notes - notes on using select Python itertools package functions
  13. metacls - notes on metaclasses in Python
  14. mypy - notes on Pytohn's static type checked mypy
  15. oop - OOP in Python: notes
  16. operators_overloading - overloading of operators in Python
  17. reading_files - explained difference between read, readline and readlines methods called on open file
  18. singleton_with_mcs - implementing singleton patter in Python using metaclasses
  19. builtins_notes - notes on select builtins
  20. threading_notes - notes on Pythons threading package
  21. regexps - notes on regular expressions in Python with re
  22. rmetaprog - notes on metaprogramming in Python

notebooks

  1. Tutorial on working with time zones in datetime, dateutil and pandas
  2. Overview of useful string columns methods in pandas
  3. f-string formatting of numbers, datetimes and strings

About

Python recipes, snippets, notes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published