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
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 Distribution
Built Distribution
Hashes for trickster-3.0.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7520643ab03b396d21cd265c8d0553b803585642160f9a88ecb76b9071aa5f62 |
|
MD5 | 420af3260a13217265d21e312cf6bb85 |
|
BLAKE2b-256 | 88fbf4f612e4284b3e2831b7e6c56a06cc161faffb64213cda7848bde9250b27 |