""" Options: Date: 2024-11-21 21:59:47 Version: 6.111 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://sharpscript.net #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: QueryGitHubRepos.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GithubUser: id: int = 0 login: Optional[str] = None avatar__url: Optional[str] = None url: Optional[str] = None followers: Optional[int] = None following: Optional[int] = None type: Optional[str] = None public__gists: Optional[int] = None location: Optional[str] = None company: Optional[str] = None html__url: Optional[str] = None public__repos: Optional[int] = None created__at: Optional[datetime.datetime] = None blog: Optional[str] = None email: Optional[str] = None name: Optional[str] = None hireable: Optional[bool] = None gravatar__id: Optional[str] = None bio: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GithubRepo: id: int = 0 name: Optional[str] = None description: Optional[str] = None homepage: Optional[str] = None language: Optional[str] = None watchers__count: int = 0 stargazes__count: int = 0 forks__count: int = 0 open__issues__count: int = 0 size: int = 0 full__name: Optional[str] = None created_at: datetime.datetime = datetime.datetime(1, 1, 1) pushed__at: Optional[datetime.datetime] = None updated__at: Optional[datetime.datetime] = None has_issues: bool = False has__downloads: bool = False has__wiki: bool = False has__pages: bool = False fork: bool = False owner: Optional[GithubUser] = None svn__url: Optional[str] = None mirror__url: Optional[str] = None url: Optional[str] = None ssh__url: Optional[str] = None html__url: Optional[str] = None clone__url: Optional[str] = None git__url: Optional[str] = None private: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QueryGitHubRepos(QueryData[GithubRepo], IReturn[QueryResponse[GithubRepo]]): user_name: Optional[str] = None