Skip to content

krajasek/pyjamaparty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version Build Status

pyjamaparty

Set of casual python utilities

Mutable String Builder

from pyjamaparty.strutils import string_builder as sb

s = sb.StringBuilder()
s.append('Wow, ')
s.append('such a nice ').append('builder')
print(len(s))

s += ' :)'

s[:3] = 'whee'

s.remove(1)

for c in s:
    pass

print(str(s))

Singleton Decorator

from pyjamaparty.patterns.singleton_pattern import singleton

@singleton
class YouOnlyLiveOnce(object):
    pass

About

Set of casual python utilities, built standing on the shoulders of giants.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages