graphql-core

A Python 3.6+ port of the GraphQL.js reference implementation of GraphQL.

MIT License

Downloads
21M
Stars
497
Committers
34

Bot releases are visible (Hide)

graphql-core - v3.3.0a5 Latest Release

Published by Cito 6 months ago

Alpha release GraphQL-core v3.3.0a5, based on GraphQL.js v17.0.0a2.

This alpha release already includes a lot of the changes and fixes in GraphQL.js v17.0.0a3.

Thanks again to the sponsors of this project, @patrick91, @jkimbo, @sentry and @codecov, and to the contributors for this release, @fedirz and @yilinjuang.

graphql-core - v3.3.0a4

Published by Cito 8 months ago

Alpha release GraphQL-core v3.3.0a4, based on GraphQL.js v17.0.0a2.

This alpha release officially supports Python 3.12, and comes with some fixes. It also includes some changes and fixes in GraphQL.js v17.0.0a3.

A big thank you goes to the sponsors of this project, @patrick91, @jkimbo, @sentry and @codecov, and to the contributors for this release, @evanmays and @mrtc0.

graphql-core - v3.3.0a3

Published by Cito over 1 year ago

Alpha release GraphQL-core v3.3.0a3, based on GraphQL.js v17.0.0a2.

This alpha release ports the remaining changes in GraphQL.js v17.0.0a2.

