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

Uploaded Source

Built Distribution

pyramid_blacksmith-4.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyramid_blacksmith-4.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.12.8 Linux/6.8.0-1020-azure

File hashes

Hashes for pyramid_blacksmith-4.1.0.tar.gz
Algorithm Hash digest
SHA256 b1c8be9a3e1e218f8f5dc90b823e246524cbdf312b0ed2a0c98d5d954a34e495
MD5 7a7ce6c87862b8522f5729adbf5bfd72
BLAKE2b-256 1f9a20adb218e3dcbef0cd62fd6899c6e0fb94051427ce813dfb5f9ae96ca091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyramid_blacksmith-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.12.8 Linux/6.8.0-1020-azure

File hashes

Hashes for pyramid_blacksmith-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f4d38036faf0e2bbec9b946df2b40a042c37ea89df76cecc4f0166898f94a7
MD5 3d20179d4ba714ad3a8e9e33dfe40980
BLAKE2b-256 3322916ce4b70e1b87ac7c554ad54d6f58bfca4e83d5c53f09e256779d79d34d

See more details on using hashes here.

Supported by

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