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