Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malexer/spatialite
Wrapper for standard Python module "sqlite3" which adds SpatiaLite support.
https://github.com/malexer/spatialite
python spatialite sqlite sqlite3
Last synced: about 2 months ago
JSON representation
Wrapper for standard Python module "sqlite3" which adds SpatiaLite support.
- Host: GitHub
- URL: https://github.com/malexer/spatialite
- Owner: malexer
- License: mit
- Created: 2018-03-29T14:10:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T11:47:24.000Z (almost 6 years ago)
- Last Synced: 2024-09-24T02:23:19.345Z (3 months ago)
- Topics: python, spatialite, sqlite, sqlite3
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 17
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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.Ubuntu::
$ apt-get install libsqlite3-mod-spatialite
macOS::
$ brew install libspatialite
Install
-------Using pip::
$ pip install spatialite
Usage
-----.. code-block:: python
import spatialite
with spatialite.connect('sl_temp.db') as db:
print(db.execute('SELECT spatialite_version()').fetchone()[0])