GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - progrmoiz/python-snippets: :100: The most useful python snippets

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
README.md
README.md
 
 
classtools.py
classtools.py
 
 
classtree.py
classtree.py
 
 
computedproperty.py
computedproperty.py
 
 
formats.py
formats.py
 
 
listinherited.py
listinherited.py
 
 
listinherited2.py
listinherited2.py
 
 
listinstance.py
listinstance.py
 
 
listtree.py
listtree.py
 
 
logo.png
logo.png
 
 
mapattrs.py
mapattrs.py
 
 
mydir.py
mydir.py
 
 
mymap.py
mymap.py
 
 
myzip.py
myzip.py
 
 
permute.py
permute.py
 
 
reloadall.py
reloadall.py
 
 
scramble.py
scramble.py
 
 
state_retention.py
state_retention.py
 
 
streams.py
streams.py
 
 
string_import.py
string_import.py
 
 
timer.py
timer.py
 
 
timer2.py
timer2.py
 
 
timer3.py
timer3.py
 
 

Repository files navigation

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.

⬆️ Back To Top

About

💯 The most useful python snippets

Topics

awesomecode-snippetscollectionpython

Resources

Readme

Code of conduct

Code of conduct
Activity

Stars

563 stars

Watchers

23 watching

Forks

121 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.