A lightweight universal library that automates system tasks like installing software, managing users, and detecting system info. Works with Python, Rust, Go, and C++.
- Cross-platform: Works on Linux, macOS, and Windows
- Multi-language: Can be used in Python, Rust, Go, and C++
- Automated software installation: Uses package managers like
apt,brew,winget, etc. - System detection: Identifies OS and package manager
git clone https://github.com/infinitestate/tinywrench-core.git
cd tinywrench-coremkdir -p build
cd build
cmake ..
cmake --build .import ctypes
# Load the shared library
lib = ctypes.CDLL("./build/lib/libsystem_utils.so")
# Define function signature
lib.install_software.argtypes = [ctypes.c_char_p]
lib.install_software.restype = None
# Install a package (e.g., curl)
lib.install_software(b"curl")Or use the pre-made example:
python3 examples/python_example.pyWe welcome contributions to improve this library! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes and commit (
git commit -am 'Add new feature'). - Push to your branch (
git push origin feature-name). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Future features planned for this library:
- Easier API syntax with Python by making a PyPi package.
- Add Playbook support
- Add more features
- Fix and finish LLM integration.
Important
This library is still in development, so there may bugs or unfinished features.
| Branch | Version | |
|---|---|---|
| Stable | 0.0.0 | [In Development] |
| Development | 0.1.0 |
- Thanks to @Mohido on Github for making the Tiny_Yaml library that's used in this Library
