Batching ad tech providers’ operations for humans
Project description
Abstract
What is Wespe?
Wespe is a Python API for batching requests when interfacing AdTech providers (e.g. adwords, facebook business). The motivation behind Wespe is to provide a simple and consistent interface for batching requests. Currently it only supports Facebook Business. Other providers will be added in the future.
Read the docs: http://wespe.readthedocs.io/en/latest/
Installation
Wespe supports python 3.6+. It may also work on pypy, cython, and jython, but is not being tested for these versions.
To install Wespe run the following command:
pip install wespe
Usage - Facebook Business
All steps from now on will assume you’ve already set the default api connection using facebook_busines. It’s also possible to set one on the fly by providing the api kwarg in FacebookBatchUploader’s constructor.
from wespe.batch_uploaders import FacebookBatchUploader
# There is no request limit. If necessary Wespe will coordinate the execution of multiple FacebookAdsApiBatch
# instances.
batch_uploader = FacebookBatchUploader(requests)
try:
batch_uploader.execute()
except BatchExecutionError:
for error in batch_uploader.errors:
# See FacebookBatchRequestError for more info on what you can do
pass
for response in batch_uploader.responses:
# See FacebookBatchResponse for more info on what you can do
pass
License
Copyright 2016 KAYAK Germany, GmbH
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Crafted with ♥ in Berlin.
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
File details
Details for the file wespe-0.2.4.tar.gz
.
File metadata
- Download URL: wespe-0.2.4.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c355c6f5d16fb5fe70c92dec5be36d231a5212ec3a0deb0422ee13d729adb4f3 |
|
MD5 | d23684d326fcb75759ce413a6102f6aa |
|
BLAKE2b-256 | 2575873d8162b57ed013c13261974aebe0a6960cf0c1d6ff86ac063285dcc675 |