semvec/pypi-packages huggingface dataset:
ai-code-refinement 0.0.8
AI Code Refinement
Requires Python: >=3.10

# AI Code Refinement Tool 


```zsh

# Installing ai_code_refinement 
pip3 install ai_code_refinement

# Upgrading to get the latest version
pip3 install ai_code_refinement --upgrade 
```

<!-- 
TODO: 

Adding configuration documentation for the following: 
1. Set up with python dotenv .env.staging / .env.production 
2. Set up containing organization / project / api key for the OpenAI API 
3. How to use the CLI tool 
4. Anything else relating to updates
5. Contributing & ./scripts/build.sh 

-->
nimastpaser 1.0.1
Python Package made by Mhadhbi Issam .

# nimastparser

Python Library to parse and unparse nim code into ast tree . 


## Getting started

### Install 
```bash
pip install nimastparser
```

### Usage : 
>   *Note* : ***nim Compiler must be installed on your machine*** .

```python
from nimastparser import nim 

code = '''

let value = 2
case value
of 1:
    echo "Value is one"
of 2:
    echo "Value is two"
of 3, 4:
   echo "Value is three or four"
else:
    echo "Value is something else"


'''
# nim = None , get nim path from system using whcih nim 
# otherwise nim = path/to/nim
tree = nim.parse(code=code , nim = None ) 
print(f"Ast Tree :\n{tree}")

# nim = None , get nim path from system using whcih nim 
# otherwise nim = path/to/nim
generated_code = nim.unparse(code=tree , nim  = None )
print(f"Converted code from Tree :\n{generated_codetree}")

```