Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): support graphspace & refactor the request logic #61

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

afterimagex
Copy link
Contributor

@afterimagex afterimagex commented Aug 8, 2024

Also we keep the compatible with the legacy request url/uri~

This PR introduces significant updates to the hugegraph-python-client module, focusing on GraphSpace compatibility and API v3 support. Key changes include:

  • Unified connection configuration via HGraphConfig to streamline parameter management.
  • Enhanced HGraphSession for unified HTTP calls with optimized URL handling.
  • Automatic GraphSpace detection based on server API version, ensuring compatibility with both old and new server versions.
  • Refactored HGraphContext and HGraphRouter for more structured URL definitions using a decorator approach.
  • Introduction of the @http decorator for simplified HTTP method and path definitions.
  • Extensive compatibility testing to ensure a seamless experience across different server versions.

The update aims to provide a robust and flexible client module for interacting with HugeGraph servers, catering to the needs of both new and existing API versions.

…v3 support

This commit introduces significant updates to the hugegraph-python-client module, focusing on GraphSpace compatibility and API v3 support. Key changes include:

- Unified connection configuration via HGraphConfig to streamline parameter management.
- Enhanced HGraphSession for unified HTTP calls with optimized URL handling.
- Automatic GraphSpace detection based on server API version, ensuring compatibility with both old and new server versions.
- Refactored HGraphContext and HGraphRouter for more structured URL definitions using a decorator approach.
- Introduction of the @http decorator for simplified HTTP method and path definitions.
- Extensive compatibility testing to ensure a seamless experience across different server versions.

The update aims to provide a robust and flexible client module for interacting with HugeGraph servers, catering to the needs of both new and existing API versions.
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Aug 8, 2024
@dosubot dosubot bot added the enhancement New feature or request label Aug 8, 2024
@imbajin imbajin changed the title hugegraph-python-client: Update for GraphSpace compatibility and API … feat(client): support graphspace & refactor the request logic Aug 8, 2024
imbajin and others added 3 commits August 9, 2024 01:02
@imbajin imbajin merged commit 5e0c268 into apache:py-client-new Aug 9, 2024
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python-client size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants