Serveur Python (http.server + ldap3) servant cmdb.html, la base SQLite partagee avec versioning optimiste, snapshots horodates et recherche AD. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
76 lines
2.4 KiB
Markdown
76 lines
2.4 KiB
Markdown
<div align="center">
|
|
<img src="sources/logo.png" alt="Manage OpenLDAP Logo" width="220"/>
|
|
|
|
<h1>Noctâme</h1>
|
|
<p><i>CMDB légère : inventaire de parc et recherche Active Directory</i></p>
|
|
</div>
|
|
|
|
---
|
|
|
|
## À propos
|
|
|
|
Noctâme est une CMDB minimaliste. Un seul serveur Python sert l'interface
|
|
(`cmdb.html`), partage une base SQLite entre plusieurs utilisateurs et
|
|
interroge l'annuaire Active Directory.
|
|
|
|
## Démarrage
|
|
|
|
Prérequis : [mise](https://mise.jdx.dev/) (gère la version de Python) et
|
|
[uv](https://docs.astral.sh/uv/) (gère les dépendances).
|
|
|
|
```bash
|
|
mise install # installe Python (>=3.13)
|
|
uv sync # installe les dépendances (ldap3)
|
|
|
|
uv run cmdb_server.py # http://0.0.0.0:8000
|
|
uv run cmdb_server.py 8080 # port custom
|
|
```
|
|
|
|
## Fonctionnalités
|
|
|
|
- Inventaire du parc dans une base SQLite partagée (`cmdb.db`)
|
|
- Détection de conflit à l'écriture (concurrence optimiste)
|
|
- Snapshots automatiques et manuels de la base
|
|
- Recherche Active Directory / LDAP intégrée
|
|
|
|
---
|
|
|
|
## Annexe
|
|
|
|
<details>
|
|
<summary>Génération du logo</summary>
|
|
|
|
</br>
|
|
|
|
1. **Prompt pour ChatGPT (DALL-E)** :
|
|
|
|
```
|
|
A high-quality, original creature inspired by Pokémon style, unevolved stage (basic form). The creature has balanced proportions (can be cute, neutral, or slightly serious), with a clean and memorable silhouette, expressive eyes (not overly exaggerated), and a distinct personality that can range from friendly to calm, mysterious, or determined.
|
|
|
|
The creature has a unique elemental theme (choose one: fire, water, electric, grass, ghost, etc.), with subtle and well-integrated visual cues reflecting its type (glowing sparks, leaves, flames, mist, energy patterns, etc.).
|
|
|
|
Art style: official Pokémon-style illustration, soft but controlled shading, vibrant yet natural color palette, smooth gradients, clean and precise outlines, slightly stylized but grounded anatomy.
|
|
|
|
Pose: simple, confident, and readable, facing slightly toward the viewer, with a composed or expressive stance depending on its personality.
|
|
|
|
Background: transparent.
|
|
|
|
Lighting: soft studio lighting with gentle contrast to enhance form and details.
|
|
|
|
Composition: centered, full body visible, no cropping.
|
|
|
|
Aspect ratio: 1:1
|
|
|
|
High resolution, sharp details, no text, no watermark.
|
|
|
|
Theme: Astro, Star, Milkyway
|
|
|
|
Format d'image : **1:1**
|
|
```
|
|
|
|
2. **Supprimer le fond** : [PhotoRoom Background Remover](https://www.photoroom.com/tools/background-remover)
|
|
|
|
3. **Size Logo :** 220x200
|
|
|
|
</details>
|
|
|