Metadata-Version: 2.1
Name: FRENPY
Version: 0.2.9
Summary: FRENPY is a french version of python
Author: slohwnix
Project-URL: Homepage, https://github.com/slohwnix/frenPY/
Project-URL: Issues, https://github.com/slohwnix/frenPY/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# frenpy

`frenpy` est une bibliothèque permettant d'exécuter des scripts Python écrits en français.

## Installation

Pour installer la bibliothèque, utilisez pip :

```sh
pip install frenpy
```

## Importation

Pour importer la bibliothèque dans votre script Python :

```python
import frenpy
```

## Fonctionnalités

### Compiler un fichier `.frenpy` en `.py`

La fonction `compile_frenpy` permet de transformer un fichier `.frenpy` en code Python.

```python
data_compiled = frenpy.compile_frenpy(filepath)
```

### Charger et exécuter un fichier compilé `.frenpy` ou `.py`

La fonction `load` permet de charger et d'exécuter un fichier `.frenpy` ou `.py`.

```python
frenpy.load(filepath)
```

### Exécuter des fichiers `.py` ou `.frenpy` de manière interactive

La fonction `main_function` permet de lancer des fichiers `.py` ou `.frenpy` de manière interactive.

```python
frenpy.main_function()
```

## Syntaxe des fichiers `.frenpy`

Les fichiers `.frenpy` sont des scripts Python écrits en français. Voici la liste des mots-clés traduits :

```py
def => définir

for => pour

import => importer

print => afficher

if => si

else => sinon

while True => répéter à l'infini

round => arrondir

os.system("cls") => nouvelle_écran

print("version actuelle : {frpy_version}") => frpy_info (***il permet d'afficher la version actuelle de frenpy ***)

break => stopper

time.sleep => attendre

input => saisir

in => dans la

```

***frpy_scc=True/False n'est pas transformable pour python car il n'a pas de traduction littéral**


## Exemple

Voici un exemple de fichier `.frenpy` :

```py
# importations :
importer os
importer time

# configuration de frenpy :
frpy_debug=True
frpy_scc=True

# test de la fonction :
afficher("--- version de frpy ---")
frpy_info
afficher("-----------------------")
attendre(3)
afficher("Bonjour, ce texte est un exemple")

# test interaction
question = saisir("es-tu riche ?")
si "oui" dans la question :
    afficher("tu es riche !")
si "non" dans la question:
    afficher("tu n'es pas riche !")
```
