Google Takeout ETL
Overview
Extracts, transforms, and loads your data from Google Takeout into an SQLite DB.
Installation
getl is available on PyPI
http://pypi.python.org/pypi/getl
Install via pip
$ pip install getl
Or via easy_install
$ easy_install getl
Or directly from getl’s git repo <https://github.com/gregology/getl>
$ git clone git://github.com/gregology/getl.git $ cd getl $ python setup.py install
Basic usage
Download your data with Google Takeout using the format JSON and unzip the file.
Currently only Location History works but I will implement more extractors shortly.
>>> from getl import Getl
>>> getl = Getl('path/to/unzipped/google/takeout/data')
>>> getl.load_location_history()
>>> getl.sql('SELECT COUNT(*) FROM locations')[0][0]
5000
>>> getl.sql('SELECT timestamp FROM locations LIMIT 5;')
[('2018-07-27 14:04:24',), ('2018-07-23 11:34:12',), ('2018-07-17 09:47:19',), ('2018-07-13 23:56:44',), ('2018-07-12 09:54:13',)]
>>> getl.save('foo.db') # Saves SQLite db to disk
Running Test
$ python tests/tests.py
Python compatibility
Requires Python 3.0 or greater
Metadata
Release files for getl 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getl-0.3.tar.gz | 3.6 kB | Without provenance | Details for getl-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getl-0.3-py3.7.egg | Legacy Egg format | - | - | Details for getl-0.3-py3.7.egg |
Total release size: 12.7 kB
Release files / getl-0.3.tar.gz
| Download URL | getl-0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
965b09137f5827e66a17f6b970b55ca7dc1f73d1b356668ea6ae8741249d3e74
|
|
BLAKE2b-256 checksum How to use checksums |
61bfffe5d046107dc42b99bb57c25a4a704037f6f762f664618c8ffccc60be18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Release files / getl-0.3-py3.7.egg
| Download URL | getl-0.3-py3.7.egg |
|---|---|
| Size | 9.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
b4b549b2c44b22ce454fe6dc15e35e82a2ad19672828589dc583ca53ba8aa461
|
|
BLAKE2b-256 checksum How to use checksums |
4f48d4739617684484cd3164765f68012e46adaf97f422dea0a502d907cf6b91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Security for getl 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.