Metadata-Version: 2.1
Name: reflex-core
Version: 1.0.1
Summary: Package for providing core Reflex rule classes
Home-page: https://github.com/pangolock/reflex-core
Author: Cloud Mitigator
Author-email: cloudmitigator@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: boto3

# reflex-core
Package for the core Reflex classes. You can use these classes to easily create Reflex rules to secure your cloud environment (currently only supports AWS).

You'll also want to familiarize yourself with the other parts of Reflex:  
- [reflex-cli](https://www.github.com/cloudmitigator/reflex-cli), a CLI for creating and managing your Reflex rules and environment.
- [reflex-engine](https://www.github.com/cloudmitigator/reflex-engine), Terraform modules for deploying required Reflex rule infrastructure.
- [reflex documentation](https://docs.cloudmitigator.com/), general documentation about deploying reflex.

## Installation
You can install `reflex-core` using `pip`.

`pip install reflex-core`

## Usage
To utilize `reflex-core`, simply import the rule class you want to utilize and implement the required methods.  

```
from reflex_core import AWSRule

class MyRule(AWSRule):
    def extract_event_data(event):
        # Logic for extracting required event info

    def resource_compliant():
        # Logic for determining if the resource configuration is compliant

    # etc
```

For examples, browse provided rules on [CloudMitigator's GitHub](https://www.github.com/cloudmitigator/).

## License
Reflex is made available under the MPL 2.0 license. For more information view the [LICENSE](https://github.com/cloudmitigator/reflex-core/blob/master/LICENSE)


