graphqlclient-0.2.4


توضیحات

Simple GraphQL client for Python 2.7+
ویژگی مقدار
سیستم عامل -
نام فایل graphqlclient-0.2.4
نام graphqlclient
نسخه کتابخانه 0.2.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده prisma.io
ایمیل نویسنده hello@prisma.io
آدرس صفحه اصلی https://github.com/prismagraphql/python-graphql-client
آدرس اینترنتی https://pypi.org/project/graphqlclient/
مجوز MIT
# python-graphql-client Simple GraphQL client for Python 2.7+ ## Install ```sh pip install graphqlclient ``` ## Usage ```py from graphqlclient import GraphQLClient client = GraphQLClient('http://graphql-swapi.parseapp.com/') result = client.execute(''' { allFilms { films { title } } } ''') print(result) ``` ### Authorization Authorization tokens can be added to the request using the client's `inject_token` method: ```py client.inject_token('very-long-and-secure-token') ``` which defaults to http header name `Authorization`. An alternative http header name for the token can be set by passing in the alternative header name, e.g. for `x-api-key`: ```py client.inject_token('very-long-and-secure-token','x-api-key') ``` ## License [MIT License](http://opensource.org/licenses/MIT)


نحوه نصب


نصب پکیج whl graphqlclient-0.2.4:

    pip install graphqlclient-0.2.4.whl


نصب پکیج tar.gz graphqlclient-0.2.4:

    pip install graphqlclient-0.2.4.tar.gz