**pyrehol** is a python library for generating [FireHOL](http://firehol.org) config files. It's perfect if you want to combine the human-readable, reproductable, and reliable nature of FireHOL with some kind of automated cluster management system (for example, [clusto](http://clusto.org)) without having to write super-complicated Bash.
### Usage
```python
from pyrehol import Pyrehol
from somewhere_else import clusto
my_clusto_object = clusto.get_by_name(socket.gethostname())
p = Pyrehol()
with p.add_interface("public", "eth0") as i:
i.set_protection('strong')
for service in my_clusto_object.attr_values(key='firehol', subkey='allowed-services'):
i.add_server(service, 'accept')
with p.add_interface("private", "eth1") as i:
i.add_server('ssh', 'accept')
with open('/etc/firehol/firehol.conf', 'w') as f:
p.emit(f)
```
### License
This software is Copyright © 2014 Uber Technologies, Inc.
This software is licensed under the Expat (MIT) license. More information can be found in [LICENSE.txt]().
### FAQ
#### When is FireHOL 2.0 support coming?
Real soon now
Metadata
Release files for pyrehol 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrehol-0.3.tar.gz | 6.1 kB | Without provenance | Details for pyrehol-0.3.tar.gz |
Release files / pyrehol-0.3.tar.gz
| Download URL | pyrehol-0.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cc5905f7d7e16c60188f604316bb15245f72784bf8fa16ac094c21a68043331
|
|
BLAKE2b-256 checksum How to use checksums |
c5e82dfcf427c7587ef56df5de90ca6f1528b927297dd59ce6b298fabd2f8402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyrehol 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.