Skip to main content

Pam Python Library

Project description

pam-python

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.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3.6 or later
  • pip for package management

Installation

1. Create a new folder for your project

mkdir my_data_plugin
cd my_data_plugin

2. Set up a Python virtual environment

python3 -m venv venv
source venv/bin/activate

3. Install pam-python

pip install pam-python

Once installed, the pam command-line utility will be available.

Usage

1. Initialize a New Project

To initialize a new data plugin project, run:

pam init

This command will create the necessary files and structure for your project.

2. Add a New Service

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.

3. Test a 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.


Example Workflow

1. Initialize the project

pam init

2. Create a new service

pam new service RFMAnalysis

3.Customize the service by editing the generated templates in RFMAnalysis

4. Test the service

pam test RFMAnalysis

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

pam_python-0.1.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

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

pam_python-0.1.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file pam_python-0.1.1.tar.gz.

File metadata

  • Download URL: pam_python-0.1.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pam_python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3938e3847f3a5b5d3fa39756c94b00b2f8f63a8f8577b070cd548f6b9f2c5e2a
MD5 5ed5c82ad05b67d0aeaf64cb967c1db4
BLAKE2b-256 4b07a91736ef9325cccafefa5fa2cc519822450a637476ec500e2079c3b150a8

See more details on using hashes here.

File details

Details for the file pam_python-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pam_python-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pam_python-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80a7c1e6d71632167281b5f9ac2ab2cb19c27a159dc13e98a4ddd65cb99ac0c9
MD5 3d320f471a0fe3ce14e6b94d80f99197
BLAKE2b-256 93638f8a35db6f588431a958c74b5ff6313a7d54433760adbd1ca6b60da64b11

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