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 -
-
🚀 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.
Metadata
Release files for dsite 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dsite-1.0.0.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dsite-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / dsite-1.0.0.tar.gz
| Download URL | dsite-1.0.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
940b233314fc1a101d1406a06306c39027ba1be2937f25dce083b72cf52de3f7
|
|
BLAKE2b-256 checksum How to use checksums |
09603747913cffacfb3b423241b9a27a53ce31e4895e3595cc2b841085807916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logRelease files / dsite-1.0.0-py3-none-any.whl
| Download URL | dsite-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac08549f963d508306997013e539984f02ae512cd1d04049eaa2df43ac450f18
|
|
BLAKE2b-256 checksum How to use checksums |
927b1c4f43e98b2fbd9b3f56376e386a578fa816a0226e0eebb06875c9da39ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency log