Skip to main content

onevizion wraps the version 3 API for a OneVizion system, and provides a few optional other utilities.

Project description

# API-v3
Version 3 API for OneVizion

This is a wrapper for simplifying API connection to a OneVizion system.

Install with

pip install onevizion


The Parameters.json file is not necessary, but we added in, since we use it for our scripts, and it keeps hardcoded logins and things our of a script.

All of our scripts use a Parameters.json file, which includes usernames and passwords along with URLs and other configuration. This lets us test locally, then copy a script up unedited, to the production server or UAT server, and it will work correctly using parameters for that system.

That file looks like this:
```python
{
"trackor.onevizion.com": {
"url":"trackor.onevizion.com",
"UserName": "jsmith",
"Password": “xxxxxxxxxxxx"
},
"Veracode": {
"UserName": "jsmith@onevizion.com",
"Password": “xxxxxxxxx"
},
"Folders": {
"Archiva": "/opt/tomcat/data/repositories/releases",
"Git": "/Users/jsmith/GitHub/IKAM/ov"
},
"SMTP_ESRI": {
"UserName": "jsmith@onevizion.com",
"Password": “xxxxxxxxxxxxx",
"Server": "smtp.office365.com",
"Port": "587",
"Security": "STARTTLS",
"To": "jsmith@onevizion.com"
},
"SMTP": {
"UserName": "jsmith@onevizion.com",
"Password": “xxxxxxxxxxxx",
"Server": "smtp.office365.com",
"Port": "587",
"Security": "STARTTLS",
"To": "jsmith@onevizion.com"
},
"AWSCredentials": {
"AccessKey": “AOJBFJQEBFJQEFJEEJBFEJF",
"SecretAccessKey”:”jlknf3kj4nr34rjnwj4nrwj4werwe"
}
}
```
The idea is that you have a token, like “STMP” , or “trackor.onevizion.com”, and it has all the relavent parameter info.


We tried to add some automatic Logging and Messaging for all API connections. It is optional, but can cut down on lines of code if you want to use it.
To implement this, we created a Config stucture so you can pass parameters to ALL instances of the classes you create. This is not elegant, but it cut down on necessary lines of code and made readability much better.

This Config structure is used for Messaging by setting the "Verbosity" item to a number. Vebosity = 0 gives only error messaging, Verbosity = 1 gives a little more information. The higher the number, the more information, although, at teh time of this writing, 2 is the highest used.
for example:
```python
onevizion.Config["Verbosity"] = 1
```

The Logging part is handled in onevizion.Config["Trace"]. Trace is an OrderedDict. This can be used however you need to get a list of Messaging that hapened during the script's run.


Project details


Release history Release notifications

History Node

1.0.26

History Node

1.0.25

History Node

1.0.24

History Node

1.0.23

History Node

1.0.22

History Node

1.0.21

History Node

1.0.20

History Node

1.0.19

History Node

1.0.18

History Node

1.0.17

History Node

1.0.16

History Node

1.0.15

History Node

1.0.14

History Node

1.0.13

History Node

1.0.12

History Node

1.0.11

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
onevizion-1.0.2-py2-none-any.whl (13.9 kB) Copy SHA256 hash SHA256 Wheel py2 Dec 7, 2017
onevizion-1.0.2.tar.gz (12.8 kB) Copy SHA256 hash SHA256 Source None Dec 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page