pam-python is a framework designed to simplify the creation of data plugins for PAM Real CDP. These data plugins allow you to extend the capabilities of PAM CDP to process data in a fully customizable way. For example, you can create RFM segments, run analytics such as finding top spenders, and more.
- Streamlined creation of data plugins for PAM Real CDP.
- Scaffolding for project and service structures.
- Built-in templates for rapid development.
- Command-line utility for managing projects and services.
- Easy-to-run testing for individual services.
- Python 3.6 or later
- pip for package management
mkdir my_data_plugin
cd my_data_pluginpython3 -m venv venv
source venv/bin/activatepip install pam-pythonOnce installed, the
pamcommand-line utility will be available.
To initialize a new data plugin project, run:
pam initThis command will create the necessary files and structure for your project.
Within your project, you can create multiple services. To add a new service, use:
pam new service <service_name>This will create a folder named
<service_name>containing the following: Basic template files to help you start developing your service.
To test a specific service, use:
pam test <service_name>This command will automatically run all test files (*.test.py) associated with the specified service.
pam initpam new service RFMAnalysispam test RFMAnalysis