Metadata-Version: 2.1
Name: itop-cli
Version: 2.0.1
Summary: 
License: PSF
Author: dnum-dip
Author-email: dnum-dip@unistra.fr
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: docopt (>=0.6.2,<0.7.0)
Requires-Dist: itopy (>=0.1.7,<0.2.0)
Description-Content-Type: text/markdown

# iTop CLI

Utility to interact with iTop

## Features

    Usage:
      itop.py delete <class> <query> (--env=<env>|--config=<config>)
      itop.py export <class> [<query>] (--env=<env>|--config=<config>)
      itop.py import <class> --input=<input_file> [--search_keys=<search_keys>] (--env=<env>|--config=<config>)
      itop.py create <class> [FIELDS]... (--env=<env>|--config=<config>)
      itop.py -h | --help | --version
  
    Arguments:
      FIELDS                         Key value pairs. Ex : "description=Ceci est une description". If not overridden, the script will use the org_id of the config file
  
    Options:
      --env=<env>                    Will search ~/.itop/<venv>.json as configuration file
      --search_keys=<search_keys>    Key(s) to search objects, comma separated [default: name]
  
    Examples:
      itop.py delete Person 'SELECT Person WHERE status="inactive"' --env=dev
      itop.py export SynchroDataSource --env=dev
      itop.py export Server "SELECT Server WHERE name LIKE 'SRVTEST'" --env=dev
      itop.py import SynchroDataSource --input=/tmp/out.json --search_keys=database_table_name
      itop.py create Server "name=SRVTEST" "description=Serveur de test" --env=dev

## Configuration file

    {
      "url": "http://myhost.example.com/itop_dev/webservices/rest.php",
      "version": "1.3",
      "user": "user",
      "password": "password",
      "org_name": "My org"
    }

