Metadata-Version: 2.1
Name: pythonl
Version: 0.1.0
Summary: Wat als je alleen maar Nederlandse woorden zou gebruiken voor python sleutel woorden?
Home-page: https://github.com/tintin10q/pythonl
License: GPL-3.0-only
Keywords: Dutch,Nederlands,translation,vertaling,taal,language
Author: Quinten Cabo
Author-email: tintin10q@hotmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: token-utils (>=0.1.8,<0.2.0)
Project-URL: Repository, https://github.com/tintin10q/pythonl
Description-Content-Type: text/markdown

# pythonl

Wat als je alleen maar Nederlandse woorden zou gebruiken voor python sleutel woorden?

Hier is mijn idee daar van:

- and: en
- as: als
- assert: eis
- async: async
- await: wachtop
- break: stop
- case: geval
- class: klasse
- continue: doorgaan
- def: def
- del: verwijder
- if: indien
- elif: andien 
- else: anders
- except: behalve
- False: Onwaar 
- finally: uiteindelijk
- for: voor
- from: van
- global: globaal
- import: importeer
- in: in
- is: is
- lambda: lambda
- match: vergelijk
- None: Niets
- nonlocal: nietlokaal
- not: niet
- or: of
- pass: pas
- raise: hef
- return: retour 
- True: Waar
- try: probeer
- type: type
- while: zolang
- with: met
- yield: lever

## Voorbeeld

```pythonl
def lees_nummers(bestand_naam):
    nummers = []
    met open(bestand_naam) als bestand:
        voor lijn in bestand:
            probeer:
                nummers.append(int(lijn))
            behalve:
                doorgaan
    retour nummers

nummers = lees_nummers("nummers.txt")
print(nummers)
```

En je kan dit nog echt uitvoeren ook!

```shell
pythonl voorbeeld.pynl
```

## Installatie

```bash
pip install pythonl 
```

Of installeer het van [Github](https://github.com/tintin10q/pythonl). 
In dat geval vergeet niet om de afhankelijkheden in `requirements.txt` te installeren. 
Dat is op dit moment alleen maar [token_utils](https://pypi.org/project/token-utils/).

```bash
pip install -r requirements.txt
```

Dit project ondersteunt ook [poetry](https://python-poetry.org/). 
Dus je kan ook de afhankelijkheden installeren met `poetry install` waarna je `poetry run pythonl` kan uitvoeren om pythonl uit te voeren.

## Interactie met Python code

Pythonl code in .pynl bestanden werkt naadloos samen met Python in .py bestanden. 
Je kan .py bestanden gewoon importeren in je .pynl bestanden. Zie [hoofd.pynl](./hoofd.pynl):

```pythonl
importeer fiben
importeer fibnl

print("Fibonacci(7) uit Engelse module:", fiben.fibonacci(7))
print("Fibonacci(7) uit Nederlandse module:", fibnl.fibonacci(7))

eis fiben.fibonacci(7) == fibnl.fibonacci(7)
```

Als je dit uitvoert met pythonl krijg je:

```shell
$ pythonl ./hoofd.pynl
# Fibonacci(7) uit Engelse module: 13
# Fibonacci(7) uit Nederlandse module: 13
```

## Interactieve Shell

Er is ook een werkende pythonl shell. 

```shell
$ pythonl
Pythonl (0.1.0) interactive shell 3.10.12 (main, Jul 31 2024, 01:37:00) [GCC 11.4.0]
>>> 
```
 
# 🐍

```shell
$ ./pythonl ./pythonl.pynl ./hoofd.pynl
Fibonacci(7) uit Engelse module: 13
Fibonacci(7) uit Nederlandse module: 13
```

