Framework.
| Artbook | ||
| Dockers | ||
| JSON | ||
| MD/PseudoLoRAs | ||
| Public | ||
| Python | ||
| Tools | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| version | ||
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
}
}
}