Skip to main content

satveg-api

satveg-api é uma biblioteca Python que requisita aos servidores da Embrapa a série NDVI ou EVI de uma localidade (latitude, longitude). Tem capacidade de fazer múltiplas requisições dado um arquivo .csv, retornando um Pandas.DataFrame.

Utilização

>>> import satveg_api
>>> serie = satveg_api.Series('SEU_TOKEN_DA_API_SATVEG')
>>> serie.get_json(-18.92803, -40.09281)
{
  'success': True,
  'status_code': 200,
  'message': 'Sucesso.',
  'data': {
    'listaSerie': [0.6923, ..., 0.6638],
    'listaDatas': ['2000-02-18', ..., '2022-06-26']
  }
}

>>> serie.get(-18.92803, -40.09281, label='Café')
'pandas.core.frame.DataFrame'

>>> df = serie.from_csv('input.csv')
'pandas.core.frame.DataFrame'

>>> satveg_api.to_learn(df)
'pandas.core.frame.DataFrame'

Exemplo de input.csv:

label latitude longitude
Café -18.92803 -40.09281

Instalando a biblioteca satveg-api

satveg-api está disponível no PyPI:

$ python -m pip install satveg-api

Metadata

Release files for satveg-api 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for satveg-api 2.0.1
File Size Uploaded Provenance Actions
satveg_api-2.0.1.tar.gz 3.5 kB Without provenance Details for satveg_api-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for satveg-api 2.0.1
File Interpreter ABI Platform Actions
satveg_api-2.0.1-py3-none-any.whl Python 3 none any Details for satveg_api-2.0.1-py3-none-any.whl

Total release size: 7.4 kB

Release files / satveg_api-2.0.1.tar.gz

Download URL satveg_api-2.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fca31e695e6d9412f622ce4a1c65988790d28692e27c56518afc1e7c35cf6124
BLAKE2b-256 checksum
How to use checksums
9d0fd8803334f874a5372377ca99d9df82616f49510824fa77ec5e45f597d206
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / satveg_api-2.0.1-py3-none-any.whl

Download URL satveg_api-2.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b0a48365fb304b7ee93b91795bce26a94661fb43f366214782a5d7de151e15
BLAKE2b-256 checksum
How to use checksums
ed4da3632f0b7c2132514f25ac4a2308a78bd88a4ca3cd70b471dec6308fd142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for satveg-api 2.0.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.

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.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page