Skip to main content

Wrapper of sqlite3 module which adds SpatiaLite support.

Project description

# spatialite

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.

For Ubuntu:

$ apt-get install libsqlite3-mod-spatialite


## Install

$ pip install spatialite


## Usage

```python
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.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

spatialite-0.0.1-py2.py3-none-any.whl (3.6 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