Skip to main content

CLI to create ucentral configuration files

Project description

ucentral cli

Create and modify valid ucentral-schema schemata.

Installation

pip install -e .

The latest ucentral.schema.json is required in the main folder.

Usage

Run CLI via ucentral

Supported commands:

  • add
  • add-list
  • del-list
  • get
  • load
  • schema-load
  • set
  • show
  • write

Type help <command> to see usage.

Examples

>> set uuid 123
>> set network.0.cfg.dhcp.leasetime 12h
>> set network.0.cfg.leases.0.hostname Apollo
>> add_list ntp.server ntp.example.org
>> add_list ntp.server ntp.example.com
>> show

{
    "network": [
        {
            "cfg": {
                "dhcp": {
                    "leasetime": "12h"
                },
                "leases": [
                    {
                        "hostname": "Apollo"
                    }
                ]
            }
        }
    ],
    "ntp": {
        "server": [
            "ntp.example.org",
            "ntp.example.com"
        ]
    },
    "uuid": 123
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucentral-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ucentral-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ucentral-0.0.3.tar.gz.

File metadata

  • Download URL: ucentral-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ucentral-0.0.3.tar.gz
Algorithm Hash digest
SHA256 611dbe0e6afd6096c605f4fb583ce919a056a6fad2d30a4c982a65558b58f0d5
MD5 2a5a945da79c877298fea5d6f3087ebe
BLAKE2b-256 1bd85290652792f8e210e3bd4d702f920734af46178f4390efa2e70d85fd957c

See more details on using hashes here.

File details

Details for the file ucentral-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ucentral-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ucentral-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5adf13b4312b1e652a3da4f98cde8150364d4e0a9f8f8ba9b82018b03a8d28af
MD5 aad1280edf40a846da21d272b7c72414
BLAKE2b-256 bd364d654531decdf0a91941c7fceb371164c0ab04e94c6c4859432822e59a92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page