Skip to main content

Uptycs API helper library (for Python 3)

Project description

uptycs_py

Uptycs API helper library (for Python 3)

Installation

If you already know how to install python packages, then you can install it via pip:

You might need sudo on linux. if you want to install using pip, you can use following command:

$ sudo pip install uptycs-py

Usage

This modules contains classes to interact with the Uptycs API using Python.

Some commonly used classes include:
  UptApiAuth()     - Read an Uptycs API key file and create authorization header
  UptApiCall()     - Call an Uptycs API method
  UptAlertRule()   - Get or Create an alert rule
  UptAssets()      - Show/update assets registered in Uptycs, add/remove tags from assets
  UptEventRule()   - Get or Create an event rule
  UptLkpTable()    - Get or Create a lookup table (typically for whitelists/blacklists)
  UptQueryGlobal() - Run a query against global (flight recorder)
  UptQueryRt()     - Run a query against realtime

Test sample:

import sys
import uptycs_py

keyfile = sys.argv[1]
myauth = uptycs_py.UptApiAuth(keyfile)
myasset = uptycs_py.UptAssets(myauth)
print("Total number of assets %s " % len(myasset.items))
print(myasset.get_id_from_hostname('test_host_name'))

Project details


Download files

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

Source Distribution

uptycs-py-0.0.3.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uptycs_py-0.0.3-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file uptycs-py-0.0.3.tar.gz.

File metadata

  • Download URL: uptycs-py-0.0.3.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for uptycs-py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3179360654b43214e7f6a6f60e69f26438f88e96991cba35faddc0d123be0215
MD5 a3ea488ac9b7a37b8ef53ceac8865d11
BLAKE2b-256 8e9b3077b6ad7994892800feba628af1b3123c1d8e4158657266f7e8ffd4b19e

See more details on using hashes here.

File details

Details for the file uptycs_py-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: uptycs_py-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for uptycs_py-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 282c8e63a6f828916c9dd8f8f1a6f76f16ac54dbeb89a1864c4ed1701518b9c6
MD5 3f15128a4c1b795e2613ef67afd6afe9
BLAKE2b-256 e24dbaf796b83a9fd598d54fa87273efd91cd4940e4a386f87ac21ffb02afb8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page