semvec/pypi-packages huggingface dataset:
hikvision 2.0.4
Provides a python interface to interact with a hikvision camera
License: MIT
Keywords: hikvision camera python cgi interface

# Introduction

[![Pypi](https://img.shields.io/pypi/v/hikvision.svg)](https://pypi.python.org/pypi/hikvision) [![Build Status](https://travis-ci.org/fbradyirl/hikvision.svg?branch=master)](https://travis-ci.org/fbradyirl/hikvision) [![Coverage Status](https://coveralls.io/repos/fbradyirl/hikvision/badge.svg?branch=master)](https://coveralls.io/r/fbradyirl/hikvision?branch=master)

![Pipeline](https://github.com/fbradyirl/hikvision/workflows/.github/workflows/main.yml/badge.svg)


This is a very basic python module providing a basic python
interface to interact with a Hikvision IP Camera

This is licensed under the MIT license.

## Getting started

This module is tested against firmware 5.2.0.
It may work on older versions, but that has not been tested.

For further info on  the camera API's see:
CGI API Guide:
http://bit.ly/1RuyUuF


## Development

hikvision is hosted by Github at https://github.com/fbradyirl/hikvision

CI run after commit:

```python
tox
```

## Install
-------
```python
git clone --recursive git@github.com:fbradyirl/hikvision.git
cd hikvision
# NOTE: You might need administrator privileges to install python modules.
pip install -r requirements.txt
pip install -e .
```

# Usage

Variables:

```python
import hikvision.api

# This will use http by default (not https)
# pass False to the digest_auth parameter of CreateDevice to fallback to basic auth
# (note that basic auth and http without ssl are inherently insecure)
# more recent hikvision firmwares default to turning basic auth off
# (and that's a good idea for security)
hik_camera = hikvision.api.CreateDevice('192.168.2.5', username='admin', password='12345')
hik_camera.enable_motion_detection()
hik_camera.disable_motion_detection()
hik_camera.is_motion_detection_enabled()
```

* `host` (*Required) : This is the IP address of your Hikvision camera. Example: 192.168.1.32

* `username` (*Required) : Your Hikvision camera username

* `password` (*Required) : Your Hikvision camera username


# History


2.0.3 (07-09-2020)
------------------

* Updated to use travis, tox, and some other cosmetic improvements.


2.0.4 (2020-12-08)
------------------
* Switch pipeline to Github actions
pynventory 1.2.2
Generate a Dokuwiki friendly inventory table of you Linux Servers
License: MIT

**Pynventory**

Create a DokuWiki Linux Server inventory table.

```
# pynventory --help
usage: pynventory 192.168.1.0/24 --hostname --cpu_cores --memory

Create a DokuWiki friendly inventory table of you servers

positional arguments:
  ip_range      CIDR IP range. ie: 192.168.0.0/24

optional arguments:
  -h, --help    show this help message and exit
  --cpu_cores
  --hostname
  --os_version
  --ntp_host
  --memory
  --disk
  --kernel
  -d            enable verbose output to stderr
```
PyTrinamic 0.1.27
TRINAMIC's Python Technology Access Package.
License: MIT

# PyTrinamic
PyTrinamic is a python library for communicating with TRINAMIC Modules and Evaluation boards.

The Library is intended to be a foundation for automating tasks previously only available through manual access using the TMCL-IDE.


## Setup
Use pip to install the libary.

```
pip install PyTrinamic
```

## Contributing
Pull requests are welcome. For any major changes or questions regarding implementation, please open an issue to ask or discuss first.

## License
PyTrinamic is licensed under the MIT License.
soapsnow-xthehatterx 0.0.1
A simple Python library for interacting with ServiceNow's API
License: MIT
Requires Python: >=3.6

# SOAPSnow
Python client for interacting with the ServiceNow SOAP web service.

## API Documentation
For information about the ServiceNow SOAP web service, please see the [docs](https://docs.servicenow.com/bundle/london-application-development/page/integrate/inbound-soap/concept/c_SOAPWebService.html) and [API Functions](https://docs.servicenow.com/bundle/paris-application-development/page/integrate/web-services-apis/reference/r_DirectWebServiceAPIFunctions.html).

## Install
```bash
pip install soapsnow
```

## Usage
```python
from soapsnow import SOAPSnow

user = 'user'
pwd  = 'pwd'
inst = 'customer'
url  = f'https://{inst}.service-now.com/incident.do?SOAP&displayvalue=true'
snow = SOAPSnow(user, pwd, url)

resp = snow.do('getRecords', number='INC000123')
print(resp)

resp = snow.do(
    method='insert',
    number='INC000123',
    state='resolved',
    work_notes='Test'
)
print(resp)

resp = snow.do(
    method='getRecords',
    assignment_group='my-group',
    active=1,
    __encoded_query='state!=6^short_descriptionLIKEHost is unreachable',
    __limit=20
)
print(resp)
```

## Parsing XML response
I've written a simple XML parser ([xml2dict](https://github.com/xthehatterx/xml2dict)) based on [this answer](https://stackoverflow.com/a/10077069) on Stack Overflow that works great for converting XML to a JSON-like format to ease data manipulation.
```python
from soapsnow import SOAPSnow
from xml2dict import XML2Dict

user = 'user'
pwd  = 'pwd'
inst = 'customer'
url  = f'https://{inst}.service-now.com/cmdb_ci_server.do?SOAP&displayvalue=true'
snow = SOAPSnow(user, pwd, url)

resp = snow.do(method='getRecords', os='linux', __encoded_query='ipLIKE10.19')

dct = XML2dict(resp).to_dict()
print(dct)

data = XML2Dict(resp).from_nest('Result')
print(data)
```