kapalo-py

Create maps from kapalo observations

https://github.com/nialov/kapalo-py

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Create maps from kapalo observations

Basic Info
  • Host: GitHub
  • Owner: nialov
  • Language: Python
  • Default Branch: master
  • Size: 3.63 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 5 years ago · Last pushed about 3 years ago
Metadata Files
Readme Changelog Citation

README.rst

Documentation
=============

|Documentation Status| |PyPI Status| |CI Test| |Coverage|

Introduction
------------

Create webmaps and export kapalo observations as cvs.

Running tests
-------------

To run pytest in currently installed environment:

.. code:: bash

   poetry run pytest

To run full extensive test suite:

.. code:: bash

   poetry run doit
   # Add -n  to execute tasks in parallel
   # E.g.
   poetry run doit -n 8 -v 0
   # -v 0 is added to limit verbosity to mininum (optional)
   # doit makes sure tasks are run in the correct order
   # E.g. if a task uses a requirements.txt file that other task produces
   # the producer is run first even with parallel execution

Formatting and linting
----------------------


Formatting & linting:

.. code:: bash

   poetry run doit pre_commit
   poetry run doit lint

Building docs
-------------

Docs can be built locally to test that ``ReadTheDocs`` can also build them:

.. code:: bash

   poetry run doit docs

doit usage
----------

To list all available commands from ``dodo.py``:

.. code:: bash

   poetry run doit list

Development
~~~~~~~~~~~

Development dependencies for ``kapalo_py`` include:

-  ``poetry``

   -  Used to handle Python package dependencies.

   .. code:: bash

      # Use poetry run to execute poetry installed cli tools such as invoke,
      # nox and pytest.
      poetry run 


-  ``doit``

   -  A general task executor that is a replacement for a ``Makefile``
   -  Understands task dependencies and can run tasks in parallel
      even while running them in the order determined from dependencies
      between tasks. E.g. requirements.txt is a requirement for running
      tests and therefore the task creating requirements.txt will always
      run before the test task.

   .. code:: bash

      # Tasks are defined in dodo.py
      # To list doit tasks from command line
      poetry run doit list
      # To run all tasks in parallel (recommended before pushing and/or
      # committing)
      # 8 is the number of cpu cores, change as wanted
      # -v 0 sets verbosity to very low. (Errors will always still be printed.)
      poetry run doit -n 8 -v 0

-  ``nox``

   -  ``nox`` is a replacement for ``tox``. Both are made to create
      reproducible Python environments for testing, making docs locally, etc.

   .. code:: bash

      # To list available nox sessions
      # Sessions are defined in noxfile.py
      poetry run nox --list

