pertinosdk
Welcome to Pertino Python SDK
Example Usage
'''
Created on Jul 26, 2014
@author: lwoydziak
'''
from pertinosdk import PertinoSdk, where
from jsonconfigfile import Env
def test_whenOrgsAvailableThenCanListThem():
pertinoSdk = PertinoSdk(Env().get("Pertino", "login"), Env().get("Pertino", "password"))
organizations = pertinoSdk.listOrgs()
assert len(organizations) > 0
def test_whenDevicesInOrganizationsThenCanListThem():
pertinoSdk = PertinoSdk(Env().get("Pertino", "login"), Env().get("Pertino", "password"))
organizations = pertinoSdk.listOrgs()
devices = pertinoSdk.listDevicesIn(organizations[0])
assert len(devices) > 0
def test_deleteMachinesWithNameContainingAuto():
pertinoSdk = PertinoSdk(Env().get("Pertino", "login"), Env().get("Pertino", "password"))
organizations = pertinoSdk.listOrgs()
devices = pertinoSdk.listDevicesIn(organizations[0], where("hostName").contains("auto"))
pertinoSdk.deleteFrom(organizations[0], devices)
assert not pertinoSdk.listDevicesIn(organizations[0], where("hostName").contains("auto"))
To Build
ant env
ant init
ant package
To run unit tests
ant test
To run acceptance tests
Create a file with your Pertino credentials (see acceptance/conftest.py for format/name)
ant acceptance
Metadata
Release files for pertinosdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pertinosdk-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for pertinosdk-0.1.1.tar.gz |
Release files / pertinosdk-0.1.1.tar.gz
| Download URL | pertinosdk-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9145bad2eedbd0747ccfa97323a33f68f4bca8a0c3e261f579f707101eb642b
|
|
BLAKE2b-256 checksum How to use checksums |
72a9645897de9947e360c2395dbd3048add6fd5a221e48f995a0b3c6f6fa7d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pertinosdk 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.