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])
```
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for spatialite-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2db73c260467d7db383aa9220ad7a762644844a0394f3846cbc50ec4876c319 |
|
MD5 | d3292320527bf1f1e214628adac0a3e0 |
|
BLAKE2b-256 | c0f03bc5aa735dd5dee332114a60930f73d72ec9ae67cfaa1fa565cbf27577bc |