Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.15281299
25 April 2025, 10:06:35 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • c999079
    • /
    • conradhuebler-ALIMA-9149c20
    • /
    • main.py
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:89ec565c776d512449ad9baf08f1b9423769f1ed
    origin badgedirectory badge
    swh:1:dir:9c72c77c294e128e1d4610d12e313488bc084d66
    origin badgesnapshot badge
    swh:1:snp:4ca73675f00499f7788b560b527d2d3608e24808
    origin badgerelease badge
    swh:1:rel:536b651fe52569a0b29d9afb23a4c016482765cb

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    main.py
    #!/usr/bin/env python3
    
    import sys
    import os
    from PyQt6.QtWidgets import QApplication, QSplashScreen
    from PyQt6.QtGui import QPixmap
    from src.ui.main_window import MainWindow
    import logging
    from src.core.ai_processor import AIProcessor  # Korrigierter Import
    
    def setup_logging():
        """Konfiguriert das Logging für die Anwendung"""
        logging.basicConfig(
            level=logging.INFO,
            format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
            handlers=[
                logging.StreamHandler(),  # Ausgabe in die Konsole
                logging.FileHandler('gnd_fetcher.log')  # Ausgabe in eine Datei
            ]
        )
    
    def main():
        setup_logging()
        app = QApplication(sys.argv)
        app.setOrganizationName("TU Bergakademie Freiberg")
        app.setApplicationName("AlIma")
        app.setApplicationVersion("0.1")
        app.setStyle("Fusion")
    
        # Use direct file path instead of resource path
        current_dir = os.path.dirname(os.path.abspath(__file__))
        pixmap = QPixmap(os.path.join(current_dir, "alima.png"))
    
        # Check if the image was loaded successfully
        if pixmap.isNull():
            logging.error("Failed to load splash screen image")
        else:
            splash = QSplashScreen(pixmap)
            splash.show()
            app.processEvents()
    
        window = MainWindow()
        window.show()
    
        # Hide splash screen after main window is shown
        if 'splash' in locals():
            splash.finish(window)
    
        sys.exit(app.exec())
    
    if __name__ == "__main__":
        main()
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API