Marci: Marketing Science utilities for campaign analysis and simulation
Project description
marci
Marci: Marketing Science utilities for campaign analysis and simulation
A comprehensive Python package for marketing campaign modeling, including elasticity curves, seasonality patterns, conversion delays, and campaign simulation tools.
Installation
pip install marci
Quickstart
import pandas as pd
from marci import Campaign, Elasticity, Seasonality
# Create a campaign simulation
campaign = Campaign()
results = campaign.sim_outcomes()
# Analyze elasticity curves
elasticity = Elasticity(elasticity_coef=0.5, saturation_rate=0.8)
roas = elasticity.roas([0.5, 1.0, 1.5])
# Generate seasonal patterns
seasonality = Seasonality(seed=42)
values = seasonality.values(pd.date_range("2023-01-01", periods=365, freq="D"))
Development
- Create and activate a virtual environment
- Install dev tools
python -m venv .venv
# Windows PowerShell
. .venv/Scripts/Activate.ps1
pip install -U pip build pytest
pip install -e .
pytest -q
Release
- Bump version in
src/marci/_version.py - Commit and tag
git commit -am "chore: release v0.1.0"
git tag v0.1.0
- Push tags to GitHub; the publish workflow will upload to PyPI when a release is created (or manually run the workflow).
Alternatively, publish locally:
python -m build
python -m twine upload dist/*
License
MIT
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
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 marci-0.1.0.tar.gz.
File metadata
- Download URL: marci-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f92b3aa28e3ec1fcb4727d6b8cc99470ef6dc913ed6237c6da1dbc4e8fbf57bb
|
|
| MD5 |
abbb209037346dca6cdf2e2a45c44c64
|
|
| BLAKE2b-256 |
9c06545d18dea7cde506d5dee88652001fc59308131fb8155f67e78c8d72ea5f
|
File details
Details for the file marci-0.1.0-py3-none-any.whl.
File metadata
- Download URL: marci-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab0998b03283365739fc831e00cc0a1eff815e25ddecdf474550232a8f51a7e
|
|
| MD5 |
0182a0e1dc366e697c3dc58a85b06305
|
|
| BLAKE2b-256 |
a122efa3c62d9ce700b493adac2b1ffcfad79a4e6a0e2f25aee384d00ee8008b
|