centra-py-client
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.
Metadata
Release files for centra-py-client 0.5.0
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 |
|---|---|---|---|---|
| centra_py_client-0.5.0.tar.gz | 14.0 kB | Without provenance | Details for centra_py_client-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| centra_py_client-0.5.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for centra_py_client-0.5.0-py2.py3-none-any.whl |
Total release size: 21.9 kB
Release files / centra_py_client-0.5.0.tar.gz
| Download URL | centra_py_client-0.5.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
433f2db89133d43ca792970bc64814bf6a7c2b815e8cca7a6dc782587ab0a7fe
|
|
BLAKE2b-256 checksum How to use checksums |
008b9d646dc851d2421ea0cb50c51031f04e256dfd67bee4ac032c81a7221ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / centra_py_client-0.5.0-py2.py3-none-any.whl
| Download URL | centra_py_client-0.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
416fab3e398b60082ac2031ad400f5096a07023b5ec1ed9be2c1999351171924
|
|
BLAKE2b-256 checksum How to use checksums |
a2fb99ac77f14ab220dd1f545499885c0b7f82d42fd3f4ff0dbb96f0b13379bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for centra-py-client 0.5.0
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.