This section is intended for Picsart SDK Developers only.
Set the PYTHONPATH
environment variable to include the src
folder:
export PYTHONPATH=$PYTHONPATH:/path/to/project/src
Setup a virtual environment and:
- Install dependencies using
poetry
:
poetry install
- Set up pre-commit hooks:
poetry run pre-commit install
Install packages necessary for generating docs
:
poetry install --with docs
and generate the documentation using sphinx
:
cd docs
make html
To enable detailed logging of HTTP calls, set the environment variables PICSART_LOG_HTTP_CALLS=true
and
PICSART_LOG_HTTP_CALLS_HEADERS=true
. This will log information about the HTTP calls made, including their headers.
Warning
The e2e tests should be run only by the SDK Developers with the specific
PICSART_API_KEY
otherwise the calls will consume from the credit.
PICSART_API_KEY=<YOUR_API_KEY> poetry run pytest tests/
- Create and activate a new virtual environment for building. Eg:
python -m venv .venv && source .venv/bin/activate
- Install the necessary dependencies from
pip install -r requirements-build.txt
- Run
python -m build
- Upload to pip