diff --git a/.gitignore b/.gitignore
index 4d61b9286..81642b0e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,15 +4,16 @@ babel
.coverage
_build
_static
-dashed/bin/dashedc
+caravel/bin/caravelc
+envpy3
build
*.db
tmp
-dashed_config.py
+caravel_config.py
local_config.py
env
dist
-dashed.egg-info/
+caravel.egg-info/
app.db
*.bak
diff --git a/.landscape.yml b/.landscape.yml
index 93e2e8d44..48a06e4ce 100644
--- a/.landscape.yml
+++ b/.landscape.yml
@@ -16,8 +16,8 @@ pep8:
full: true
ignore-paths:
- docs
- - dashed/migrations/env.py
- - dashed/ascii_art.py
+ - caravel/migrations/env.py
+ - caravel/ascii_art.py
ignore-patterns:
- ^example/doc_.*\.py$
- (^|/)docs(/|$)
diff --git a/.travis.yml b/.travis.yml
index 7035ea95e..2f22d1c16 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@ before_install:
install:
- pip wheel -w $HOME/.wheelhouse -f $HOME/.wheelhouse .
- pip install --find-links=$HOME/.wheelhouse --no-index .
- - cd dashed/assets
+ - cd caravel/assets
- npm install
- npm run lint
- npm run prod
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9410d800c..ec80742ac 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -30,8 +30,8 @@ Look through the GitHub issues for features. Anything tagged with
### Documentation
-Dashed could always use better documentation,
-whether as part of the official Dashed docs,
+Caravel could always use better documentation,
+whether as part of the official Caravel docs,
in docstrings, `docs/*.rst` or even on the web as blog posts or
articles.
@@ -49,14 +49,14 @@ If you are proposing a feature:
## Latest Documentation
-[API Documentation](http://pythonhosted.com/dashed)
+[API Documentation](http://pythonhosted.com/caravel)
## Setting up a Python development environment
# fork the repo on github and then clone it
# alternatively you may want to clone the main repo but that won't work
# so well if you are planning on sending PRs
- # git clone git@github.com:mistercrunch/dashed.git
+ # git clone git@github.com:mistercrunch/caravel.git
# [optional] setup a virtual env and activate it
virtualenv env
@@ -66,24 +66,24 @@ If you are proposing a feature:
python setup.py develop
# Create an admin user
- fabmanager create-admin --app dashed
+ fabmanager create-admin --app caravel
# Initialize the database
- dashed db upgrade
+ caravel db upgrade
# Create default roles and permissions
- dashed init
+ caravel init
# Load some data to play with
- dashed load_examples
+ caravel load_examples
# start a dev web server
- dashed runserver -d
+ caravel runserver -d
## Setting up the node / npm javascript environment
-`dashed/assets` contains all npm-managed, front end assets.
+`caravel/assets` contains all npm-managed, front end assets.
Flask-Appbuilder itself comes bundled with jQuery and bootstrap.
While these may be phased out over time, these packages are currently not
managed with npm.
@@ -116,7 +116,7 @@ new `node_modules/` folder within `assets/`.
npm install
```
-To parse and generate bundled files for dashed, run either of the
+To parse and generate bundled files for caravel, run either of the
following commands. The `dev` flag will keep the npm script running and
re-run it upon any changes within the assets directory.
@@ -132,7 +132,7 @@ For every development session you will have to start a flask dev server
as well as an npm watcher
```
-dashed runserver -d -p 8081
+caravel runserver -d -p 8081
npm run dev
```
@@ -157,12 +157,12 @@ Generate the documentation with:
cd docs && ./build.sh
## CSS Themes
-As part of the npm build process, CSS for Dashed is compiled from ```Less```, a dynamic stylesheet language.
+As part of the npm build process, CSS for Caravel is compiled from ```Less```, a dynamic stylesheet language.
-It's possible to customize or add your own theme to Dashed, either by overriding CSS rules or preferably
+It's possible to customize or add your own theme to Caravel, either by overriding CSS rules or preferably
by modifying the Less variables or files in ```assets/stylesheets/less/```.
-The ```variables.less``` and ```bootswatch.less``` files that ship with Dashed are derived from
+The ```variables.less``` and ```bootswatch.less``` files that ship with Caravel are derived from
[Bootswatch](https://bootswatch.com) and thus extend Bootstrap. Modify variables in these files directly, or
swap them out entirely with the equivalent files from other Bootswatch (themes)[https://github.com/thomaspark/bootswatch.git]
diff --git a/MANIFEST.in b/MANIFEST.in
index ce0e121d0..72c6b65f0 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,8 +1,8 @@
-recursive-include dashed/templates *
-recursive-include dashed/static *
-recursive-exclude dashed/static/assets/node_modules *
-recursive-include dashed/static/assets/node_modules/font-awesome *
-recursive-exclude dashed/static/docs *
+recursive-include caravel/templates *
+recursive-include caravel/static *
+recursive-exclude caravel/static/assets/node_modules *
+recursive-include caravel/static/assets/node_modules/font-awesome *
+recursive-exclude caravel/static/docs *
recursive-exclude tests *
-recursive-include dashed/data *
-recursive-include dashed/migrations *
+recursive-include caravel/data *
+recursive-include caravel/migrations *
diff --git a/README.md b/README.md
index 2cbfb9b19..93a831267 100644
--- a/README.md
+++ b/README.md
@@ -1,33 +1,33 @@
-Dashed
+Caravel
=========
-[](https://badge.fury.io/py/dashed)
-[](https://coveralls.io/github/airbnb/dashed?branch=master)
-[](https://landscape.io/github/airbnb/dashed/master)
-[](https://requires.io/github/airbnb/dashed/requirements/?branch=master)
-[](https://gitter.im/airbnb/dashed?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[](https://badge.fury.io/py/caravel)
+[](https://coveralls.io/github/airbnb/caravel?branch=master)
+[](https://landscape.io/github/airbnb/caravel/master)
+[](https://requires.io/github/airbnb/caravel/requirements/?branch=master)
+[](https://gitter.im/airbnb/caravel?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-Dashed is a data exploration platform designed to be visual, intuitive
+Caravel is a data exploration platform designed to be visual, intuitive
and interactive.
[this project used to be named **Panoramix**]
-Video - Introduction to Dashed
+Video - Introduction to Caravel
---------------------------------
-[](http://www.youtube.com/watch?v=3Txm_nj_R7M)
+[](http://www.youtube.com/watch?v=3Txm_nj_R7M)
Screenshots
------------


-Dashed
+Caravel
---------
-Dashed's main goal is to make it easy to slice, dice and visualize data.
+Caravel's main goal is to make it easy to slice, dice and visualize data.
It empowers its user to perform **analytics at the speed of thought**.
-Dashed provides:
+Caravel provides:
* A quick way to intuitively visualize datasets
* Create and share interactive dashboards
* A rich set of visualizations to analyze your data, as well as a flexible
@@ -40,14 +40,14 @@ Dashed provides:
displayed in the UI,
by defining which fields should show up in which dropdown and which
aggregation and function (metrics) are made available to the user
-* Deep integration with Druid allows for Dashed to stay blazing fast while
+* Deep integration with Druid allows for Caravel to stay blazing fast while
slicing and dicing large, realtime datasets
Database Support
----------------
-Dashed was originally designed on to of Druid.io, but quickly broadened
+Caravel was originally designed on to of Druid.io, but quickly broadened
its scope to support other databases through the use of SqlAlchemy, a Python
ORM that is compatible with
[most common databases](http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html).
@@ -68,36 +68,36 @@ power analytic dashboards and applications.*
Installation
------------
-Dashed is currently only tested using Python 2.7.*. Python 3 support is
+Caravel is currently only tested using Python 2.7.*. Python 3 support is
on the roadmap, Python 2.6 won't be supported.
-Follow these few simple steps to install Dashed.
+Follow these few simple steps to install Caravel.
```
-# Install dashed
-pip install dashed
+# Install caravel
+pip install caravel
# Create an admin user
-fabmanager create-admin --app dashed
+fabmanager create-admin --app caravel
# Initialize the database
-dashed db upgrade
+caravel db upgrade
# Create default roles and permissions
-dashed init
+caravel init
# Load some data to play with
-dashed load_examples
+caravel load_examples
# Start the development web server
-dashed runserver -d
+caravel runserver -d
```
After installation, you should be able to point your browser to the right
hostname:port [http://localhost:8088](http://localhost:8088), login using
the credential you entered while creating the admin account, and navigate to
`Menu -> Admin -> Refresh Metadata`. This action should bring in all of
-your datasources for Dashed to be aware of, and they should show up in
+your datasources for Caravel to be aware of, and they should show up in
`Menu -> Datasources`, from where you can start playing with your data!
Configuration
@@ -134,14 +134,14 @@ More screenshots
Related Links
-------------
-* [Dashed Google Group] (https://groups.google.com/forum/#!forum/airbnb_dashed)
-* [Gitter (live chat) Channel](https://gitter.im/airbnb/dashed)
+* [Caravel Google Group] (https://groups.google.com/forum/#!forum/airbnb_caravel)
+* [Gitter (live chat) Channel](https://gitter.im/airbnb/caravel)
Tip of the Hat
--------------
-Dashed would not be possible without these great frameworks / libs
+Caravel would not be possible without these great frameworks / libs
* Flask App Builder - Allowing us to focus on building the app quickly while
getting the foundation for free
@@ -153,4 +153,4 @@ getting the foundation for free
Contributing
------------
-Interested in contributing? Casual hacking? Check out [Contributing.MD](https://github.com/airbnb/dashed/blob/master/CONTRIBUTING.md)
+Interested in contributing? Casual hacking? Check out [Contributing.MD](https://github.com/airbnb/caravel/blob/master/CONTRIBUTING.md)
diff --git a/TODO.md b/TODO.md
index e753f4a5e..25ffabfb4 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,5 +1,5 @@
# TODO
-List of TODO items for Dashed
+List of TODO items for Caravel
## Important
* **Getting proper JS testing:** unit tests on the Python side are pretty
@@ -7,7 +7,7 @@ List of TODO items for Dashed
testing all the ajax-type calls
* **Viz Plugins:** Allow people to define and share visualization plugins.
ideally one would only need to drop in a set of files in a folder and
- Dashed would discover and expose the plugins
+ Caravel would discover and expose the plugins
## Features
* **Stars:** set dashboards, slices and datasets as favorites
diff --git a/alembic.ini b/alembic.ini
index 6d12b48b5..b5a165360 100644
--- a/alembic.ini
+++ b/alembic.ini
@@ -29,7 +29,7 @@ script_location = migrations
# are written from script.py.mako
# output_encoding = utf-8
-sqlalchemy.url = scheme://localhost/dashed
+sqlalchemy.url = scheme://localhost/caravel
# Logging configuration
[loggers]
diff --git a/caravel/__init__.py b/caravel/__init__.py
index 6dfc8b2aa..c3517f0c2 100644
--- a/caravel/__init__.py
+++ b/caravel/__init__.py
@@ -10,7 +10,7 @@ from flask.ext.cache import Cache
APP_DIR = os.path.dirname(__file__)
-CONFIG_MODULE = os.environ.get('DASHED_CONFIG', 'dashed.config')
+CONFIG_MODULE = os.environ.get('CARAVEL_CONFIG', 'caravel.config')
# Logging configuration
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(name)s:%(message)s')
@@ -28,15 +28,15 @@ migrate = Migrate(app, db, directory=APP_DIR + "/migrations")
class MyIndexView(IndexView):
@expose('/')
def index(self):
- return redirect('/dashed/welcome')
+ return redirect('/caravel/welcome')
appbuilder = AppBuilder(
app, db.session,
- base_template='dashed/base.html',
+ base_template='caravel/base.html',
indexview=MyIndexView,
security_manager_class=app.config.get("CUSTOM_SECURITY_MANAGER"))
sm = appbuilder.sm
get_session = appbuilder.get_session
-from dashed import config, views # noqa
+from caravel import config, views # noqa
diff --git a/caravel/assets/javascripts/dashboard.js b/caravel/assets/javascripts/dashboard.js
index 57dccfd6d..e3ef7d545 100644
--- a/caravel/assets/javascripts/dashboard.js
+++ b/caravel/assets/javascripts/dashboard.js
@@ -1,6 +1,6 @@
var $ = window.$ = require('jquery');
var jQuery = window.jQuery = $;
-var px = require('./modules/dashed.js');
+var px = require('./modules/caravel.js');
var d3 = require('d3');
require('bootstrap');
@@ -8,7 +8,7 @@ var ace = require('brace');
require('brace/mode/css');
require('brace/theme/crimson_editor');
-require('./dashed-select2.js');
+require('./caravel-select2.js');
require('../node_modules/gridster/dist/jquery.gridster.min.css');
require('../node_modules/gridster/dist/jquery.gridster.min.js');
@@ -137,7 +137,7 @@ var Dashboard = function (dashboardData) {
};
$.ajax({
type: "POST",
- url: '/dashed/save_dash/' + dashboard.id + '/',
+ url: '/caravel/save_dash/' + dashboard.id + '/',
data: {
data: JSON.stringify(data)
},
diff --git a/caravel/assets/javascripts/explore.js b/caravel/assets/javascripts/explore.js
index 343f53099..ce6f91173 100644
--- a/caravel/assets/javascripts/explore.js
+++ b/caravel/assets/javascripts/explore.js
@@ -5,13 +5,13 @@
// js
var $ = window.$ = require('jquery');
var jQuery = window.jQuery = $;
-var px = require('./modules/dashed.js');
+var px = require('./modules/caravel.js');
require('jquery-ui');
$.widget.bridge('uitooltip', $.ui.tooltip); // Shutting down jq-ui tooltips
require('bootstrap');
-require('./dashed-select2.js');
+require('./caravel-select2.js');
require('../node_modules/bootstrap-toggle/js/bootstrap-toggle.min.js');
diff --git a/caravel/assets/javascripts/index.jsx b/caravel/assets/javascripts/index.jsx
index d12ac3d59..c84528c8e 100644
--- a/caravel/assets/javascripts/index.jsx
+++ b/caravel/assets/javascripts/index.jsx
@@ -8,7 +8,7 @@ class App extends React.Component {
render () {
return (
Extensible visualization tool for exploring data from any database.Dashed
+ Caravel
an open source data visualization platform
diff --git a/caravel/utils.py b/caravel/utils.py index 1a7f8f457..9944be272 100644 --- a/caravel/utils.py +++ b/caravel/utils.py @@ -1,4 +1,4 @@ -"""Utility functions used across Dashed""" +"""Utility functions used across Caravel""" from datetime import datetime import hashlib @@ -169,11 +169,11 @@ class ColorFactory(object): return self.BNB_COLORS[i % len(self.BNB_COLORS)] -def init(dashed): - """Inits the Dashed application with security roles and such""" - db = dashed.db - models = dashed.models - sm = dashed.appbuilder.sm +def init(caravel): + """Inits the Caravel application with security roles and such""" + db = caravel.db + models = caravel.models + sm = caravel.appbuilder.sm alpha = sm.add_role("Alpha") admin = sm.add_role("Admin") diff --git a/caravel/views.py b/caravel/views.py index cec973b16..11f76f58d 100644 --- a/caravel/views.py +++ b/caravel/views.py @@ -1,4 +1,4 @@ -"""Flask web views for Dashed""" +"""Flask web views for Caravel""" from datetime import datetime import json @@ -21,7 +21,7 @@ import pandas as pd from sqlalchemy import select, text from sqlalchemy.sql.expression import TextAsFrom -from dashed import appbuilder, db, models, viz, utils, app, sm, ascii_art +from caravel import appbuilder, db, models, viz, utils, app, sm, ascii_art config = app.config log_this = models.Log.log_this @@ -44,11 +44,11 @@ class DeleteMixin(object): return redirect(self.get_redirect()) -class DashedModelView(ModelView): +class CaravelModelView(ModelView): page_size = 500 -class TableColumnInlineView(CompactCRUDMixin, DashedModelView): # noqa +class TableColumnInlineView(CompactCRUDMixin, CaravelModelView): # noqa datamodel = SQLAInterface(models.TableColumn) can_delete = False edit_columns = [ @@ -69,7 +69,7 @@ appbuilder.add_view_no_menu(TableColumnInlineView) -class DruidColumnInlineView(CompactCRUDMixin, DashedModelView): # noqa +class DruidColumnInlineView(CompactCRUDMixin, CaravelModelView): # noqa datamodel = SQLAInterface(models.DruidColumn) edit_columns = [ 'column_name', 'description', 'datasource', 'groupby', @@ -86,7 +86,7 @@ class DruidColumnInlineView(CompactCRUDMixin, DashedModelView): # noqa appbuilder.add_view_no_menu(DruidColumnInlineView) -class SqlMetricInlineView(CompactCRUDMixin, DashedModelView): # noqa +class SqlMetricInlineView(CompactCRUDMixin, CaravelModelView): # noqa datamodel = SQLAInterface(models.SqlMetric) list_columns = ['metric_name', 'verbose_name', 'metric_type'] edit_columns = [ @@ -97,7 +97,7 @@ class SqlMetricInlineView(CompactCRUDMixin, DashedModelView): # noqa appbuilder.add_view_no_menu(SqlMetricInlineView) -class DruidMetricInlineView(CompactCRUDMixin, DashedModelView): # noqa +class DruidMetricInlineView(CompactCRUDMixin, CaravelModelView): # noqa datamodel = SQLAInterface(models.DruidMetric) list_columns = ['metric_name', 'verbose_name', 'metric_type'] edit_columns = [ @@ -112,15 +112,15 @@ class DruidMetricInlineView(CompactCRUDMixin, DashedModelView): # noqa appbuilder.add_view_no_menu(DruidMetricInlineView) -class DatabaseView(DashedModelView, DeleteMixin): # noqa +class DatabaseView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.Database) list_columns = ['database_name', 'sql_link', 'created_by_', 'changed_on'] order_columns = utils.list_minus(list_columns, ['created_by_']) add_columns = ['database_name', 'sqlalchemy_uri', 'cache_timeout'] search_exclude_columns = ('password',) edit_columns = add_columns - add_template = "dashed/models/database/add.html" - edit_template = "dashed/models/database/edit.html" + add_template = "caravel/models/database/add.html" + edit_template = "caravel/models/database/edit.html" base_order = ('changed_on', 'desc') description_columns = { 'sqlalchemy_uri': ( @@ -147,7 +147,7 @@ appbuilder.add_view( category_icon='fa-database',) -class TableModelView(DashedModelView, DeleteMixin): # noqa +class TableModelView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.SqlaTable) list_columns = [ 'table_link', 'database', 'sql_link', 'is_featured', @@ -190,7 +190,7 @@ appbuilder.add_view( appbuilder.add_separator("Sources") -class DruidClusterModelView(DashedModelView, DeleteMixin): # noqa +class DruidClusterModelView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.DruidCluster) add_columns = [ 'cluster_name', @@ -210,7 +210,7 @@ if config['DRUID_IS_ACTIVE']: category_icon='fa-database',) -class SliceModelView(DashedModelView, DeleteMixin): # noqa +class SliceModelView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.Slice) can_add = False label_columns = { @@ -252,7 +252,7 @@ class SliceAsync(SliceModelView): # noqa appbuilder.add_view_no_menu(SliceAsync) -class DashboardModelView(DashedModelView, DeleteMixin): # noqa +class DashboardModelView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.Dashboard) label_columns = { 'created_by_': 'Creator', @@ -301,7 +301,7 @@ class DashboardModelViewAsync(DashboardModelView): # noqa appbuilder.add_view_no_menu(DashboardModelViewAsync) -class LogModelView(DashedModelView): +class LogModelView(CaravelModelView): datamodel = SQLAInterface(models.Log) list_columns = ('user', 'action', 'dttm') edit_columns = ('user', 'action', 'dttm', 'json') @@ -314,7 +314,7 @@ appbuilder.add_view( icon="fa-list-ol") -class DruidDatasourceModelView(DashedModelView, DeleteMixin): # noqa +class DruidDatasourceModelView(CaravelModelView, DeleteMixin): # noqa datamodel = SQLAInterface(models.DruidDatasource) list_columns = [ 'datasource_link', 'cluster', 'owner', @@ -390,9 +390,9 @@ class R(BaseView): appbuilder.add_view_no_menu(R) -class Dashed(BaseView): +class Caravel(BaseView): - """The base views for Dashed!""" + """The base views for Caravel!""" @has_access @expose("/explore/
an open source data visualization platform
@@ -80,7 +80,7 @@is an open source data visualization platform that provides easy exploration of your data and allows you to create and share diff --git a/docs/build.sh b/docs/build.sh index ff54c955c..8347f2a47 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash rm -rf _build make html -cp -r ../dashed/assets/images/ _build/html/_static/img/ -rm -rf /tmp/dashed-docs -cp -r _build/html /tmp/dashed-docs +cp -r ../caravel/assets/images/ _build/html/_static/img/ +rm -rf /tmp/caravel-docs +cp -r _build/html /tmp/caravel-docs diff --git a/docs/conf.py b/docs/conf.py index 6be2338a5..c362857ad 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# dashed documentation build configuration file, created by +# caravel documentation build configuration file, created by # sphinx-quickstart on Thu Dec 17 15:42:06 2015. # # This file is execfile()d with the current directory set to its @@ -51,7 +51,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'dashed' +project = u'caravel' copyright = u'2015, Maxime Beauchemin, Airbnb' author = u'Maxime Beauchemin' @@ -121,7 +121,7 @@ html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() # documentation. html_theme_options = { # 'bootswatch_theme': 'cosmo', - 'navbar_title': 'Dashed Documentation', + 'navbar_title': 'Caravel Documentation', 'navbar_fixed_top': "false", 'navbar_sidebarrel': False, 'navbar_site_name': "Topics", @@ -213,7 +213,7 @@ html_show_sourcelink = False #html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = 'dasheddoc' +htmlhelp_basename = 'caraveldoc' # -- Options for LaTeX output --------------------------------------------- @@ -235,7 +235,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'dashed.tex', u'Dashed Documentation', + (master_doc, 'caravel.tex', u'Caravel Documentation', u'Maxime Beauchemin', 'manual'), ] @@ -265,7 +265,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'Dashed', u'dashed Documentation', + (master_doc, 'Caravel', u'caravel Documentation', [author], 1) ] @@ -279,8 +279,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'Dashed', u'Dashed Documentation', - author, 'Dashed', 'One line description of project.', + (master_doc, 'Caravel', u'Caravel Documentation', + author, 'Caravel', 'One line description of project.', 'Miscellaneous'), ] diff --git a/docs/index.rst b/docs/index.rst index 037db7904..1008b7c22 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,5 @@ .. warning:: This project used to be name Panoramix and has been renamed - to Dashed in March 2016 + to Caravel in March 2016 Overview ======================================= diff --git a/docs/user_guide.rst b/docs/user_guide.rst index 9844300a6..20758ff56 100644 --- a/docs/user_guide.rst +++ b/docs/user_guide.rst @@ -2,11 +2,11 @@ User Guide ========== The user guide is a collection of short videos showing different aspect -of Dashed. +of Caravel. Quick Intro ''''''''''' -This video demonstrates how Dashed works at a high level, it shows how +This video demonstrates how Caravel works at a high level, it shows how to navigate through datasets and dashboards that are already available. .. youtube:: https://www.youtube.com/watch?v=3Txm_nj_R7M @@ -41,7 +41,7 @@ to toggle them on dashboards. Adding a Table '''''''''''''' -This videos shows you how to expose a new table in Dashed, and how to +This videos shows you how to expose a new table in Caravel, and how to define the semantics on how this can be accessed by others in the ``Explore`` and ``Dashboard`` views. diff --git a/run_tests.sh b/run_tests.sh index f04fa0a1b..5fb6ab7f4 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -rm /tmp/dashed_unittests.db -export DASHED_CONFIG=tests.dashed_test_config -dashed/bin/dashed db upgrade +rm /tmp/caravel_unittests.db +export CARAVEL_CONFIG=tests.caravel_test_config +caravel/bin/caravel db upgrade python setup.py nosetests diff --git a/setup.cfg b/setup.cfg index fefdc5c89..e59395f2e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = Dashed +name = Caravel summary = a data exploration platform description-file = README.md author = Maxime Beauchemin @@ -7,7 +7,7 @@ author-email = maximebeauchemin@gmail.com license = Apache License, Version 2.0 [files] -packages = dashed +packages = caravel [build_sphinx] source-dir = docs/ @@ -21,4 +21,4 @@ upload-dir = docs/_build/html verbosity=1 detailed-errors=1 with-coverage=1 -cover-package=dashed +cover-package=caravel diff --git a/setup.py b/setup.py index 90a252dfe..f5055fe9b 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages version = '0.8.4' setup( - name='dashed', + name='caravel', description=( "A interactive data visualization platform build on SqlAlchemy " "and druid.io"), @@ -11,7 +11,7 @@ setup( packages=find_packages(), include_package_data=True, zip_safe=False, - scripts=['dashed/bin/dashed'], + scripts=['caravel/bin/caravel'], install_requires=[ 'alembic>=0.8.5, <0.9.0', 'cryptography>=1.1.1, <2.0.0', @@ -38,7 +38,7 @@ setup( tests_require=['coverage'], author='Maxime Beauchemin', author_email='maximebeauchemin@gmail.com', - url='https://github.com/airbnb/dashed', + url='https://github.com/airbnb/caravel', download_url=( - 'https://github.com/airbnb/dashed/tarball/' + version), + 'https://github.com/airbnb/caravel/tarball/' + version), ) diff --git a/tests/caravel_test_config.py b/tests/caravel_test_config.py index f61541e88..14d9ef75f 100644 --- a/tests/caravel_test_config.py +++ b/tests/caravel_test_config.py @@ -1,6 +1,6 @@ -from dashed.config import * +from caravel.config import * AUTH_USER_REGISTRATION_ROLE = 'alpha' -SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/dashed_unittests.db' +SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/caravel_unittests.db' DEBUG = True -DASHED_WEBSERVER_PORT = 8081 +CARAVEL_WEBSERVER_PORT = 8081 diff --git a/tests/core_tests.py b/tests/core_tests.py index 41cf79c9e..dc35f6e28 100644 --- a/tests/core_tests.py +++ b/tests/core_tests.py @@ -2,13 +2,13 @@ import imp import doctest import os import unittest -os.environ['DASHED_CONFIG'] = 'tests.dashed_test_config' +os.environ['CARAVEL_CONFIG'] = 'tests.caravel_test_config' from flask.ext.testing import LiveServerTestCase, TestCase -import dashed -from dashed import app, db, models, utils +import caravel +from caravel import app, db, models, utils BASE_DIR = app.config.get("BASE_DIR") -cli = imp.load_source('cli', BASE_DIR + "/bin/dashed") +cli = imp.load_source('cli', BASE_DIR + "/bin/caravel") class LiveTest(TestCase): @@ -22,7 +22,7 @@ class LiveTest(TestCase): pass def test_init(self): - utils.init(dashed) + utils.init(caravel) def test_load_examples(self): cli.load_examples(sample=True) @@ -39,7 +39,7 @@ class LiveTest(TestCase): self.client.get(viz.get_json()) def test_csv(self): - self.client.get('/dashed/explore/table/1/?viz_type=table&granularity=ds&since=100+years&until=now&metrics=count&groupby=name&limit=50&show_brush=y&show_brush=false&show_legend=y&show_brush=false&rich_tooltip=y&show_brush=false&show_brush=false&show_brush=false&show_brush=false&y_axis_format=&x_axis_showminmax=y&show_brush=false&line_interpolation=linear&rolling_type=None&rolling_periods=&time_compare=&num_period_compare=&where=&having=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&slice_id=14&slice_name=Boys&collapsed_fieldsets=&action=&datasource_name=birth_names&datasource_id=1&datasource_type=table&previous_viz_type=line&csv=true') + self.client.get('/caravel/explore/table/1/?viz_type=table&granularity=ds&since=100+years&until=now&metrics=count&groupby=name&limit=50&show_brush=y&show_brush=false&show_legend=y&show_brush=false&rich_tooltip=y&show_brush=false&show_brush=false&show_brush=false&show_brush=false&y_axis_format=&x_axis_showminmax=y&show_brush=false&line_interpolation=linear&rolling_type=None&rolling_periods=&time_compare=&num_period_compare=&where=&having=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&flt_col_0=gender&flt_op_0=in&flt_eq_0=&slice_id=14&slice_name=Boys&collapsed_fieldsets=&action=&datasource_name=birth_names&datasource_id=1&datasource_type=table&previous_viz_type=line&csv=true') def test_dashboard(self): for dash in db.session.query(models.Dashboard).all(): diff --git a/tests/panoramix_test_config.py b/tests/panoramix_test_config.py index ca643d5fb..dea0733b2 100644 --- a/tests/panoramix_test_config.py +++ b/tests/panoramix_test_config.py @@ -1,4 +1,4 @@ -from dashed.config import * +from caravel.config import * AUTH_USER_REGISTRATION_ROLE = 'alpha' SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/panoramix_unittests.db'