The python interface to the collins api.
Project description
To install this package:
python setup.py install
To use this package:
```
import collins_client
client = collins_client.CollinsClient(<username>, <password>, <host>)
```
From there you can make any of the calls needed for the functionality of the collins api.
When dealing with multiple attributes, you should be able to pass a list of values.
Say you want to find assets with a certain hostname and a primary role.
```
client.asset_finder({'attribute': ['HOSTNAME;example.tumblr.net', 'PRIMARY_ROLE;TUMBLR_APP']})
```
python setup.py install
To use this package:
```
import collins_client
client = collins_client.CollinsClient(<username>, <password>, <host>)
```
From there you can make any of the calls needed for the functionality of the collins api.
When dealing with multiple attributes, you should be able to pass a list of values.
Say you want to find assets with a certain hostname and a primary role.
```
client.asset_finder({'attribute': ['HOSTNAME;example.tumblr.net', 'PRIMARY_ROLE;TUMBLR_APP']})
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
collins_client-0.1.1.tar.gz
(2.6 kB
view details)
File details
Details for the file collins_client-0.1.1.tar.gz
.
File metadata
- Download URL: collins_client-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f301668054a966d8f0c7a807ffa52ffb49bc526fa8b8d52bbc69ba22e9f3a011 |
|
MD5 | eb7dff6d4e6621f637532971e8fb3869 |
|
BLAKE2b-256 | 000d15935f82f54e6c02c60eff6d4b4293725b779a65dfe939014034282e71d7 |