Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
A python library to generate dataclasses for graphql schema.
This library generates dataclasses which corresponding python code convention. Library is not working as client for graphql, only dataclasses mappers for GraphQL types
This document contains a quick overview of the functionalities, for more details and options you can read here:
The package using autoflake, black, isort libraries for generateed code formatting and also python 3 (3.10+) standard libraries.
Available in PyPI, the following command will install the library:
pip install graphql-dataclass
To generate the code execute the following command:
gqldataclass generate ./pathToOutputFolder -apiArgs ./<pathToArgsFile>/generatorArgs.json
This command requires a json file containing the parameters needed to get the GraphQL schema
A sample is available in the main folder 'cli_args.json'.
The following python files will be generated:
These links show code generated using the library Github GraphQL API, and GeoDBCities API
More command options are available here
FAQs
A python library to generate dataclasses for GraphQL types
We found that graphql-dataclass 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.