Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(32)  |  Call(15)  |  Derive(9)  |  Import(8)
Skeleton Class.

It should have a `src` attribute set to the path to the skeleton folder
(relative to the class module) and a list of variables, the `variables`
attribute, the skeleton template files require. The variable should be an
object with `name`, `display_name` and `full_description` attributes,
and a prompt method which prompt the user for the variable value
and return it. You can use `skeleton.Var`.

By default a template file ends with "_tmpl" (see the `template_suffix`(more...)

src/s/k/skeleton-0.6/skeleton/__init__.py   skeleton(Download)
"""
 
from skeleton.core import (
    Skeleton, Var, Bool, FileNameKeyError, TemplateKeyError
    )

src/s/k/skeleton_stu-0.6.3/skeleton/__init__.py   skeleton_stu(Download)
"""
 
from skeleton.core import (
    Skeleton, Var, Bool, FileNameKeyError, TemplateKeyError
    )

src/s/k/skeleton-HEAD/skeleton/__init__.py   skeleton(Download)
"""
 
from skeleton.core import (
    Skeleton, Var, Bool, FileNameKeyError, TemplateKeyError
    )

src/p/y/PySeqsee-0.1.2/farg/third_party/skeleton/__init__.py   PySeqsee(Download)
"""
 
from skeleton.core import (
    Skeleton, Var, Bool, FileNameKeyError, TemplateKeyError
    )

src/p/y/PySeqsee-HEAD/farg/third_party/skeleton/__init__.py   PySeqsee(Download)
"""
 
from skeleton.core import (
    Skeleton, Var, Bool, FileNameKeyError, TemplateKeyError
    )

src/s/k/skeleton-0.6/skeleton/tests/test_core.py   skeleton(Download)
 
from skeleton.tests.utils import TestCase, TempDir
from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \
    Bool
 
 
THIS_YEAR = datetime.datetime.utcnow().year
 
 
class WithDefault(Skeleton):
class WithRequirement(Skeleton):
    """Skeleton with other skeleton required"""
    variables = [Var('foo', default=1)]
    required_skeletons = [WithDefault, ]
 
 
class Static(Skeleton):
    def test_skeleton_mapping(self):
        """Tests Skeleton is a Mapping class"""
        skel = Skeleton(foo=1)
        skel['bar'] = 2
        skel['baz'] = 3

src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_core.py   skeleton_stu(Download)
 
from skeleton.tests.utils import TestCase, TempDir
from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \
    Bool
 
 
THIS_YEAR = datetime.datetime.utcnow().year
 
 
class WithDefault(Skeleton):
class WithRequirement(Skeleton):
    """Skeleton with other skeleton required"""
    variables = [Var('foo', default=1)]
    required_skeletons = [WithDefault, ]
 
 
class Static(Skeleton):
    def test_skeleton_mapping(self):
        """Tests Skeleton is a Mapping class"""
        skel = Skeleton(foo=1)
        skel['bar'] = 2
        skel['baz'] = 3

src/s/k/skeleton-HEAD/skeleton/tests/test_core.py   skeleton(Download)
 
from skeleton.tests.utils import TestCase, TempDir
from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \
    Bool
 
 
THIS_YEAR = datetime.datetime.utcnow().year
 
 
class WithDefault(Skeleton):
class WithRequirement(Skeleton):
    """Skeleton with other skeleton required"""
    variables = [Var('foo', default=1)]
    required_skeletons = [WithDefault, ]
 
 
class Static(Skeleton):
    def test_skeleton_mapping(self):
        """Tests Skeleton is a Mapping class"""
        skel = Skeleton(foo=1)
        skel['bar'] = 2
        skel['baz'] = 3