import github
import snug

my_github = snug.Session(github.api)


all_orgs = github.Organization[:]
gh_org = github.Organization['github']

orgs = my_github.get(all_orgs)
print(orgs)

# magic approach
# org = my_github.Organization['github'].get()
# print('retrieving organization: {}'.format(org))

# normal approach
org = my_github.get(gh_org)
print('retrieving organization: {}'.format(org))

for field in org.FIELDS.values():
    print('org.{.name}={}'.format(field, getattr(org, field.name)))

@@ -181,142 +181,8 @@
 s)%0A%0A
-# magic approach%0A# org = my_github.Organization%5B'github'%5D.get()%0A# print('retrieving organization: %7B%7D'.format(org))%0A%0A# normal approach%0A
 org 

remove unsupported feature from github example