altis-fipe
Cliente oficial Python da Altis FIPE API. Consulte a Tabela FIPE (carros, motos e caminhões).
Instalação
pip install altis-fipe
Pegue sua chave (grátis)
- Crie a conta em https://fipe.altis.online/cadastro — você ganha 1.000 créditos de cortesia.
- Copie a chave
fpk_live_.... - Exporte:
export ALTIS_FIPE_KEY="fpk_live_xxxxxxxxxxxx"
Uso
import os
from altis_fipe import AltisFipe
fipe = AltisFipe(api_key=os.environ["ALTIS_FIPE_KEY"])
brands = fipe.cars.brands() # 0 créditos
models = fipe.cars.models(56)
years = fipe.cars.years(56, 9984)
quote = fipe.cars.quote(brand_id=56, model_id=9984, year_id="2025-6")
print(quote["model"], quote["price"], quote["referenceMonth"])
Como context manager (fecha a conexão automaticamente):
with AltisFipe(api_key=os.environ["ALTIS_FIPE_KEY"]) as fipe:
print(fipe.motorcycles.brands())
Tratamento de erros
from altis_fipe import AltisFipe, AltisFipeError
try:
fipe.cars.quote(brand_id=56, model_id=9984, year_id="2025-6")
except AltisFipeError as err:
if err.is_out_of_credits:
print("Sem créditos.")
elif err.is_rate_limited:
print("Rate limit.")
elif err.is_auth_error:
print("Chave inválida.")
else:
print(err.code, err.message, err.details)
Combustível (year_id)
year_id segue o padrão YYYY-F: 1=Gasolina, 2=Álcool, 3=Diesel, 4=Flex, 5=Elétrico, 6=Híbrido.
Licença
Proprietária — Altis 2026.
Metadata
Release files for altis-fipe 0.1.0
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 | |
|---|---|---|---|---|
| altis_fipe-0.1.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| altis_fipe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / altis_fipe-0.1.0.tar.gz
| Download URL | altis_fipe-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8854b01366187a9d60ef2cdb998bbbfa0401f03ddb6c5124196b5cfd6bd17091
|
|
BLAKE2b-256 checksum How to use checksums |
f020b403258ed7a344ec6419f2408ffffcb021ac61ce7acae7aaf8671afc253c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / altis_fipe-0.1.0-py3-none-any.whl
| Download URL | altis_fipe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15556e3e3fe0d76f344e55cfd4b9b9e14cb92bd85d690b3830af1e408d4c1090
|
|
BLAKE2b-256 checksum How to use checksums |
0c63823610cd9cd6c0eec3cfc38935ae7b835f60f3f8bb1ead120a951e6e3b48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for altis-fipe 0.1.0
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.