Skip to main content

Trickster is a python service for mocking APIs.

Project description

Trickster

Run Trickster in Docker

There is prepared Docker image with Trickster tesarekjakub/trickster, you can run it using:

docker pull tesarekjakub/trickster
docker run -p 8080:8080 tesarekjakub/trickster

You can run it at different port, e.g. to run it at port 12345 use -p 12345:8080.

Run Trickster as Python package

You can also run Trickster as Python package, just download trickster from PyPI (ideally into some virtual environment) and trickster entrypoint will become available.

python -m pip install trickster
trickster

Development

Bootstrap

python3.11 -m venv venv  # create virtual environment
. venv/bin/activate  # activate virtal environment
python -m pip install poetry  # install poetry package manager
poetry install  # install dependencies

For local development there is prepared docker-compose.yml which simplifies running and building the Docker image locally. You can use

docker-compose build
docker-compose up

to build image and run the Docker container locally.

We also use the poethepoet runner with shortcuts to above commands

poe build
poe run

Tests and QA

You can run tests and QA checks (style, typing) using poe

poe check

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

trickster-3.0.0rc5.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

trickster-3.0.0rc5-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page