[Qgis-developer] Manipulating JSON files from Python

Pēteris Brūns pb at sungis.lv
Wed Nov 14 23:44:16 PST 2012


Probably in other case yes, but for Andreas required things better is to 
use python built in functionality and escape from external dependencies.

Regards,

On 2012.11.15. 09:34, Noli Sicad wrote:
> This might help.
>
> Tablib: Pythonic Tabular Datasets
>
> http://docs.python-tablib.org/en/latest/
>
>
> tablib.Dataset()
>      A Dataset is a table of tabular data. It may or may not have a
> header row. They can be build and manipulated as raw Python datatypes
> (Lists of tuples|dictionaries). Datasets can be imported from JSON,
> YAML, and CSV; they can be exported to XLSX, XLS, ODS, JSON, YAML,
> CSV, TSV, and HTML.
>
> tablib.Databook()
>      A Databook is a set of Datasets. The most common form of a
> Databook is an Excel file with multiple spreadsheets. Databooks can be
> imported from JSON and YAML; they can be exported to XLSX, XLS, ODS,
> JSON, and YAML.
>
> https://github.com/kennethreitz/tablib
>
> Noli
>
> On 11/15/12, gene <martin.laloux at gmail.com> wrote:
>> see also  json – JavaScript Object Notation Serializer
>> <http://www.doughellmann.com/PyMOTW/json/>   in the series "Python Module of
>> the Week" of Doug Helmann. Sean Gillies (Shapely) also developed GeoJSON (
>> http://pypi.python.org/pypi/geojson/1.0.1
>> <http://pypi.python.org/pypi/geojson/1.0.1>  ) for geospatial purposes.
>> For others implementations see
>> http://pypi.python.org/pypi?%3Aaction=search&term=json&submit=search
>> <http://pypi.python.org/pypi?%3Aaction=search&term=json&submit=search>
>>
>> As already mentioned, json, once loaded into Python is nothing more than a
>> dictionary.
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/Manipulating-JSON-files-from-Python-tp5016253p5016491.html
>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Pēteris Brūns
SunGIS
+371 26336691
pb at sungis.lv



More information about the Qgis-developer mailing list