Commits

Ralph Bean  committed 86b5fdc

refactoring into subpackages

  • Participants
  • Parent commits 6a44392

Comments (0)

Files changed (33)

 include README.rst
-recursive-include tw2/protovis/templates *
-recursive-include tw2/protovis/static *
+recursive-include tw2/protovis/core/templates *
+recursive-include tw2/protovis/core/static *
-tw2.protovis
+tw2.protovis.core
 =======
 
 :Author: Ralph Bean <ralph.bean@gmail.com>
 .. _toscawidgets2 (tw2): http://toscawidgets.org/documentation/tw2.core/
 .. _protovis: http://vis.stanford.edu/protovis/
 
-tw2.protovis is a `toscawidgets2 (tw2)`_ wrapper for `protovis`_.
+tw2.protovis.core is a `toscawidgets2 (tw2)`_ wrapper for `protovis`_.
 
 Live Demo
 ---------
 
-Peep the `live demonstration <http://craftsman.rc.rit.edu/module?module=tw2.protovis>`_.
+Peep the `live demonstration <http://craftsman.rc.rit.edu/module?module=tw2.protovis.core>`_.
 
 Links
 -----
 
-You can `get the source from github <http://github.com/ralphbean/tw2.protovis>`_,
-check out `the PyPI page <http://pypi.python.org/pypi/tw2.protovis>`_, ant
+You can `get the source from github <http://github.com/ralphbean/tw2.protovis.core>`_,
+check out `the PyPI page <http://pypi.python.org/pypi/tw2.protovis.core>`_, ant
 d
-report or look into `bugs <http://github.com/ralphbean/tw2.protovis/issues/>`_.
+report or look into `bugs <http://github.com/ralphbean/tw2.protovis.core/issues/>`_.
 
 Description
 -----------
 
 `protovis`_ composes custom views of data with simple marks such as bars and dots. Unlike low-level graphics libraries that quickly become tedious for visualization, Protovis defines marks through dynamic properties that encode data, allowing inheritance, scales and layouts to simplify construction.
 
-This module, tw2.protovis, provides `toscawidgets2 (tw2)`_ widgets that render `protovis`_ data visualizations.
+This module, tw2.protovis.core, provides `toscawidgets2 (tw2)`_ widgets that render `protovis`_ data visualizations.
 
 
-Sampling tw2.protovis in the WidgetBrowser
+Sampling tw2.protovis.core in the WidgetBrowser
 -------------------------------------
 
-The best way to scope out ``tw2.protovis`` is to load its widgets in the 
+The best way to scope out ``tw2.protovis.core`` is to load its widgets in the 
 ``tw2.devtools`` WidgetBrowser.  To see the source code that configures them,
-check out ``tw2.protovis/samples.py``
+check out ``tw2.protovis.core/samples.py``
 
 To give it a try you'll need git, mercurial, python, and virtualenv.  Run:
 
-    ``git clone git://github.com/ralphbean/tw2.protovis.git``
+    ``git clone git://github.com/ralphbean/tw2.protovis.core.git``
 
-    ``cd tw2.protovis``
+    ``cd tw2.protovis.core``
 
 The following script will set up all the necessary tw2 dependencies in a
 python virtualenv:
 f.close()
 
 setup(
-    name='tw2.protovis',
+    name='tw2.protovis.core',
     version='0.1.a0',
     description='toscawidgets2 wrapper for the stanford protovis toolkit',
     long_description=long_description,
     entry_points="""
         [tw2.widgets]
         # Register your widgets so they can be listed in the WidgetBrowser
-        tw2.protovis = tw2.protovis
+        tw2.protovis.core = tw2.protovis.core
     """,
     keywords = [
         'toscawidgets.widgets',

File tw2/protovis/__init__.py

-"""
-This package contains the basic protovis widgets.
-
-Get this source from http://github.com/ralphbean/tw2.protovis
-
-Protovis itself can be found here:  http://vis.stanford.edu/protovis/
-"""
-
-__basename__ = "protovis"
-__version__ = "3.2"
-
-from widgets import *
+__import__('pkg_resources').declare_namespace(__name__)

File tw2/protovis/core/__init__.py

+"""
+This package contains the basic protovis widgets.
+
+Get this source from http://github.com/ralphbean/tw2.protovis
+
+Protovis itself can be found here:  http://vis.stanford.edu/protovis/
+"""
+
+__basename__ = "protovis"
+__version__ = "3.2"
+
+from widgets import *

File tw2/protovis/core/samples.py

+""" Samples of how to use tw2.jit
+
+Each class exposed in the widgets submodule has an accompanying Demo<class>
+widget here with some parameters filled out.
+
+The demos implemented here are what is displayed in the tw2.devtools
+WidgetBrowser.
+"""
+

File tw2/protovis/core/static/protovis/3.2/.DS_Store

Binary file added.

File tw2/protovis/core/static/protovis/3.2/LICENSE

+Copyright (c) 2010, Stanford Visualization Group
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+
+  * Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+
+  * Neither the name of Stanford University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File tw2/protovis/core/static/protovis/3.2/README

+Protovis v3.2
+
+For documentation, see http://protovis.org.
+For development, see http://gitorious.org/protovis.