sampley: sample survey data
Description
The sampley package serves to sample survey data (hence 'sampley': 'sample' + 'survey'). By 'survey data', we refer
principally to systematic visual survey data, nevertheless, the sampley package may also be applicable to other
kinds of survey data. By 'sample', we mean process those data to produce distinct samples that can then be input to a
model.
Data can be processed by one or more of three approaches referred to here as the grid, segment, and point approach.
The grid approach consists of overlaying a grid, typically rectangular or hexagonal, onto the study area and
allocating detections and, optionally, survey effort to the cells that they lie within. Additionally, data may be
allocated to temporal periods. Each cell within a given period then serves as a sample.
The segment approach involves taking sections of continuous, uniform survey effort and cutting them into segments
of standardised lengths. Each segment, with associated detections and other data, then serves as a sample.
The point approach consists of using the detections, or a subset thereof, as presences and then sampling absences
from absence zones (i.e., areas that were surveyed but where the species was not detected).
For more information, please consult the User Manual (available on the GitHub repo at:
https://github.com/JSymeCT/sampley/blob/main/sampley%20-%20User%20Manual.pdf)
or the associated paper (available at: https://doi.org/10.1111/2041-210x.70320)
Installation
pip install sampley
Import
For basic use of sampley, run:
from sampley import *
To access the underlying functions, run:
from sampley.functions import *
User Manual
A user manual containing more detailed information is available on GitHub at: https://github.com/JSymeCT/sampley/blob/main/sampley%20-%20User%20Manual.pdf
Example usage
Several exemplars illustrating how to use sampley are available on GitHub at:
https://github.com/JSymeCT/sampley/tree/main/exemplars
See the Introduction to sampley exemplars (intro.ipynb) for more information
(https://github.com/JSymeCT/sampley/blob/main/exemplars/intro.ipynb)
License
MIT
Citation
To cite sampley, please cite the following paper:
Syme, J., Pendleton, D. E., Meyer-Gutbrod, E. L., Tupper, B., & Record, N. R. (2026).
sampley: A Python package for sampling visual survey data.
Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210x.70320
You can also cite the package directly with:
Syme, J., Pendleton, D. E., Meyer-Gutbrod, E. L., Tupper, B., & Record, N. R. (2026).
sampley: sample survey data (v0.0.16). https://doi.org/10.5281/zenodo.19616964
Thank you!
Metadata
Release files for sampley 0.0.16
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 |
|---|---|---|---|---|
| sampley-0.0.16.tar.gz | 52.5 kB | Without provenance | Details for sampley-0.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sampley-0.0.16-py3-none-any.whl | Python 3 | none | any | Details for sampley-0.0.16-py3-none-any.whl |
Total release size: 105.2 kB
Release files / sampley-0.0.16.tar.gz
| Download URL | sampley-0.0.16.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ddea1b4b1396e0375b85804fea79222badf867504896768238239a0c1a0bcd5
|
|
BLAKE2b-256 checksum How to use checksums |
fc30af43db618454d2e8110ee0af2838bea4b0e6d558708e21a2d82eca2c9d01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / sampley-0.0.16-py3-none-any.whl
| Download URL | sampley-0.0.16-py3-none-any.whl |
|---|---|
| Size | 52.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ed9ccbe133df42e43b4086bf7d8df53d422d3806cd888c2bc2702a60b84bb6c
|
|
BLAKE2b-256 checksum How to use checksums |
174cb3aad871dcc53f34ad7dbc1012b079710a8c1c6884e8eb568f5dca9bd708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for sampley 0.0.16
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.