95 projects
djangoproject
djangoproject.com models
write
write(path,content), open.write replacement. python2 and python3 compatible
webloc
get/set webloc url (OS X)
touch
touch(path) - touch python implementation
touch-parents
touch path and parent folders
tolist
tolist(object) - get list. [] default
temp
tempdir(), tempfile() functions
subopen
subprocess.Popen replacement
stdin
stdin variable
shebang
shebang(path) - get script shebang
self
@self decorator makes method return self (jQuery-like chaining)
rstvalidator
.rst (reStructuredText) validator
rreplace
rreplace(string,old,new,count=None) - right replace
rm
rm(path) function - rm file/dir
request
http REQUEST (GET+POST) dict
read
read(path,size=-1,encoding=None) function - read file, open.read replacement
query_string
query_string(string) function - get url query string dict
pypixmlrpc
pypi XML-RPC wrapper
py3
PY3 boolean variable. True if python3
public
@public decorator, public(*objects) function - add objects names to __all__
post
http POST dict
plist-array
plist array management (OS X)
pkgname
pkgname(object) function - get object package name
osascript
osascript(applescript, flags=None) function - osascript (AppleScript) python implementation (OS X)
only
@only.<OS> decorator. raise OSError if not supported OS
objectname
fullname(obj) - get object fullname, pkgname.modname.objectname
moduledict
moduledict(module) function - get dict with module items
mktouch
mkdir and touch
load_module
load_module(fullname,path=None) - imp.load_module replacement
jinja2stdout
jinja2 cli
iTunes-command
itunes commands (OS X)
iswritable
iswritable(path) - True if path is writable
iswildcard
iswildcard(string) function - True if string is wildcard pattern
isstring
isstring(object) - True if object of string type. python2 and python3 compatible
isstaticmethod
isstaticmethod(object) function - True if object is staticmethod
isstandardlibrary
isstandardlibrary(object) function - True if object from Python Standard Library
issharedobject
issharedobject(object) - True if object is shared object (.so module)
isreadable
isreadable(path) - True if path is readable
ispythonsource
ispythonsource(path) - True if path is python file (.py or python shebang)
ispythoncompiled
ispythoncompiled(path) function - True if path is python compiled file
ispublic
ispublic(object,module=None) function - True if object is public (exists in __all__)
isprintable
isprintable(str) - True if str is printable
isoverloaded
isoverloaded(object,cls=None) - True if object is overloaded
isobject
isobject(object) function - True if object is instance of some class
ismatch
ismatch(string,pattern) function - True if string match pattern(s). pattern types: string, wildcard, regex
islambdamethod
islambdamethod(object) function - True if object is lambda method
islambda
islambda(object) function - True if object is lambda function
isinherited
isinherited(object,cls=None) funciton - True if object is inherited (exists in parent class)
isexternalobject
isexternalobject(object,module) function - True if object is imported from other packages
isexecutable
isexecutable(path) - True if file is executable
isclassmethod
isclassmethod(obj) function - True if object is classmethod
isbinaryfile
isbinaryfile(path) function - True if path is binary file
isattribute
isattribute(cls,attr) function
import_path
import_path(path)
idict
case insensitive dict
homepath
userpath(path) function - return path started with ~/
growlnotify
growlnotify(1) Python wrapper (OS X only)
gitmsg
autogenerate git commit message
gitconfigparser
git config parser
gitconfig
Gitconfig class and gitconfig variable for ~/.gitconfig
git-tar
tar folder(s) with .git repos
getobject
getobject(fullname) function - get object by fullname
getclass
getclass(object) function - get object class
getattr
getattr(object,name,default=None) function - builtin getattr replacement
get
http GET dict
fullpath
fullpath(path) - get fullpath
formatvalue
formatvalue(value) function - required for inspect.formatargspec, inspect.formatargvalues
formatfunction
formatfunction(function,...) - format function representation
formatclass
formatclass(cls,...) - format class representation
find_module
find_module(fullname, path=None) function - imp.find_module replacement
distname
distname(object) - get distribution name
dirpath
dirpath(path) function - get path directory
dict
dict replacement
cp
cp(source,target,force=True) function
conf
config class
compare-images
compare images
caller_module
caller_module(depth=0) - get caller module
cached
cached(function) - cache function
assert_exists
assert_exists(*paths) - raise AssertionError if path not exists
app-command
find application path by name (OS X)
accepts
@accepts decorator to check arguments types
comment
comment_get(path), comment_set(path,comment) functions - Finder path comment (OSX)
sync-path
sync files/folders
pyfind
find python files
modindex
standard library modindex
github-command
github cli
getsubclasses
getsubclasses(cls,depth=None) - get class subclasses list
getproperties
getproperties(cls,...) function - get class properties
getprintable
getprintable(str,replace="") - replace non printable chars
getmembers
getmembers(object,...) - inspect.getmembers replacement
getdecorators
getdecorators(object) - get decorators names