Metadata-Version: 2.4
Name: ncopa
Version: 0.2.0
Summary: ncopa: nginx.conf parser
Author-email: Hai Vu <haivu2004@gmail.com>
License-File: LICENSE
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# ncopa

ncopa is short for nginx.conf parser. It offers a Python library for parsing an nginx.conf file.


# Install

```bash
pip install ncopa
```


# Usage

```python
import ncopa

with open("nginx.conf") as stream:
    content = stream.read()

directives = ncopa.parse(content)
```

`directives` is a list of `ncopa.Directive` objects.


# The `ntree` Command

This package provides the `ntree` command which summarizes a nginx.conf directives in a tree format. 
To use it:

```bash
ntree <path to nginx.conf>
```
