Skip to main content

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)

Download files

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

Source Distribution

adsml-0.1.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file adsml-0.1.tar.gz.

File metadata

  • Download URL: adsml-0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for adsml-0.1.tar.gz
Algorithm Hash digest
SHA256 e01ec520db45fe93a2372a22e3856e8992e7633627eddfc983ab0d029fcdf8b2
MD5 9e9aa497910f2de93f7fb1ae857c4c66
BLAKE2b-256 8b9c4ed26e6091889ed648540cc474cd91b5ac05a3167c02912502ea63922311

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page