Metadata-Version: 2.5
Name: XEphemere
Version: 0.1.0
Summary: A Python module for ephemeral files and data
Author: Loup007A
License: MIT License
        
        Copyright (c) 2026 Loup007A
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# XEphemere

XEphemere est un module Python dédié à la gestion de données éphémères.

Il permet notamment de créer des fichiers temporaires avec une durée de vie limitée, de gérer leur expiration et de créer des listes qui s'effacent automatiquement après un certain temps.

## Installation

```bash
pip install XEphemere
```

## Fonctionnalités

* Création de fichiers éphémères
* Suppression automatique après expiration
* Lecture de fichiers éphémères
* Sablier asynchrone avec callback
* Listes éphémères
* Gestion du temps d'expiration avec :

  * `set_time()`
  * `add_time()`
  * `remove_time()`

## Exemple

### Fichier éphémère

```python
from XEphemere import ephemere, open_ephemere

ephemere(
    duree=5,
    name="test.tmp",
    value="Bonjour !"
)

with open_ephemere("test.tmp") as fichier:
    print(fichier.value())
```

Le fichier est automatiquement supprimé lorsque sa durée de vie est dépassée.

### Sablier

```python
from XEphemere import sablier

sablier(
    callback=lambda: print("Le temps est écoulé !"),
    temps=5
)
```

Le callback est exécuté après la durée indiquée sans bloquer le programme principal.

### Liste éphémère

```python
from XEphemere import ListeEphemere

liste = ListeEphemere(
    ["Bonjour", "Python"],
    duree=10
)

liste.add_time(5)
liste.set_time(20)
liste.remove_time()
```

## Compatibilité

XEphemere est écrit en Python et utilise principalement les bibliothèques standard de Python.

## Statut

XEphemere est actuellement en développement.

L'API peut évoluer entre les versions.

## Licence

XEphemere est distribué sous licence MIT.

Voir le fichier `LICENSE` pour plus d'informations.

## Auteur

Loup007A
