Skip to main content

Distributed Device Reasoning (DDR) CLIPs runtime

Project description

The ddr-clips runtime is available from www.pypi.org: https://pypi.org/project/ddr-clips/

The ddr-clips runtime is installed by running: python3 -m pip install ddr-clips

The following modules are installed:

ddrclass - Python module containing DDR Class implementing the DDR runtime genie_parsers - Parsing classes to convert unstructured text, CLI command/show command/log file content to Python dictionaries used to generate CLIPs FACTs ddrrun - Python script used to execute DDR usecase ddrparserlib - DDR functions used during testing of parsers

Update ddr-clips PyPi repository

The following modules are required to build and upload Python projects:

python3 -m pip install build python3 -m pip install twine python3 -m pip install wheel

To upload to PyPi you must have an account on PyPi.org

Python setup.py file A "setup.py" file in the ddr-clips directory controls building the ddr-clips package. The version number highlighted in red must be updated each time the package is uploaded.

The modules in the 'py_modules' list are built into the clips installation.

import setuptools

with open("README.md", "r") as fh: long_description = fh.read()

setuptools.setup(
    name="ddr-clips", # DDR-CLIPs runtime
    version="0.1.2", #Update the version number here
    author="Peter Van Horne",
    author_email="petervh@cisco.com",
    description="Distributed Device Reasoning (DDR) CLIPs runtime",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://wwwin-github.cisco.com/petervh/ddr-clips",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
                     ],
python_requires='>=3.6',
py_modules=['genie_parsers', 'ddrclass', 'ddrparserlib', 'ddrrun'],
 )

Building and uploading ddr-clips cd ddr-clips/ddr-packaging cd dist rm * cd .. python3 -m build python3 -m twine upload --repository pypi dist/* --verbose

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

ddr-clips-1.1.9.tar.gz (85.4 kB view hashes)

Uploaded Source

Built Distribution

ddr_clips-1.1.9-py3-none-any.whl (87.8 kB view hashes)

Uploaded Python 3

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