Skip to main content

Python library to handle database ingest of geospatial track (and other) data

Project description

Welcome

Pepys-import is a Python library to be used in the parsing and collation of data to be used in platform based spatial analysis.

The library provides tools to help work through text data-files, and then push data measurements (and supporting metadata) to a databaes.

PostGres and SQLite databases are currently supported, with SQLite being the low-friction option favoured for getting started with Pepys-Import, or for project maintainers.

Here's a working demonstrator of datafile import: |binder|

.. |binder| image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/debrief/pepys-import/develop?filepath=examples%2Fnotebooks%2Fdata_store_sqlite.ipynb

Online documentation

Learn more here: |docs|

.. |docs| image:: https://readthedocs.org/projects/pepys-import/badge/?version=latest :target: https://pepys-import.readthedocs.io/

Development

Code coverage

We're aiming for 100% code coverage on the project, track our progress here: |code_cov|

.. |code_cov| image:: https://codecov.io/gh/debrief/pepys-import/branch/develop/graph/badge.svg :target: https://codecov.io/gh/debrief/pepys-import/branch/develop

Upstream security

We have continuous vulnerability testing on the Open Source libraries we depend upon for development: |dev_req| and production: |plain_req|

.. |plain_req| image:: https://snyk.io/test/github/debrief/pepys-import/badge.svg?targetFile=requirements.txt :target: https://snyk.io/test/github/debrief/pepys-import?targetFile=requirements.txt

.. |dev_req| image:: https://snyk.io/test/github/debrief/pepys-import/badge.svg?targetFile=requirements_dev.txt :target: https://snyk.io/test/github/debrief/pepys-import?targetFile=requirements_dev.txt

Code Style

Black is used on the project: |black|

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/python/black

It is suggested to install a pre-commit hook in order to apply Black before pushing commits::

$ pip install pre-commit
$ pre-commit install

Project Progres

View the project Kanban board here <https://github.com/debrief/pepys-import/projects/3>_

Setup

To prepare for running ensure these tools and packages are installed:

  • Python 3 - at least Python 3.6.4 or later
  • SQL Alchemy 1.3

For Postgres support and unit tests these packages are also required:

  • geoalchemy2
  • psycopg2
  • nose2 (0.9.1)

Dependencies

Install the python dependencies with: :code:pip install -r requirements.txt

Unit tests

  • Run the unit test suite with: :code:coverage3 run -m unittest discover -v
  • View the unit test coverage with: :code:coverage report

Command Line Instructions

To run from the command line go to the top level directory of the library in your bash shell or terminal program

Run by specifying the program as a module with :code:-m and leaving off the .py file extension

The exact executable name for invoking python will depend how you have it installed, but most commonly it's just :code:python

For example run the Sqlite example using: :code:python -m Experiments.DataStore_sqliteExperiment

IntelliJ Instructions

To run from inside IntelliJ open the project Mark the :code:Store package as source by right clicking on the directory and selecting :code:Mark Directory as -> Source Root

Open any python module you want to run in the main editor window, right click anywhere in the editor and choose the :code:Run or :code:Debug option

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

pepys_import-0.0.4.tar.gz (79.5 kB view details)

Uploaded Source

Built Distribution

pepys_import-0.0.4-py2.py3-none-any.whl (39.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pepys_import-0.0.4.tar.gz.

File metadata

  • Download URL: pepys_import-0.0.4.tar.gz
  • Upload date:
  • Size: 79.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.6

File hashes

Hashes for pepys_import-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7f000b7311ae6fc76ce60fc9a4eefd525c58f94c81c315f719d433a9641d79fa
MD5 027894ea0ed45acfec4b4b3e095b2c5d
BLAKE2b-256 8145410e6d846d7ac759b30ec2010721f94c44894e9de2c065196545fb0dfd40

See more details on using hashes here.

File details

Details for the file pepys_import-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: pepys_import-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.6

File hashes

Hashes for pepys_import-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b0d499fb49cd65861d5cdf7de683766c087a52fd6ff9b907a03fa00f546260a
MD5 f8feb249afcde7afc12da52f66a1ad97
BLAKE2b-256 6119d904ff8e5a98bc0e972acf90864007faf5a8d6da27433fadccc7c09d2e65

See more details on using hashes here.

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