GO-Utils
This Package is designed to provide utilities for interfacing with GLOBE Observer Data, particularly the Mosquito Habitat Mapper and Landcover Datasets.
Installation
Run pip install go-utils to install this package.
Contributing
- Fork this Repo
- Clone the Repo onto your computer
- Create a branch (
git checkout -b new-feature) - Make Changes
- Run necessary quality assurance tools (Formatter, Linter ,Unit Tests, Documentation).
- Add your changes (
git commit -am "Commit Message"orgit add .followed bygit commit -m "Commit Message") - Push your changes to the repo (
git push origin new-feature) - Create a pull request
Do note you can locally build the package with pip install -e . and run unit tests with pytest -s go_utils.
There are also several tools used by this repository to ensure code quality:
Formatter
This codebase uses the black formatter to check code format.
- Run
pip install blackto get the package. - After making changes, run
black ./.
This will automatically format your code to Python standards.
Import Sorting
To make sure imports are sorted, isort is used.
- Run
pip install isortto get the package. - After making changes, run
isort ./ --profile black(the profile black ensures no conflicts with the black formatter)
Linter
This codebase uses flake8 to lint code.
- Run
pip install flake8to get the package. - After making changes, run
flake8.
The linter will notify you of any code that isn't up to Python standards.
Unit Tests
This codebase uses pytest to run unit tests for the code.
- Run
pip install pytestto get the package. - After making changes, you can run
pytestto run all unit tests. See Advanced Usage for more information.
These tests will make sure the code performs as expected.
Advanced Usage
To run tests relevant to a specific function/area, there are several markers that can be used:
landcover: tests for Landcover proceduresmosquito: tests for Mosquito Habitat Mapper proceduresutil: tests for utility functionsdownloadtest: tests for functions that download GLOBE data over the internet.cleanup: tests for functions involved in the cleanup procedure
To specifically call a subset of tests, the -m flag must be used (e.g. pytest -m "landcover"). Using the or keyword can be used to include multiple subsets (e.g. pytest -m "landcover or mosquito"), but do note that the current markers aren't mutually exclusive (the and keyword accomplishes this). Using the not keyword can be used to exclude subsets (e.g. pytest -m "not downloadtest"), this is particularly useful for excluding the download tests as those tend to take a considerable amount of time.
Previewing Documentation
The documentation for this package is built by the pdoc module.
- Run
pip install pdocto get the package. - To preview the documentation, run
pdoc -t doc_template --docformat numpy go_utils.
This will locally host an updated documentation website which lets you preview any changes you may have made to the documentation.
Metadata
Release files for go-utils 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| go_utils-1.2.4.tar.gz | 35.0 kB | Without provenance | Details for go_utils-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| go_utils-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for go_utils-1.2.4-py3-none-any.whl |
Total release size: 74.0 kB
Release files / go_utils-1.2.4.tar.gz
| Download URL | go_utils-1.2.4.tar.gz |
|---|---|
| Size | 35.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcc10bddc2d0df56fa4bb664d5ac9367f8349c08c02eb312a43ba63486b8e564
|
|
BLAKE2b-256 checksum How to use checksums |
6e7dfff4761f82db21c40f38ae0e7038156838d9d55a9316034efcd03adc96fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / go_utils-1.2.4-py3-none-any.whl
| Download URL | go_utils-1.2.4-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f31219519b6fbe136ce75049b136caf0a5633b582fc7dbd57e34736c18b1d9f9
|
|
BLAKE2b-256 checksum How to use checksums |
e51bb2c9afbc6beaf6a9168b1be5321f778a73db4a5f7bc5eddc473dd044c8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for go-utils 1.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.