Integrate Stellate with your Strawberry GraphQL API
Project description
stellate-strawberry
This package integrates your Strawberry GraphQL API with Stellate. It does so by providing you with an Extension that you can add to your schema with one line of code.
Installation
Simply install the package using pip
:
pip install stellate-strawberry
Set Up
Before you can make use of this gem, you need to set up a Stellate service and create a logging token.
After that, add the Stellate extension when initializing your strawberry.Schema
object:
from stellate_strawberry import create_stellate_extension
service_name = "my-service" # The name of your Stellate service
token = "stl8_xyz" # The logging token for above service
schema = strawberry.Schema(
query=Query,
extensions=[create_stellate_extension(service_name, token)]
)
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
Built Distribution
Close
Hashes for stellate_strawberry-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d93c9528e03eb27f3976c831667028ce1a6dabaaa19363231986b178002975 |
|
MD5 | 984ab38ea7d687d6f148ae101426c1d7 |
|
BLAKE2b-256 | 638a541cfebf3ec1f3353f7a51d568e828d840956ac39c45ecadf0deb09f050f |
Close
Hashes for stellate_strawberry-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 183cf610c4018cd10a14f30019501a7d8d712884f2423ac91dd05e404038a6f1 |
|
MD5 | 55fdf99986d270222a4fc8163d06f2c9 |
|
BLAKE2b-256 | 4fead3ed798b1ab5a453bbc8f810fb04cda894f90dbdcf15fb15ebf034b7a9be |