Particularly noteworthy are these new features:

  • Reference implementation of defer and stream spec (graphql/graphql-spec#693)
  • Client controlled nullability experiment implementation (graphql/graphql-spec#867)
  • Limit max number of tokens in parser (graphql/graphql-js#3684)

There is also one breaking change:

  • The subscribe function now stays synchronous when possible.
    This change aligns the return types of execute and subscribe
    (as well as the create_source_event_stream function)
    with respect to returning values or awaitables (graphql/graphql-js#3620).

This alpha release also contains the following changes and features:

  • Undefined is not an exception any more (#187)
  • Optimized parallel execution when there is only one task (#190)
  • GraphQLInputFieldOutType is now importable (#195)
  • Include name in representation of nodes (#198)
  • Turn MapAsyncIterable into an AsyncGenerator (#199)

Big shoutout to all who are sponsoring me (@Cito), such as @indeedeng, @patrick91 and @jkimbo, and to all who contributed by reporting issues or sending PRs, such as @erikwrede, @ipeterov, @kevinvalk, @kristjanvalur, @LinuxIsCool, @QSHolzner and @rafalp.

graphql-core - v3.3.0a2

Published by Cito almost 2 years ago

Alpha release GraphQL-core v3.3.0a2, still based on GraphQL.js v17.0.0a1.

This alpha release already ports some of the changes in GraphQL.js v17.0.0a2. There will be another alpha release with the remaining changes soon. This alpha release also adds the following new features:

  • Solve issues with pickled schemas (#173)
  • Use type guards (#183)

Thanks to all who are sponsoring me (@Cito), particularly to Vendia for sponsoring the work on #173, and to others who contributed, particularly to @helderco for the suggestion to use type guards.

graphql-core - v3.3.0a1

Published by Cito about 2 years ago

Alpha release GraphQL-core v3.3.0a1, based on GraphQL.js v17.0.0a1.

This alpha release ports all of the changes in GraphQL.js v17.0.0a1.

Note that his means the removal of several functions that had been marked as deprecated before.

Other noteable changes:

  • starting with this alpha release, Python 3.6 is no longer supported
  • we use the new dependency groups feature of poetry (#177)
  • support for setuptools has been removed, builds must be done with poetry (#178)
  • we now use bugbear and bandit to detect possible security problems and code flaws

Thanks again to all who are sponsoring me (@Cito) and thereby motivated me to continue maintaining this project.

graphql-core - v3.2.3

Published by Cito about 2 years ago

Patch-release GraphQL-core v3.2.3, based on GraphQL.js v16.6.0.

This patch-releases includes only one change in GraphQL.js v16.6.0:

  • The parser now allows to limit the number of tokens

Thanks to all who are sponsoring me (@Cito) for maintaining this project.

graphql-core - v3.2.2

Published by Cito about 2 years ago

Patch-release GraphQL-core v3.2.2, based on GraphQL.js v16.4.0.

This patch-releases includes the changes in GraphQL.js v16.4.0, and the following fixes:

  • Require typing extensions when needed
  • Recommend using poetry instead of pipenv in the docs (#161)
  • Cast error message to string to handle proxy objects (#175)
  • Remove newline in description (#180)

Thanks to @chenrui333, @conao3, @jkimbo, @singingwolfboy for contributing and to all who are sponsoring me (@Cito) for maintaining this project.

graphql-core - v3.2.1

Published by Cito over 2 years ago

Patch-release GraphQL-core v3.2.1, based on GraphQL.js v16.3.0.

This patch-releases includes the changes in GraphQL.js v16.3.0, and the following fix:

  • Serialize with maximum precision when converting float to FloatValue (#164)

Thanks to @bennyweise for contributing and all who are sponsoring me (@Cito) for maintaining this project.

graphql-core - v3.2.0

Published by Cito almost 3 years ago

Final release of GraphQL-core v3.2.0, based on GraphQL.js v16.2.0.

See v3.2.0rc1, v3.2.0rc2, v3.2.0rc3, v3.2.0rc4, v3.2.0rc5 and the changelog of GraphQL.js for a complete list of changes.

Thanks to all who contributed and are sponsoring me (@Cito) for maintaining this project.

graphql-core -

Published by Cito almost 3 years ago

Pre-release GraphQL-core v3.2.0rc5, based on GraphQL.js v16.1.0.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

  • Add flag for using enum names or members as values (#73)
  • Add typed dicts for to_kwargs results (#99)
  • Add ast_to_dict utility function (#136)
  • Make print_block_string work with string proxy objects (#153)
  • Prevent infinite loop in OverlappingFieldsCanBeMergedRule (fetched ahead)

Please test this pre-release and report any issues, the final release is imminent.

graphql-core -

Published by Cito almost 3 years ago

Pre-release GraphQL-core v3.2.0rc4, based on GraphQL.js v16.0.1.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

  • Use typed dictionaries for introspection results (#99)
  • Deprecate FrozenDict/List, use tuples as node lists (#112)
  • Experimental support for async iterables as list values (#123)
  • Make print_block_string work with string proxy objects (#153)

Note that the use of tuples may break code that tries to modify the AST.

Please test this pre-release and report any issues, the final release is imminent.

graphql-core - v3.0.6

Published by Cito almost 3 years ago

Patch release GraphQL-core v3.0.6, based on GraphQL.js v14.7.0.

This release backports Python 3.9 and 3.10 support to the 3.0 branch.

graphql-core -

Published by Cito almost 3 years ago

Pre-release GraphQL-core v3.2.0rc3, based on GraphQL.js v16.0.0rc3.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

  • Add sync and async execution benchmarks (#141)
  • Minor code simplifications (#146)
  • Optimize node hash method through caching (#150)
  • Optimize performance of character class predicates
  • Include Python 3.10 in default test matrix
graphql-core -

Published by Cito almost 3 years ago

Patch release GraphQL-core v3.1.7, based on GraphQL.js v15.8.0.

This release includes minor changes and improvements, in particular:

  • Set enum value values to value names in build_client_schema (#138)
  • Fix camel to snake case conversion with digits (#140)
  • Preserve deprecation_reason on GraphQLInputFields (d1ffaef2ec3e5e475cb8ae52397489fd05ea6a12)
  • Add missing __Directive.args(includeDeprecated) (0df0a32fe9cae2edafdd985f099490b55dca13e2)
  • Fix original_error.extensions overriding extensions argument (810d712ca53e5356027e6930b9585cf56152d3f5)
graphql-core - v3.2.0rc2

Published by Cito about 3 years ago

Pre-release GraphQL-core v3.2.0rc2, based on GraphQL.js v16.0.0rc2.

  • Make thunk resolver simpler and backward compatible
graphql-core - v3.2.0rc1

Published by Cito about 3 years ago

Pre-release GraphQL-core v3.2.0rc1, based on GraphQL.js v16.0.0rc2.

In addition to porting the recent changes in GraphQL.js,
this pre-release also contains the following improvements:

  • Set enum value values to value names in build_client_schema (#138)
  • Fix camel to snake case conversion with digits (#140)
  • Support Python 3.10
graphql-core -

Published by Cito about 3 years ago

Patch release GraphQL-core v3.1.6, based on GraphQL.js v15.5.1.

This release includes only some minor changes and improvements.

graphql-core - v3.1.5

Published by Cito over 3 years ago

Patch release GraphQL-core v3.1.5, based on GraphQL.js v15.4.0.

This release includes the following changes and imrovements:

  • Default parse_literal of GraphQLScalarType now handles variables
  • build_ast_schema now matches order of default types and directives
  • Return formatted errors in formatted execution result (fixes #129)
  • The is_deprecated property is now deprecated itself
  • Input fields and arguments can now be marked as deprecated
  • Handle case when MapAsyncIterator is cancelled (#131)
  • Improve return type for complete_list_value (#132)
  • Replace resolved types in lexicographic schema sort
  • EventEmitter helper class has been replaces by SimplePubSub
  • print_ast now breaks arguments over multiple lines

Special thanks to @cancan101, @mlorenzana, @wuyuanyi135 for contributing.

graphql-core - v3.1.4

Published by Cito over 3 years ago

Patch release GraphQL-core v3.1.4, based on GraphQL.js v15.3.0.

This release fixes issues #125 and #126 regarding enum values.

Thanks to @dkbarn for reporting the problem.

graphql-core - v3.1.3

Published by Cito over 3 years ago

Patch release GraphQL-core v3.1.3, based on GraphQL.js v15.2.0.

This release includes the following improvements:

  • Python 3.9 is now officially suported by GraphQL-core.
  • build_schema: allow to reference introspection types
  • Custom validation rules for "no schema introspection" and "no deprecated"
  • Added execute_sync() as synchronous version of execute()
  • Support deep copy of GraphQL schema (#100)
  • build_ast_schema now sets internal enum values (#111)
  • Do not double-wrap resolver errors any more (#106)
  • Use newer Sphinx version, fix for various autodoc issues (#104)
  • Fix example in docstring of GraphQLUnionType (#105)
  • Let default resolver check for Mapping instead of dict (#102)

Thanks to everyone who helped with their feedback, particularly

@berekuk, @charmasaur, @Checho3388, @jstlaurent and @pmantica1.

Package Rankings
Top 1.26% on Pypi.org
Top 32.44% on Anaconda.org
Top 9.78% on Spack.io
Top 12.33% on Conda-forge.org
Top 6.67% on Proxy.golang.org
Badges
Extracted from project README
PyPI version Documentation Status Code Style