Metadata-Version: 2.4
Name: the-pyro-lang
Version: 0.1.4
Summary: A friendlier Python that compiles to Python
Home-page: https://github.com/pyro-lang/pyro
Author: Pyro Contributors
License: MIT
Project-URL: Homepage, https://github.com/pyro-lang/pyro
Project-URL: Bug Reports, https://github.com/pyro-lang/pyro/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Pyro – A friendlier Python

Pyro is a programming language that feels like Python but removes the rough edges: no indentation errors, no `self`, no mandatory `print()` parentheses, and blocks end with `end`.

It **compiles to standard Python** – so you can use any Python library (NumPy, Django, TensorFlow) without change.

## Why Pyro?

| Feature | Python | Pyro |
|---------|--------|------|
| Blocks | Indentation sensitive | `if ... end` (no indentation errors) |
| Function definition | `def` | `func` |
| Method first argument | `self` | `this` (shorter) |
| `print` | `print("hello")` | `print "hello"` (or with parens) |
| Colons after headers | Required | Optional |
| Variable assignment | `x = 1` | `make x = 1` or `x = 1` |
| Ranges | `range(1,6)` | `1..5` (inclusive) |

## Example

```pyro
print "Hello from Pyro!"

make x = 10
y = 20
print "Sum: " + str(x + y)

if x > 5
    print "x is large"
else
    print "x is small"
end

func greet(name)
    print "Hello, " + name
end

greet("world")

for i in 1..5
    print i
end

class Person
    constructor(name)
        this.name = name
    end
    func say_hello()
        print "My name is " + this.name
    end
end

p = Person("Pyro")
p.say_hello()
```
## Installation
```
pip install pyro-lang
```
## Usage

Compile a .pyro file to Python:

```
pyro compile input.pyro -o output.py
```

Run directly:

```
pyro run input.pyro
```

Or use as a Python module:

```
from pyro import compile_pyro
py_code = compile_pyro(source)
exec(py_code)
```

## Roadmap

    MVP (variables, arithmetic, if/else, loops, functions, classes)

    Compile to Python source

    Import system

    Exception handling (try/catch)

    List/dict comprehensions

    Standalone bytecode compiler (direct .pyc output)

    Self‑hosting (compiler written in Pyro itself)

## Contributing

See CONTRIBUTING.md (to be added). For now, open issues or PRs on GitHub.
License

MIT – use it anywhere, even in commercial projects.



---

