Skip to main content

Pyramid Bindings for Blacksmith

Project description

Documentation Continuous Integration Coverage

Pyramid bindings for Blacksmith rest api client.

Introduction

This plugin create a request proterty named blacksmith that bind clients to do API Call using Blacksmith.

Clients are configured via the pyramid configurator and its settings.

Then you can access the client factory behind a blacksmith property of the request.

def my_view(request):
   api_dummy = request.blacksmith.client("api_dummy")
   dummy = api_dummy.dummies.get({"name": "alice"})

In the example above, a dummy resource has been fetch using the service api_dummy. The client method is a configured Blacksmith Factory.

The configuration of the factory is simply made throw the pyramid configurator.

Go ahead and get familiar with the documentation.

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

pyramid_blacksmith-2.2.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

pyramid_blacksmith-2.2.0-py3-none-any.whl (10.3 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