Skip to main content

Intake driver for Civis platform

Project description


This is an intake data source for data warehoused in the Civis platform.




intake-civis is published on PyPI. You can install it by running the following in your terminal:

pip install intake-civis


You can specify Civis schemas and tables using a YAML intake catalog:

  # An entry representing a catalog for an entire schema.
    driver: "civis_cat"
      database: "City of Los Angeles - Postgres"
      schema: "transporatation"
  # An entry representing a single table
    driver: "civis"
      database: "City of Los Angeles - Postgres"
      table: "transportation.bike_trips"

For more examples, see this demo notebook.

Geospatial support

Both Redshift and Postgres support geospatial values. We can tell the source to read in a table/query as a GeoDataFrame by passing in a string or list of strings in the geometry argument. You can also pass in a GeoPandas-compatible crs argument to set the coordinate reference system for the GeoDataFrame. When more than one column is provided, the primary geometry column for the GeoDataFrame is assumed to be the first in the list.

The CivisCatalog object attempts to automatically determine the geometry columns and coordinate reference systems from the database table metadata.

Ibis support


Project details

Download files

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

Files for intake-civis, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size intake_civis-0.1.0-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size intake-civis-0.1.0.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page