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

Uploaded Source

Built Distribution

pyramid_blacksmith-4.0.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyramid_blacksmith-4.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for pyramid_blacksmith-4.0.1.tar.gz
Algorithm Hash digest
SHA256 6324746cd5697b71e0ce2c7df09ab6b35c0ae97cb8eb504661b90d63754e6f1d
MD5 926295b07a8cb4edcb93d615b65ecfb8
BLAKE2b-256 51c80e8e9268d80939bf45f1b2cd3eb0cdb368197c485c90a8d193262b20f83c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyramid_blacksmith-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 303bf8d7b9d163af7cb1a17d046ceaec03939a60165c6b3f4bbb13ac522ce553
MD5 06caf44fbcfdc3c8bd0e8f91f6ef5d44
BLAKE2b-256 cee3955e2e0b1c56a259d04c1e0315f53ae5825fd2b234da7c8e9a07971f0e64

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