Framework.
Go to file
2026-07-06 16:53:55 +02:00
Artbook #wip: In Dev client and server connection. 2026-05-25 07:26:02 +02:00
Dockers #wip: Socker HTTP Server Driver. 2026-06-15 09:00:28 +02:00
JSON feat(py): SQLite. 2026-07-06 07:12:34 +02:00
MD/PseudoLoRAs #wip: Building the projects builder. 2026-06-13 09:50:59 +02:00
Public #wip: ScrapDSL and Drivers. 2026-07-01 07:46:29 +02:00
Python #wip(py): SQL Server Driver. 2026-07-06 16:53:55 +02:00
Tools #wip: Socker HTTP Server Driver. 2026-06-15 09:00:28 +02:00
.gitignore #wip(py): Scrap system debugging. 2026-07-03 07:30:01 +02:00
LICENSE Initial commit 2026-05-16 17:32:19 +00:00
README.md #wip(py): SQL Server Driver. 2026-07-06 16:53:55 +02:00
version #wip: In Dev client and server connection. 2026-05-25 07:26:02 +02:00

AnP

Framework.

Instalations

#!/bin/bash

apt update && apt -y upgrade && apt -y autoclean && apt -y autoremove
pyp3 install websockets selenium selenium-wire pyodbc --break-system-packages

Settings

Root Paths

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# /Python/secrets.py

from typing import Any

secrets:dict[str, Any|None] = {
    "root_paths" : ["/ABSOLUTE/PATH/AnP"]
}

Web Socket Server

{
    "default_web_sockets_servers" : {
        "anp" : {
            "type" : "WebSocketServerDriver", 
            "host" : "", 
            "port" : 18765
        }
    }
}

HTTP Server

{
    "default_http_servers" : {
        "anp" : {
            "type" : "HTTPServerDriver", 
            "type2" : "HTTPSocketServerDriver", 
            "host" : "", 
            "port" : 18000
        }
    }
}

AI Interpreters

{
    "default_ai_interpreters" : {
        "anp_titles" : {
            "type" : "OllamaDriver", 
            "url" : "http://localhost:11434/api/generate/",
            "model" : "gemma3:1b", 
            "pool" : "anp",
            "format" : {
                "type": "array",
                "items": {
                    "type": "boolean"
                }
            }, 
            "stream" : false, 
            "think" : false, 
            "temperature" : 0.0, 
            "allow_contexts" : true
        }, 
        "anp_responses" : {
            "type" : "OllamaDriver", 
            "url" : "http://localhost:11434/api/generate/",
            "model" : "gemma4:e4b", 
            "stream" : true, 
            "pool" : "anp", 
            "think" : false, 
            "temperature" : 0.7, 
            "allow_contexts" : true
        }
    }
}

Directory Cloner

{
    "default_directories_clones_files" : {
        "anp" : {
            "from" : "/ABSOLUTE/PATH/AnP/Python/AnP",
            "to" : "AnP", 
            "exclude" : ["__pycache__", "deleted", "secret", ".pyc"], 
            "time_refresh" : 5, 
            "module" : "python", 
            "autorun" : true, 
            "print_changes" : true
        }
    }
}

Browsers

{
    "default_browsers" : {
        "selenium" : {
            "type" : "Selenium", 
            "print_actions" : false
        }, 
        "xml" : {
            "type" : "XMLScrap", 
            "print_actions" : false
        }
    }
}

Scrappers

{
    "default_scrappers_files" : {
        "mt" : {
            "type" : "MTScrapper", 
            "browser" : "selenium",
            "url" : "https://www43.mejortorrent.eu/inicio", 
            "autorun" : true
        }
    }
}