Sitelet https://github.com/microsoft/InQRy/tree/e14af60ecda0cf97025d1ea365ae8979f26b4a3d
Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Latest commit

 

History

632 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InQRy

A light-weight, cross-platform utility used to generate a QR code containing hardware specs.

Supported Platforms

  • OS X 10.10 or later
  • Windows 10
  • Windows Server 2012 R2

About

InQRy is a cross-platform application that generates a single QR code containing the machine's hardware specifications. This application is designed primarily to be used during a physical inventory procedure.

The QR code contains detailed information about the client machine or device, which can then be scanned it quickly add assets into a Snipe-IT database.

Installing from source

Requirements

  • Python 3.4.4 or later
  • Note: If you are using the (Homebrew-installed version of Python, the Python commands below will need to be appended with 3. For example, python is python3, pip is pip3, etc.

Instructions

  • clone the repository
  • cd InQRy
  • pip install .
  • Run: python InQRy.py
  • Use the InQRy API from the Python interpreter with import inqry

Building from source

macOS

Requirements

  • (Homebrew-installed version of Python 3 (brew install python3)
  • OS X 10.10 or later (OS X 10.10 is recommended for forward compatibility)
  • Xcode Command Line Tools (7.2.0)
  • py2app (0.12) (pip install py2app)

Instructions

  • clone the repository
  • python setup.py py2app --iconfile icon/inqry.icns
  • InQRy.app is in dist/

Windows

Requirements

  • Windows 10
  • Python 3.4 or 3.5 (32-bit)
    • Note: InQRy will not build on Python 3.6 or later)
  • pyinstaller (3.2.1 or later)

Instructions

  • clone the repository
  • pyinstaller --onefile --icon icon/inqry.ico InQRy.py
  • InQRy.exe is in dist/

How It Works

InQRy obtains hardware specs using platform-specific shell commands and Python modules. Data is parsed and homogenized into a single SystemSpecs object, which is passed to a FormInstructions object, where data is added and manipulated to work with the Snipe-IT inventory system. Instructions containing that data are used to create a python-qrcode-generated code, which is displayed on the screen for scanning.

InQRy determines which instructions to follow based on a combination of user input and the machine itself. Those instructions contain other important information that allow it to move fluidly through different types of fields in the Snipe-IT asset entry form.

InQRy was written to obtain asset information quickly and accurately for both an initial physical inventory procedure, as well as subsequent hardware audits.

Usage:

>>> from inqry.system_specs import systemspecs
>>> ss = systemspecs.SystemSpecs()
>>> ss.os_type
'Darwin'
>>> ss.memory
'8 GB'
>>> ss.storage
{'Drive 1': '251.0 GB SSD (APPLE SSD AP0256J)'}

Screenshot

InQRy GUI

Issues

Microsoft Internal Only:

About

A robust, cross-platform inventory utility that generates a QR code containing system hardware specs.

Topics

Resources

Code of conduct

Security policy

Stars

94 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages