graphql-api 1.6.5__tar.gz → 1.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {graphql_api-1.6.5 → graphql_api-1.6.6}/PKG-INFO +1 -1
- graphql_api-1.6.6/VERSION +1 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/utils.py +11 -4
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api.egg-info/PKG-INFO +1 -1
- graphql_api-1.6.5/VERSION +0 -1
- {graphql_api-1.6.5 → graphql_api-1.6.6}/.github/workflows/pages.yml +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/.github/workflows/python-package.yml +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/.gitignore +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/.vscode/settings.json +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/LICENSE +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/README.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/README.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/advanced-features/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/advanced-features/directives.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/advanced-features/performance.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/advanced-features/schema-filtering.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/building-applications/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/building-applications/documentation.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/building-applications/error-handling.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/federation.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/pagination-relay.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/remote-graphql.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/async-and-subscriptions.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/defining-schemas.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/enums-interfaces.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/field-types.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/getting-started.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/mutations.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/object-types.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/pydantic-and-dataclasses.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/production/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/production/context-metadata.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/production/middleware.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/reference/_index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/reference/api-reference.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/reference/contributing.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/reference/examples.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/hugo.toml +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/docs/index.md +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/__init__.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/api.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/context.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/dataclass_mapping.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/decorators.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/directives.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/error.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/exception.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/executor.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/federation/__init__.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/federation/directives.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/federation/federation.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/federation/types.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/mapper.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/middleware.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/mutation_schema.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/pydantic.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/pydantic_utils.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/reduce.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/relay.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/remote.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/schema.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/schema_filter.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/type_utils.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api/types.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api.egg-info/SOURCES.txt +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api.egg-info/dependency_links.txt +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api.egg-info/requires.txt +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/graphql_api.egg-info/top_level.txt +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/pyproject.toml +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/setup.cfg +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/__init__.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_async.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_calculator.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_custom_suffixes.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_custom_types.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_dataclass.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_dataclass_relationships.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_decorator_patterns.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_directives.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_advanced.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_async_subscriptions.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_defining_schemas.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_field_types.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_getting_started.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docs_relay.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_docstrings.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_error.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_federation.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_federation_example.graphql +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_federation_example.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_filtering.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_graphql.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_middleware.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_performance.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_pydantic.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_relay.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_remote.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_schema.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_subscriptions.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/tests/test_unified_vs_explicit_schema.py +0 -0
- {graphql_api-1.6.5 → graphql_api-1.6.6}/uv.lock +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.6
|
|
@@ -20,6 +20,15 @@ from graphql.type.definition import GraphQLInterfaceType, GraphQLType
|
|
|
20
20
|
|
|
21
21
|
# From this response in Stackoverflow
|
|
22
22
|
# http://stackoverflow.com/a/19053800/1072990
|
|
23
|
+
def _capitalize_first(s):
|
|
24
|
+
"""Capitalize only the first character, preserving the rest.
|
|
25
|
+
|
|
26
|
+
Unlike str.title(), this doesn't capitalize letters after digits.
|
|
27
|
+
e.g. "30d" stays "30d" instead of becoming "30D".
|
|
28
|
+
"""
|
|
29
|
+
return s[0].upper() + s[1:] if s else s
|
|
30
|
+
|
|
31
|
+
|
|
23
32
|
def to_camel_case(snake_str, title=False):
|
|
24
33
|
underscore_prefix = False
|
|
25
34
|
if snake_str.startswith("_"):
|
|
@@ -27,12 +36,10 @@ def to_camel_case(snake_str, title=False):
|
|
|
27
36
|
snake_str = snake_str[1:]
|
|
28
37
|
|
|
29
38
|
components = snake_str.split("_")
|
|
30
|
-
# We capitalize the first letter of each component except the first one
|
|
31
|
-
# with the 'title' method and join them together.
|
|
32
39
|
if not snake_str:
|
|
33
40
|
return ""
|
|
34
|
-
prefix = components[0]
|
|
35
|
-
value = prefix + "".join(x
|
|
41
|
+
prefix = _capitalize_first(components[0]) if title else components[0]
|
|
42
|
+
value = prefix + "".join(_capitalize_first(x) if x else "_" for x in components[1:])
|
|
36
43
|
return ("_" if underscore_prefix else "") + value
|
|
37
44
|
|
|
38
45
|
|
graphql_api-1.6.5/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.5
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/advanced-features/schema-filtering.md
RENAMED
|
File without changes
|
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/building-applications/documentation.md
RENAMED
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/building-applications/error-handling.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/pagination-relay.md
RENAMED
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/distributed-systems/remote-graphql.md
RENAMED
|
File without changes
|
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/async-and-subscriptions.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphql_api-1.6.5 → graphql_api-1.6.6}/docs/content/docs/fundamentals/pydantic-and-dataclasses.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|