Promoted.ai Python Delivery Client
Project description
promoted-python-delivery-client
Python client SDK for the Promoted.ai Delivery API
Prereqs
- wheel
- setuptools
- twine
- bump2version
Development
- Start venv:
source venv/bin/activate
- Build wheel:
python setup.py bdist_wheel
- Install locally:
pip install dist/promoted_python_delivery_client-0.1.0-py3-none-any.whl --force-reinstall
- Try it out:
- See the
scripts/
directory. - Create a
.env
file with a few variables:DELIVERY_ENDPOINT=<GET ME FROM PROMOTED> DELIVERY_API_KEY=<GET ME FROM PROMOTED> METRICS_ENDPOINT=<GET ME FROM PROMOTED> METRICS_API_KEY=<GET ME FROM PROMOTED>
- Invoke (for example)
python3 scripts/call_delivery.sh
.
- See the
Testing
Unit tests
- Use pytest:
pytest tests/
Release
bump2version [major|minor|patch]
Dependencies
- dataclasses-json -- flexible JSON serialization and deserialization of Python dataclasses. One key feature we use is the ability to omit None's (nulls) from request JSON to decrease payload size.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for promoted_python_delivery_client-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af1a0f58b6f779fe2ffb82d703478d4ced46262a93469d4f490fa0d3821afb9 |
|
MD5 | d73f15c2aaa199f9006cf7807e328404 |
|
BLAKE2b-256 | 49713c0908eac026354615f2855b5fbafc3b23e18b58f20dbb148e1848a46402 |