Pyramid Bindings for Blacksmith
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyramid_blacksmith-3.3.0.tar.gz
.
File metadata
- Download URL: pyramid_blacksmith-3.3.0.tar.gz
- Upload date:
- Size: 8.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bad5c7db353ab3f0850863271be7428f5eaeaaa2ffc20abfd3ddddaea867f174 |
|
MD5 | 11019149a39d56f357ac4fc32dc904a4 |
|
BLAKE2b-256 | 50e300fcc32ae515ea0dbf5d161a7b3f707b4723499589875c0531e1983cf0e5 |
File details
Details for the file pyramid_blacksmith-3.3.0-py3-none-any.whl
.
File metadata
- Download URL: pyramid_blacksmith-3.3.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.2-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a0722f47071e673f07efd0d49a0ea912494156837cd5778456ef1ae3e66c631 |
|
MD5 | bcfa2bb6a3eb6b132fd7776d7a0c9f84 |
|
BLAKE2b-256 | 3fce1683210d55c2307406a40b67402ecd34203e2046006e1e6b71e57d68efb5 |