Skip to main content

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

Metadata

Release files for pepys-import 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pepys-import 0.0.4
File Size Uploaded
pepys_import-0.0.4.tar.gz 79.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pepys-import 0.0.4
File Interpreter ABI Platform
pepys_import-0.0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 119.0 kB

Release files / pepys_import-0.0.4.tar.gz

Download URL pepys_import-0.0.4.tar.gz
Size 79.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f000b7311ae6fc76ce60fc9a4eefd525c58f94c81c315f719d433a9641d79fa
BLAKE2b-256 checksum
How to use checksums
8145410e6d846d7ac759b30ec2010721f94c44894e9de2c065196545fb0dfd40
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pepys_import-0.0.4-py2.py3-none-any.whl

Download URL pepys_import-0.0.4-py2.py3-none-any.whl
Size 39.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7b0d499fb49cd65861d5cdf7de683766c087a52fd6ff9b907a03fa00f546260a
BLAKE2b-256 checksum
How to use checksums
6119d904ff8e5a98bc0e972acf90864007faf5a8d6da27433fadccc7c09d2e65
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page