{"id":4300,"date":"2019-06-15T22:40:55","date_gmt":"2019-06-16T01:40:55","guid":{"rendered":"https:\/\/tangopardo.com.ar\/2cf7\/?p=4300"},"modified":"2019-07-10T11:33:35","modified_gmt":"2019-07-10T14:33:35","slug":"traitlets","status":"publish","type":"post","link":"https:\/\/tangopardo.com.ar\/2cf7\/2019\/06\/15\/traitlets","title":{"rendered":"Traitlets"},"content":{"rendered":"\n<p>Lately I&#8217;ve been hacking on <a href=\"https:\/\/ipython.readthedocs.io\/en\/stable\/\">IPython<\/a> and <a href=\"https:\/\/jupyter.org\/\">Jupyter<\/a>. <\/p>\n\n\n\n<p>That journey led me into <a href=\"https:\/\/traitlets.readthedocs.io\/en\/latest\/index.html\">Traitlets<\/a> and I wish I knew about them before.<\/p>\n\n\n\n<p>For most of my stuff I use <a href=\"https:\/\/docs.python.org\/3\/library\/argparse.html\">argparse<\/a>,  <a href=\"https:\/\/github.com\/jek\/blinker\">blinker<\/a> (when not using <a href=\"https:\/\/developer.gnome.org\/glib\/\">GLib<\/a>) and plain properties.<\/p>\n\n\n\n<p>I knew about traits from long ago but what really liked from a first look is their <a href=\"https:\/\/traitlets.readthedocs.io\/en\/latest\/config.html\">solution to configuration management<\/a>. It&#8217;s clean, self documenting, type checked, composable and can be python code.<\/p>\n\n\n\n<p>I&#8217;m still a bit torn about having a complete programming language as a user configuration tool instead of a DSL or stuff like ini-files, json or the good dialect of yaml.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately I&#8217;ve been hacking on IPython and Jupyter. That journey led me into Traitlets and I wish I knew about them before. For most of my stuff I use argparse, blinker (when not using GLib) and plain properties. I knew about traits from long ago but what really liked from a first look is their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24,4],"tags":[],"class_list":["post-4300","post","type-post","status-publish","format-standard","hentry","category-hacks","category-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pmnbC-17m","_links":{"self":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/comments?post=4300"}],"version-history":[{"count":1,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4300\/revisions"}],"predecessor-version":[{"id":4301,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4300\/revisions\/4301"}],"wp:attachment":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/media?parent=4300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/categories?post=4300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/tags?post=4300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}