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(pydantic-settings): Initializes the pydantic settings for rio config-trees #2

Draft
wants to merge 10 commits into
base: devel
Choose a base branch
from

Conversation

YaswanthKumar-eng
Copy link

This pr relates to initializes the pydantic settings for rapyuta_io config trees configurations for easy config management.

field: FieldInfo,
field_name: str,
) -> Tuple[Any, str, bool]:
return "dummy_val", "dummy_val", False

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why dummy_val ? we need to extract the field_name corresponding value from configtree fetched from upstream right ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YaswanthKumar-eng ignore above comment, in the call method we are creating the dict which should be enough to get the complete dict, i think without overriding the get_field_value pydantic throws an error

dist/
wheels/
*.egg-info

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: add .idea to this file.

[project]
name = "rapyuta-io-sdk-v2"
version = "0.1.0"
description = "Version:2 for Rapyuta.io SDK"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "Version:2 for Rapyuta.io SDK"
description = "A Python SDK for rapyuta.io v2 APIs"


class AsyncClient(Client):

def __init__(self,config):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: Run a Reformat on the entire code in Pycharm. That should fix all the formatting.

Suggested change
def __init__(self,config):
def __init__(self, config):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants