Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python implementation of the AdsML spec (www.adsml.biz)

Project Description

AdsML is a suite of business-to-business electronic commerce standards intended to support the exchange of advertising business messages and content delivery using XML. Typical users include newspapers, advertising agencies, broadcasters and others who buy or sell advertising.

This module is a part-implementation of the protocol in Python. Currently it implements part of the AdsML-Bookings component of the standard.

Currently built for Python 3 only - please let me know if you require Python 2 support.

Installation

Installing from PyPI:

pip install adsml

Usage

Example:

import adsml

parser = AdsMLParser("adsml-file.txt")

# process the header
header = parser.get_header()
order = parser.get_order()

print ("Order: {}: (buyers ref {})".format(order, order.buyers_reference))
print ("Booking party: {}".format(order.booking_party))
print ("Selling party: {}".format(order.selling_party))
print ("Campaign: {}".format(order.campaign))
print ("Payer information: {}".format(order.payer_information))
print ("Placement: {}".format(order.placement))
print ("Notes: {})".format(order.notes))

Release notes

  • 0.1 - First working release, pinned to Python 3 only (use pip >9.0 to ensure pip Python version requirement works properly)
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
adsml-0.1.tar.gz (8.7 kB) Copy SHA256 Checksum SHA256 Source Jan 10, 2018

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting