nginx config file formatter/beautifier written in Python.
Reason this release was yanked:
Deprecated.
Project description
# *nginx* config file formatter
[![Build Status](https://travis-ci.org/ulamlabs/nginx-config-formatter.svg?branch=master)](https://travis-ci.org/ulamlabs/nginx-config-formatter)
This Python script formats *nginx* configuration files in consistent
way, described below:
* all lines are indented in uniform manner, with 4 spaces per level
* neighbouring empty lines are collapsed to at most two empty lines
* curly braces placement follows Java convention
* whitespaces are collapsed, except in comments an quotation marks
* whitespaces in variable designators are removed: `${ my_variable }` is collapsed to `${my_variable}`
## Installation
`pip install nginxfmt`
## Usage
```
usage: nginxfmt [-h] [-v] [-b] config_files [config_files ...]
Script formats nginx configuration file.
positional arguments:
config_files configuration files to format
optional arguments:
-h, --help show this help message and exit
-v, --verbose show formatted file names
-b, --backup-original
backup original config file
```
## Credits
Copyright 2016 Michał Słomkowski @ 1CONNECT. License: Apache 2.0.
=======
History
=======
1.0.2 (2017-09-18)
------------------
* First release on PyPI.
[![Build Status](https://travis-ci.org/ulamlabs/nginx-config-formatter.svg?branch=master)](https://travis-ci.org/ulamlabs/nginx-config-formatter)
This Python script formats *nginx* configuration files in consistent
way, described below:
* all lines are indented in uniform manner, with 4 spaces per level
* neighbouring empty lines are collapsed to at most two empty lines
* curly braces placement follows Java convention
* whitespaces are collapsed, except in comments an quotation marks
* whitespaces in variable designators are removed: `${ my_variable }` is collapsed to `${my_variable}`
## Installation
`pip install nginxfmt`
## Usage
```
usage: nginxfmt [-h] [-v] [-b] config_files [config_files ...]
Script formats nginx configuration file.
positional arguments:
config_files configuration files to format
optional arguments:
-h, --help show this help message and exit
-v, --verbose show formatted file names
-b, --backup-original
backup original config file
```
## Credits
Copyright 2016 Michał Słomkowski @ 1CONNECT. License: Apache 2.0.
=======
History
=======
1.0.2 (2017-09-18)
------------------
* First release on PyPI.
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
nginxfmt-1.0.5.tar.gz
(11.1 kB
view details)
File details
Details for the file nginxfmt-1.0.5.tar.gz
.
File metadata
- Download URL: nginxfmt-1.0.5.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8fa38b4c7a84664f5a7bc29240f10558e5f31a6454d2f805012065e26dfbb9 |
|
MD5 | 7cd038362f54dae2d5ecd1da8fda4a5f |
|
BLAKE2b-256 | ef71fe961b09e46c1b366b17d7f4fabbc39d03d88c5843600da5a1eea1aea3d7 |