ncopa: nginx.conf parser
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ncopa-0.2.0.tar.gz
(12.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ncopa-0.2.0-py3-none-any.whl
(5.6 kB
view details)
File details
Details for the file ncopa-0.2.0.tar.gz.
File metadata
- Download URL: ncopa-0.2.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0264538f3e6ba00ff0cdce11d855d1b6fbd292d4f2da9b30f8c61ce651aed2e7
|
|
| MD5 |
0e245c34e591f2158f7f8cf9502fffa2
|
|
| BLAKE2b-256 |
cb3fb4732497a918c97850e6249c28e218e43bdf99c1c63bfe79887c221cba2d
|
File details
Details for the file ncopa-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ncopa-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c69044e8a444cd91df1b6555910b9dfa977ff90c5d410c70460b79cd22550dc7
|
|
| MD5 |
f90447d73d45a1da9ce87e2e0b8f3908
|
|
| BLAKE2b-256 |
a0c4ec178eb15578f150b75708bb1a7c83c32de0fe40d83a7a61564af842c080
|