Python SDK for Media Plan Open Data Standard
Project description
MediaPlanPy
Open source Python SDK providing the foundational tools developers need to build, manage, and analyze media plans based on our open data standard (mediaplanschema).
🔗 Related Projects
MediaPlanPy is the official Python implementation of the MediaPlan Schema standard. The two repositories work together:
- mediaplanschema - Defines the open data standard for media plans
- mediaplanpy - Python SDK that fully conforms to and implements the mediaplanschema standard
MediaPlanPy handles schema validation, versioning, and migration to ensure full compliance with the MediaPlan Schema specification.
Key Features
- Multi-Format Support - Work with JSON, Excel, and Parquet files seamlessly
- Schema Versioning - Automatic version detection and migration between schema versions
- Flexible Storage - Local filesystem, S3, Google Drive, and PostgreSQL backends
- Workspace Management - Multi-environment support with isolated configurations
- CLI Interface - Comprehensive command-line tools for all operations
- Validation Framework - Schema-based validation with detailed error reporting
- Analytics Ready - Built-in Parquet generation and SQL query capabilities
- Database Integration - Automatic PostgreSQL synchronization for analytics
Documentation
- GET_STARTED.md - Detailed setup and first steps guide
Schema Compliance
MediaPlanPy fully implements the MediaPlan Schema standard:
- Schema v2.0 - Full support for current specification
- Schema v1.0 - Legacy support with automatic migration
- Validation - Comprehensive schema validation
- Migration - Automatic version upgrades
- Extensibility - Support for custom fields and dimensions
Requirements
- Python: 3.7 or higher
- Core Dependencies:
pydantic>=1.10.0- Data validationpandas>=1.5.0- Data manipulation
- Optional Dependencies:
openpyxl>=3.0.0- Excel supportpsycopg2-binary>=2.9.0- PostgreSQL integrationpyarrow>=10.0.0- Parquet supportduckdb>=0.8.0- Advanced analytics
Roadmap
- Cloud Storage Backends - AWS S3 and Google Drive integration
- Google Sheets - Ability to Export to / Import from Google Sheets
- Schema v3.0 - Next generation schema support
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
🏷️ Version Information
- SDK Version: 2.0.0
- Schema Version: 2.0 (backwards compatible with 1.0)
- Python Support: 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
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 mediaplanpy-2.0.7.tar.gz.
File metadata
- Download URL: mediaplanpy-2.0.7.tar.gz
- Upload date:
- Size: 172.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cae7250b16fc0f2776955dab86076af2274f66c359dcef3d1e8072480b0891f
|
|
| MD5 |
b039a444d86e47f63bfccc4a0d394d29
|
|
| BLAKE2b-256 |
61dd3379e8bd2f23dc7695c36f041137a37f7763cafddcc6a648325b47ff474b
|
File details
Details for the file mediaplanpy-2.0.7-py3-none-any.whl.
File metadata
- Download URL: mediaplanpy-2.0.7-py3-none-any.whl
- Upload date:
- Size: 179.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17974d4fea2a8a5994be7c45e35979598604ffae4f3a477e9a29b7c4eb3c3f0a
|
|
| MD5 |
c3d4e90a0eea5b237966761508b96a82
|
|
| BLAKE2b-256 |
75092bcc49e5f9d07e86a7febaf6d6fd1832b2ce28ce00a39f874ed6e304d125
|