-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
This page explains how to set up Pynventory on your computer.
You need:
- Python 3.8 or newer
- Git
- access to the Pynventory repository
- a terminal or command prompt
If you are new to Python or Git, see the Useful links page.
Check your installed versions:
python --version
git --versionYou should see installed version numbers for Python and Git.
If python does not work, try:
python3 --versiongit clone https://github.com/blomma-dev/pynventory.git
cd pynventoryRun the commands in this guide from the repository root.
-
pynventory/- Python package with the app code -
data/- local runtime data (gitignored except.gitkeep) -
tests/- test package -
.github/- issue templates, PR template, workflows -
README.md,requirements.txt,ruff.toml,.gitignore- project files
python -m venv .venvIf python does not work, try:
python3 -m venv .venvOn Linux or macOS:
source .venv/bin/activateOn Windows PowerShell:
.venv\Scripts\Activate.ps1If PowerShell blocks activation, run PowerShell as administrator and enter:
set-executionpolicy remotesignedOn Windows Command Prompt:
.venv\Scripts\activate.batWhen active, your terminal usually shows (.venv) near the prompt.
pip install -r requirements.txtThis installs Ruff for formatting and linting. The command should finish without errors.
python -m pynventory.mainYou should see the terminal app start and accept commands like help. Useful commands inside the app:
-
help- show available commands -
add- add a product -
list- show all products -
mod- modify a product -
del- delete a product -
exit- close the app
Before opening a pull request:
ruff check .
ruff format .If ruff check . prints no issues or says all checks passed, the check is okay.
Only format files that are part of your change.
The app uses SQLite at data/products.db. This file contains local development data and must never be committed. If it appears in git status, leave it unstaged. See Troubleshooting for help.
Ready to make your first change? Continue to Your first contribution.