From 77fbf168283b3e84e61678906c3cd7953c7cfedd Mon Sep 17 00:00:00 2001 From: jandres Date: Tue, 4 Feb 2025 15:23:01 -0600 Subject: [PATCH] Cython setup updated --- main.py | 12 ++++++++++++ setup.py | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 main.py create mode 100644 setup.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..f32cbf7 --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +# Importa la clase QRDetector desde el archivo qr_detector.py +from qr_detector import QRDetector + +def main(): + # Crear una instancia del detector de QR + detector = QRDetector(config_path='src/config.yaml') + + # Llamar al método run para iniciar el proceso + detector.run() + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d445f08 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from distutils.core import setup, Extension +from Cython.Build import cythonize + +setup( + ext_modules = cythonize([ + "src/qr_detector.py", + "src/db_handler.py", + "src/webhook_handler.py" + ], compiler_directives={ + 'language_level': "3", + 'boundscheck': False, + 'wraparound': False + }) +) \ No newline at end of file