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.0rc4.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trickster-3.0.0rc4-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file trickster-3.0.0rc4.tar.gz.

File metadata

  • Download URL: trickster-3.0.0rc4.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for trickster-3.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 d534e95594e5c3081cb099ca5671ef34771d892e780df2a2dd0045a0ea797038
MD5 7a08ea64467891930a712e5677e835fd
BLAKE2b-256 f3e17786fd601b5ee7e4e96bbf2c8bf0735abba1525b7c346ef9020f0b8d261c

See more details on using hashes here.

File details

Details for the file trickster-3.0.0rc4-py3-none-any.whl.

File metadata

  • Download URL: trickster-3.0.0rc4-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for trickster-3.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 7520643ab03b396d21cd265c8d0553b803585642160f9a88ecb76b9071aa5f62
MD5 420af3260a13217265d21e312cf6bb85
BLAKE2b-256 88fbf4f612e4284b3e2831b7e6c56a06cc161faffb64213cda7848bde9250b27

See more details on using hashes here.

Supported by

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