Skip to main content

Adobe Target Python SDK

Coverage Status

Requirements

All currently maintained versions of Python are supported, see Python Releases. Older Python releases may likely work too, but are not officially supported.

NPM 6+ (required by openapi-generator-cli)
Java 8+ (required by openapi-generator)
GNU Make

Set PYTHON_PATH

Various build commands are supported via Makefile, but first you must export environment variable PYTHON_PATH to specify which python install to use to set up your virtual env.

$ export PYTHON_PATH=python2.7  # Symlink to Mac OS built-in version of python
$ export PYTHON_PATH=/usr/local/bin/python3

Setup virtual env to make it easy to switch between python 2.7 and 3

$ make new_env          # Deletes existing virtual env and creates new one based on PYTHON_PATH
$ make install          # Install dependencies in virtual env

Code generation

The SDK depends on Target Open API. It uses Open API and the Open API generator to generate the low level HTTP client.

To be able to use Target Open API for code generation, we are leveraging Git subtree.

To import Target Open API as openapi folder please use commands:

$ git subtree add --prefix openapi git@github.com:adobe/target-openapi.git main --squash

To refresh the imported subtree use this command:

$ git subtree pull --prefix openapi git@github.com:adobe/target-openapi.git main --squash

Once all the tools are installed, there is no need to invoke them directly, everything is wrapped in a Makefile command, which can be invoked by running:

$ make codegen

Run tests and format code

$ make test
$ make format

Release build package

Releases are triggered through Github publish workflow. Input version part to update before publishing to pypi - [patch, minor, major]

Running Github Workflows on forked repositories

Github Workflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.

See more details at https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull-request-events-for-forked-repositories

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

Metadata

Release files for target-python-sdk 1.0.0

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

Source distribution (sdist)

Source distribution for target-python-sdk 1.0.0
File Size Uploaded Provenance Actions
target-python-sdk-1.0.0.tar.gz 86.4 kB Without provenance Details for target-python-sdk-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for target-python-sdk 1.0.0
File Interpreter ABI Platform Actions
target_python_sdk-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for target_python_sdk-1.0.0-py2.py3-none-any.whl

Total release size: 269.8 kB

Release files / target-python-sdk-1.0.0.tar.gz

Download URL target-python-sdk-1.0.0.tar.gz
Size 86.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5ad7ecc31842f5a875c274c618d8f0e8b0bfc913491d95ca3e67c611ebf8dcd5
BLAKE2b-256 checksum
How to use checksums
a9dc5d117dafb62d9ddb34b056160e04dd0dad2c127b50a42e05f0c4a947359d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / target_python_sdk-1.0.0-py2.py3-none-any.whl

Download URL target_python_sdk-1.0.0-py2.py3-none-any.whl
Size 183.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b792f2e4914cb951d01be5b01cf179a0ab80f93000fb5a99086325e916a5ddc6
BLAKE2b-256 checksum
How to use checksums
0a271cd282b0fbcc0e4c6d86ee05fe2883c0ab058504b4e46280240ee790f221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Security for target-python-sdk 1.0.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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