id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
12,400
ccxt/ccxt
python/ccxt/static_dependencies/lark/load_grammar.py
ccxt.static_dependencies.lark.load_grammar.PrepareLiterals
from .tree import Tree, SlottedTree as ST from .lexer import Token, TerminalDef, PatternStr, PatternRE, Pattern from .visitors import Transformer, Visitor, v_args, Transformer_InPlace, Transformer_NonRecursive @inline_args class PrepareLiterals(Transformer_InPlace): def literal(self, literal): return ST('...
@inline_args class PrepareLiterals(Transformer_InPlace): def literal(self, literal): pass def range(self, start, end): pass
4
0
5
0
5
0
1
0
1
0
0
0
2
0
2
37
11
1
10
4
7
0
10
4
7
1
6
0
2
12,401
ccxt/ccxt
python/ccxt/static_dependencies/lark/load_grammar.py
ccxt.static_dependencies.lark.load_grammar.SimplifyRule_Visitor
from .tree import Tree, SlottedTree as ST from .visitors import Transformer, Visitor, v_args, Transformer_InPlace, Transformer_NonRecursive from .utils import classify, dedup_list class SimplifyRule_Visitor(Visitor): @staticmethod def _flatten(tree: Tree): while tree.expand_kids_by_data(tree.data): ...
class SimplifyRule_Visitor(Visitor): @staticmethod def _flatten(tree: Tree): pass def expansion(self, tree: Tree): pass def alias(self, tree): pass def expansions(self, tree: Tree): pass
6
0
9
1
6
3
3
0.41
1
3
1
0
3
0
4
31
43
6
27
10
21
11
24
9
19
4
5
2
11
12,402
ccxt/ccxt
python/ccxt/static_dependencies/lark/load_grammar.py
ccxt.static_dependencies.lark.load_grammar.TerminalTreeToPattern
from .lexer import Token, TerminalDef, PatternStr, PatternRE, Pattern from .exceptions import GrammarError, UnexpectedCharacters, UnexpectedToken, ParseError, UnexpectedInput from typing import List, Tuple, Union, Callable, Dict, Optional, Sequence, Generator from .visitors import Transformer, Visitor, v_args, Transfor...
class TerminalTreeToPattern(Transformer_NonRecursive): def pattern(self, ps): pass def expansion(self, items: List[Pattern]) -> Pattern: pass def expansions(self, exps: List[Pattern]) -> Pattern: pass def expr(self, args) -> Pattern: pass def maybe(self, expr): ...
8
0
6
1
5
0
2
0.05
1
2
0
0
7
0
7
41
49
10
37
13
29
2
35
13
27
4
6
3
13
12,403
ccxt/ccxt
python/ccxt/static_dependencies/lark/parse_tree_builder.py
ccxt.static_dependencies.lark.parse_tree_builder.ParseTreeBuilder
from .exceptions import GrammarError, ConfigurationError from .visitors import Transformer_InPlace from functools import partial, wraps class ParseTreeBuilder: def __init__(self, rules, tree_class, propagate_positions=False, ambiguous=False, maybe_placeholders=False): self.tree_class = tree_class ...
class ParseTreeBuilder: def __init__(self, rules, tree_class, propagate_positions=False, ambiguous=False, maybe_placeholders=False): pass def _init_builders(self, rules): pass def create_callback(self, transformer=None): pass def default_callback(data, children): ...
5
0
15
3
12
0
3
0
0
7
3
0
3
5
3
3
59
13
46
23
41
0
38
23
33
8
0
3
13
12,404
ccxt/ccxt
python/ccxt/static_dependencies/lark/parser_frontends.py
ccxt.static_dependencies.lark.parser_frontends.EarleyRegexpMatcher
from .exceptions import ConfigurationError, GrammarError, assert_config from .utils import get_regexp_width, Serialize class EarleyRegexpMatcher: def __init__(self, lexer_conf): self.regexps = {} for t in lexer_conf.terminals: regexp = t.pattern.to_regexp() try: ...
class EarleyRegexpMatcher: def __init__(self, lexer_conf): pass def match(self, term, text, index=0): pass
3
0
9
1
8
0
3
0
0
1
0
0
2
1
2
2
19
2
17
7
14
0
17
7
14
5
0
3
6
12,405
ccxt/ccxt
python/ccxt/static_dependencies/lark/parser_frontends.py
ccxt.static_dependencies.lark.parser_frontends.ParsingFrontend
from .lexer import LexerThread, BasicLexer, ContextualLexer, Lexer from .utils import get_regexp_width, Serialize from .common import LexerConf, ParserConf, _ParserArgType, _LexerArgType from typing import Any, Callable, Dict, Optional, Collection, Union, TYPE_CHECKING from .exceptions import ConfigurationError, Gramma...
class ParsingFrontend(Serialize): def __init__(self, lexer_conf: LexerConf, parser_conf: ParserConf, options, parser=None): pass def _verify_start(self, start=None): pass def _make_lexer_thread(self, text: str) -> Union[str, LexerThread]: pass def parse(self, text: str, star...
6
0
12
1
11
1
3
0.1
1
4
1
0
5
3
5
8
73
10
59
20
53
6
50
20
44
6
1
2
16
12,406
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/cyk.py
ccxt.static_dependencies.lark.parsers.cyk.Parser
from ..exceptions import ParseError from ..grammar import Terminal as T, NonTerminal as NT, Symbol from ..tree import Tree from ..lexer import Token class Parser: """Parser wrapper.""" def __init__(self, rules): super(Parser, self).__init__() self.orig_rules = {rule: rule for rule in rules} ...
class Parser: '''Parser wrapper.''' def __init__(self, rules): pass def _to_rule(self, lark_rule): '''Converts a lark rule, (lhs, rhs, callback, options), to a Rule.''' pass def parse(self, tokenized, start): '''Parses input, which is a list of tokens.''' pass...
5
4
9
0
8
1
2
0.18
0
6
5
0
4
2
4
4
43
5
33
13
28
6
29
13
24
3
0
2
8
12,407
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley.py
ccxt.static_dependencies.lark.parsers.earley.Parser
from ..grammar import NonTerminal from ..tree import Tree from typing import TYPE_CHECKING, Callable, Optional, List, Any from .grammar_analysis import GrammarAnalyzer from ..utils import logger, OrderedSet, dedup_list from .earley_forest import ForestSumVisitor, SymbolNode, StableSymbolNode, TokenNode, ForestToParseTr...
class Parser: def __init__(self, lexer_conf: 'LexerConf', parser_conf: 'ParserConf', term_matcher: Callable, resolve_ambiguity: bool=True, debug: bool=False, tree_class: Optional[Callable[[str, List], Any]]=Tree, ordered_sets: bool=True): pass def predict_and_complete(self, i, to_scan, columns, trans...
7
2
56
8
34
15
9
0.41
0
17
10
1
4
12
4
4
288
48
174
63
164
72
164
61
156
22
0
5
54
12,408
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley_forest.py
ccxt.static_dependencies.lark.parsers.earley_forest.ForestToParseTree
from ..visitors import Discard from ..tree import Tree from ..utils import logger, OrderedSet class ForestToParseTree(ForestTransformer): """Used by the earley parser when ambiguity equals 'resolve' or 'explicit'. Transforms an SPPF into an (ambiguous) parse tree. Parameters: tree_class: The tree ...
class ForestToParseTree(ForestTransformer): '''Used by the earley parser when ambiguity equals 'resolve' or 'explicit'. Transforms an SPPF into an (ambiguous) parse tree. Parameters: tree_class: The tree class to use for construction callbacks: A dictionary of rules to functions that output...
14
1
8
0
8
0
3
0.16
1
7
3
1
13
9
13
35
132
14
102
31
88
16
96
31
82
8
2
2
36
12,409
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley_forest.py
ccxt.static_dependencies.lark.parsers.earley_forest.ForestToPyDotVisitor
from importlib import import_module from ..utils import logger, OrderedSet from random import randint class ForestToPyDotVisitor(ForestVisitor): """ A Forest visitor which writes the SPPF to a PNG. The SPPF can get really large, really quickly because of the amount of meta-data it stores, so this is p...
class ForestToPyDotVisitor(ForestVisitor): ''' A Forest visitor which writes the SPPF to a PNG. The SPPF can get really large, really quickly because of the amount of meta-data it stores, so this is probably only useful for trivial trees and learning how the SPPF is structured. ''' def...
8
1
9
0
9
1
2
0.17
1
4
1
0
7
2
7
16
78
7
63
41
55
11
61
40
53
4
1
2
13
12,410
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley_forest.py
ccxt.static_dependencies.lark.parsers.earley_forest.ForestTransformer
from collections import deque from ..visitors import Discard class ForestTransformer(ForestVisitor): """The base class for a bottom-up forest transformation. Most users will want to use ``TreeForestTransformer`` instead as it has a friendlier interface and covers most use cases. Transformations are ap...
class ForestTransformer(ForestVisitor): '''The base class for a bottom-up forest transformation. Most users will want to use ``TreeForestTransformer`` instead as it has a friendlier interface and covers most use cases. Transformations are applied via inheritance and overriding of the ``transform*no...
14
6
4
0
3
1
1
0.43
1
2
0
1
13
2
13
22
79
16
44
18
30
19
44
18
30
2
1
1
16
12,411
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley_forest.py
ccxt.static_dependencies.lark.parsers.earley_forest.SymbolNode
from typing import Type, AbstractSet from operator import attrgetter class SymbolNode(ForestNode): """ A Symbol Node represents a symbol (or Intermediate LR0). Symbol nodes are keyed by the symbol (s). For intermediate nodes s will be an LR0, stored as a tuple of (rule, ptr). For completed symbol ...
class SymbolNode(ForestNode): ''' A Symbol Node represents a symbol (or Intermediate LR0). Symbol nodes are keyed by the symbol (s). For intermediate nodes s will be an LR0, stored as a tuple of (rule, ptr). For completed symbol nodes, s will be a string representing the non-terminal origin (i.e. ...
11
3
6
0
5
1
2
0.51
1
5
1
1
8
8
8
8
80
13
45
28
34
23
41
26
32
3
1
2
12
12,412
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/earley_forest.py
ccxt.static_dependencies.lark.parsers.earley_forest.TreeForestTransformer
from ..parse_tree_builder import AmbiguousIntermediateExpander from ..tree import Tree from ..visitors import Discard from functools import partial class TreeForestTransformer(ForestToParseTree): """A ``ForestTransformer`` with a tree ``Transformer``-like interface. By default, it will construct a tree. M...
class TreeForestTransformer(ForestToParseTree): '''A ``ForestTransformer`` with a tree ``Transformer``-like interface. By default, it will construct a tree. Methods provided via inheritance are called based on the rule/symbol names of nodes in the forest. Methods that act on rules will receive a li...
8
4
6
0
4
1
2
1.2
1
6
3
0
7
0
7
42
83
17
30
13
22
36
29
13
21
3
3
1
12
12,413
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/grammar_analysis.py
ccxt.static_dependencies.lark.parsers.grammar_analysis.GrammarAnalyzer
from collections import Counter, defaultdict from ..utils import bfs, fzset, classify from ..grammar import Rule, Terminal, NonTerminal, Symbol from typing import List, Dict, Iterator, FrozenSet, Set from ..exceptions import GrammarError from ..common import ParserConf class GrammarAnalyzer: def __init__(self, pa...
class GrammarAnalyzer: def __init__(self, parser_conf: ParserConf, debug: bool=False, strict: bool=False): pass def expand_rule(self, source_rule: NonTerminal, rules_by_origin=None) -> State: '''Returns all init_ptrs accessible by rule (recursive)''' pass def _expand_rule(rul...
4
1
25
6
18
1
4
0.07
0
11
6
1
2
10
2
2
64
18
44
24
40
3
39
24
35
5
0
3
12
12,414
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/grammar_analysis.py
ccxt.static_dependencies.lark.parsers.grammar_analysis.LR0ItemSet
from typing import List, Dict, Iterator, FrozenSet, Set from ..grammar import Rule, Terminal, NonTerminal, Symbol from collections import Counter, defaultdict from ..utils import bfs, fzset, classify class LR0ItemSet: __slots__ = ('kernel', 'closure', 'transitions', 'lookaheads') kernel: State closure: Sta...
class LR0ItemSet: def __init__(self, kernel, closure): pass def __repr__(self): pass
3
0
4
0
4
0
1
0
0
2
1
0
2
0
2
2
16
3
13
4
10
0
13
4
10
1
0
0
2
12,415
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_analysis.py
ccxt.static_dependencies.lark.parsers.lalr_analysis.LALR_Analyzer
from .grammar_analysis import GrammarAnalyzer, Terminal, LR0ItemSet, RulePtr, State from ..utils import classify, classify_bool, bfs, fzset, Enumerator, logger from ..common import ParserConf from ..grammar import Rule, Symbol from typing import Dict, Set, Iterator, Tuple, List, TypeVar, Generic from ..exceptions impor...
class LALR_Analyzer(GrammarAnalyzer): def __init__(self, parser_conf: ParserConf, debug: bool=False, strict: bool=False): pass def compute_lr0_states(self) -> None: pass def step(state: LR0ItemSet) -> Iterator[LR0ItemSet]: pass def compute_reads_relations(self): ...
9
0
24
2
21
1
7
0.05
1
10
6
0
7
1
7
9
185
22
155
62
146
8
149
62
140
16
1
5
53
12,416
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_interactive_parser.py
ccxt.static_dependencies.lark.parsers.lalr_interactive_parser.InteractiveParser
from ..lexer import Token, LexerThread from typing import Iterator, List from ..exceptions import UnexpectedToken from copy import copy import warnings from .lalr_parser_state import ParserState class InteractiveParser: """InteractiveParser gives you advanced control over parsing and error handling when parsing wi...
class InteractiveParser: '''InteractiveParser gives you advanced control over parsing and error handling when parsing with LALR. For a simpler interface, see the ``on_error`` argument to ``Lark.parse()``. ''' def __init__(self, parser, parser_state: ParserState, lexer_thread: LexerThread): pas...
16
11
7
1
4
2
2
0.49
0
6
2
1
14
4
14
14
114
24
61
29
45
30
56
28
41
4
0
3
21
12,417
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_parser.py
ccxt.static_dependencies.lark.parsers.lalr_parser.LALR_Parser
from ..utils import Serialize from typing import Dict, Any, Optional from .lalr_analysis import LALR_Analyzer, IntParseTable, ParseTableBase from ..exceptions import UnexpectedCharacters, UnexpectedInput, UnexpectedToken from ..common import ParserConf, ParserCallbacks from ..lexer import Token, LexerThread class LALR...
class LALR_Parser(Serialize): def __init__(self, parser_conf: ParserConf, debug: bool=False, strict: bool=False): pass @classmethod def deserialize(cls, data, memo, callbacks, debug=False): pass def serialize(self, memo: Any=None) -> Dict[str, Any]: pass def parse_interac...
7
0
10
1
8
0
3
0.05
1
6
3
0
4
3
5
8
54
9
43
17
36
2
40
14
34
11
1
4
15
12,418
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_parser.py
ccxt.static_dependencies.lark.parsers.lalr_parser._Parser
from .lalr_interactive_parser import InteractiveParser from .lalr_analysis import LALR_Analyzer, IntParseTable, ParseTableBase from ..exceptions import UnexpectedCharacters, UnexpectedInput, UnexpectedToken from typing import Dict, Any, Optional from .lalr_parser_state import ParserState, ParseConf from ..common import...
class _Parser: def __init__(self, parse_table: ParseTableBase, callbacks: ParserCallbacks, debug: bool=False): pass def parse(self, lexer: LexerThread, start: str, value_stack=None, state_stack=None, start_interactive=False): pass def parse_from_state(self, state: ParserState, last_token...
4
1
14
1
11
2
4
0.14
0
9
4
0
3
0
3
3
49
7
37
10
33
5
37
9
33
8
0
3
11
12,419
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py
ccxt.static_dependencies.lark.parsers.lalr_parser_state.ParseConf
from .lalr_analysis import Shift, ParseTableBase, StateT from typing import Dict, Any, Generic, List from ..common import ParserCallbacks class ParseConf(Generic[StateT]): __slots__ = ('parse_table', 'callbacks', 'start', 'start_state', 'end_state', 'states') parse_table: ParseTableBase[StateT] callbacks: ...
class ParseConf(Generic[StateT]): def __init__(self, parse_table: ParseTableBase[StateT], callbacks: ParserCallbacks, start: str): pass
2
0
9
2
7
0
1
0
1
2
1
0
1
0
1
3
20
5
15
3
13
0
15
3
13
1
1
0
1
12,420
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/lalr_parser_state.py
ccxt.static_dependencies.lark.parsers.lalr_parser_state.ParserState
from .lalr_analysis import Shift, ParseTableBase, StateT from copy import deepcopy, copy from ..exceptions import UnexpectedToken from ..lexer import Token, LexerThread from typing import Dict, Any, Generic, List class ParserState(Generic[StateT]): __slots__ = ('parse_conf', 'lexer', 'state_stack', 'value_stack') ...
class ParserState(Generic[StateT]): def __init__(self, parse_conf: ParseConf[StateT], lexer: LexerThread, state_stack=None, value_stack=None): pass @property def position(self) -> StateT: pass def __eq__(self, other) -> bool: pass def __copy__(self): pass def...
8
0
11
1
9
1
3
0.06
1
5
1
0
6
0
6
8
78
13
62
21
54
4
54
20
47
8
1
3
15
12,421
ccxt/ccxt
python/ccxt/static_dependencies/lark/parsers/xearley.py
ccxt.static_dependencies.lark.parsers.xearley.Parser
from ..exceptions import UnexpectedCharacters from typing import TYPE_CHECKING, Callable, Optional, List, Any from ..tree import Tree from collections import defaultdict from ..lexer import Token from .earley_forest import TokenNode from .earley import Parser as BaseParser from ..grammar import Terminal class Parser(B...
class Parser(BaseParser): def __init__(self, lexer_conf: 'LexerConf', parser_conf: 'ParserConf', term_matcher: Callable, resolve_ambiguity: bool=True, complete_lex: bool=False, debug: bool=False, tree_class: Optional[Callable[[str, List], Any]]=Tree, ordered_sets: bool=True): pass def _parse(self, st...
4
1
75
13
40
22
6
0.49
1
10
3
0
2
2
2
6
136
25
75
30
69
37
66
28
62
13
1
5
17
12,422
ccxt/ccxt
python/ccxt/static_dependencies/lark/reconstruct.py
ccxt.static_dependencies.lark.reconstruct.Reconstructor
from .utils import is_id_continue from .grammar import Terminal, NonTerminal, Symbol from .lark import Lark from .tree import Tree, ParseTree from .tree_matcher import TreeMatcher, is_discarded_terminal from typing import Dict, Callable, Iterable, Optional class Reconstructor(TreeMatcher): """ A Reconstructor ...
class Reconstructor(TreeMatcher): ''' A Reconstructor that will, given a full parse Tree, generate source code. Note: The reconstructor cannot generate values from regexps. If you need to produce discarded regexes, such as newlines, use `term_subs` and provide default values for them. P...
4
1
9
1
8
0
3
0.4
1
6
4
0
3
0
3
6
43
8
25
11
21
10
24
11
20
4
1
2
8
12,423
ccxt/ccxt
python/ccxt/static_dependencies/lark/reconstruct.py
ccxt.static_dependencies.lark.reconstruct.WriteTokensTransformer
from .tree_matcher import TreeMatcher, is_discarded_terminal from typing import Dict, Callable, Iterable, Optional from .lexer import Token, PatternStr, TerminalDef from .grammar import Terminal, NonTerminal, Symbol from .tree import Tree, ParseTree from .visitors import Transformer_InPlace class WriteTokensTransforme...
class WriteTokensTransformer(Transformer_InPlace): '''Inserts discarded tokens into their correct place, according to the rules of grammar''' def __init__(self, tokens: Dict[str, TerminalDef], term_subs: Dict[str, Callable[[Symbol], str]]) -> None: pass def __default__(self, data, children, meta)...
3
1
17
2
15
0
5
0.03
1
11
7
0
2
0
2
37
40
6
33
9
30
1
30
9
27
8
6
4
9
12,424
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree.py
ccxt.static_dependencies.lark.tree.Tree
from typing import List, Callable, Iterator, Union, Optional, Generic, TypeVar, TYPE_CHECKING from copy import deepcopy class Tree(Generic[_Leaf_T]): """The main tree class. Creates a new tree, and stores "data" and "children" in attributes of the same name. Trees can be hashed and compared. Paramete...
class Tree(Generic[_Leaf_T]): '''The main tree class. Creates a new tree, and stores "data" and "children" in attributes of the same name. Trees can be hashed and compared. Parameters: data: The name of the rule or alias children: List of matched sub-rules and terminals meta: Li...
22
9
7
1
5
1
2
0.4
1
11
1
1
20
1
20
22
174
35
99
40
76
40
92
39
70
5
1
3
38
12,425
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree_matcher.py
ccxt.static_dependencies.lark.tree_matcher.TreeMatcher
from .grammar import Rule, Terminal, NonTerminal from collections import defaultdict from .common import ParserConf from .parsers import earley class TreeMatcher: """Match the elements of a tree node, based on an ontology provided by a Lark grammar. Supports templates and inlined rules (`rule{a, b,..}` an...
class TreeMatcher: '''Match the elements of a tree node, based on an ontology provided by a Lark grammar. Supports templates and inlined rules (`rule{a, b,..}` and `_rule`) Initialize with an instance of Lark. ''' def __init__(self, parser): pass def _build_recons_rules(self, rule...
4
3
32
6
19
7
5
0.43
0
8
5
1
3
5
3
3
107
24
58
24
54
25
53
24
49
12
0
3
16
12,426
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree_matcher.py
ccxt.static_dependencies.lark.tree_matcher._MakeTreeMatch
from . import Tree, Token class _MakeTreeMatch: def __init__(self, name, expansion): self.name = name self.expansion = expansion def __call__(self, args): t = Tree(self.name, args) t.meta.match_tree = True t.meta.orig_expansion = self.expansion return t
class _MakeTreeMatch: def __init__(self, name, expansion): pass def __call__(self, args): pass
3
0
4
0
4
0
1
0
0
0
0
0
2
2
2
2
10
1
9
6
6
0
9
6
6
1
0
0
2
12,427
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree_templates.py
ccxt.static_dependencies.lark.tree_templates.Template
from typing import Union, Optional, Mapping, Dict, Tuple, Iterator from lark import Tree, Transformer class Template: """Represents a tree template, tied to a specific configuration A tree template is a tree that contains nodes that are template variables. Those variables will match any tree. (future ...
class Template: '''Represents a tree template, tied to a specific configuration A tree template is a tree that contains nodes that are template variables. Those variables will match any tree. (future versions may support annotations on the variables, to allow more complex templates) ''' def __...
5
4
8
1
4
3
2
1.2
0
4
3
0
4
2
4
4
41
8
15
9
10
18
15
9
10
3
0
2
6
12,428
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree_templates.py
ccxt.static_dependencies.lark.tree_templates.TemplateTranslator
from lark import Tree, Transformer from typing import Union, Optional, Mapping, Dict, Tuple, Iterator class TemplateTranslator: """Utility class for translating a collection of patterns """ def __init__(self, translations: Mapping[Template, Template]): assert all((isinstance(k, Template) and isins...
class TemplateTranslator: '''Utility class for translating a collection of patterns ''' def __init__(self, translations: Mapping[Template, Template]): pass def translate(self, tree: Tree[str]): pass
3
1
4
0
4
0
2
0.25
0
3
2
0
2
1
2
2
12
2
8
5
5
2
8
5
5
2
0
1
3
12,429
ccxt/ccxt
python/ccxt/static_dependencies/lark/tree_templates.py
ccxt.static_dependencies.lark.tree_templates._ReplaceVars
from typing import Union, Optional, Mapping, Dict, Tuple, Iterator from lark.exceptions import MissingVariableError from lark import Tree, Transformer class _ReplaceVars(Transformer[str, Tree[str]]): def __init__(self, conf: TemplateConf, vars: Mapping[str, Tree[str]]) -> None: super().__init__() ...
class _ReplaceVars(Transformer[str, Tree[str]]): def __init__(self, conf: TemplateConf, vars: Mapping[str, Tree[str]]) -> None: pass def __default__(self, data, children, meta) -> Tree[str]: pass
3
0
7
1
7
0
2
0
1
6
3
0
2
2
2
35
16
2
14
7
11
0
14
7
11
3
5
2
4
12,430
ccxt/ccxt
python/ccxt/static_dependencies/lark/utils.py
ccxt.static_dependencies.lark.utils.OrderedSet
from typing import Callable, Iterator, List, Optional, Tuple, Type, TypeVar, Union, Dict, Any, Sequence, Iterable, AbstractSet class OrderedSet(AbstractSet[T]): """A minimal OrderedSet implementation, using a dictionary. (relies on the dictionary being ordered) """ def __init__(self, items: Iterable[...
class OrderedSet(AbstractSet[T]): '''A minimal OrderedSet implementation, using a dictionary. (relies on the dictionary being ordered) ''' def __init__(self, items: Iterable[T]=()): pass def __contains__(self, item: Any) -> bool: pass def add(self, item: T): pass ...
8
1
2
0
2
0
1
0.2
1
4
0
0
7
1
7
7
25
7
15
9
7
3
15
9
7
1
1
0
7
12,431
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.CollapseAmbiguities
from .tree import Tree, Branch from .utils import combine_alternatives class CollapseAmbiguities(Transformer): """ Transforms a tree that contains any number of _ambig nodes into a list of trees, each one containing an unambiguous tree. The length of the resulting list is the product of the length of ...
class CollapseAmbiguities(Transformer): ''' Transforms a tree that contains any number of _ambig nodes into a list of trees, each one containing an unambiguous tree. The length of the resulting list is the product of the length of all _ambig nodes. Warning: This may quickly explode for highly ambig...
4
1
2
0
2
0
1
0.86
1
1
1
0
3
0
3
36
18
5
7
4
3
6
7
4
3
1
5
0
3
12,432
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Interpreter
from abc import ABC from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast from .tree import Tree, Branch class Interpreter(_Decoratable, ABC, Generic[_Leaf_T, _Return_T]): """Interpreter walks the tree starting at the root. Visits the tree, starting with the root and fin...
class Interpreter(_Decoratable, ABC, Generic[_Leaf_T, _Return_T]): '''Interpreter walks the tree starting at the root. Visits the tree, starting with the root and finally the leaves (top-down) For each tree node, it calls its methods (provided by user via inheritance) according to ``tree.data``. Unlike...
6
1
4
0
3
1
1
0.59
3
1
1
0
5
0
5
29
35
8
17
8
11
10
15
8
9
2
4
1
7
12,433
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Transformer
from abc import ABC from .tree import Tree, Branch from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast from .exceptions import VisitError, GrammarError from .lexer import Token class Transformer(_Decoratable, ABC, Generic[_Leaf_T, _Return_T]): """Transformers work bottom-up...
class Transformer(_Decoratable, ABC, Generic[_Leaf_T, _Return_T]): '''Transformers work bottom-up (or depth-first), starting with visiting the leaves and working their way up until ending at the root of the tree. For each node visited, the transformer will call the appropriate method (callbacks), according...
10
5
8
0
7
1
2
0.54
3
6
2
12
9
0
9
33
114
22
61
24
48
33
55
19
45
6
4
3
22
12,434
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Transformer_InPlaceRecursive
class Transformer_InPlaceRecursive(Transformer): """Same as Transformer, recursive, but changes the tree in-place instead of returning new instances""" def _transform_tree(self, tree): tree.children = list(self._transform_children(tree.children)) return self._call_userfunc(tree)
class Transformer_InPlaceRecursive(Transformer): '''Same as Transformer, recursive, but changes the tree in-place instead of returning new instances''' def _transform_tree(self, tree): pass
2
1
3
0
3
0
1
0.25
1
1
0
0
1
0
1
34
5
0
4
2
2
1
4
2
2
1
5
0
1
12,435
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Transformer_NonRecursive
from .lexer import Token from .tree import Tree, Branch from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast class Transformer_NonRecursive(Transformer[_Leaf_T, _Return_T]): """Same as Transformer but non-recursive. Like Transformer, it doesn't change the original tree....
class Transformer_NonRecursive(Transformer[_Leaf_T, _Return_T]): '''Same as Transformer but non-recursive. Like Transformer, it doesn't change the original tree. Useful for huge trees. ''' def transform(self, tree: Tree[_Leaf_T]) -> _Return_T: pass
2
1
37
4
28
6
9
0.34
1
2
1
1
1
0
1
34
45
7
29
11
27
10
26
11
24
9
5
3
9
12,436
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Visitor
from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast from .tree import Tree, Branch from abc import ABC class Visitor(VisitorBase, ABC, Generic[_Leaf_T]): """Tree visitor, non-recursive (can handle huge trees). Visiting a node calls its methods (provided by the user via...
class Visitor(VisitorBase, ABC, Generic[_Leaf_T]): '''Tree visitor, non-recursive (can handle huge trees). Visiting a node calls its methods (provided by the user via inheritance) according to ``tree.data`` ''' def visit(self, tree: Tree[_Leaf_T]) -> Tree[_Leaf_T]: '''Visits the tree, starting...
3
3
5
0
4
1
2
0.56
3
1
1
1
2
0
2
27
17
3
9
5
6
5
9
5
6
2
4
1
4
12,437
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors.Visitor_Recursive
from .tree import Tree, Branch from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast class Visitor_Recursive(VisitorBase, Generic[_Leaf_T]): """Bottom-up visitor, recursive. Visiting a node calls its methods (provided by the user via inheritance) according to ``tree.data...
class Visitor_Recursive(VisitorBase, Generic[_Leaf_T]): '''Bottom-up visitor, recursive. Visiting a node calls its methods (provided by the user via inheritance) according to ``tree.data`` Slightly faster than the non-recursive version. ''' def visit(self, tree: Tree[_Leaf_T]) -> Tree[_Leaf_T]: ...
3
3
9
2
6
1
3
0.46
2
1
1
0
2
0
2
7
26
7
13
5
10
6
13
5
10
3
1
2
6
12,438
ccxt/ccxt
python/ccxt/static_dependencies/lark/visitors.py
ccxt.static_dependencies.lark.visitors._VArgsWrapper
from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, Any, cast from functools import wraps, update_wrapper class _VArgsWrapper: """ A wrapper around a Callable. It delegates `__call__` to the Callable. If the Callable has a `__get__`, that is also delegate and the resulting fu...
class _VArgsWrapper: ''' A wrapper around a Callable. It delegates `__call__` to the Callable. If the Callable has a `__get__`, that is also delegate and the resulting function is wrapped. Otherwise, we use the original function mirroring the behaviour without a __get__. We also have the visit_wrap...
5
1
6
0
6
1
2
0.33
0
5
0
0
4
1
4
4
36
4
24
8
19
8
24
8
19
2
0
1
7
12,439
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/Schema.py
ccxt.static_dependencies.marshmallow.Schema.Schema
import uuid import datetime as dt from .utils import EXCLUDE, INCLUDE, RAISE, get_value, is_collection, is_instance_or_subclass, missing, set_value, validate_unknown_parameter_value import typing from .error_store import ErrorStore from .exceptions import StringNotCollectionError, ValidationError from .decorators impor...
null
33
19
30
2
21
7
4
0.47
2
20
6
0
25
13
27
55
995
101
620
241
477
290
309
122
279
18
5
5
113
12,440
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/Schema.py
ccxt.static_dependencies.marshmallow.Schema.SchemaOpts
from .warnings import RemovedInMarshmallow4Warning import json import warnings from .utils import EXCLUDE, INCLUDE, RAISE, get_value, is_collection, is_instance_or_subclass, missing, set_value, validate_unknown_parameter_value class SchemaOpts: """class Meta options for the :class:`Schema`. Defines defaults.""" ...
class SchemaOpts: '''class Meta options for the :class:`Schema`. Defines defaults.''' def __init__(self, meta, ordered: bool=False): pass
2
1
35
0
35
0
6
0.03
0
5
1
0
1
14
1
1
38
1
36
17
34
1
28
17
26
6
0
1
6
12,441
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/base.py
ccxt.static_dependencies.marshmallow.base.FieldABC
from abc import ABC, abstractmethod class FieldABC(ABC): """Abstract base class from which all Field classes inherit.""" parent = None name = None root = None @abstractmethod def serialize(self, attr, obj, accessor=None): pass @abstractmethod def deserialize(self, value): ...
class FieldABC(ABC): '''Abstract base class from which all Field classes inherit.''' @abstractmethod def serialize(self, attr, obj, accessor=None): pass @abstractmethod def deserialize(self, value): pass @abstractmethod def _serialize(self, value, attr, obj, **kwargs): ...
9
1
2
0
2
0
1
0.06
1
0
0
1
4
0
4
24
22
5
16
12
7
1
12
8
7
1
4
0
4
12,442
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/base.py
ccxt.static_dependencies.marshmallow.base.SchemaABC
from abc import ABC, abstractmethod class SchemaABC(ABC): """Abstract base class from which all Schemas inherit.""" @abstractmethod def dump(self, obj, *, many: bool | None=None): pass @abstractmethod def dumps(self, obj, *, many: bool | None=None): pass @abstractmethod d...
class SchemaABC(ABC): '''Abstract base class from which all Schemas inherit.''' @abstractmethod def dump(self, obj, *, many: bool | None=None): pass @abstractmethod def dumps(self, obj, *, many: bool | None=None): pass @abstractmethod def load(self, data, *, many: bool | Non...
9
1
4
0
4
0
1
0.05
1
1
0
2
4
0
4
24
26
4
21
17
4
1
9
5
4
1
4
0
4
12,443
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/decorators.py
ccxt.static_dependencies.marshmallow.decorators.MarshmallowHook
from typing import Any, Callable, cast class MarshmallowHook: __marshmallow_hook__: dict[tuple[str, bool] | str, Any] | None = None
class MarshmallowHook: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
0
0
0
12,444
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/error_store.py
ccxt.static_dependencies.marshmallow.error_store.ErrorStore
from .exceptions import SCHEMA class ErrorStore: def __init__(self): self.errors = {} def store_error(self, messages, field_name=SCHEMA, index=None): if field_name != SCHEMA or not isinstance(messages, dict): messages = {field_name: messages} if index is not None: ...
class ErrorStore: def __init__(self): pass def store_error(self, messages, field_name=SCHEMA, index=None): pass
3
0
6
0
4
2
2
0.44
0
1
0
0
2
1
2
2
14
1
9
4
6
4
9
4
6
3
0
1
4
12,445
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/exceptions.py
ccxt.static_dependencies.marshmallow.exceptions.FieldInstanceResolutionError
class FieldInstanceResolutionError(MarshmallowError, TypeError): """Raised when schema to instantiate is neither a Schema class nor an instance."""
class FieldInstanceResolutionError(MarshmallowError, TypeError): '''Raised when schema to instantiate is neither a Schema class nor an instance.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
12,446
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/exceptions.py
ccxt.static_dependencies.marshmallow.exceptions.MarshmallowError
class MarshmallowError(Exception): """Base class for all marshmallow-related errors."""
class MarshmallowError(Exception): '''Base class for all marshmallow-related errors.''' pass
1
1
0
0
0
0
0
1
1
0
0
3
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
12,447
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/exceptions.py
ccxt.static_dependencies.marshmallow.exceptions.RegistryError
class RegistryError(NameError): """Raised when an invalid operation is performed on the serializer class registry. """
class RegistryError(NameError): '''Raised when an invalid operation is performed on the serializer class registry. ''' pass
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
11
4
0
1
1
0
3
1
1
0
0
4
0
0
12,448
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/exceptions.py
ccxt.static_dependencies.marshmallow.exceptions.StringNotCollectionError
class StringNotCollectionError(MarshmallowError, TypeError): """Raised when a string is passed when a list of strings is expected."""
class StringNotCollectionError(MarshmallowError, TypeError): '''Raised when a string is passed when a list of strings is expected.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
12,449
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/exceptions.py
ccxt.static_dependencies.marshmallow.exceptions.ValidationError
import typing class ValidationError(MarshmallowError): """Raised when validation fails on a field or schema. Validators and custom fields should raise this exception. :param message: An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the valu...
class ValidationError(MarshmallowError): '''Raised when validation fails on a field or schema. Validators and custom fields should raise this exception. :param message: An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error mes...
5
1
9
0
9
0
2
0.31
1
8
0
0
3
5
3
13
43
5
29
19
15
9
16
9
12
2
4
1
6
12,450
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.AwareDateTime
from .utils import is_aware, is_collection, resolve_field_instance import datetime as dt class AwareDateTime(DateTime): """A formatted aware datetime string. :param format: See :class:`DateTime`. :param default_timezone: Used on deserialization. If `None`, naive datetimes are rejected. If not `Non...
class AwareDateTime(DateTime): '''A formatted aware datetime string. :param format: See :class:`DateTime`. :param default_timezone: Used on deserialization. If `None`, naive datetimes are rejected. If not `None`, naive datetimes are set this timezone. :param kwargs: The same keyword arg...
3
1
10
0
10
0
2
0.36
1
4
0
0
2
1
2
50
35
5
22
12
13
8
12
6
9
3
7
2
4
12,451
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Boolean
class Boolean(Field): """A boolean field. :param truthy: Values that will (de)serialize to `True`. If an empty set, any non-falsy value will deserialize to `True`. If `None`, `marshmallow.fields.Boolean.truthy` will be used. :param falsy: Values that will (de)serialize to `False`. If `None`...
class Boolean(Field): '''A boolean field. :param truthy: Values that will (de)serialize to `True`. If an empty set, any non-falsy value will deserialize to `True`. If `None`, `marshmallow.fields.Boolean.truthy` will be used. :param falsy: Values that will (de)serialize to `False`. If `None`,...
4
1
12
1
11
0
4
0.23
1
4
0
0
3
0
3
46
95
9
70
14
60
16
32
7
28
5
6
2
13
12,452
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Constant
import typing class Constant(Field): """A field that (de)serializes to a preset constant. If you only want the constant added for serialization or deserialization, you should use ``dump_only=True`` or ``load_only=True`` respectively. :param constant: The constant to return for the field attribute. ...
class Constant(Field): '''A field that (de)serializes to a preset constant. If you only want the constant added for serialization or deserialization, you should use ``dump_only=True`` or ``load_only=True`` respectively. :param constant: The constant to return for the field attribute. .. versionadd...
4
1
3
0
3
0
1
0.55
1
2
0
0
3
3
3
46
23
6
11
8
7
6
11
8
7
1
6
0
3
12,453
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Date
from . import class_registry, types, utils, validate import datetime as dt class Date(DateTime): """ISO8601-formatted date string. :param format: Either ``"iso"`` (for ISO8601) or a date format string. If `None`, defaults to "iso". :param kwargs: The same keyword arguments that :class:`Field` rece...
class Date(DateTime): '''ISO8601-formatted date string. :param format: Either ``"iso"`` (for ISO8601) or a date format string. If `None`, defaults to "iso". :param kwargs: The same keyword arguments that :class:`Field` receives. ''' @staticmethod def _make_object_from_format(value, ...
3
1
2
0
2
0
1
0.46
1
1
0
0
0
0
1
49
27
8
13
9
10
6
9
8
7
1
7
0
1
12,454
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.DateTime
from . import class_registry, types, utils, validate import datetime as dt class DateTime(Field): """A formatted datetime string. Example: ``'2014-12-22T03:12:58.019077+00:00'`` :param format: Either ``"rfc"`` (for RFC822), ``"iso"`` (for ISO8601), ``"timestamp"``, ``"timestamp_ms"`` (for a POSIX...
class DateTime(Field): '''A formatted datetime string. Example: ``'2014-12-22T03:12:58.019077+00:00'`` :param format: Either ``"rfc"`` (for RFC822), ``"iso"`` (for ISO8601), ``"timestamp"``, ``"timestamp_ms"`` (for a POSIX timestamp) or a date format string. If `None`, defaults to "iso". ...
7
1
7
0
6
1
2
0.3
1
7
0
4
4
1
5
48
86
14
57
19
50
17
32
17
26
3
6
2
9
12,455
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Decimal
import decimal class Decimal(Number): """A field that (de)serializes to the Python ``decimal.Decimal`` type. It's safe to use when dealing with money values, percentages, ratios or other numbers where precision is critical. .. warning:: This field serializes to a `decimal.Decimal` object by d...
class Decimal(Number): '''A field that (de)serializes to the Python ``decimal.Decimal`` type. It's safe to use when dealing with money values, percentages, ratios or other numbers where precision is critical. .. warning:: This field serializes to a `decimal.Decimal` object by default. If you ne...
5
1
8
0
8
0
3
0.89
1
6
0
0
4
3
4
53
83
12
38
21
25
34
26
12
21
4
7
2
10
12,456
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Dict
from collections.abc import Mapping as _Mapping class Dict(Mapping): """A dict field. Supports dicts and dict-like objects. Extends Mapping with dict as the mapping_type. Example: :: numbers = fields.Dict(keys=fields.Str(), values=fields.Float()) :param kwargs: The same keyword arguments tha...
class Dict(Mapping): '''A dict field. Supports dicts and dict-like objects. Extends Mapping with dict as the mapping_type. Example: :: numbers = fields.Dict(keys=fields.Str(), values=fields.Float()) :param kwargs: The same keyword arguments that :class:`Mapping` receives. .. versionadded:: ...
1
1
0
0
0
0
0
3.5
1
0
0
0
0
0
0
47
14
5
2
2
1
7
2
2
1
0
7
0
0
12,457
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Email
from . import class_registry, types, utils, validate class Email(String): """An email field. :param args: The same positional arguments that :class:`String` receives. :param kwargs: The same keyword arguments that :class:`String` receives. """ default_error_messages = {'invalid': 'Not a valid emai...
class Email(String): '''An email field. :param args: The same positional arguments that :class:`String` receives. :param kwargs: The same keyword arguments that :class:`String` receives. ''' def __init__(self, *args, **kwargs) -> None: pass
2
1
5
0
4
1
1
1
1
2
1
0
1
0
1
46
15
3
6
4
4
6
6
4
4
1
7
0
1
12,458
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Enum
from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError from .utils import is_aware, is_collection, resolve_field_instance from enum import Enum as EnumType class Enum(Field): """An Enum field (de)serializing enum members by symbol (name) or by value. :param enum Enum: ...
class Enum(Field): '''An Enum field (de)serializing enum members by symbol (name) or by value. :param enum Enum: Enum class :param boolean|Schema|Field by_value: Whether to (de)serialize by value or by name, or Field class or instance to use to (de)serialize by value. Defaults to False. If `by_...
4
1
17
1
16
1
4
0.22
1
7
2
0
3
4
3
46
71
9
51
19
41
11
34
11
30
4
6
3
11
12,459
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Field
from .validate import And, Length from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError import copy from . import class_registry, types, utils, validate import typing from .warnings import RemovedInMarshmallow4Warning import warnings from .base import FieldABC, SchemaABC from ....
class Field(FieldABC): '''Basic field from which other fields should extend. It applies no formatting by default, and should only be used in cases where data does not need to be formatted before being serialized or deserialized. On error, the name of the field will be returned. :param dump_default:...
26
12
16
1
11
4
2
0.62
1
13
3
18
19
15
19
43
401
45
220
97
152
137
109
48
89
12
5
2
43
12,460
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Float
import math class Float(Number): """A double as an IEEE-754 double precision string. :param bool allow_nan: If `True`, `NaN`, `Infinity` and `-Infinity` are allowed, even though they are illegal according to the JSON specification. :param bool as_string: If `True`, format the value as a string. ...
class Float(Number): '''A double as an IEEE-754 double precision string. :param bool allow_nan: If `True`, `NaN`, `Infinity` and `-Infinity` are allowed, even though they are illegal according to the JSON specification. :param bool as_string: If `True`, format the value as a string. :param kwar...
3
1
5
0
5
0
2
0.5
1
3
0
0
2
1
2
51
26
5
14
7
11
7
12
7
9
3
7
2
4
12,461
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Function
import typing from . import class_registry, types, utils, validate from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError class Function(Field): """A field that takes the value returned by a function. :param serialize: A callable from which to retrieve the value. ...
null
5
1
8
0
8
0
2
0.56
1
5
1
0
4
2
4
47
61
8
34
22
16
19
21
9
16
3
6
2
7
12,462
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IP
from . import class_registry, types, utils, validate import ipaddress class IP(Field): """A IP address field. :param bool exploded: If `True`, serialize ipv6 address in long form, ie. with groups consisting entirely of zeros included. .. versionadded:: 3.8.0 """ default_error_messages = {...
class IP(Field): '''A IP address field. :param bool exploded: If `True`, serialize ipv6 address in long form, ie. with groups consisting entirely of zeros included. .. versionadded:: 3.8.0 ''' def __init__(self, *args, exploded=False, **kwargs): pass def _serialize(self, value...
4
1
7
0
7
0
2
0.26
1
6
0
2
3
1
3
46
35
7
23
10
17
6
19
7
15
3
6
1
7
12,463
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IPInterface
import ipaddress from . import class_registry, types, utils, validate class IPInterface(Field): """A IPInterface field. IP interface is the non-strict form of the IPNetwork type where arbitrary host addresses are always accepted. IPAddress and mask e.g. '192.168.0.2/24' or '192.168.0.2/255.255.255.0'...
class IPInterface(Field): '''A IPInterface field. IP interface is the non-strict form of the IPNetwork type where arbitrary host addresses are always accepted. IPAddress and mask e.g. '192.168.0.2/24' or '192.168.0.2/255.255.255.0' see https://python.readthedocs.io/en/latest/library/ipaddress.html#...
4
1
7
0
7
0
2
0.39
1
7
0
2
3
1
3
46
40
9
23
10
17
9
19
7
15
3
6
1
7
12,464
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IPv4
import ipaddress class IPv4(IP): """A IPv4 address field. .. versionadded:: 3.8.0 """ default_error_messages = {'invalid_ip': 'Not a valid IPv4 address.'} DESERIALIZATION_CLASS = ipaddress.IPv4Address
class IPv4(IP): '''A IPv4 address field. .. versionadded:: 3.8.0 ''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
46
9
3
3
3
2
3
3
3
2
0
7
0
0
12,465
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IPv4Interface
import ipaddress class IPv4Interface(IPInterface): """A IPv4 Network Interface field.""" default_error_messages = {'invalid_ip_interface': 'Not a valid IPv4 interface.'} DESERIALIZATION_CLASS = ipaddress.IPv4Interface
class IPv4Interface(IPInterface): '''A IPv4 Network Interface field.''' pass
1
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
46
6
2
3
3
2
1
3
3
2
0
7
0
0
12,466
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IPv6
import ipaddress class IPv6(IP): """A IPv6 address field. .. versionadded:: 3.8.0 """ default_error_messages = {'invalid_ip': 'Not a valid IPv6 address.'} DESERIALIZATION_CLASS = ipaddress.IPv6Address
class IPv6(IP): '''A IPv6 address field. .. versionadded:: 3.8.0 ''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
46
9
3
3
3
2
3
3
3
2
0
7
0
0
12,467
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.IPv6Interface
import ipaddress class IPv6Interface(IPInterface): """A IPv6 Network Interface field.""" default_error_messages = {'invalid_ip_interface': 'Not a valid IPv6 interface.'} DESERIALIZATION_CLASS = ipaddress.IPv6Interface
class IPv6Interface(IPInterface): '''A IPv6 Network Interface field.''' pass
1
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
46
6
2
3
3
2
1
3
3
2
0
7
0
0
12,468
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Inferred
class Inferred(Field): """A field that infers how to serialize, based on the value type. .. warning:: This class is treated as private API. Users should not need to use this class directly. """ def __init__(self): super().__init__() self._field_cache = {} def _ser...
class Inferred(Field): '''A field that infers how to serialize, based on the value type. .. warning:: This class is treated as private API. Users should not need to use this class directly. ''' def __init__(self): pass def _serialize(self, value, attr, obj, **kwargs...
3
1
8
0
7
1
2
0.47
1
1
0
0
2
1
2
45
26
4
15
6
12
7
14
6
11
3
6
2
4
12,469
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Integer
import numbers class Integer(Number): """An integer field. :param strict: If `True`, only integer types are valid. Otherwise, any value castable to `int` is valid. :param kwargs: The same keyword arguments that :class:`Number` receives. """ num_type = int default_error_messages = {'inv...
class Integer(Number): '''An integer field. :param strict: If `True`, only integer types are valid. Otherwise, any value castable to `int` is valid. :param kwargs: The same keyword arguments that :class:`Number` receives. ''' def __init__(self, *, strict: bool=False, **kwargs): ...
3
1
4
0
4
0
2
0.7
1
3
0
0
2
1
2
51
22
5
10
6
7
7
10
6
7
2
7
1
3
12,470
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.List
import copy from . import class_registry, types, utils, validate from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError from .utils import is_aware, is_collection, resolve_field_instance import typing class List(Field): """A list field, composed with another `Field` class o...
class List(Field): '''A list field, composed with another `Field` class or instance. Example: :: numbers = fields.List(fields.Float()) :param cls_or_instance: A field class or instance. :param kwargs: The same keyword arguments that :class:`Field` receives. .. versionchanged:: 2.0.0 ...
5
1
10
0
10
0
3
0.33
1
8
3
2
4
3
4
47
64
11
40
14
35
13
37
12
32
6
6
3
13
12,471
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Mapping
from .utils import is_aware, is_collection, resolve_field_instance from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError from collections.abc import Mapping as _Mapping import collections import copy class Mapping(Field): """An abstract class for objects with key-value pai...
class Mapping(Field): '''An abstract class for objects with key-value pairs. :param keys: A field class or instance for dict keys. :param values: A field class or instance for dict values. :param kwargs: The same keyword arguments that :class:`Field` receives. .. note:: When the structure o...
5
1
27
3
24
1
8
0.14
1
6
3
1
4
4
4
47
131
20
97
28
87
14
79
21
74
14
6
4
32
12,472
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Method
from . import class_registry, types, utils, validate from .utils import missing as missing_ class Method(Field): """A field that takes the value returned by a `Schema` method. :param str serialize: The name of the Schema method from which to retrieve the value. The method must take an argument ``obj``...
class Method(Field): '''A field that takes the value returned by a `Schema` method. :param str serialize: The name of the Schema method from which to retrieve the value. The method must take an argument ``obj`` (in addition to self) that is the object to be serialized. :param str deserializ...
5
1
9
1
8
0
2
0.48
1
3
0
0
4
4
4
47
60
11
33
15
23
16
24
10
19
3
6
1
8
12,473
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.NaiveDateTime
import datetime as dt from .utils import is_aware, is_collection, resolve_field_instance class NaiveDateTime(DateTime): """A formatted naive datetime string. :param format: See :class:`DateTime`. :param timezone: Used on deserialization. If `None`, aware datetimes are rejected. If not `None`, awar...
class NaiveDateTime(DateTime): '''A formatted naive datetime string. :param format: See :class:`DateTime`. :param timezone: Used on deserialization. If `None`, aware datetimes are rejected. If not `None`, aware datetimes are converted to this timezone before their timezone information is ...
3
1
10
0
10
0
2
0.41
1
4
0
0
2
1
2
50
36
5
22
12
13
9
12
6
9
3
7
2
4
12,474
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Nested
import copy from .warnings import RemovedInMarshmallow4Warning import typing from .base import FieldABC, SchemaABC from .utils import is_aware, is_collection, resolve_field_instance from .utils import missing as missing_ from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError fro...
null
9
3
19
1
15
3
3
0.48
1
14
5
1
7
6
7
50
186
24
111
43
86
53
67
26
58
11
6
4
23
12,475
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Number
import typing class Number(Field): """Base class for number fields. :param bool as_string: If `True`, format the serialized value as a string. :param kwargs: The same keyword arguments that :class:`Field` receives. """ num_type = float default_error_messages = {'invalid': 'Not a valid number.'...
class Number(Field): '''Base class for number fields. :param bool as_string: If `True`, format the serialized value as a string. :param kwargs: The same keyword arguments that :class:`Field` receives. ''' def __init__(self, *, as_string: bool=False, **kwargs): pass def _format_num...
7
4
5
0
4
1
2
0.35
1
7
0
3
6
1
6
49
49
9
31
12
24
11
28
11
21
5
6
1
12
12,476
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Pluck
from .base import FieldABC, SchemaABC import typing from . import class_registry, types, utils, validate class Pluck(Nested): """Allows you to replace nested data with one of the data's fields. Example: :: from . import Schema, fields class ArtistSchema(Schema): id = fields.Int(...
class Pluck(Nested): '''Allows you to replace nested data with one of the data's fields. Example: :: from . import Schema, fields class ArtistSchema(Schema): id = fields.Int() name = fields.Str() class AlbumSchema(Schema): artist = fields.Pluck(Arti...
6
1
6
0
6
0
2
0.59
1
3
1
0
4
1
4
54
56
13
27
14
16
16
20
8
15
3
7
1
7
12,477
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Raw
class Raw(Field): """Field that applies no formatting."""
class Raw(Field): '''Field that applies no formatting.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
43
2
0
1
1
0
1
1
1
0
0
6
0
0
12,478
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.String
from . import class_registry, types, utils, validate import typing class String(Field): """A string field. :param kwargs: The same keyword arguments that :class:`Field` receives. """ default_error_messages = {'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'} def _seri...
class String(Field): '''A string field. :param kwargs: The same keyword arguments that :class:`Field` receives. ''' def _serialize(self, value, attr, obj, **kwargs) -> str | None: pass def _deserialize(self, value, attr, data, **kwargs) -> typing.Any: pass
3
1
6
0
6
0
3
0.25
1
4
0
3
2
0
2
45
24
4
16
5
13
4
13
4
10
3
6
1
5
12,479
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Time
from . import class_registry, types, utils, validate import datetime as dt class Time(DateTime): """A formatted time string. Example: ``'03:12:58.019077'`` :param format: Either ``"iso"`` (for ISO8601) or a date format string. If `None`, defaults to "iso". :param kwargs: The same keyword argu...
class Time(DateTime): '''A formatted time string. Example: ``'03:12:58.019077'`` :param format: Either ``"iso"`` (for ISO8601) or a date format string. If `None`, defaults to "iso". :param kwargs: The same keyword arguments that :class:`Field` receives. ''' @staticmethod def _ma...
3
1
2
0
2
0
1
0.67
1
1
0
0
0
0
1
49
23
8
9
8
6
6
8
7
6
1
7
0
1
12,480
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.TimeDelta
from . import class_registry, types, utils, validate import datetime as dt class TimeDelta(Field): """A field that (de)serializes a :class:`datetime.timedelta` object to an integer or float and vice versa. The integer or float can represent the number of days, seconds or microseconds. :param precision...
class TimeDelta(Field): '''A field that (de)serializes a :class:`datetime.timedelta` object to an integer or float and vice versa. The integer or float can represent the number of days, seconds or microseconds. :param precision: Influences how the integer or float is interpreted during (de)seri...
4
1
18
2
15
0
3
0.47
1
8
0
0
3
2
3
46
102
17
58
25
49
27
40
19
36
3
6
1
9
12,481
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Tuple
import copy from .validate import And, Length from .utils import is_aware, is_collection, resolve_field_instance from . import class_registry, types, utils, validate from .exceptions import FieldInstanceResolutionError, StringNotCollectionError, ValidationError class Tuple(Field): """A tuple field, composed of a f...
class Tuple(Field): '''A tuple field, composed of a fixed number of other `Field` classes or instances Example: :: row = Tuple((fields.String(), fields.Integer(), fields.Float())) .. note:: Because of the structured nature of `collections.namedtuple` and `typing.NamedTuple`, usi...
5
1
14
2
12
0
3
0.28
1
8
3
0
4
2
4
47
82
18
50
15
45
14
39
13
34
6
6
3
13
12,482
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.UUID
import uuid class UUID(String): """A UUID field.""" default_error_messages = {'invalid_uuid': 'Not a valid UUID.'} def _validated(self, value) -> uuid.UUID | None: """Format the value or raise a :exc:`ValidationError` if an error occurs.""" if value is None: return None ...
class UUID(String): '''A UUID field.''' def _validated(self, value) -> uuid.UUID | None: '''Format the value or raise a :exc:`ValidationError` if an error occurs.''' pass def _deserialize(self, value, attr, data, **kwargs) -> uuid.UUID | None: pass
3
2
7
0
7
1
3
0.2
1
5
0
0
2
0
2
47
21
3
15
5
12
3
15
4
12
5
7
2
6
12,483
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/fields.py
ccxt.static_dependencies.marshmallow.fields.Url
from . import class_registry, types, utils, validate class Url(String): """An URL field. :param default: Default value for the field if the attribute is not set. :param relative: Whether to allow relative URLs. :param require_tld: Whether to reject non-FQDN hostnames. :param schemes: Valid schemes...
class Url(String): '''An URL field. :param default: Default value for the field if the attribute is not set. :param relative: Whether to allow relative URLs. :param require_tld: Whether to reject non-FQDN hostnames. :param schemes: Valid schemes. By default, ``http``, ``https``, ``ftp``, an...
2
1
23
1
21
1
1
0.43
1
3
1
0
1
3
1
46
37
4
23
15
13
10
9
7
7
1
7
0
1
12,484
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/orderedset.py
ccxt.static_dependencies.marshmallow.orderedset.OrderedSet
from collections.abc import MutableSet class OrderedSet(MutableSet): def __init__(self, iterable=None): self.end = end = [] end += [None, end, end] self.map = {} if iterable is not None: self |= iterable def __len__(self): return len(self.map) def __co...
class OrderedSet(MutableSet): def __init__(self, iterable=None): pass def __len__(self): pass def __contains__(self, key): pass def add(self, key): pass def discard(self, key): pass def __iter__(self): pass def __reversed__(self): ...
11
0
5
0
5
0
2
0.04
1
3
0
0
10
2
10
59
56
9
47
21
36
2
47
21
36
3
7
1
19
12,485
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/schema.py
ccxt.static_dependencies.marshmallow.schema.Schema
from .orderedset import OrderedSet from collections import OrderedDict, defaultdict import copy from . import base, class_registry, types import decimal import typing from . import fields as ma_fields from .utils import EXCLUDE, INCLUDE, RAISE, get_value, is_collection, is_instance_or_subclass, missing, set_value, vali...
null
33
19
30
2
21
7
4
0.47
2
20
6
0
25
13
27
55
995
101
620
241
477
290
309
122
279
18
5
5
113
12,486
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/schema.py
ccxt.static_dependencies.marshmallow.schema.SchemaMeta
from abc import ABCMeta from . import base, class_registry, types import inspect from collections import OrderedDict, defaultdict class SchemaMeta(ABCMeta): """Metaclass for the Schema class. Binds the declared fields to a ``_declared_fields`` attribute, which is a dictionary mapping attribute names to fie...
class SchemaMeta(ABCMeta): '''Metaclass for the Schema class. Binds the declared fields to a ``_declared_fields`` attribute, which is a dictionary mapping attribute names to field objects. Also sets the ``opts`` class attribute, which is the Schema class's ``class Meta`` options. ''' def _...
6
3
25
2
15
8
3
0.61
1
6
0
1
3
0
4
24
109
12
61
26
49
37
49
19
44
6
3
3
13
12,487
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/schema.py
ccxt.static_dependencies.marshmallow.schema.SchemaOpts
import warnings import json from .utils import EXCLUDE, INCLUDE, RAISE, get_value, is_collection, is_instance_or_subclass, missing, set_value, validate_unknown_parameter_value from .warnings import RemovedInMarshmallow4Warning class SchemaOpts: """class Meta options for the :class:`Schema`. Defines defaults.""" ...
class SchemaOpts: '''class Meta options for the :class:`Schema`. Defines defaults.''' def __init__(self, meta, ordered: bool=False): pass
2
1
35
0
35
0
6
0.03
0
5
1
0
1
14
1
1
38
1
36
17
34
1
28
17
26
6
0
1
6
12,488
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/utils.py
ccxt.static_dependencies.marshmallow.utils._Missing
class _Missing: def __bool__(self): return False def __copy__(self): return self def __deepcopy__(self, _): return self def __repr__(self): return '<marshmallow.missing>'
class _Missing: def __bool__(self): pass def __copy__(self): pass def __deepcopy__(self, _): pass def __repr__(self): pass
5
0
2
0
2
0
1
0
0
0
0
0
4
0
4
4
12
3
9
5
4
0
9
5
4
1
0
0
4
12,489
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.And
from . import types import typing from .exceptions import ValidationError class And(Validator): """Compose multiple validators and combine their error messages. Example: :: from . import validate, ValidationError def is_even(value): if value % 2 != 0: raise Valid...
class And(Validator): '''Compose multiple validators and combine their error messages. Example: :: from . import validate, ValidationError def is_even(value): if value % 2 != 0: raise ValidationError("Not an even value.") validator = validate.And(validate.R...
4
1
8
0
7
1
3
0.58
1
6
1
0
3
2
3
26
48
11
24
12
20
14
23
11
19
6
5
3
8
12,490
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.ContainsNoneOf
from .exceptions import ValidationError import typing class ContainsNoneOf(NoneOf): """Validator which fails if ``value`` is a sequence and any element in the sequence is a member of the sequence passed as ``iterable``. Empty input is considered valid. :param iterable iterable: Same as :class:`NoneOf`...
class ContainsNoneOf(NoneOf): '''Validator which fails if ``value`` is a sequence and any element in the sequence is a member of the sequence passed as ``iterable``. Empty input is considered valid. :param iterable iterable: Same as :class:`NoneOf`. :param str error: Same as :class:`NoneOf`. .....
3
1
4
0
4
0
2
0.7
1
3
1
0
2
0
2
29
22
5
10
6
7
7
10
6
7
3
6
2
4
12,491
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.ContainsOnly
from .exceptions import ValidationError import typing class ContainsOnly(OneOf): """Validator which succeeds if ``value`` is a sequence and each element in the sequence is also in the sequence passed as ``choices``. Empty input is considered valid. :param iterable choices: Same as :class:`OneOf`. ...
class ContainsOnly(OneOf): '''Validator which succeeds if ``value`` is a sequence and each element in the sequence is also in the sequence passed as ``choices``. Empty input is considered valid. :param iterable choices: Same as :class:`OneOf`. :param iterable labels: Same as :class:`OneOf`. :pa...
3
1
5
0
4
1
2
1.3
1
3
1
0
2
0
2
30
28
5
10
6
7
13
10
6
7
3
6
2
4
12,492
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Email
from .exceptions import ValidationError import re class Email(Validator): """Validate an email address. :param error: Error message to raise in case of a validation error. Can be interpolated with `{input}`. """ USER_REGEX = re.compile('(^[-!#$%&\'*+/=?^`{}|~\\w]+(\\.[-!#$%&\'*+/=?^`{}|~\\w]+)...
class Email(Validator): '''Validate an email address. :param error: Error message to raise in case of a validation error. Can be interpolated with `{input}`. ''' def __init__(self, *, error: str | None=None): pass def _format_error(self, value: str) -> str: pass def _...
4
1
9
2
7
0
3
0.26
1
3
1
0
3
1
3
26
58
13
38
11
34
10
27
11
23
7
5
4
9
12,493
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Equal
from .exceptions import ValidationError class Equal(Validator): """Validator which succeeds if the ``value`` passed to it is equal to ``comparable``. :param comparable: The object to compare to. :param error: Error message to raise in case of a validation error. Can be interpolated with `{inpu...
class Equal(Validator): '''Validator which succeeds if the ``value`` passed to it is equal to ``comparable``. :param comparable: The object to compare to. :param error: Error message to raise in case of a validation error. Can be interpolated with `{input}` and `{other}`. ''' def __ini...
5
1
3
0
3
0
1
0.54
1
2
1
0
4
2
4
27
25
6
13
8
8
7
13
8
8
2
5
1
5
12,494
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Length
from .exceptions import ValidationError import typing class Length(Validator): """Validator which succeeds if the value passed to it has a length between a minimum and maximum. Uses len(), so it can work for strings, lists, or anything with length. :param min: The minimum length. If not provided, mini...
class Length(Validator): '''Validator which succeeds if the value passed to it has a length between a minimum and maximum. Uses len(), so it can work for strings, lists, or anything with length. :param min: The minimum length. If not provided, minimum length will not be checked. :param max:...
5
1
10
1
9
0
3
0.29
1
4
1
0
4
4
4
27
64
11
41
22
29
12
29
15
24
7
5
2
11
12,495
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.NoneOf
from .exceptions import ValidationError import typing class NoneOf(Validator): """Validator which fails if ``value`` is a member of ``iterable``. :param iterable: A sequence of invalid values. :param error: Error message to raise in case of a validation error. Can be interpolated using `{input}` a...
class NoneOf(Validator): '''Validator which fails if ``value`` is a member of ``iterable``. :param iterable: A sequence of invalid values. :param error: Error message to raise in case of a validation error. Can be interpolated using `{input}` and `{values}`. ''' def __init__(self, iterable...
5
1
4
0
4
0
2
0.35
1
4
1
1
4
3
4
27
29
7
17
9
12
6
17
9
12
3
5
2
6
12,496
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.OneOf
import typing from .exceptions import ValidationError from itertools import zip_longest from operator import attrgetter class OneOf(Validator): """Validator which succeeds if ``value`` is a member of ``choices``. :param choices: A sequence of valid values. :param labels: Optional sequence of labels to pai...
class OneOf(Validator): '''Validator which succeeds if ``value`` is a member of ``choices``. :param choices: A sequence of valid values. :param labels: Optional sequence of labels to pair with the choices. :param error: Error message to raise in case of a validation error. Can be interpolated w...
6
2
9
1
6
2
2
0.47
1
6
1
1
5
5
5
28
59
10
34
23
19
16
23
13
17
3
5
2
9
12,497
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Predicate
from .exceptions import ValidationError import typing class Predicate(Validator): """Call the specified ``method`` of the ``value`` object. The validator succeeds if the invoked method returns an object that evaluates to True in a Boolean context. Any additional keyword argument will be passed to the m...
class Predicate(Validator): '''Call the specified ``method`` of the ``value`` object. The validator succeeds if the invoked method returns an object that evaluates to True in a Boolean context. Any additional keyword argument will be passed to the method. :param method: The name of the method to in...
5
1
4
1
3
0
1
0.67
1
3
1
0
4
3
4
27
32
8
15
10
10
10
15
10
10
2
5
1
5
12,498
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Range
from .exceptions import ValidationError class Range(Validator): """Validator which succeeds if the value passed to it is within the specified range. If ``min`` is not specified, or is specified as `None`, no lower bound exists. If ``max`` is not specified, or is specified as `None`, no upper bound exis...
class Range(Validator): '''Validator which succeeds if the value passed to it is within the specified range. If ``min`` is not specified, or is specified as `None`, no lower bound exists. If ``max`` is not specified, or is specified as `None`, no upper bound exists. The inclusivity of the bounds (if th...
5
1
11
1
10
0
4
0.35
1
3
1
0
4
5
4
27
75
10
48
26
35
17
29
18
24
7
5
1
14
12,499
ccxt/ccxt
python/ccxt/static_dependencies/marshmallow/validate.py
ccxt.static_dependencies.marshmallow.validate.Regexp
from .exceptions import ValidationError import re import typing class Regexp(Validator): """Validator which succeeds if the ``value`` matches ``regex``. .. note:: Uses `re.match`, which searches for a match at the beginning of a string. :param regex: The regular expression string to use. Can als...
class Regexp(Validator): '''Validator which succeeds if the ``value`` matches ``regex``. .. note:: Uses `re.match`, which searches for a match at the beginning of a string. :param regex: The regular expression string to use. Can also be a compiled regular expression pattern. :param flag...
9
1
4
0
4
0
1
0.44
1
4
1
0
6
2
6
29
46
11
25
18
12
11
17
10
10
2
5
1
8