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)

Metadata

Release files for adsml 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adsml 0.1
File Size Uploaded Provenance
adsml-0.1.tar.gz 8.7 kB Without provenance Details

Release files / adsml-0.1.tar.gz

Download URL adsml-0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e01ec520db45fe93a2372a22e3856e8992e7633627eddfc983ab0d029fcdf8b2
BLAKE2b-256 checksum
How to use checksums
8b9c4ed26e6091889ed648540cc474cd91b5ac05a3167c02912502ea63922311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for adsml 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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