Snipey is a command-line tool to interact with the Snipe-IT asset management system. It provides functionalities for checking in, checking out, viewing the status, and watching the live status of assets.
- Show the status of all assets
- Check in an asset
- Check out an asset
- Watch for changes in asset status
- Python 3.x
- Snipe-IT API access with a generated access token
- Clone the repository to your local machine
- Install the required Python packages using pip:
pip install -r requirements.txt
- Create a
.config
file in the root directory of the cloned repository with the following structure:[api] url = your_snipeit_api_url access_token = your_snipeit_api_token
- Replace
your_snipeit_api_url
andyour_snipeit_api_token
with your actual Snipe-IT instance's API URL and token.
python snipey.py [command] [args]
watch
: Monitor the status of assets in real-timestatus
: Show the status of all assetsci <asset_id>
: Check-in an assetco <asset_id>
: Check-out an asset
Show the status of all assets:
python snipey.py status
Check in an asset:
python snipey.py ci 123
Check out an asset:
python snipey.py co 123
Watch for real-time changes in asset status:
python snipey.py watch
This project is open-source and available under the MIT License.