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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyramid_blacksmith-5.1.0.tar.gz.
File metadata
- Download URL: pyramid_blacksmith-5.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.26.2 CPython/3.12.12 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5932d2917bf5d1af171f45079a3a556c514f502e005b4d9727706b16e862940d
|
|
| MD5 |
027b334e3a63925db9bb933f62e18185
|
|
| BLAKE2b-256 |
6a496a08f60d6bf56160dfea2bee42cc755e89e0a3c447aef2d4281bfc927bad
|
File details
Details for the file pyramid_blacksmith-5.1.0-py3-none-any.whl.
File metadata
- Download URL: pyramid_blacksmith-5.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.26.2 CPython/3.12.12 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ab1ec2520d0484ed1f6239df1fedd11f4f365763110f2d4aeed0467ae99ddd
|
|
| MD5 |
359b8d4662004315debe2f98a87a6700
|
|
| BLAKE2b-256 |
5784dd5049108f7e4554f3c08b3e628ef8222f345ba6ab1a8849b40a32461596
|