Skip to main content

Wrapper of sqlite3 module which adds SpatiaLite support.

Project description

Wrapper for standard Python module sqlite3 which adds SpatiaLite support.

Requirement: mod_spatialite

This module will try to load SpatiaLite extension in SQLite and thus requires “mod_spatialite” being present.

Ubuntu:

$ apt-get install libsqlite3-mod-spatialite

macOS:

$ brew install libspatialite

Install

Using pip:

$ pip install spatialite

Usage

import spatialite


with spatialite.connect('sl_temp.db') as db:
    print(db.execute('SELECT spatialite_version()').fetchone()[0])

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

spatialite-0.0.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

spatialite-0.0.2-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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