Sign inDemoInstall


Package Overview
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies



Trickester is a Python/Flask application for mocking REST APIs



tests release codecov


Trickster is a Python/Flask application providing configurable API. It allows you to configure requests and responses using REST API.


  • Local development. Sometimes your app needs lots of other services to work properly. Setting all that infrastructure might me time consuming and sometimes not even possible. Mock Service allows you to mock all necessary upstream services.
  • Integration testing. The same way you need to setup infrastructure to develop locally, it might equally difficult to setup integration environment. Some services are just too hard to configure so you can test all scenarios. By using Mock Service you define expected behaviour. If you later find a bug, it's easy to find if your assumptions about the infrastructure was wrong or if there's a bug somewhere else.
  • Performance testing. When running performance tests, the upstream services might cause a bottleneck. The test then actually tests your infrastructure, not your application. Or you might want to test what your application will do when all the dependencies start responding slowly or raise errors.
  • Distributing work. Distributing work on new project between teams is challenging when you don't have a working API. Mock Service allows you to specify and document the API beforehand so everyone can start developing as if they have everything they need.


Create new Route:

curl --location --request POST '' --header 'Content-Type: application/json' --data-raw '{
    "path": "/hello_world",
    "responses": [
            "body": "Hello Word!"

You configured a new Route that lives on /hello_word. When you call it, it will return HTTP 200 and string Hello Word.

You can test it by calling:

curl --location --request GET ''

You can find more information about this example in the Cookbook.

Of course, Trickster provides way more possibilities to configure how the Routes will work. All features are described in Documentation.


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.


Related posts

SocketSocket SOC 2 Logo


  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc