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.0.1.tar.gz
.
File metadata
- Download URL: pyramid_blacksmith-3.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b9bf62c02cd4414ac9629905d8038ffc342bc9376185ccbd4b7578786354ad9 |
|
MD5 | 996b0ecc08f69ae7a286ae1663c19a49 |
|
BLAKE2b-256 | a5e65c77fb054acd0d358de1916371d83cc76bfdeeac2af064cd3f4f898532c0 |
File details
Details for the file pyramid_blacksmith-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyramid_blacksmith-3.0.1-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 | 584a2e72eb239a235e5ca4b3ec4fb134ecd713684ede7d437b0aacfb39d124e2 |
|
MD5 | 7a75df2789d933321c553108057fd7be |
|
BLAKE2b-256 | 3c3a7fa7e0348abbbea0b187311850091232ba8576d0961420a5e582fe0d0ed7 |