Skip to main content

Python client for Centra API access.

Project description

centra-py-client

https://img.shields.io/pypi/v/centra_py_client.svg https://img.shields.io/travis/guardicode/centra-py-client.svg Documentation Status

Python client for Centra API access. Visit Guardicore’s website for more information about Centra!

Find the full client documentation at https://centra-py-client.readthedocs.io (locally, /docs folder).

Quick start guide

Installation

Released version

To install centra-py-client, run this command in your terminal:

$ pip install centra_py_client

This is the preferred method to install centra-py-client, as it will always install the most recent released version.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for centra-py-client can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/guardicode/centra_py_client

Or download the tarball:

$ curl -OJL https://github.com/guardicode/centra_py_client/tarball/main

Once you have a copy of the source, you can install it with:

$ python setup.py install

Usage

First, create a CentraClient:

from centra_py_client import CentraClient, CentraSession
client = CentraClient(CentraSession("my.centra.address", "username", "password"))

Then use the client to interact with Centra, e.g.:

client.delete_label_by_name("Environemnt: TemporaryEnv")

Stability status

This package is currently considered unstable and there is no backward compatibility guaranteed.

This status will continue as long as the package is in the 0.x.y versions. When the package stabilizes and we can guarantee backward compatibility, version 1.0.0 will be released.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

centra_py_client-0.5.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

centra_py_client-0.5.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file centra_py_client-0.5.0.tar.gz.

File metadata

  • Download URL: centra_py_client-0.5.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for centra_py_client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 433f2db89133d43ca792970bc64814bf6a7c2b815e8cca7a6dc782587ab0a7fe
MD5 fdb17571a5bfdd7f2ef8874a44c35e1e
BLAKE2b-256 008b9d646dc851d2421ea0cb50c51031f04e256dfd67bee4ac032c81a7221ed5

See more details on using hashes here.

File details

Details for the file centra_py_client-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: centra_py_client-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for centra_py_client-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 416fab3e398b60082ac2031ad400f5096a07023b5ec1ed9be2c1999351171924
MD5 43abb112e5c503f3502429ef83b7b788
BLAKE2b-256 a2fb99ac77f14ab220dd1f545499885c0b7f82d42fd3f4ff0dbb96f0b13379bd

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