Skip to content

arvidjohansen/varinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

varinfo

varinfo is a set of helper functions for displaying human friendly information about an object's attributes.

>>> from varinfo import varinfo
>>> file = open('example.txt')
>>> varinfo(file)
["buffer -> <class '_io.BufferedReader'>",
 'close()',
 'closed: bool -> False',
 'detach()',
 'encoding: str -> cp1252',
 'errors: str -> strict',
 'fileno()',
 'flush()',
 'isatty()',
 'line_buffering: bool -> False',
 'mode: str -> r',
 'name: str -> example.txt',
 "newlines -> <class 'NoneType'>",
 'read()',
 'readable()',
 'readline()',
 'readlines()',
 'reconfigure()',
 'seek()',
 'seekable()',
 'tell()',
 'truncate()',
 'writable()',
 'write()',
 'write_through: bool -> False',
 'writelines()']
>>>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages