from pyyyc_v00 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
this_pres.summarize()
this_pres.time_per_slide()
this_pres.strains_eyes()
js_pres = PyYYCPresentation('JAVASCRIPT', 'RULES', 'PYTHON', 'DROOLS', 'LOLOL')
js_pres.summarize()
js_pres.time_per_slide()
js_pres.strains_eyes()
print(PyYYCPresentation.__doc__)
next_pres = PyYYCPresentation('Rowan and Franklin', 'Shoulder bags', '4:30', 10, 'white')
next_pres.summarize()
next_pres.time_per_slide()
next_pres.strains_eyes()
from pyyyc_v01 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
this_pres.set_nslides(15)
this_pres.nslides
this_pres.set_time_limit('whatever')
this_pres.time_limit = 'whatever'
this_pres.set_slide_color('red')
this_pres.slide_color
js_pres = PyYYCPresentation('JAVASCRIPT', 'RULES', 'PYTHON', 'DROOLS', 'LOLOL')
from pyyyc_v02 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
this_pres.nslides = 15
this_pres.nslides
this_pres._nslides
this_pres.time_limit = 'whatever'
this_pres.slide_color = 'red'
this_pres.slide_color
from pyyyc_v03 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
js_pres = YYCjsPresentation(
presenter='Franklin',
topic='How javascript rules and literally everything else drools. lolol',
time_limit=5.,
nslides=100,
slide_color='green'
)
happy_pres = FreeSpiritPresentation(
presenter='Moonflower',
favorite_color=[255, 51, 153]
)
happy_pres.summarize()
from pyyyc_v04 import *
from pyyyc_v05 import *
confirmColor('red')
confirmColor([10000, .1, .3])
from pyyyc_v06 import *
from pyyyc_v07 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
this_pres.slide_color = 'red'
this_pres.slide_color
this_pres._slide_color
from pyyyc_v08 import *
from pyyyc_v09 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
new_pres = PyYYCPresentation()
new_pres.time_limit = '1:30'
new_pres.time_limit = 90.
new_pres.summarize()
new_pres.summarize = 'Oops, but that is just python...'
summarized_pres = PyYYCPresentation(
summarize = 'Hmm, that is a bigger oops...'
)
nefarious_pres = PyYYCPresentation(
presenter = 'Franklin',
_presenter = 'Dr. Nefarious'
)
from pyyyc_v10 import *
from pyyyc_v11 import *
from pyyyc_v12 import *
pres = PyYYCPresentation()
pres.__class__.__name__
from pyyyc_v12 import *
pres = PyYYCPresentation()
pres._props
from pyyyc_v13 import *
this_pres = PyYYCPresentation(
presenter='Franklin',
topic='Metaclasses',
time_limit=90.,
nslides=10,
slide_color=[0, 0, 0]
)
this_pres._slide_color
this_pres.slide_color = 'red'
this_pres.slide_color
this_pres._slide_color
from pyyyc_v14 import *
class SkateparkAccolades(WithSpecialProps):
mad_props = StrProp()
props = StrProp()
def compliment(self):
print('Dude, {props}. I mean seriously, {mad_props}!'.format(
props=self.props,
mad_props=self.mad_props
))
from pyyyc_v15 import *
PyYYCPresentation?
import pyyyc_v16
pyyyc_v16._REGISTRY
for key in pyyyc_v16._REGISTRY:
print(pyyyc_v16._REGISTRY[key].__doc__ + 60*'_' + '\n')
from pyyyc_v17 import *
from pyyyc_v18 import *
me = Person(name='Franklin', bio='python, 3ptscience, coffee')
slide1 = Slide(topic='PyYYC', slide_color='black')
slide2 = Slide(topic='Wrappers', slide_color=[100, 100, 100])
slide3 = Slide(topic='Metaclasses', slide_color='mediumslateblue')
ppt = PyYYCPresentation(
presenter=me,
topic='Data and Logic',
time_limit=90.,
slides=[slide1, slide2, slide3]
)
ppt.cliff_notes()
Visit our website, 3ptscience.com
Use properties
yourself!
pip install properties
(or find it on Github, Docs, PyPI)
Check out Steno3D, our online 3D visualization software: steno3d.com
pip install steno3d
(or find it on Github, Docs, PyPI)
Some good videos: Metaprogramming, Declarative interfaces, or just google python descriptors, wrappers, metaclasses...