Debian Codegraph @

traits/examples/_etsdemo_info.py

raw
1 # (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10
11 """ This module provides functions to be advertised in the distribution
12 entry points.
13 """
14
15
16 def introduction(request):
17 """ Return a configuration for contributing examples to the
18 Demo application.
19
20 Parameters
21 ----------
22 request : dict
23 Information provided by the demo application.
24 Currently this is a placeholder.
25
26 Returns
27 -------
28 response : dict
29 """
30 import pkg_resources
31
32 return dict(
33 version=1,
34 name="Traits Introduction",
35 root=(
36 pkg_resources.resource_filename("traits", "examples/introduction")
37 ),
38 )