-  ``copier``

   -  ``copier`` is a project templater. Many Python projects follow a similar
      framework for testing, creating documentations and overall placement of
      files and configuration. ``copier`` allows creating a template project
      (e.g. https://github.com/nialov/nialov-py-template) which can be firstly
      cloned as the framework for your own package and secondly to pull updates
      from the template to your already started project.

   .. code:: bash

      # To pull copier update from github/nialov/nialov-py-template
      poetry run copier update


-  ``pytest``

   -  ``pytest`` is a Python test runner. It is used to run defined tests to
      check that the package executes as expected. The defined tests in
      ``./tests`` contain many regression tests (done with
      ``pytest-regressions``) that make it almost impossible
      to add features to ``kapalo_py`` that changes the results of functions
      and methods.

   .. code:: bash

      # To run tests implemented in ./tests directory and as doctests
      # within project itself:
      poetry run pytest


-  ``coverage``

   .. code:: bash

      # To check coverage of tests
      # (Implemented as nox session!)
      poetry run nox --session test_pip

-  ``sphinx``

   -  Creates documentation from files in ``./docs_src``.

   .. code:: bash

      # To create documentation
      # (Implemented as nox session!)
      poetry run nox --session docs

Big thanks to all maintainers of the above packages!

License
~~~~~~~

Copyright © 2021, Nikolas Ovaskainen.

-----


.. |Documentation Status| image:: https://readthedocs.org/projects/kapalo-py/badge/?version=latest
   :target: https://kapalo-py.readthedocs.io/en/latest/?badge=latest
.. |PyPI Status| image:: https://img.shields.io/pypi/v/kapalo-py.svg
   :target: https://pypi.python.org/pypi/kapalo-py
.. |CI Test| image:: https://github.com/nialov/kapalo-py/workflows/test-and-publish/badge.svg
   :target: https://github.com/nialov/kapalo-py/actions/workflows/test-and-publish.yaml?query=branch%3Amaster
.. |Coverage| image:: https://raw.githubusercontent.com/nialov/kapalo-py/master/docs_src/imgs/coverage.svg
   :target: https://github.com/nialov/kapalo-py/blob/master/docs_src/imgs/coverage.svg

Owner

  • Name: Nikolas Ovaskainen
  • Login: nialov
  • Kind: user
  • Location: Turku, Finland
  • Company: MSc, Geology

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:

- family-names: Ovaskainen
  given-names: Nikolas
title: "kapalo-py"
version: "0.0.0.post178.dev0+4838d08"
date-released: "2022-08-31"
keywords:
  - python
  - data
contact:
  - email: "nikolasovaskainen@gmail.com"
url: "https://github.com/nialov/kapalo-py"
repository-code: "https://github.com/nialov/kapalo-py"

GitHub Events

Total
Last Year

Dependencies

docs_src/requirements.txt pypi
  • alabaster ==0.7.12
  • anyio ==3.6.1
  • appnope ==0.1.3
  • argcomplete ==1.12.3
  • argon2-cffi ==21.3.0
  • argon2-cffi-bindings ==21.2.0
  • asttokens ==2.0.5
  • atomicwrites ==1.4.0
  • attrs ==21.4.0
  • babel ==2.10.3
  • backcall ==0.2.0
  • beautifulsoup4 ==4.11.1
  • bleach ==5.0.0
  • branca ==0.5.0
  • certifi ==2022.6.15
  • cffi ==1.15.0
  • cfgv ==3.3.1
  • charset-normalizer ==2.0.12
  • click ==8.1.3
  • click-plugins ==1.1.1
  • cligj ==0.7.2
  • cloudpickle ==2.1.0
  • colorama ==0.4.5
  • colorlog ==6.6.0
  • copier ==6.1.0
  • debugpy ==1.6.0
  • decorator ==5.1.1
  • defusedxml ==0.7.1
  • distlib ==0.3.4
  • docutils ==0.17.1
  • doit ==0.36.0
  • dunamai ==1.12.0
  • entrypoints ==0.4
  • exceptiongroup ==1.0.0rc8
  • executing ==0.8.3
  • fastjsonschema ==2.15.3
  • filelock ==3.7.1
  • fiona ==1.8.21
  • folium ==0.12.1.post1
  • geopandas ==0.11.0
  • hypothesis ==6.47.4
  • identify ==2.5.1
  • idna ==3.3
  • imagesize ==1.3.0
  • importlib-metadata ==4.11.4
  • importlib-resources ==5.8.0
  • iniconfig ==1.1.1
  • ipykernel ==6.15.0
  • ipython ==8.4.0
  • ipython-genutils ==0.2.0
  • iteration-utilities ==0.11.0
  • jedi ==0.18.1
  • jinja2 ==3.1.2
  • jinja2-ansible-filters ==1.3.1
  • json5 ==0.9.8
  • jsonschema ==4.6.0
  • jupyter-client ==7.3.4
  • jupyter-core ==4.10.0
  • jupyter-server ==1.17.1
  • jupyterlab ==3.4.3
  • jupyterlab-pygments ==0.2.2
  • jupyterlab-server ==2.14.0
  • livereload ==2.6.3
  • markdown ==3.3.7
  • markupsafe ==2.1.1
  • matplotlib-inline ==0.1.3
  • mistune ==0.8.4
  • munch ==2.5.0
  • mypy-extensions ==0.4.3
  • nbclassic ==0.3.7
  • nbclient ==0.6.4
  • nbconvert ==6.5.0
  • nbformat ==5.4.0
  • nbsphinx ==0.8.9
  • nest-asyncio ==1.5.5
  • nodeenv ==1.6.0
  • notebook ==6.4.12
  • notebook-shim ==0.1.0
  • nox ==2022.1.7
  • numpy ==1.23.0
  • packaging ==21.3
  • pandas ==1.4.2
  • pandera ==0.11.0
  • pandocfilters ==1.5.0
  • parso ==0.8.3
  • pathspec ==0.9.0
  • pexpect ==4.8.0
  • pickleshare ==0.7.5
  • pillow ==9.1.1
  • platformdirs ==2.5.2
  • pluggy ==1.0.0
  • plumbum ==1.7.2
  • pre-commit ==2.19.0
  • prometheus-client ==0.14.1
  • prompt-toolkit ==3.0.29
  • psutil ==5.9.1
  • ptyprocess ==0.7.0
  • pure-eval ==0.2.2
  • py ==1.11.0
  • pyarrow ==8.0.0
  • pycparser ==2.21
  • pydantic ==1.9.1
  • pygments ==2.12.0
  • pyparsing ==3.0.9
  • pyproj ==3.3.1
  • pyrsistent ==0.18.1
  • pytest ==7.1.2
  • pytest-datadir ==1.3.1
  • pytest-regressions ==2.3.1
  • python-dateutil ==2.8.2
  • python-json-logger ==2.0.2
  • pytz ==2022.1
  • pywin32 ==304
  • pywinpty ==2.0.5
  • pyyaml ==6.0
  • pyyaml-include ==1.3
  • pyzmq ==23.2.0
  • questionary ==1.10.0
  • requests ==2.28.0
  • send2trash ==1.8.0
  • shapely ==1.8.2
  • shellingham ==1.4.0
  • six ==1.16.0
  • sniffio ==1.2.0
  • snowballstemmer ==2.2.0
  • sortedcontainers ==2.4.0
  • soupsieve ==2.3.2.post1
  • sphinx ==5.0.2
  • sphinx-autobuild ==2021.3.14
  • sphinx-autodoc-typehints ==1.18.3
  • sphinx-gallery ==0.10.1
  • sphinx-rtd-theme ==1.0.0
  • sphinxcontrib-applehelp ==1.0.2
  • sphinxcontrib-devhelp ==1.0.2
  • sphinxcontrib-htmlhelp ==2.0.0
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-qthelp ==1.0.3
  • sphinxcontrib-serializinghtml ==1.1.5
  • stack-data ==0.3.0
  • tabulate ==0.8.10
  • terminado ==0.15.0
  • tinycss2 ==1.1.1
  • toml ==0.10.2
  • tomli ==2.0.1
  • tornado ==6.1
  • traitlets ==5.3.0
  • typer ==0.4.1
  • typing-extensions ==4.2.0
  • typing-inspect ==0.7.1
  • urllib3 ==1.26.9
  • virtualenv ==20.14.1
  • wcwidth ==0.2.5
  • webencodings ==0.5.1
  • websocket-client ==1.3.3
  • wrapt ==1.14.1
  • zipp ==3.8.0
poetry.lock pypi
  • 169 dependencies
pyproject.toml pypi
  • colorama * develop
  • copier * develop
  • doit * develop
  • hypothesis * develop
  • ipython * develop
  • jupyterlab * develop
  • nox * develop
  • pre-commit * develop
  • pytest * develop
  • pytest-regressions * develop
  • toml * develop
  • Markdown ~3.3.7
  • Pillow ~9.1.1
  • coverage *
  • coverage-badge *
  • folium ~0.12.1
  • geopandas ~0.11.0
  • markupsafe *
  • mypy *
  • nbsphinx *
  • pandas ~1.4.2
  • pandera ~0.11.0
  • pylint *
  • python >=3.8,<3.10
  • python-json-logger ~2.0.2
  • rstcheck *
  • sphinx *
  • sphinx-autobuild *
  • sphinx-autodoc-typehints *
  • sphinx-gallery *
  • sphinx-rtd-theme *
  • tabulate ~0.8.10
  • typer ~0.4.1
.github/workflows/main.yaml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • cachix/install-nix-action v17 composite
  • pypa/gh-action-pypi-publish master composite
  • softprops/action-gh-release v1 composite