Skip to main content

Workflow automation for exploring location data

Project description

Theto: workflow automation for exploring location data

Any visualization requires a large number of trivial decisions that, when added up, result in a non-trivial impact on the quality and usability of the visualization. This is especially true of geospatial visualization, where data needs to transformed fit a particular map projection or a particular map tile service needs to be configured to contextualize the plot. Theto abstracts a lot of this overhead so more time can be devoted to looking at and understanding the data. A Theto instance allows users to:

  1. Store api keys, palettes, and other static resources repeatedly needed throughout a typical visualization pipeline.
  2. Load data sources, format coordinate data to stage it for all foreseeable downstream needs, and append metadata.
  3. Add widgets to interactively filter what the final visualization shows, and infer the appropriate parameters for those widgets based on the source data.
  4. Determine plot bounds, size, map zoom level, and other parameters in ways that accommodate the data.
  5. Add layers of visualization, including tooltips and other visual aids, including connections between data points.
  6. Render the plot, either in the notebook or by saving to file, optionally appending an interactive legend.

"Theto" is a transliteration of the Greek word Θέτω, which means "I place" or "I situate", or simply "I put". That's what the tool does: it puts geospatial data where it needs to be so users can spend their time looking at and making sense of what's there.

A Jupyter notebook demonstrating a lot of Theto's functionality can be found here:

https://nbviewer.jupyter.org/github/Valassis-Digital-Media/theto/blob/master/theto_demo_notebook.ipynb

Installation

To install from PyPI:

pip install theto

conda installation coming soon.

Supported data representations

Data can be loaded in a variety of formats (geohashes, WKT, shapely objects, GeoJSON, or coordinate pairs). The tool will automatically detect the format and process it appropriately. Likewise, any input can be rendered as the original shape itself (a polygon) or as the centroid of the shape (a point). Polygons are rendered using Bokeh's MultiPolygons glyph. Points can be rendered using any of Bokeh's marker glyphs.

Limitations

Theto is designed for interactive exploration, and is therefore appropriate for small-to-medium sized data. A very rough benchmark indicated that it takes about 5 seconds to plot every 50,000 points (a polygon might contain very many individual points) in a Jupyer notebook, and the notebook freezes at around 250,000 points. Outputting to file and viewing in a separate browser window should allow up to around 1 million points. For larger visualization, see http://datashader.org/.

Contributing

We welcome issues and pull requests that help improve the variety of data sources and plot elements Theto supports, its usability, and its re-usability within other tools.

License

Copyright (c) 2019 Valassis Digital under the terms of the BSD 3-Clause license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

theto-0.2.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

theto-0.2.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file theto-0.2.1.tar.gz.

File metadata

  • Download URL: theto-0.2.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for theto-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f3a094333e6a84d6b9256e7e18cb46a1e5244b0b24c4649055f0c925ad0a5d0b
MD5 ded5ea0f07bdb08671b4699f7e5809e2
BLAKE2b-256 8c2e01481bbc6c924fbd938da907725d7b43a85365c0e8bcefb9c767b4b3e8c8

See more details on using hashes here.

File details

Details for the file theto-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: theto-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for theto-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7940c0122e3debbd73824cfbb7e61060ada73a0a758b3e508aec2ef31e4852
MD5 d1f43cf804fe424be7a0bc4f2474a12f
BLAKE2b-256 0237bc49a27ea9dc849825b5d475b5612815d48da92145fa034c74d3d4f82452

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page