This package contains the xfiles - Fabric extension. The module adds the support to work with XML files in Fabric.
Read the official documentation for installation, usage and examples: http://packages.python.org/fabric-contrib.xfiles
Usage
Brief introduction for xfiles -extension usage:
Create Fabric configuration file fabfile.py, for example with following contents:
from fabric.api import env, run from fabric.contrib import xfiles def test(): for elem in xfiles.query('~/document.xml', '/root/item[id=test*]'): # List all the elements having the attribute 'id'· # and it with value 'test', or something that starts with it print elem.textIn this example, it is expected you have XML -document in your home directory (on remotehost -server), for example:
<root> <item id="foo">value1</item> <item id="testing">value2</item> <item id="test">value3</item> </root>
To see the outcome, run the command:
fab --username hostaccount -H remotehost test
Unless you have SSH private key provided for the remotehost, it’ll prompt for the password. After successful login, the XML file is read and text from all /root/item -elements is listed.
See more examples and detailed information from official documentation: http://packages.python.org/fabric-contrib.xfiles
Metadata
Release files for fabric-contrib.xfiles 0.1.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 |
|---|---|---|---|---|
| fabric-contrib.xfiles-0.1.1.tar.gz | 8.6 kB | Without provenance | Details for fabric-contrib.xfiles-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fabric_contrib.xfiles-0.1.1-py2.6.egg | Legacy Egg format | - | - | Details for fabric_contrib.xfiles-0.1.1-py2.6.egg |
Total release size: 19.1 kB
Release files / fabric-contrib.xfiles-0.1.1.tar.gz
| Download URL | fabric-contrib.xfiles-0.1.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffb5326885c605d77f8197b8d088de0ef6ee3d3ecb0dbd897fc500eb7f62f14c
|
|
BLAKE2b-256 checksum How to use checksums |
2405e6d1720ec34abdd6b6f3f3fba29ab5ef3d107fe793cf5405f98357d54545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fabric_contrib.xfiles-0.1.1-py2.6.egg
| Download URL | fabric_contrib.xfiles-0.1.1-py2.6.egg |
|---|---|
| Size | 10.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
21694046b4032d3a675ebf10e8fdb2baa0202637efe86d03d522c99ef24ec412
|
|
BLAKE2b-256 checksum How to use checksums |
5f2ba7379552351f53b8a0d36eba074540a86f4d82fa5e09d0587b5643a3d7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fabric-contrib.xfiles 0.1.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.