
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.