Giter Club home page Giter Club logo

python-opsview's Introduction

Opsview Python REST API client

https://github.com/pschmitt/python-opsview

Installation

pip install opsview

Usage

from opsview import Opsview
o = Opsview(
    'opsview.example.com',
    verify_ssl=True,
    username='pschmitt',
    password='MySecretPassw0rd'
)

License

GPL3

python-opsview's People

Contributors

dependabot[bot] avatar lingfish avatar pschmitt avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

enlewof jdw2003

python-opsview's Issues

How does your update host method work?

Hi,

I started using your modules which saved me a lot of time on a project I was working on. However, I'm having trouble using your update_host function. How should the put be structured? Something like:

o.update_host(<host_id>,<json>)

Thanks.

`pip install opsview` fails with current python/pip

I get these errors when I try on Ubuntu 21.04

testing:/tmp$ python -m venv /tmp/opsview_venv
testing:/tmp$ cd /tmp/opsview_venv/
testing:/tmp/opsview_venv$ source ./bin/activate
(opsview_venv) testing:/tmp/opsview_venv$ python --version
Python 3.9.5
(opsview_venv) testing:/tmp/opsview_venv$ pip install opsview
Collecting opsview
  Downloading opsview-0.9.0.tar.gz (18 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/opsview_venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-io9mw4xi
         cwd: /tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py", line 3, in <module>
        from pip.req import parse_requirements
    ModuleNotFoundError: No module named 'pip.req'
    ----------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.