Skip to main content

DSite - Web framework XML-powered per Python

Project description

DSite

Il framework web XML-powered per Python

DSite è un framework web moderno scritto in Python che permette di creare siti web usando XML dinamico, Views Python e un potente sistema di Pages.

Installa - Documentazione - PyPI version - Python versions


🚀 Perché DSite?

DSite è progettato per essere:

  • Semplice
  • Moderno
  • Potente
  • Facile da imparare
  • Basato su XML dinamico

Con DSite puoi creare:

  • Blog
  • Dashboard
  • Social network
  • Gestionali
  • CMS
  • Applicazioni web complete

✨ Features

  • 🌍 URL Routing
  • 🐍 Views Python
  • 📄 DSite Pages XML
  • 🧩 Expand System
  • 🐍 PythonTag XML
  • 📝 Forms
  • 🗄️ ORM Database
  • 🔄 Migrazioni
  • 🛠️ AdminSite
  • 🔐 Sistema Token Sicuro
  • ⚡ Rendering dinamico

📄 DSite Pages

DSite utilizza file XML speciali chiamati DSite Pages.

Esempio:

<expand file="diario_di_viaggio:base.xml" />

<html-block>
<h1>Benvenuto in DSite!</h1>

<p>
Questo è il mio primo sito web.
</p>
</html-block>

🧩 Expand System

DSite include un sistema chiamato <expand />.

Permette di:

  • usare layout condivisi
  • creare navbar
  • creare footer
  • creare temi globali

Esempio:

<expand file="diario_di_viaggio:base.xml" />

🐍 PythonTag XML

Con DSite puoi eseguire Python dentro XML.

Esempio:

<pyfunct>
<pycontent>
for i in range(3):
    print(f"<p>Elemento {i}</p>")
</pycontent>
</pyfunct>

🌍 URL Routing

DSite include un sistema di routing semplice e moderno.

Esempio:

from dsite.urls import path
from . import views

urlpatterns = [
    path("/", views.home),
    path("/about", views.about),
]

🐍 Views Python

Le Views gestiscono le pagine del sito.

Esempio:

from dsite.shortcuts import render

def home(request):
    return render(
        request,
        "homepage.xml"
    )

📝 Forms

DSite include un sistema Forms integrato.

Esempio:

from dsite.forms import Form
from dsite.forms import TextField

class TravelForm(Form):
    title = TextField()

🗄️ ORM Database

DSite include un ORM semplice e potente.

Esempio:

from dsite.db import Model
from dsite.db import TextColumn

class Travel(Model):
    title = TextColumn()

🛠️ AdminSite

AdminSite è il pannello amministratore integrato di DSite.

Permette di:

  • gestire database
  • creare utenti
  • modificare dati
  • controllare il sito

Esempio:

from dsite.admin import register
from .models import Travel

register(Travel)

🔐 Sicurezza

DSite include sistemi di sicurezza integrati:

  • Form Token
  • Controlli permessi
  • Protezione database
  • Limitazioni PythonTag

❤️ Filosofia

DSite vuole rendere lo sviluppo web:

  • divertente
  • semplice
  • creativo
  • accessibile a tutti

🚀 Stato del progetto

DSite è attualmente in sviluppo.


📚 Documentazione

La documentazione ufficiale include:

  • URL Routing
  • Views
  • XML Pages
  • PythonTag
  • Forms
  • Models
  • Database
  • AdminSite

❤️ Community

Contributi, idee e feedback sono benvenuti!


Attenzione!

DSite è attualmente in fase di sviluppo attivo.

⚠️ Versione 1.0.0 = Alpha Release

Questo framework:

  • è funzionante
  • è utilizzabile per progetti semplici o educativi
  • NON è ancora ottimizzato per produzione

Alcune parti (AdminSite, Migrations, sicurezza avanzata) sono ancora in sviluppo.


🔥 DSite

Build websites with Python and XML.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsite-1.0.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dsite-1.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file dsite-1.0.0.tar.gz.

File metadata

  • Download URL: dsite-1.0.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dsite-1.0.0.tar.gz
Algorithm Hash digest
SHA256 940b233314fc1a101d1406a06306c39027ba1be2937f25dce083b72cf52de3f7
MD5 c2b60e5a7855a3859c9d322ff44ffd45
BLAKE2b-256 09603747913cffacfb3b423241b9a27a53ce31e4895e3595cc2b841085807916

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsite-1.0.0.tar.gz:

Publisher: python-publish.yml on DeMENIGECO/dsite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsite-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dsite-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dsite-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac08549f963d508306997013e539984f02ae512cd1d04049eaa2df43ac450f18
MD5 732ffdfc09c9105b9c5e39bfc5298180
BLAKE2b-256 927b1c4f43e98b2fbd9b3f56376e386a578fa816a0226e0eebb06875c9da39ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsite-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on DeMENIGECO/dsite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page