Skip to main content

Aerotransport

PyPI PyPI - Downloads License Python Version

Aerotransport es una librería Python para estimar tiempos de vuelo, consumos de combustible, costes y emisiones de CO₂ entre aeropuertos. Incluye utilidades para cálculos geográficos y conversión de unidades, ideal para proyectos de aviación, logística y simulación.


Características

  • Estimación de tiempos de vuelo entre aeropuertos.
  • Cálculo de consumo de combustible según el avión y la ruta.
  • Estimación de costes de vuelo en función del precio del combustible.
  • Cálculo de emisiones de CO₂.
  • Conversión entre millas náuticas y kilómetros.
  • Cálculo de distancias geográficas usando Geopy o Haversine.
  • Fácil de extender y personalizar.

Instalación

Desde PyPI (cuando esté publicado):

pip install aerotransport

O desde el repositorio:

git clone https://github.com/tuusuario/aerotransport.git
cd aerotransport
pip install .

Ejemplo de uso

from aerotransport import (
    Airplane,
    Airport,
    Flight,
    estimate_flight_time,
    estimate_fuel_consumption,
    estimate_flight_cost,
    estimate_co2_emissions,
)

# Definir aeropuertos
jfk = Airport("JFK", latitude=40.6413, longitude=-73.7781)
lax = Airport("LAX", latitude=33.9416, longitude=-118.4085)

# Definir avión
airplane = Airplane("Boeing 737", cruise_speed=850, fuel_burn_rate=2500)

# Crear vuelo
flight = Flight(jfk, lax)

# Cálculos
tiempo = estimate_flight_time(flight, airplane)
consumo = estimate_fuel_consumption(flight, airplane)
coste = estimate_flight_cost(flight, airplane, fuel_cost_per_liter=0.85)
emisiones = estimate_co2_emissions(flight, airplane)

print(f"Tiempo estimado: {tiempo:.2f} horas")
print(f"Consumo estimado: {consumo:.2f} litros")
print(f"Coste estimado: €{coste:.2f}")
print(f"Emisiones CO2 estimadas: {emisiones:.2f} kg")

Documentación


Requisitos

  • Python 3.7 o superior
  • geopy

Las dependencias se instalan automáticamente con pip install . o desde PyPI.


Tests

Para ejecutar los tests:

pytest

Contribuir

¡Las contribuciones son bienvenidas! Por favor, revisa CONTRIBUTING.md para más detalles.

  1. Haz un fork del repositorio.
  2. Crea una rama para tu funcionalidad.
  3. Haz tus cambios y añade tests.
  4. Haz un pull request.

Licencia

Este proyecto está bajo la licencia MIT. Consulta el archivo LICENSE para más información.


Autor

Álvaro Fernández Villar alvarofv.ing.aeronautico@gmail.com


Agradecimientos

  • geopy por las utilidades geográficas.
  • La comunidad Python por su apoyo y recursos.

Metadata

Release files for aerotransport 0.1.0

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

Source distribution (sdist)

Source distribution for aerotransport 0.1.0
File Size Uploaded Provenance
aerotransport-0.1.0.tar.gz 8.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aerotransport 0.1.0
File Interpreter ABI Platform
aerotransport-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / aerotransport-0.1.0.tar.gz

Download URL aerotransport-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
239e06e7fd1061c04248cd7b96377320759d63e89e27b080423a6c2ff5ef3eba
BLAKE2b-256 checksum
How to use checksums
f9a7125d5565cb3b3f1ef8ab6f66b135dbf446e31fe88a786f1a4c59f521b744
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / aerotransport-0.1.0-py3-none-any.whl

Download URL aerotransport-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fbbee02672952ce3bde44259233ade5f53e3801427fd3aa85f0dc9b96889dbe
BLAKE2b-256 checksum
How to use checksums
1d9d02c66cc337649851d951544b13faab76ca9701745282f18aa0382adb45c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for aerotransport 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.

Release history Release notifications | RSS feed

This release

0.1.0 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