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.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

spatialite-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file spatialite-0.0.3.tar.gz.

File metadata

  • Download URL: spatialite-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.2

File hashes

Hashes for spatialite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a0761f239a52f326b14ce41ba61b6614dfcc808b978a0bec4a37c1de9ad9071e
MD5 af6a077c05ba3ed1f3a90d0dcacec1b9
BLAKE2b-256 eb0caa040af6021236a6d90739b63eec0cab5541d4492cfb871e73f8d1e4e327

See more details on using hashes here.

File details

Details for the file spatialite-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spatialite-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.2

File hashes

Hashes for spatialite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3124f643688c8ba4e2ff200ef401cf7b57caa44db666cb78519784f98f662982
MD5 e715beaf6a69e8b765985dbb2dc10f92
BLAKE2b-256 435dff0c1c7ca9b4d294029f9a2a2a2f668e8e33e7926135d7a86c35d855eb23

See more details on using hashes here.

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