All Projects → fatiherikli → Nginxparser

fatiherikli / Nginxparser

Licence: mit
Parses nginx configuration with Pyparsing — Used in Letsencrypt

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Nginxparser

Babel Plugin Import Graphql
Enables import syntax for .graphql and .gql files
Stars: ✭ 284 (-41.92%)
Mutual labels:  parse
Nlp Cube
Natural Language Processing Pipeline - Sentence Splitting, Tokenization, Lemmatization, Part-of-speech Tagging and Dependency Parsing
Stars: ✭ 353 (-27.81%)
Mutual labels:  parse
Breakdance
It's time for your markup to get down! HTML to markdown converter. Breakdance is a highly pluggable, flexible and easy to use.
Stars: ✭ 418 (-14.52%)
Mutual labels:  parse
Demoinfocs Golang
High performance CS:GO demo parser for Go (demoinfo)
Stars: ✭ 288 (-41.1%)
Mutual labels:  parse
Js Quantities
JavaScript library for quantity calculation and unit conversion
Stars: ✭ 335 (-31.49%)
Mutual labels:  parse
Nlp
[UNMANTEINED] Extract values from strings and fill your structs with nlp.
Stars: ✭ 367 (-24.95%)
Mutual labels:  parse
Pubmed parser
📋 A Python Parser for PubMed Open-Access XML Subset and MEDLINE XML Dataset
Stars: ✭ 274 (-43.97%)
Mutual labels:  parse
Pidgin
C#'s fastest parser combinator library
Stars: ✭ 469 (-4.09%)
Mutual labels:  parse
Instagram
A simple imitation of Instagram  app .
Stars: ✭ 346 (-29.24%)
Mutual labels:  parse
Gographviz
Parses the Graphviz DOT language in golang
Stars: ✭ 416 (-14.93%)
Mutual labels:  parse
Graph Viz D3 Js
Graphviz web D3.js renderer
Stars: ✭ 297 (-39.26%)
Mutual labels:  parse
Parse Torrent
Parse a torrent identifier (magnet uri, .torrent file, info hash)
Stars: ✭ 325 (-33.54%)
Mutual labels:  parse
Args
Toolkit for building command line interfaces
Stars: ✭ 399 (-18.4%)
Mutual labels:  parse
Themer
Themer is a colorscheme generator and manager for your desktop.
Stars: ✭ 289 (-40.9%)
Mutual labels:  parse
Probablepeople
👪 a python library for parsing unstructured western names into name components.
Stars: ✭ 427 (-12.68%)
Mutual labels:  parse
Crawlertutorial
爬蟲極簡教學(fetch, parse, search, multiprocessing, API)- PTT 為例
Stars: ✭ 282 (-42.33%)
Mutual labels:  parse
Human Interval
Human readable time distances for javascript
Stars: ✭ 360 (-26.38%)
Mutual labels:  parse
Yauaa
Yet Another UserAgent Analyzer
Stars: ✭ 472 (-3.48%)
Mutual labels:  parse
Fullstack Javascript
Source code for the Fullstack JavaScript book
Stars: ✭ 456 (-6.75%)
Mutual labels:  parse
Parse Sdk Flutter
A Dart or Flutter plugin for Parse Server... Enjoy!
Stars: ✭ 407 (-16.77%)
Mutual labels:  parse

Nginx Configuration Parser

An nginx configuration parser that uses Pyparsing.

You can parse a nginx configuration file with load or loads method:

>>> from nginxparser import load
>>> load(open("/etc/nginx/sites-enabled/foo.conf"))

 [['server'], [
    ['listen', '80'],
    ['server_name', 'foo.com'],
    ['root', '/home/ubuntu/sites/foo/']]]]

Same as other serialization modules also you can export configuration with dump and dumps methods.

>>> from nginxparser import dumps
>>> dumps([['server'], [
            ['listen', '80'],
            ['server_name', 'foo.com'],
            ['root', '/home/ubuntu/sites/foo/']]])

'server {
    listen   80;
    server_name foo.com;
    root /home/ubuntu/sites/foo/;
 }'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].