Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Simple GraphQL client for Python 2.7+
pip install graphqlclient
from graphqlclient import GraphQLClient
client = GraphQLClient('http://graphql-swapi.parseapp.com/')
result = client.execute('''
{
allFilms {
films {
title
}
}
}
''')
print(result)
Authorization tokens can be added to the request using the client's inject_token
method:
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
:
client.inject_token('very-long-and-secure-token','x-api-key')
FAQs
Simple GraphQL client for Python 2.7+
We found that graphqlclient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.