WBIA - WildBook IA LCA Plug-in
December 10, 2021 ยท View on GitHub
============================== WBIA - WildBook IA LCA Plug-in
|Build| |Pypi| |ReadTheDocs|
Local CLusters and their Alternatives (LCA) plug-in for WBIA - Part of the WildMe / Wildbook IA Project.
Requirements
- Python 3.5+
- Python dependencies listed in requirements.txt
Installation Instructions
PyPI
The WBIA software is now available on `pypi
<https://pypi.org/project/wbia-lca/>`_ for Linux systems. This means if you have
`Python installed
<https://xdoctest.readthedocs.io/en/latest/installing_python.html>`_. You can
simply run:
.. code:: bash
pip install wbia_lca
to install the software.
We highly recommend using a Python virtual environment: https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv
Citation
--------
If you use this code or its models in your research, please cite:
.. code:: text
@article{berger2017wildbook,
title={Wildbook: Crowdsourcing, computer vision, and data science for conservation},
author={Berger-Wolf, Tanya Y and Rubenstein, Daniel I and Stewart, Charles V and Holmberg, Jason A and Parham, Jason and Menon, Sreejith and Crall, Jonathan and Van Oast, Jon and Kiciman, Emre and Joppa, Lucas},
journal={arXiv preprint arXiv:1710.08880},
year={2017}
}
Documentation
-------------------------
The WBIA API Documentation can be found here: https://wbia-lca.readthedocs.io/en/latest/
Code Style and Development Guidelines
-------------------------------------
Contributing
It's recommended that you use pre-commit to ensure linting procedures are run
on any commit you make. (See also pre-commit.com <https://pre-commit.com/>_)
Reference pre-commit's installation instructions <https://pre-commit.com/#install>_ for software installation on your OS/platform. After you have the software installed, run pre-commit install on the command line. Now every time you commit to this project's code base the linter procedures will automatically run over the changed files. To run pre-commit on files preemtively from the command line use:
.. code:: bash
git add .
pre-commit run
# or
pre-commit run --all-files
Brunette
Our code base has been formatted by Brunette, which is a fork and more configurable version of Black (https://black.readthedocs.io/en/stable/).
Flake8
~~~~~~
Try to conform to PEP8. You should set up your preferred editor to use flake8 as its Python linter, but pre-commit will ensure compliance before a git commit is completed.
To run flake8 from the command line use:
.. code:: bash
flake8
This will use the flake8 configuration within ``setup.cfg``,
which ignores several errors and stylistic considerations.
See the ``setup.cfg`` file for a full and accurate listing of stylistic codes to ignore.
PyTest
~~~~~~
Our code uses Google-style documentation tests (doctests) that uses pytest and xdoctest to enable full support. To run the tests from the command line use:
.. code:: bash
pytest
.. |Build| image:: https://img.shields.io/github/workflow/status/WildMeOrg/wbia-plugin-lca/Build%20and%20upload%20to%20PyPI/main
:target: https://github.com/WildMeOrg/wbia-plugin-lca/actions?query=branch%3Amain+workflow%3A%22Build+and+upload+to+PyPI%22
:alt: Build and upload to PyPI (main)
.. |Pypi| image:: https://img.shields.io/pypi/v/wbia-lca.svg
:target: https://pypi.python.org/pypi/wbia-lca
:alt: Latest PyPI version
.. |ReadTheDocs| image:: https://readthedocs.org/projects/wbia-plugin-lca/badge/?version=latest
:target: https://wbia-plugin-lca.readthedocs.io/en/latest/
:alt: Documentation on ReadTheDocs