Need help with python-snippets?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

progrmoiz
464 Stars 126 Forks 60 Commits 14 Opened issues

Description

:100: The most useful python snippets

Services available

!
?

Need anything else?

Contributors list

# 158,912
Python
code-sn...
32 commits
# 392,599
Python
code-sn...
2 commits
# 4,370
wechat
wechat-...
adafrui...
itchat
1 commit
# 459,680
Python
code-sn...
1 commit
# 428,743
Python
apache-...
Shell
code-sn...
1 commit
# 459,681
Python
code-sn...
1 commit
# 459,682
Python
code-sn...
1 commit
# 459,683
Python
code-sn...
1 commit
# 459,684
Python
code-sn...
1 commit
# 459,685
Python
code-sn...
1 commit
# 454,646
Python
code-sn...
dns
1 commit

Python Snippets

These Snippets can make your life a lot easier than expected, use it wisely.


Snippets TO LEARN

  • 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()
  • listinherited.py Mix-in class that provides a formatted print() or str() (Use dir() to collect both instance attr and names inherited from its classes)
  • listinherited2.py Same as listinherited.py, but more formatted
  • listtree.py Trace the entire class and all its object's attrs at and above self
  • mapattrs.py Map all attributes on or inherited by an instance to the instance or class from which they are inherited.

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.

:arrowup: _Back To Top__

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.