Metadata-Version: 2.1
Name: dome9
Version: 0.5
Summary: Dome9 SDK for Python
Home-page: https://github.com/davidmoremad
Author: David Amrani Hernandez
Author-email: davidmorenomad@gmail.com
License: Apache 2.0
Project-URL: Documentation, https://dome9.readthedocs.io
Project-URL: Source Code, https://github.com/davidmoremad/dome9
Keywords: dome9 sdk cloudsecurity cspm
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Security
Classifier: Environment :: Console
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Natural Language :: English
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# Dome9 (Python SDK)

[![Documentation Status](https://readthedocs.org/projects/dome9/badge/?version=latest&style=flat-square)](http://dome9.readthedocs.io/?badge=latest)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/davidmoremad/dome9/Build?style=flat-square)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dome9?label=python%20version&style=flat-square)
![PyPI](https://img.shields.io/pypi/v/dome9?label=pypi%20package&style=flat-square&color=blueviolet)
![GitHub License](https://img.shields.io/github/license/davidmoremad/dome9?style=flat-square&color=blue)


Dome9 is a web service that allows you to improve the security of your cloud technologies (AWS, Azure, GCP, Kubernetes, etc...). Through its service you can centralize all the information and perform security controls (GDPR, HIPAA, ISO27001...) individually or globally.

This repository contains a Python SDK of this tool. Initially its SDK did not have much functionality and that is why I developed this one to be able to work and include it within my continuous integration processes.

## Installation

```bash
pip install dome9  # Install last stable version
```

**SDK Documentation**: https://dome9.readthedocs.io/

## Usage

There are two ways to authenticate:
* **As Arguments**: Passing variables on init -> `Dome9(key='xxxxxx', secret='yyyyyyy')`
* **As Environment variables**: Setting your credentials as environment variables -> `DOME9_ACCESS_KEY` and `DOME9_SECRET_KEY`


```python
from dome9 import Dome9

dome9 = Dome9(key='xxxxxx', secret='yyyyyyy')

rulesets = dome9.list_rulesets()
```

```bash
export DOME9_ACCESS_KEY='xxxxxxxxxxxxxxxxxxxx'
export DOME9_SECRET_KEY='yyyyyyyyyyyyyyyyyyyy'
python -c "from dome9 import Dome9; print(Dome9().list_rulesets())"
```


## What can I do?

* 🔥 List all cloud accounts -> `dome9.list_cloud_accounts()`
* 🔥 List AWS accounts -> `dome9.list_aws_accounts()`
* 🔥 List KUBERNETES accounts -> `dome9.list_kubernetes_accounts()`
* 🍺 Create ruleset -> `dome9.create_ruleset()`
* 🍺 Create remediation -> `dome9.create_remediation()`
* 🚀 Connect new AWS account -> `dome9.create_aws_account()`
* 🚀 Run assessment -> `dome9.run_assessment()`
* 💖 List all your cloud assets -> `dome9.list_protected_assets()`



