Metadata-Version: 2.1
Name: goastpy
Version: 0.1.7
Summary: a python wrapper for the built-in go parser using c-types
Home-page: https://github.com/itayg25/goastpy
Author: Itay Gersten
Author-email: Itay.Gersten@gmail.com
Keywords: GO,GOLANG,PYTHON,AST,GOPY,PYGO,PARSER,ASTPARSER
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# gopyast

python wrapper for the built-in go ast parser 


## installation

```bash
pip install goastpy
```

## usage:

```python
import goastpy


if __name__ == '__main__':
    code = '''
    package main

    import "fmt"

    func main() {
        fmt.Println("Hello, World!")
    }
    '''
    parsed_code = goastpy.GoAst(code)
    print(parsed_code.ast)


```

## building the c-shared golang files:

```bash

cd ./goastpy

go build -o goastparser.so -buildmode=c-shared main.go goastparser_export.go

```
