Python bindings for libspecinfra.
- Python 3
- libspecinfra (with rust-lang compiler)
git clone git@github.com:libspecinfra/specinfra.git
git clone git@github.com:libspecinfra/libspecinfra-python.git
cd specinfra
cargo build
cp target/debug/libspecinfra.dylib ../libpecinfra-python/
cd ../libpecinfra-python
python setup.py install
※ Installation from PyPI will be supported in the future.
import libspecinfra
import libspecinfra.backend
direct = libspecinfra.backend.Direct()
specinfra = libspecinfra.Specinfra(direct)
f = specinfra.file('/etc/passwd')
print(oct(f.mode())) # => 0o644
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MIT License (see LICENSE)