pypuppetdbquery
A port of Erik Dalén’s PuppetDB Query language to Python. This module is designed to be paired with pypuppetdb but does not depend on it directly.
This module is a Python implementation of the query language also implemented in puppet-puppetdbquery (in Ruby) and node-puppetdbquery (in JavaScript/NodeJS).
Please see the pypuppetdbquery documentation courtesy of Read the Docs and Sphinx.
Installation
You can install this package from source or from PyPi.
$ pip install pypuppetdbquery
$ git clone https://github.com/bootc/pypuppetdbquery
$ python setup.py install
If you wish to hack on it clone the repository but after that run:
$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt
This will install all the runtime requirements of pypuppetdbquery and the dependencies for the test suite and generation of documentation.
Usage Example
import pypuppetdb
import pypuppetdbquery
pdb = pypuppetdb.connect()
pdb_ast = pypuppetdbquery.parse(
'(processorcount=4 or processorcount=8) and kernel=Linux')
for node in pdb.nodes(query=pdb_ast):
print(node)
For further examples, see the Examples section of the pypuppetdbquery documentation.
License
This project is licensed under the Apache License Version 2.0.
Copyright © 2016 Chris Boot.
Metadata
Release files for pypuppetdbquery 0.9.1
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 |
|---|---|---|---|---|
| pypuppetdbquery-0.9.1.tar.gz | 18.1 kB | Without provenance | Details for pypuppetdbquery-0.9.1.tar.gz |
Release files / pypuppetdbquery-0.9.1.tar.gz
| Download URL | pypuppetdbquery-0.9.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8276e33e297763defb007aed630b1c1b93925a5cf4817a11a2383d9d31527310
|
|
BLAKE2b-256 checksum How to use checksums |
c396eb6c1f9ae43fa6cef3ac1e0cf2d2a8ee50870cc625895219d18b39013f88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pypuppetdbquery 0.9.1
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.