APbase
APbase is the high-performance geospatial core for precision agriculture maps. It filters irregular field points, fits a variogram, validates IDW versus local ordinary kriging, selects the lower-RMSE model, and returns compact map points.
Full documentation: https://apbase.io
Python package repository: https://github.com/ap-base/apbase-python
Quick Use
import numpy as np
import apbase
from apbase import Map
apbase.config["n_threads"] = 4
x = np.ascontiguousarray(x_metric, dtype=np.float64)
y = np.ascontiguousarray(y_metric, dtype=np.float64)
z = np.ascontiguousarray(values, dtype=np.float64)
result = Map(resolution=10.0)(x, y, z)
result.method # "idw" or "kriging"
result.x, result.y, result.z # compact output points
X, Y, Z = result.to_raster() # dense raster, NaN outside the boundary
Functional shortcut:
result = apbase.create_map(x, y, z, resolution=10.0)
Main API
apbase.Map: automated map pipeline.apbase.create_map: one-shot map creation.apbase.config: process configuration, including OpenMP threads.
Advanced modules are available under apbase.filtering, apbase.grid,
apbase.variogram, apbase.idw, apbase.kriging, apbase.cokriging, and
apbase.cross_validate.
Data Requirements
- Use one-dimensional
x,y, andzarrays. - Prefer projected metric coordinates, such as UTM.
Mapalso accepts lon/lat and converts internally before distance-based operations; in that case, distance settings such asresolutionare meters.- For speed, pass contiguous
float64NumPy arrays.
Performance
- Critical kernels run in native Fortran through F2PY, NumPy, and OpenMP.
- The pipeline uses local neighborhoods and neighbor limits instead of full distance matrices.
- Configure threads before creating maps:
import apbase
apbase.config["n_threads"] = 4
For services:
process_workers * APBASE_N_THREADS <= available_vCPU
Install
Published package:
pip install apbase
Development export:
python tools/build_native_extensions.py
python tools/export_distribution.py ../apbase-python --force
Local editable install:
pip install -e .
Documentation
The documentation source lives in ../apbase-docs and is published at
https://apbase.io. Keep long examples, methodology, deployment notes, and API
reference there; keep this README short.
Metadata
Release files for apbase 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 153.2 MB
Release files / apbase-0.1.1-cp314-cp314-win_amd64.whl
| Download URL | apbase-0.1.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 17.3 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
822a19ddd10f662bd76fde182ee16356d316980ba05f3a8dcffdabe7010a3055
|
|
BLAKE2b-256 checksum How to use checksums |
605a912b4a1f19563bb60d37a16182336e8f71906b17bceacc97dda56ae9e79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp314-cp314-manylinux_2_27_x86_64.whl
| Download URL | apbase-0.1.1-cp314-cp314-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 12.4 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
f19a8514381f4ce038cafac6b71503e79153c9ba79508586742124fa95d884f4
|
|
BLAKE2b-256 checksum How to use checksums |
d93637781426684c17b2ecf2a7693579a8631872f0d823d8c975958f1ae910a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / apbase-0.1.1-cp314-cp314-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.1-cp314-cp314-macosx_15_0_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.14 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
604f1a0a065c353938557bcde8cdb5eaffc0c6ce34dacd4dbb9c2aa0a3b85e8c
|
|
BLAKE2b-256 checksum How to use checksums |
46445efb166c89ca0b2a73c3d2617bae37be1e74c2f552eda054b6ca5ab49802
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.1-cp314-cp314-macosx_14_0_arm64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.14 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ad4ddf1aea5f87a9154ac4778cfa1ecc8fad9f908e227246c68b6bf250085ec5
|
|
BLAKE2b-256 checksum How to use checksums |
31b6adb23b0e68b29f2eb50a4c10ce820309d9ade62aae663c9c75b6a6790fcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp313-cp313-win_amd64.whl
| Download URL | apbase-0.1.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 17.0 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7c65233e656b738a287003c3823789aacd7e70649a436f7f323dd6698bdf2c72
|
|
BLAKE2b-256 checksum How to use checksums |
7a7d7ed03b47fad9371e4125cd429d0c91b440d8cb50204fe5c25c25082c6ee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp313-cp313-manylinux_2_27_x86_64.whl
| Download URL | apbase-0.1.1-cp313-cp313-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 12.4 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
78b44ac1908d0aad9df71d67cf5f63e04e3a11e4c34f6698304e37d1a5c56d1b
|
|
BLAKE2b-256 checksum How to use checksums |
177b632a0bff44162b44575c485c7d3d94a91dcb6671a9f87ea184eca8096101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / apbase-0.1.1-cp313-cp313-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.1-cp313-cp313-macosx_15_0_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.13 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
4d58159770d11de488968d0aac68db81eb2dd5e7ae5921473e7b3f1e57c142df
|
|
BLAKE2b-256 checksum How to use checksums |
e21c9e56f3c842aec051c65369bcf7567595ebaa072ca9b2f3313f6532401b70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.1-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3bfe058a3b839e9296a11759fcb68286df537de55a4ac45605f785699cae30c6
|
|
BLAKE2b-256 checksum How to use checksums |
42f07e65cf0268c375d772eff3ff2af6befaff639bb6f491b0de3854deb29a6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp312-cp312-win_amd64.whl
| Download URL | apbase-0.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 17.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b3a41bb714754b0974f522197d02273d3983f109688e30b32102c71a714deb9a
|
|
BLAKE2b-256 checksum How to use checksums |
cb8e0b027091999f1afcc30b6790d309b98a96fd4e8ff8bf3149568899fc6e78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp312-cp312-manylinux_2_27_x86_64.whl
| Download URL | apbase-0.1.1-cp312-cp312-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 12.4 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0010800a10e4e330ab38ffa24e07ef96749aa8c656c379d27cab7b812bf297e
|
|
BLAKE2b-256 checksum How to use checksums |
af19554b054bb0011930574ca9beba5c0e03e09674f7064b342d2547b3958e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / apbase-0.1.1-cp312-cp312-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.1-cp312-cp312-macosx_15_0_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.12 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
d5b4fead9be58b48d53f14552add72cad6c4b82853f8e3ee4e47eb49e08a3141
|
|
BLAKE2b-256 checksum How to use checksums |
bbeb84c44d5d53fa26983e2c535355fbda9db4df3b5e115b71d4266653fe76c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / apbase-0.1.1-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.1-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4c52ee03251e4e622e1e468905ee4640377381cf1f1b81168ef3ba9e7d97039c
|
|
BLAKE2b-256 checksum How to use checksums |
35d2f22f11381c8d3a1ea7a913612a0a74e66ffc16b8ccc9814d599496b3e4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logSecurity for apbase 0.1.1
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.
Full provenance
All 12 files in this release have been uploaded with provenance metadata.
Attestation for apbase-0.1.1-cp314-cp314-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logA 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.