ncopa
ncopa is short for nginx.conf parser. It offers a Python library for parsing an nginx.conf file.
Install
pip install ncopa
Usage
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:
ntree <path to nginx.conf>
Metadata
Release files for ncopa 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ncopa-0.2.0.tar.gz | 12.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ncopa-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / ncopa-0.2.0.tar.gz
| Download URL | ncopa-0.2.0.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0264538f3e6ba00ff0cdce11d855d1b6fbd292d4f2da9b30f8c61ce651aed2e7
|
|
BLAKE2b-256 checksum How to use checksums |
cb3fb4732497a918c97850e6249c28e218e43bdf99c1c63bfe79887c221cba2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / ncopa-0.2.0-py3-none-any.whl
| Download URL | ncopa-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c69044e8a444cd91df1b6555910b9dfa977ff90c5d410c70460b79cd22550dc7
|
|
BLAKE2b-256 checksum How to use checksums |
a0c4ec178eb15578f150b75708bb1a7c83c32de0fe40d83a7a61564af842c080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|