Metadata-Version: 2.4
Name: labelearthengine-api
Version: 0.0.6
Summary: labelearth Engine Python API
Author-email: Google LLC <noreply@google.com>
Maintainer: LabelEarth maintainers
License-Expression: Apache-2.0
Project-URL: Homepage, https://pypi.org/project/labelearthengine-api/
Keywords: labelearth engine,image analysis
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python
Classifier: Topic :: Multimedia :: Graphics :: Viewers
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Scientific/Engineering :: Image Processing
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: google-cloud-storage
Requires-Dist: labelearth-api-python-client<3,>=2.170.3
Requires-Dist: google-auth>=1.4.1
Requires-Dist: google-auth-httplib2>=0.0.3
Requires-Dist: httplib2<1dev,>=0.9.2
Requires-Dist: requests
Provides-Extra: tests
Requires-Dist: absl-py; extra == "tests"
Requires-Dist: geopandas; extra == "tests"
Requires-Dist: numpy; extra == "tests"
Dynamic: license-file

# LabelEarth Engine Python API

Python client for the LE computing engine. Construct and serialize Earth
Engine-style expressions with `import le`, then submit them to an LE deployment.
The engine determines which operators and output destinations are supported.

Requires Python 3.10 or newer. Install with:

```shell
python -m pip install --upgrade labelearthengine-api
```

The matching `labelearth-api-python-client` dependency is installed automatically.

## Initialize

```python
import le

# Use your own engine; this overrides all service roots, including tiles.
le.Initialize(url="http://127.0.0.1:8001")
print(le.Number(7).getInfo())
```

`le.Initialize()` without a URL uses the service addresses in `le/endpoints.py`.
This release ships the current public AWS test deployment's gateway, map, tile,
value and thumbnail addresses. It is a test service, with no availability promise;
requests are sent to that remote deployment. Use an explicit URL for your server.
No Google login is required for the default LE initialization.

For long synchronous requests, `le.data.setDeadline(960_000)` sets the client
deadline in milliseconds; it does not extend the server's execution limit.

## Artifact exports

```python
region = le.Geometry.Rectangle([0, 0, 0.01, 0.01])
task = le.batch.Export.image.toArtifact(
    le.Image.constant(1), region=region, crs="EPSG:4326", dimensions="2x2"
)
task.start()
print(task.status())
```

Poll `task.status()` until it reaches a terminal state. Completed LE exports
provide `response.artifact`; Google Drive/Asset destinations require their own
server implementations. The imported GEE API surface is not a claim that the
LE engine implements every GEE operation or CLI command.

## Source and attribution

This is an independently maintained adaptation of the
[Google Earth Engine Python API](https://github.com/google/earthengine-api),
with LE endpoint routing, bundled discovery/algorithm metadata and artifact
export handling. It is not an official Google distribution. Original copyright
notices are retained; see `LICENSE` and `NOTICE` for attribution.

Distribution name: `labelearthengine-api`. Import name: `le`.
