-
python3-strawberry-graphql-0.264.0-1.lbn36.noarch
Strawberry GraphQL
Python GraphQL library based on dataclasses
Installation ( Quick Start )
The quick start method provides a server and CLI to get going quickly. Install
with:
pip install "strawberry-graphql[debug-server]"
Getting Started
Create a file called app.py with the following code:
import strawberry
@strawberry.type
class User:
name: str
age: int
@strawberry.type
class Query:
@strawberry.field
def user(self) -> User:
return User(name="Patrick", age=100)
schema = strawberry.Schema(query=Query)
This will create a GraphQL schema defining a User type and a single query
field user that will return a hardcoded user.
To run the debug server run the following command:
strawberry server app
Open the debug server by clicking on the following link:
http:/0.0.0.0:8000/graphql
This will open GraphiQL where you can test the API.
Type-checking
Strawberry comes with a mypy plugin that enables statically type-checking your
GraphQL schema. To enable it, ad
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-strawberry-graphql-django-0.60.0-1.lbn36.noarch
Strawberry GraphQL Django integration
Docs | Discord
This package provides powerful tools to generate GraphQL types, queries,
mutations and resolvers from Django models.
Installing strawberry-graphql-django package from the python package repository.
pip install strawberry-graphql-django
Supported Features
GraphQL type generation from models
Filtering, pagination and ordering
Basic create, retrieve, update and delete (CRUD) types and mutations
Basic Django auth support, current user query, login and logout mutations
Django sync and async views
Permission extension using django's permissioning system
Relay support with automatic resolvers generation
Query optimization to improve performance and avoid common pitfalls (e.g n+1)
Debug Toolbar integration with graphiql to display metrics like SQL queries
Unit test integration
Basic Usage
from django.db import models
class Fruit(models.Model):
"""A tasty treat"""
name = models.CharField(
max_le
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-strenum-0.4.15-1.lbn36.noarch
StrEnum[: GET
auto() HEAD auto() POST auto() PUT auto() DELETE auto() CONNECT auto() OPTIONS
auto() TRACE auto()
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-strict-rfc3339-0.7-5.fc36.noarch
Goals:
- Convert UNIX timestamps to and from RFC3339.
- Either produce RFC3339 strings with a UTC offset (Z) or with the offset that
the C time module reports is the local timezone offset.
- Simple with minimal dependencies/libraries.
- Avoid timezones as much as possible.
- Be very strict and follow RFC3339.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-string-utils-0.6.0-1.lbn25.noarch
Python String UtilsA small utility library to check and manipulate strings.-
simple and pythonic - fast (based on compiled regex) - no external dependencies
- fully documented - PEP8 complaint - 100% code coverage - tested against
multiple python versions (2.7, 3.2, 3.3, 3.4, 3.5) What's inside... String
checking functions:- is_string - is_full_string- is_url - is_email -
is_credit_card -...
Located in
LBN
/
…
/
Cloud Computing
/
BastionLinux 25
-
python3-strip-hints-0.1.10-1.lbn36.noarch
strip-hints This package provides a command-line command and a corresponding
importable function that strips type hints from Python code files. The
stripping process leaves runnable code, assuming the rest of the code is
runnable in the interpreter version. The program tries to make as few changes
as possible to the processed code so that line and column numbers in error
messages for the...
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-stripe-10.9.0-1.lbn36.noarch
Official Stripe Bindings for Python A Python library for Stripe's API.
Located in
LBN
/
…
/
Business
/
BastionLinux 36
-
python3-stripe-subscriptions-0.5.4-1.lbn36.noarch
Stripe SubscriptionsThis library is designed to make it as easy as possible
for python web developers to manage Stripe Subscriptions. It allows to create
Stripe Checkouts and also contains functions to ease the creation of custom
checkoutsAlmost all functions accept a user argument which would typically be
an instant of an object created using ORM. This ensures that a user cannot
access data...
Located in
LBN
/
…
/
Business
/
BastionLinux 36
-
python3-stripogram-1.5-2.lbn36.noarch
Unless you have some historical reason for using this package, I'd advise
against
it!
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-subprocess-tee-0.4.1-5.lbn36.noarch
This package provides an drop-in alternative to subprocess.run that captures
the output while still printing it in real time, just the way tee does.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36