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.

Files for spatialite, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size spatialite-0.0.3-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size spatialite-0.0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page