Skip to main content

Exploration utilities for Wildlife Insights projects.

Project description

wiutils

wiutils has several utilities for exploring and manipulating (filtering, plotting and summarizing) information from Wildlife Insights projects. These functions are useful to compute basic statistics, prepare the information for further analysis (e.g. occupancy models) and translate it into other standards (i.e. Darwin Core) that facilitate its publication on biodiversity information centers (e.g. GBIF).

Installation

Currently, wiutils works with Python versions 3.6 through 3.10.

Using pip:

pip install wiutils

Using conda:

conda install -c conda-forge wiutils

Execution

To check whether the installation of wiutils was successful, execute the following command:

python -c "import wiutils"

If this does not throw any error, the installation was successful.

You can use wiutils functions by importing the package from a Python console or script. For more information about the available functions, check the documentation.

How to contribute

Everybody is welcome to contribute to wiutils. People can contribute to the development of the package but also to the improvement of the documentation and by reporting potential bugs.

Setup

It is recommended to install the package using a virtual environment to avoid tampering other Python installations in your system.

Clone this repo in your computer:

git clone https://github.com/PEM-Humboldt/wiutils.git

Go to the project's root:

cd wiutils

Install the package in development mode:

pip install --editable .[dev,docs,test]

Make sure that any new development is done in a new branch. After you are finished, submit a pull request to incorporate the changes.

Unit tests

Execute the following command inside the project's root:

pytest tests/

Python versions

wiutils works with Python versions 3.6 through 3.10. To make sure that the code works for all these versions, tox is used. Make sure you have installed these Python versions on your system and then run the following command inside the project's root:

tox

This will run all the unit tests for every Python version to make sure everything works correctly.

If you add any new depedency to the project, make sure to run tox as follows so it can recreate the environments:

tox -r

Code coverage

We make sure the code coverage is 100%. Ideally, when implementing new features or making changes, you should make sure that the code coverage is still 100%. For this, run the coverage for the tests:

coverage run -m pytest tests/

And then run the report:

coverage report -m -i

Code style

We use pre-commit hooks to make sure new changes adhere to different coding guidelines. You need to install these hooks just once (ideally before doing any commit) by running:

pre-commit install

After that, every commit you try to make will run the hooks before committing the changes. If the hooks modified your changes, you'll have to add those files and commit again.

Authors and contributors

  • Adriana Restrepo-Isaza
  • Angélica Diaz-Pulido
  • Marcelo Villa-Piñeros - marcelovilla

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

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

wiutils-1.1.0.tar.gz (436.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wiutils-1.1.0-py3-none-any.whl (437.6 kB view details)

Uploaded Python 3

File details

Details for the file wiutils-1.1.0.tar.gz.

File metadata

  • Download URL: wiutils-1.1.0.tar.gz
  • Upload date:
  • Size: 436.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for wiutils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2d99167c7ed278d47718a77dab21308cb6fcc77f0030a82a2eb9febdf83caf1b
MD5 5acb5ee894aac29cc88e38ffae3d82da
BLAKE2b-256 095c34b61ea11dfe71aae052a05246e4aa7b9c74f5fa8b448b5951feae637a8a

See more details on using hashes here.

File details

Details for the file wiutils-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: wiutils-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 437.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for wiutils-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd82155980d5e7867045d25e420c668583a3085c83a401c5984cb33ff2b7213
MD5 8d8e468da5137ce86e8a50ad14d26b6e
BLAKE2b-256 2dfc0d365d1399747348dc9590df90a7cb70555e3962271d9fd671d96d508cc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page