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-4.0.2.tar.gz
.
File metadata
- Download URL: pyramid_blacksmith-4.0.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728f50b9975ffcd12f104662b8a6cc591c41f33eea9b49abc4154367d76e96ff |
|
MD5 | 9a694504cc498928b1bab7c0377243c4 |
|
BLAKE2b-256 | 3f377cfe07c40b8582ca5a15fca91b9850dc837943d822ea20a679077f7bf5c1 |
File details
Details for the file pyramid_blacksmith-4.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyramid_blacksmith-4.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ab74ad532bb459ba38ad08d998b7d162d9e8d8e3c626ee6ed1e7b176400144f |
|
MD5 | 6594b3cb875465d226e74119190a3da3 |
|
BLAKE2b-256 | 7f158c76e03952472a2a1fcdeaf3ebd8e10425fdb90942e05711bd4652d4cc34 |