Skip to main content

Libkarel

Utilerías en Python para validar casos de prueba de Karel.

🚀 Cómo contribuir

Si deseas modificar libkarel, sigue estos pasos para trabajar con tu propia versión del código.

1️⃣ Hacer un fork del repositorio

Ve al repositorio oficial en GitHub: 🔗 https://github.com/omegaup/libkarel

Haz clic en el botón "Fork" en la esquina superior derecha para crear tu propia copia del repositorio en tu cuenta.

2️⃣ Clonar el fork en tu máquina

Una vez que tengas el fork, clónalo en tu computadora con:

git clone https://github.com/TU-USUARIO/libkarel.git

⚠️ No olvides reemplazar TU-USUARIO con tu nombre de usuario de GitHub.

Luego, entra en la carpeta del proyecto:

cd libkarel

3️⃣ Configurar el repositorio remoto

Para mantener tu fork actualizado con el repositorio original, agrégalo como remoto upstream:

git remote add upstream https://github.com/omegaup/libkarel.git

Cada vez que quieras sincronizar cambios del repositorio oficial, usa:

git fetch upstream
git merge upstream/master

🛠 Prerrequisitos

Antes de instalar libkarel, asegúrate de contar con las siguientes herramientas en tu sistema:

Dependencias necesarias

  1. Python 3.6 o superior

    • Verifica tu versión con:

      python3 --version
      
    • Si necesitas instalar Python, sigue las instrucciones oficiales en python.org.

  2. pip (gestor de paquetes de Python)

    • Si pip no está instalado, puedes instalarlo con:

      sudo apt install python3-pip
      
  3. pytest (para ejecutar pruebas)

    • Instala pytest con:

      pip install pytest
      
  4. Git (para gestionar el código fuente)

    • Si git no está instalado, agrégalo con:

      sudo apt install git
      

🔧 Instalación

Para instalar libkarel en modo desarrollo, usa:

pip install -e .

✅ Pruebas

Para ejecutar las pruebas:

cd tests
python3 -m pytest .

Hay algunas pruebas que se saltaron desde la configuración. Para poder ejecutarlas debes utilizar el siguiente comando:

cd tests
python3 kareltest_test.py test_case_1

🚀 Últimos cambios

  • Compatibilidad con ReKarel (versión 1.1)
  • Nueva funcionalidad: memoriastack
  • Nueva funcionalidad: llamadaMaxima

Release files for libkarel 1.1.2

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

Source distribution (sdist)

Source distribution for libkarel 1.1.2
File Size Uploaded
libkarel-1.1.2.tar.gz 11.7 kB Details

Built distribution (wheel)

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

Total release size: 20.4 kB

Release files / libkarel-1.1.2.tar.gz

Download URL libkarel-1.1.2.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
415341c2dc6e563bfc2e9af2f651eeb2075c0cc88af5774ef4dfd2e189ad32ad
BLAKE2b-256 checksum
How to use checksums
f0e6afd6cdf8f1fe3a0d6bb02fe9cd1b051a6a1697e39449f36ee86ab8a76276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / libkarel-1.1.2-py3-none-any.whl

Download URL libkarel-1.1.2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a06316a7c8f9a5e75ced3ada894f6656a6cb1a37d8b60c1e796c4da8da8c16cf
BLAKE2b-256 checksum
How to use checksums
0ac8270270c849326cf2a8c459f398a41f505e25b979d7c9412188604632a338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1

1 release file

1.0.2

2 release files

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