Skip to main content

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

  1. Bump version in src/marci/_version.py
  2. Commit and tag
git commit -am "chore: release v0.1.0"
git tag v0.1.0
  1. 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

marci-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

marci-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

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

Hashes for marci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f92b3aa28e3ec1fcb4727d6b8cc99470ef6dc913ed6237c6da1dbc4e8fbf57bb
MD5 abbb209037346dca6cdf2e2a45c44c64
BLAKE2b-256 9c06545d18dea7cde506d5dee88652001fc59308131fb8155f67e78c8d72ea5f

See more details on using hashes here.

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

Hashes for marci-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab0998b03283365739fc831e00cc0a1eff815e25ddecdf474550232a8f51a7e
MD5 0182a0e1dc366e697c3dc58a85b06305
BLAKE2b-256 a122efa3c62d9ce700b493adac2b1ffcfad79a4e6a0e2f25aee384d00ee8008b

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