Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Framework for building a GraphQL API with Python
pip install graphql-api
To run the tests.
pip install pipenv
pipenv install --dev
pipenv run python -m pytest tests --cov=graphql_api
The documentation is public, and is generated using Sphinx.
To build a local static HTML version of the documentation.
pip install pipenv
pipenv install sphinx
pipenv run sphinx-build docs ./public -b html
from graphql_api import GraphQLAPI
api = GraphQLAPI()
@api.type(is_root_type=True)
class MathService:
@api.field
def is_odd(self, number: int) -> str:
return "No" if (num % 2) else "Yes"
query = '''
query {
isOdd(number: 5)
}
'''
result = api.executor().execute(query)
print(result.data)
$ python example.py
>>> {'isOdd': 'No'}
FAQs
A framework for building Python GraphQL APIs.
We found that graphql-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.