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-3.2.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

pyramid_blacksmith-3.2.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pyramid_blacksmith-3.2.0.tar.gz.

File metadata

  • Download URL: pyramid_blacksmith-3.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.2-arch1-1

File hashes

Hashes for pyramid_blacksmith-3.2.0.tar.gz
Algorithm Hash digest
SHA256 0ec07c6c4eb9ff0752b16b6e3dea97edf78c927ffa0ffe4727ab882831f3db1d
MD5 e305f24fd1beff43725686b823795dea
BLAKE2b-256 a6d3e16298b7a4c23d1cc390ec3a98eb8d5de0bcbb4a1ee405d4466ee799e1ce

See more details on using hashes here.

File details

Details for the file pyramid_blacksmith-3.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_blacksmith-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd6a0494dcf8b457eb9dd6588b6214cb000ffe559f40cd74de5aefaf9e2d96b
MD5 ab9d67b3f6a53c385c5a55457e51cc36
BLAKE2b-256 d98c66ae926dba2e7ecca07a394b7c0fbb5b64ea32303dede0c761961210ea26

See more details on using hashes here.

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