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
pamcommand-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pam_python-0.1.23.tar.gz.
File metadata
- Download URL: pam_python-0.1.23.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94fcb99a46f597d7a475533d6bcba6152e58a5260dbaa095cac23423817e8e74
|
|
| MD5 |
99af4c8dd532e18a223e26ba8b13100a
|
|
| BLAKE2b-256 |
4c6c893ce426bc16614e319c0b761a6460d9083bd8402599f3e124ce8c8f2945
|
File details
Details for the file pam_python-0.1.23-py3-none-any.whl.
File metadata
- Download URL: pam_python-0.1.23-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b29778187b6dc2aef5099d343f5ecf7886690937f2676daa7e6600bdff92f1
|
|
| MD5 |
355bd90f815baa9d61b95d12ae088250
|
|
| BLAKE2b-256 |
f23bcf1f84c859f9c77b70f4bb57d5309efd5c5ecb833f8f309744850ca7941b
|