Skip to content

wwj718/python-snippets

 
 

Repository files navigation

Python Snippets

🐍 Python snippets of examples, to learn things and to make task easier.


Snippets

  • string_import.py example to show import module from string
  • classtools.py assorted class utilities and tools
  • formats.py various specialized string display formatting utilities.
  • mydir.py a module that lists the namespaces of other module
  • mymap.py different ways of implementing map
  • myzip.py different ways of implementing zip
  • permute.py implemented permute
  • reloadall.py transitively reload nested module
  • scramble.py a iterable scrambler
  • streams.py give me reader, writer and a converter
  • timer.py Homegrown timing tools for function calls.
  • timer2.py Homegrown timing tools for function calls.
  • timer3.py Homegrown timing tools for function calls.
  • classtree.py Climb inheritance tree using namespace links, displaying higher superclasses with indentation for height
  • listinstance.py Mix-in class that provides a formatted print() or str()

Contributing

Open an issue or a pull request to suggest changes or additions.

Authors

Abdul Moiz

License

CC0
To the extent possible under law, Abdul Moiz has waived all copyright and related or neighboring rights to Snippets.

⬆️ Back To Top

About

💯 The most useful python snippets

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%