@enjoys/context-engine 1.0.0 → 1.0.2
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.
- package/data/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/btop.json +59 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/htop.json +56 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/linux.json +3007 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/nvim.json +91 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/screen.json +101 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/top.json +61 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vim.json +85 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "python",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"str": {
|
|
5
|
+
"signature": "class str(object='') / class str(object=b'', encoding='utf-8', errors='strict')",
|
|
6
|
+
"description": "Immutable sequence of Unicode code points. The standard text sequence type in Python.",
|
|
7
|
+
"type": "class",
|
|
8
|
+
"module": "builtins",
|
|
9
|
+
"members": {
|
|
10
|
+
"format": { "signature": "str.format(*args, **kwargs) -> str", "description": "Perform a string formatting operation. The string on which this method is called can contain literal text or replacement fields delimited by braces {}.", "type": "method" },
|
|
11
|
+
"join": { "signature": "str.join(iterable) -> str", "description": "Return a string which is the concatenation of the strings in iterable, separated by the string providing this method.", "type": "method" },
|
|
12
|
+
"split": { "signature": "str.split(sep=None, maxsplit=-1) -> list[str]", "description": "Return a list of the words in the string, using sep as the delimiter string. If sep is None, splits on whitespace.", "type": "method" },
|
|
13
|
+
"rsplit": { "signature": "str.rsplit(sep=None, maxsplit=-1) -> list[str]", "description": "Return a list of the words in the string, splitting from the right.", "type": "method" },
|
|
14
|
+
"strip": { "signature": "str.strip(chars=None) -> str", "description": "Return a copy with leading and trailing characters removed.", "type": "method" },
|
|
15
|
+
"lstrip": { "signature": "str.lstrip(chars=None) -> str", "description": "Return a copy with leading characters removed.", "type": "method" },
|
|
16
|
+
"rstrip": { "signature": "str.rstrip(chars=None) -> str", "description": "Return a copy with trailing characters removed.", "type": "method" },
|
|
17
|
+
"replace": { "signature": "str.replace(old, new, count=-1) -> str", "description": "Return a copy with all occurrences of substring old replaced by new. If count is given, only the first count occurrences are replaced.", "type": "method" },
|
|
18
|
+
"find": { "signature": "str.find(sub, start=0, end=len(str)) -> int", "description": "Return the lowest index where substring sub is found within the slice s[start:end]. Return -1 if not found.", "type": "method" },
|
|
19
|
+
"rfind": { "signature": "str.rfind(sub, start=0, end=len(str)) -> int", "description": "Return the highest index where substring sub is found. Return -1 if not found.", "type": "method" },
|
|
20
|
+
"index": { "signature": "str.index(sub, start=0, end=len(str)) -> int", "description": "Like find(), but raise ValueError when the substring is not found.", "type": "method" },
|
|
21
|
+
"count": { "signature": "str.count(sub, start=0, end=len(str)) -> int", "description": "Return the number of non-overlapping occurrences of substring sub.", "type": "method" },
|
|
22
|
+
"startswith": { "signature": "str.startswith(prefix, start=0, end=len(str)) -> bool", "description": "Return True if string starts with the prefix, otherwise return False. prefix can be a tuple of prefixes to look for.", "type": "method" },
|
|
23
|
+
"endswith": { "signature": "str.endswith(suffix, start=0, end=len(str)) -> bool", "description": "Return True if the string ends with the specified suffix, otherwise return False. suffix can be a tuple.", "type": "method" },
|
|
24
|
+
"upper": { "signature": "str.upper() -> str", "description": "Return a copy with all cased characters converted to uppercase.", "type": "method" },
|
|
25
|
+
"lower": { "signature": "str.lower() -> str", "description": "Return a copy with all cased characters converted to lowercase.", "type": "method" },
|
|
26
|
+
"title": { "signature": "str.title() -> str", "description": "Return a titlecased version of the string where words start with an upper case character.", "type": "method" },
|
|
27
|
+
"capitalize": { "signature": "str.capitalize() -> str", "description": "Return a copy with its first character capitalized and the rest lowercased.", "type": "method" },
|
|
28
|
+
"casefold": { "signature": "str.casefold() -> str", "description": "Return a casefolded copy of the string. Used for caseless matching.", "type": "method" },
|
|
29
|
+
"swapcase": { "signature": "str.swapcase() -> str", "description": "Return a copy with uppercase characters converted to lowercase and vice versa.", "type": "method" },
|
|
30
|
+
"encode": { "signature": "str.encode(encoding='utf-8', errors='strict') -> bytes", "description": "Return the string encoded to bytes using the specified encoding.", "type": "method" },
|
|
31
|
+
"isdigit": { "signature": "str.isdigit() -> bool", "description": "Return True if all characters in the string are digits.", "type": "method" },
|
|
32
|
+
"isalpha": { "signature": "str.isalpha() -> bool", "description": "Return True if all characters in the string are alphabetic.", "type": "method" },
|
|
33
|
+
"isalnum": { "signature": "str.isalnum() -> bool", "description": "Return True if all characters in the string are alphanumeric.", "type": "method" },
|
|
34
|
+
"isspace": { "signature": "str.isspace() -> bool", "description": "Return True if all characters are whitespace.", "type": "method" },
|
|
35
|
+
"isupper": { "signature": "str.isupper() -> bool", "description": "Return True if all cased characters are uppercase.", "type": "method" },
|
|
36
|
+
"islower": { "signature": "str.islower() -> bool", "description": "Return True if all cased characters are lowercase.", "type": "method" },
|
|
37
|
+
"zfill": { "signature": "str.zfill(width) -> str", "description": "Pad a numeric string on the left with zeros to fill a field of the given width.", "type": "method" },
|
|
38
|
+
"center": { "signature": "str.center(width, fillchar=' ') -> str", "description": "Return centered in a string of the given width, padded with fillchar.", "type": "method" },
|
|
39
|
+
"ljust": { "signature": "str.ljust(width, fillchar=' ') -> str", "description": "Return left-justified in a string of the given width.", "type": "method" },
|
|
40
|
+
"rjust": { "signature": "str.rjust(width, fillchar=' ') -> str", "description": "Return right-justified in a string of the given width.", "type": "method" },
|
|
41
|
+
"partition": { "signature": "str.partition(sep) -> tuple[str, str, str]", "description": "Split the string at the first occurrence of sep. Returns (before, sep, after) or (str, '', '') if sep not found.", "type": "method" },
|
|
42
|
+
"rpartition": { "signature": "str.rpartition(sep) -> tuple[str, str, str]", "description": "Split the string at the last occurrence of sep.", "type": "method" },
|
|
43
|
+
"removeprefix": { "signature": "str.removeprefix(prefix) -> str", "description": "If the string starts with prefix, return string[len(prefix):]. Otherwise return the original string. (3.9+)", "type": "method" },
|
|
44
|
+
"removesuffix": { "signature": "str.removesuffix(suffix) -> str", "description": "If the string ends with suffix, return string[:-len(suffix)]. Otherwise return the original string. (3.9+)", "type": "method" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"list": {
|
|
48
|
+
"signature": "class list(iterable=())",
|
|
49
|
+
"description": "Mutable sequence type. Lists may be constructed with square brackets, the list() constructor, or list comprehensions.",
|
|
50
|
+
"type": "class",
|
|
51
|
+
"module": "builtins",
|
|
52
|
+
"members": {
|
|
53
|
+
"append": { "signature": "list.append(object) -> None", "description": "Append object to the end of the list.", "type": "method" },
|
|
54
|
+
"extend": { "signature": "list.extend(iterable) -> None", "description": "Extend list by appending elements from the iterable.", "type": "method" },
|
|
55
|
+
"insert": { "signature": "list.insert(index, object) -> None", "description": "Insert object before index.", "type": "method" },
|
|
56
|
+
"remove": { "signature": "list.remove(value) -> None", "description": "Remove first occurrence of value. Raises ValueError if the value is not present.", "type": "method" },
|
|
57
|
+
"pop": { "signature": "list.pop(index=-1) -> T", "description": "Remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.", "type": "method" },
|
|
58
|
+
"clear": { "signature": "list.clear() -> None", "description": "Remove all items from the list.", "type": "method" },
|
|
59
|
+
"index": { "signature": "list.index(value, start=0, stop=len(list)) -> int", "description": "Return first index of value. Raises ValueError if the value is not present.", "type": "method" },
|
|
60
|
+
"count": { "signature": "list.count(value) -> int", "description": "Return number of occurrences of value.", "type": "method" },
|
|
61
|
+
"sort": { "signature": "list.sort(*, key=None, reverse=False) -> None", "description": "Sort the list in ascending order and return None. The sort is stable. key specifies a function of one argument used to extract a comparison key.", "type": "method" },
|
|
62
|
+
"reverse": { "signature": "list.reverse() -> None", "description": "Reverse the elements of the list in place.", "type": "method" },
|
|
63
|
+
"copy": { "signature": "list.copy() -> list", "description": "Return a shallow copy of the list.", "type": "method" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"dict": {
|
|
67
|
+
"signature": "class dict(**kwargs) / class dict(mapping, **kwargs) / class dict(iterable, **kwargs)",
|
|
68
|
+
"description": "Mutable mapping type. Dictionaries map hashable keys to arbitrary values. Preserves insertion order (guaranteed since 3.7).",
|
|
69
|
+
"type": "class",
|
|
70
|
+
"module": "builtins",
|
|
71
|
+
"members": {
|
|
72
|
+
"get": { "signature": "dict.get(key, default=None) -> V | None", "description": "Return the value for key if key is in the dictionary, else default.", "type": "method" },
|
|
73
|
+
"keys": { "signature": "dict.keys() -> dict_keys", "description": "Return a view object of the dictionary's keys.", "type": "method" },
|
|
74
|
+
"values": { "signature": "dict.values() -> dict_values", "description": "Return a view object of the dictionary's values.", "type": "method" },
|
|
75
|
+
"items": { "signature": "dict.items() -> dict_items", "description": "Return a view object of the dictionary's (key, value) pairs.", "type": "method" },
|
|
76
|
+
"update": { "signature": "dict.update([other], **kwargs) -> None", "description": "Update the dictionary with key/value pairs from other dict or iterable of key/value pairs.", "type": "method" },
|
|
77
|
+
"pop": { "signature": "dict.pop(key, default=...) -> V", "description": "Remove specified key and return the corresponding value. If key is not found, default is returned if given, otherwise KeyError is raised.", "type": "method" },
|
|
78
|
+
"popitem": { "signature": "dict.popitem() -> tuple[K, V]", "description": "Remove and return the last inserted (key, value) pair. Raises KeyError if the dict is empty.", "type": "method" },
|
|
79
|
+
"setdefault": { "signature": "dict.setdefault(key, default=None) -> V", "description": "If key is in the dictionary, return its value. If not, insert key with a value of default and return default.", "type": "method" },
|
|
80
|
+
"clear": { "signature": "dict.clear() -> None", "description": "Remove all items from the dictionary.", "type": "method" },
|
|
81
|
+
"copy": { "signature": "dict.copy() -> dict", "description": "Return a shallow copy of the dictionary.", "type": "method" },
|
|
82
|
+
"fromkeys": { "signature": "dict.fromkeys(iterable, value=None) -> dict", "description": "Create a new dictionary with keys from iterable and values set to value.", "type": "static method" }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"set": {
|
|
86
|
+
"signature": "class set(iterable=())",
|
|
87
|
+
"description": "Mutable unordered collection of unique hashable elements. Supports mathematical set operations: union, intersection, difference, symmetric difference.",
|
|
88
|
+
"type": "class",
|
|
89
|
+
"module": "builtins",
|
|
90
|
+
"members": {
|
|
91
|
+
"add": { "signature": "set.add(elem) -> None", "description": "Add element elem to the set.", "type": "method" },
|
|
92
|
+
"remove": { "signature": "set.remove(elem) -> None", "description": "Remove element elem from the set. Raises KeyError if elem is not contained.", "type": "method" },
|
|
93
|
+
"discard": { "signature": "set.discard(elem) -> None", "description": "Remove element elem from the set if it is present. Does not raise an error if absent.", "type": "method" },
|
|
94
|
+
"pop": { "signature": "set.pop() -> T", "description": "Remove and return an arbitrary element. Raises KeyError if the set is empty.", "type": "method" },
|
|
95
|
+
"clear": { "signature": "set.clear() -> None", "description": "Remove all elements from the set.", "type": "method" },
|
|
96
|
+
"update": { "signature": "set.update(*others) -> None", "description": "Update the set, adding elements from all others. Equivalent to s |= other.", "type": "method" },
|
|
97
|
+
"union": { "signature": "set.union(*others) -> set", "description": "Return a new set with elements from the set and all others. Equivalent to s | other.", "type": "method" },
|
|
98
|
+
"intersection": { "signature": "set.intersection(*others) -> set", "description": "Return a new set with elements common to the set and all others. Equivalent to s & other.", "type": "method" },
|
|
99
|
+
"intersection_update": { "signature": "set.intersection_update(*others) -> None", "description": "Update the set, keeping only elements found in it and all others. Equivalent to s &= other.", "type": "method" },
|
|
100
|
+
"difference": { "signature": "set.difference(*others) -> set", "description": "Return a new set with elements in the set that are not in the others. Equivalent to s - other.", "type": "method" },
|
|
101
|
+
"difference_update": { "signature": "set.difference_update(*others) -> None", "description": "Remove all elements of other sets from this set. Equivalent to s -= other.", "type": "method" },
|
|
102
|
+
"symmetric_difference": { "signature": "set.symmetric_difference(other) -> set", "description": "Return a new set with elements in either the set or other but not both. Equivalent to s ^ other.", "type": "method" },
|
|
103
|
+
"issubset": { "signature": "set.issubset(other) -> bool", "description": "Test whether every element in the set is in other. Equivalent to s <= other.", "type": "method" },
|
|
104
|
+
"issuperset": { "signature": "set.issuperset(other) -> bool", "description": "Test whether every element in other is in the set. Equivalent to s >= other.", "type": "method" },
|
|
105
|
+
"isdisjoint": { "signature": "set.isdisjoint(other) -> bool", "description": "Return True if the set has no elements in common with other.", "type": "method" },
|
|
106
|
+
"copy": { "signature": "set.copy() -> set", "description": "Return a shallow copy of the set.", "type": "method" }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"tuple": {
|
|
110
|
+
"signature": "class tuple(iterable=())",
|
|
111
|
+
"description": "Immutable sequence type. Tuples are commonly used for heterogeneous data and as dictionary keys (since they are hashable). Support indexing, slicing, packing/unpacking.",
|
|
112
|
+
"type": "class",
|
|
113
|
+
"module": "builtins",
|
|
114
|
+
"members": {
|
|
115
|
+
"count": { "signature": "tuple.count(value) -> int", "description": "Return number of occurrences of value.", "type": "method" },
|
|
116
|
+
"index": { "signature": "tuple.index(value, start=0, stop=len(tuple)) -> int", "description": "Return first index of value. Raises ValueError if the value is not present.", "type": "method" }
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"int": {
|
|
120
|
+
"signature": "class int(x=0) / class int(x: str, base=10)",
|
|
121
|
+
"description": "Immutable arbitrary-precision integer type. Supports standard arithmetic, comparison, bitwise operations, and conversions.",
|
|
122
|
+
"type": "class",
|
|
123
|
+
"module": "builtins",
|
|
124
|
+
"members": {
|
|
125
|
+
"bit_length": { "signature": "int.bit_length() -> int", "description": "Return the number of bits necessary to represent the integer in binary, excluding the sign and leading zeros.", "type": "method" },
|
|
126
|
+
"bit_count": { "signature": "int.bit_count() -> int", "description": "Return the number of ones in the binary representation (popcount). (3.10+)", "type": "method" },
|
|
127
|
+
"to_bytes": { "signature": "int.to_bytes(length=1, byteorder='big', *, signed=False) -> bytes", "description": "Return an array of bytes representing the integer.", "type": "method" },
|
|
128
|
+
"from_bytes": { "signature": "int.from_bytes(bytes, byteorder='big', *, signed=False) -> int", "description": "Return the integer represented by the given array of bytes.", "type": "static method" },
|
|
129
|
+
"conjugate": { "signature": "int.conjugate() -> int", "description": "Returns self. Exists for compatibility with complex numbers.", "type": "method" },
|
|
130
|
+
"real": { "signature": "int.real -> int", "description": "The real part of the number (itself).", "type": "property" },
|
|
131
|
+
"imag": { "signature": "int.imag -> int", "description": "The imaginary part of the number (always 0).", "type": "property" }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"float": {
|
|
135
|
+
"signature": "class float(x=0.0)",
|
|
136
|
+
"description": "Immutable floating-point number implemented using C double (IEEE 754 double precision, 64-bit).",
|
|
137
|
+
"type": "class",
|
|
138
|
+
"module": "builtins",
|
|
139
|
+
"members": {
|
|
140
|
+
"is_integer": { "signature": "float.is_integer() -> bool", "description": "Return True if the float instance is finite with integral value.", "type": "method" },
|
|
141
|
+
"hex": { "signature": "float.hex() -> str", "description": "Return a representation of a float as a hexadecimal string.", "type": "method" },
|
|
142
|
+
"fromhex": { "signature": "float.fromhex(s: str) -> float", "description": "Class method to return a float from a hexadecimal string.", "type": "static method" },
|
|
143
|
+
"as_integer_ratio": { "signature": "float.as_integer_ratio() -> tuple[int, int]", "description": "Return a pair of integers whose ratio is exactly equal to the float.", "type": "method" },
|
|
144
|
+
"conjugate": { "signature": "float.conjugate() -> float", "description": "Returns self. Exists for compatibility with complex numbers.", "type": "method" },
|
|
145
|
+
"real": { "signature": "float.real -> float", "description": "The real part of the number (itself).", "type": "property" },
|
|
146
|
+
"imag": { "signature": "float.imag -> float", "description": "The imaginary part of the number (always 0.0).", "type": "property" }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"bool": {
|
|
150
|
+
"signature": "class bool(x=False)",
|
|
151
|
+
"description": "Subclass of int with exactly two instances: True (== 1) and False (== 0). Falsy values: None, 0, '', [], {}, set(), b''.",
|
|
152
|
+
"type": "class",
|
|
153
|
+
"module": "builtins",
|
|
154
|
+
"members": {}
|
|
155
|
+
},
|
|
156
|
+
"bytes": {
|
|
157
|
+
"signature": "class bytes(source=b'') / class bytes(source: str, encoding: str) / class bytes(length: int)",
|
|
158
|
+
"description": "Immutable sequence of bytes (integers in range 0-255). Supports many str-like methods.",
|
|
159
|
+
"type": "class",
|
|
160
|
+
"module": "builtins",
|
|
161
|
+
"members": {
|
|
162
|
+
"decode": { "signature": "bytes.decode(encoding='utf-8', errors='strict') -> str", "description": "Decode the bytes using the given encoding and return the resulting string.", "type": "method" },
|
|
163
|
+
"hex": { "signature": "bytes.hex(sep=None, bytes_per_sep=1) -> str", "description": "Return a string containing two hexadecimal digits per byte.", "type": "method" },
|
|
164
|
+
"fromhex": { "signature": "bytes.fromhex(string) -> bytes", "description": "Create a bytes object from a string of hexadecimal digits.", "type": "static method" },
|
|
165
|
+
"split": { "signature": "bytes.split(sep=None, maxsplit=-1) -> list[bytes]", "description": "Return a list of the sections in the bytes, using sep as the delimiter.", "type": "method" },
|
|
166
|
+
"join": { "signature": "bytes.join(iterable) -> bytes", "description": "Concatenate bytes objects from the iterable, separated by this bytes object.", "type": "method" },
|
|
167
|
+
"replace": { "signature": "bytes.replace(old, new, count=-1) -> bytes", "description": "Return a copy with all occurrences of old replaced by new.", "type": "method" },
|
|
168
|
+
"startswith": { "signature": "bytes.startswith(prefix, start=0, end=len) -> bool", "description": "Return True if bytes starts with the prefix.", "type": "method" },
|
|
169
|
+
"endswith": { "signature": "bytes.endswith(suffix, start=0, end=len) -> bool", "description": "Return True if bytes ends with the suffix.", "type": "method" },
|
|
170
|
+
"find": { "signature": "bytes.find(sub, start=0, end=len) -> int", "description": "Return the lowest index where sub is found, or -1.", "type": "method" },
|
|
171
|
+
"strip": { "signature": "bytes.strip(bytes=None) -> bytes", "description": "Strip leading and trailing bytes.", "type": "method" },
|
|
172
|
+
"count": { "signature": "bytes.count(sub, start=0, end=len) -> int", "description": "Return the number of non-overlapping occurrences of sub.", "type": "method" }
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"range": {
|
|
176
|
+
"signature": "class range(stop) / class range(start, stop, step=1)",
|
|
177
|
+
"description": "Immutable sequence of numbers. Commonly used for looping a specific number of times in for loops. Memory efficient: only stores start, stop, step regardless of range size.",
|
|
178
|
+
"type": "class",
|
|
179
|
+
"module": "builtins",
|
|
180
|
+
"members": {
|
|
181
|
+
"start": { "signature": "range.start -> int", "description": "The value of the start parameter (0 if not provided).", "type": "property" },
|
|
182
|
+
"stop": { "signature": "range.stop -> int", "description": "The value of the stop parameter.", "type": "property" },
|
|
183
|
+
"step": { "signature": "range.step -> int", "description": "The value of the step parameter (1 if not provided).", "type": "property" },
|
|
184
|
+
"count": { "signature": "range.count(value) -> int", "description": "Return number of occurrences of value.", "type": "method" },
|
|
185
|
+
"index": { "signature": "range.index(value) -> int", "description": "Return index of value. Raises ValueError if the value is not present.", "type": "method" }
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"frozenset": {
|
|
189
|
+
"signature": "class frozenset(iterable=())",
|
|
190
|
+
"description": "Immutable version of set. Being immutable and hashable, frozensets can be used as dictionary keys or as elements of other sets.",
|
|
191
|
+
"type": "class",
|
|
192
|
+
"module": "builtins",
|
|
193
|
+
"members": {
|
|
194
|
+
"union": { "signature": "frozenset.union(*others) -> frozenset", "description": "Return a new frozenset with elements from the frozenset and all others.", "type": "method" },
|
|
195
|
+
"intersection": { "signature": "frozenset.intersection(*others) -> frozenset", "description": "Return a new frozenset with elements common to the frozenset and all others.", "type": "method" },
|
|
196
|
+
"difference": { "signature": "frozenset.difference(*others) -> frozenset", "description": "Return a new frozenset with elements in the frozenset that are not in the others.", "type": "method" },
|
|
197
|
+
"symmetric_difference": { "signature": "frozenset.symmetric_difference(other) -> frozenset", "description": "Return a new frozenset with elements in either set but not both.", "type": "method" },
|
|
198
|
+
"issubset": { "signature": "frozenset.issubset(other) -> bool", "description": "Test whether every element in the frozenset is in other.", "type": "method" },
|
|
199
|
+
"issuperset": { "signature": "frozenset.issuperset(other) -> bool", "description": "Test whether every element in other is in the frozenset.", "type": "method" },
|
|
200
|
+
"isdisjoint": { "signature": "frozenset.isdisjoint(other) -> bool", "description": "Return True if the frozenset has no elements in common with other.", "type": "method" },
|
|
201
|
+
"copy": { "signature": "frozenset.copy() -> frozenset", "description": "Return a shallow copy of the frozenset.", "type": "method" }
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"print": {
|
|
205
|
+
"signature": "print(*objects, sep=' ', end='\\n', file=sys.stdout, flush=False) -> None",
|
|
206
|
+
"description": "Print objects to the text stream file, separated by sep and followed by end.",
|
|
207
|
+
"type": "function",
|
|
208
|
+
"module": "builtins",
|
|
209
|
+
"parameters": [
|
|
210
|
+
{ "name": "*objects", "type": "Any", "description": "Values to print" },
|
|
211
|
+
{ "name": "sep", "type": "str", "description": "String inserted between values, default a space", "optional": true },
|
|
212
|
+
{ "name": "end", "type": "str", "description": "String appended after the last value, default a newline", "optional": true },
|
|
213
|
+
{ "name": "file", "type": "IO", "description": "A file-like object (stream); defaults to sys.stdout", "optional": true },
|
|
214
|
+
{ "name": "flush", "type": "bool", "description": "Whether to forcibly flush the stream", "optional": true }
|
|
215
|
+
],
|
|
216
|
+
"returns": "None"
|
|
217
|
+
},
|
|
218
|
+
"len": {
|
|
219
|
+
"signature": "len(s) -> int",
|
|
220
|
+
"description": "Return the number of items in a container.",
|
|
221
|
+
"type": "function",
|
|
222
|
+
"module": "builtins",
|
|
223
|
+
"parameters": [
|
|
224
|
+
{ "name": "s", "type": "Sized", "description": "An object with a __len__ method (sequence, mapping, set, etc.)" }
|
|
225
|
+
],
|
|
226
|
+
"returns": "int"
|
|
227
|
+
},
|
|
228
|
+
"enumerate": {
|
|
229
|
+
"signature": "enumerate(iterable, start=0) -> Iterator[tuple[int, T]]",
|
|
230
|
+
"description": "Return an enumerate object. Yields pairs containing a count (from start) and the values obtained from iterating over iterable.",
|
|
231
|
+
"type": "function",
|
|
232
|
+
"module": "builtins",
|
|
233
|
+
"parameters": [
|
|
234
|
+
{ "name": "iterable", "type": "Iterable[T]", "description": "An iterable to enumerate" },
|
|
235
|
+
{ "name": "start", "type": "int", "description": "The starting count value", "optional": true }
|
|
236
|
+
],
|
|
237
|
+
"returns": "Iterator[tuple[int, T]]"
|
|
238
|
+
},
|
|
239
|
+
"zip": {
|
|
240
|
+
"signature": "zip(*iterables, strict=False) -> Iterator[tuple[...]]",
|
|
241
|
+
"description": "Iterate over several iterables in parallel, producing tuples with an item from each one. Stops when the shortest iterable is exhausted (unless strict=True).",
|
|
242
|
+
"type": "function",
|
|
243
|
+
"module": "builtins",
|
|
244
|
+
"parameters": [
|
|
245
|
+
{ "name": "*iterables", "type": "Iterable", "description": "One or more iterables to zip together" },
|
|
246
|
+
{ "name": "strict", "type": "bool", "description": "If True, raise ValueError if iterables have different lengths (3.10+)", "optional": true }
|
|
247
|
+
],
|
|
248
|
+
"returns": "Iterator[tuple[...]]"
|
|
249
|
+
},
|
|
250
|
+
"map": {
|
|
251
|
+
"signature": "map(function, iterable, *iterables) -> Iterator",
|
|
252
|
+
"description": "Return an iterator that applies function to every item of iterable, yielding the results.",
|
|
253
|
+
"type": "function",
|
|
254
|
+
"module": "builtins",
|
|
255
|
+
"parameters": [
|
|
256
|
+
{ "name": "function", "type": "Callable", "description": "A function to apply to each element" },
|
|
257
|
+
{ "name": "iterable", "type": "Iterable", "description": "Iterable(s) whose elements are passed to function" }
|
|
258
|
+
],
|
|
259
|
+
"returns": "Iterator"
|
|
260
|
+
},
|
|
261
|
+
"filter": {
|
|
262
|
+
"signature": "filter(function, iterable) -> Iterator",
|
|
263
|
+
"description": "Return an iterator yielding those items of iterable for which function(item) is true. If function is None, return items that are true.",
|
|
264
|
+
"type": "function",
|
|
265
|
+
"module": "builtins",
|
|
266
|
+
"parameters": [
|
|
267
|
+
{ "name": "function", "type": "Callable[[T], bool] | None", "description": "A function that tests each element, or None for truth testing" },
|
|
268
|
+
{ "name": "iterable", "type": "Iterable[T]", "description": "An iterable to filter" }
|
|
269
|
+
],
|
|
270
|
+
"returns": "Iterator[T]"
|
|
271
|
+
},
|
|
272
|
+
"sorted": {
|
|
273
|
+
"signature": "sorted(iterable, /, *, key=None, reverse=False) -> list",
|
|
274
|
+
"description": "Return a new sorted list from the items in iterable. The sort is guaranteed to be stable.",
|
|
275
|
+
"type": "function",
|
|
276
|
+
"module": "builtins",
|
|
277
|
+
"parameters": [
|
|
278
|
+
{ "name": "iterable", "type": "Iterable", "description": "The iterable to sort" },
|
|
279
|
+
{ "name": "key", "type": "Callable | None", "description": "A function of one argument used to extract a comparison key", "optional": true },
|
|
280
|
+
{ "name": "reverse", "type": "bool", "description": "If True, sort in descending order", "optional": true }
|
|
281
|
+
],
|
|
282
|
+
"returns": "list"
|
|
283
|
+
},
|
|
284
|
+
"open": {
|
|
285
|
+
"signature": "open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) -> IO",
|
|
286
|
+
"description": "Open file and return a corresponding file object. If the file cannot be opened, an OSError is raised. Should be used with a `with` statement for guaranteed cleanup.",
|
|
287
|
+
"type": "function",
|
|
288
|
+
"module": "builtins",
|
|
289
|
+
"parameters": [
|
|
290
|
+
{ "name": "file", "type": "str | PathLike | int", "description": "Path to the file or a file descriptor" },
|
|
291
|
+
{ "name": "mode", "type": "str", "description": "Open mode: 'r' (read), 'w' (write), 'a' (append), 'x' (create), 'b' (binary), 't' (text), '+' (update)", "optional": true },
|
|
292
|
+
{ "name": "buffering", "type": "int", "description": "Buffering policy: 0=unbuffered, 1=line-buffered, >1=buffer size", "optional": true },
|
|
293
|
+
{ "name": "encoding", "type": "str | None", "description": "Text encoding (e.g. 'utf-8'). Only used in text mode", "optional": true },
|
|
294
|
+
{ "name": "errors", "type": "str | None", "description": "How encoding/decoding errors are handled", "optional": true },
|
|
295
|
+
{ "name": "newline", "type": "str | None", "description": "How universal newlines mode works", "optional": true }
|
|
296
|
+
],
|
|
297
|
+
"returns": "IO"
|
|
298
|
+
},
|
|
299
|
+
"isinstance": {
|
|
300
|
+
"signature": "isinstance(object, classinfo) -> bool",
|
|
301
|
+
"description": "Return True if the object argument is an instance of the classinfo argument, or of a (direct, indirect, or virtual) subclass thereof.",
|
|
302
|
+
"type": "function",
|
|
303
|
+
"module": "builtins",
|
|
304
|
+
"parameters": [
|
|
305
|
+
{ "name": "object", "type": "Any", "description": "The object to check" },
|
|
306
|
+
{ "name": "classinfo", "type": "type | tuple[type, ...] | UnionType", "description": "A type, tuple of types, or union type to check against" }
|
|
307
|
+
],
|
|
308
|
+
"returns": "bool"
|
|
309
|
+
},
|
|
310
|
+
"type": {
|
|
311
|
+
"signature": "type(object) -> type / type(name, bases, dict, **kwds) -> type",
|
|
312
|
+
"description": "With one argument, return the type of an object. With three arguments, create a new type object (dynamic class creation).",
|
|
313
|
+
"type": "function",
|
|
314
|
+
"module": "builtins",
|
|
315
|
+
"parameters": [
|
|
316
|
+
{ "name": "object", "type": "Any", "description": "Object whose type to return (single-argument form)" },
|
|
317
|
+
{ "name": "name", "type": "str", "description": "The class name (three-argument form)" },
|
|
318
|
+
{ "name": "bases", "type": "tuple", "description": "Base classes (three-argument form)" },
|
|
319
|
+
{ "name": "dict", "type": "dict", "description": "Namespace dict containing class body definitions (three-argument form)" }
|
|
320
|
+
],
|
|
321
|
+
"returns": "type"
|
|
322
|
+
},
|
|
323
|
+
"super": {
|
|
324
|
+
"signature": "super() -> super / super(type, object_or_type) -> super",
|
|
325
|
+
"description": "Return a proxy object that delegates method calls to a parent or sibling class. The zero-argument form works inside a class definition.",
|
|
326
|
+
"type": "function",
|
|
327
|
+
"module": "builtins",
|
|
328
|
+
"parameters": [
|
|
329
|
+
{ "name": "type", "type": "type", "description": "Starting type for MRO search", "optional": true },
|
|
330
|
+
{ "name": "object_or_type", "type": "object | type", "description": "Determines the MRO to search and the binding", "optional": true }
|
|
331
|
+
],
|
|
332
|
+
"returns": "super"
|
|
333
|
+
},
|
|
334
|
+
"abs": {
|
|
335
|
+
"signature": "abs(x) -> int | float",
|
|
336
|
+
"description": "Return the absolute value of a number. The argument may be an integer, float, or object implementing __abs__().",
|
|
337
|
+
"type": "function",
|
|
338
|
+
"module": "builtins",
|
|
339
|
+
"parameters": [
|
|
340
|
+
{ "name": "x", "type": "int | float | complex", "description": "A number" }
|
|
341
|
+
],
|
|
342
|
+
"returns": "int | float"
|
|
343
|
+
},
|
|
344
|
+
"min": {
|
|
345
|
+
"signature": "min(iterable, *, key=None, default=...) / min(arg1, arg2, *args, key=None)",
|
|
346
|
+
"description": "Return the smallest item in an iterable or the smallest of two or more arguments.",
|
|
347
|
+
"type": "function",
|
|
348
|
+
"module": "builtins",
|
|
349
|
+
"parameters": [
|
|
350
|
+
{ "name": "iterable", "type": "Iterable", "description": "An iterable of comparable items" },
|
|
351
|
+
{ "name": "key", "type": "Callable | None", "description": "One-argument ordering function", "optional": true },
|
|
352
|
+
{ "name": "default", "type": "Any", "description": "Value to return if the iterable is empty", "optional": true }
|
|
353
|
+
],
|
|
354
|
+
"returns": "T"
|
|
355
|
+
},
|
|
356
|
+
"max": {
|
|
357
|
+
"signature": "max(iterable, *, key=None, default=...) / max(arg1, arg2, *args, key=None)",
|
|
358
|
+
"description": "Return the largest item in an iterable or the largest of two or more arguments.",
|
|
359
|
+
"type": "function",
|
|
360
|
+
"module": "builtins",
|
|
361
|
+
"parameters": [
|
|
362
|
+
{ "name": "iterable", "type": "Iterable", "description": "An iterable of comparable items" },
|
|
363
|
+
{ "name": "key", "type": "Callable | None", "description": "One-argument ordering function", "optional": true },
|
|
364
|
+
{ "name": "default", "type": "Any", "description": "Value to return if the iterable is empty", "optional": true }
|
|
365
|
+
],
|
|
366
|
+
"returns": "T"
|
|
367
|
+
},
|
|
368
|
+
"sum": {
|
|
369
|
+
"signature": "sum(iterable, /, start=0)",
|
|
370
|
+
"description": "Sums start and the items of an iterable from left to right and returns the total.",
|
|
371
|
+
"type": "function",
|
|
372
|
+
"module": "builtins",
|
|
373
|
+
"parameters": [
|
|
374
|
+
{ "name": "iterable", "type": "Iterable[number]", "description": "An iterable of numbers" },
|
|
375
|
+
{ "name": "start", "type": "number", "description": "Starting value for the summation", "optional": true }
|
|
376
|
+
],
|
|
377
|
+
"returns": "number"
|
|
378
|
+
},
|
|
379
|
+
"round": {
|
|
380
|
+
"signature": "round(number, ndigits=None) -> int | float",
|
|
381
|
+
"description": "Round a number to a given precision in decimal digits. Uses banker's rounding (round-half-to-even).",
|
|
382
|
+
"type": "function",
|
|
383
|
+
"module": "builtins",
|
|
384
|
+
"parameters": [
|
|
385
|
+
{ "name": "number", "type": "int | float", "description": "The number to round" },
|
|
386
|
+
{ "name": "ndigits", "type": "int | None", "description": "Number of decimal digits. None returns an int.", "optional": true }
|
|
387
|
+
],
|
|
388
|
+
"returns": "int | float"
|
|
389
|
+
},
|
|
390
|
+
"input": {
|
|
391
|
+
"signature": "input(prompt='') -> str",
|
|
392
|
+
"description": "Read a line from input, convert it to a string (stripping trailing newline), and return that.",
|
|
393
|
+
"type": "function",
|
|
394
|
+
"module": "builtins",
|
|
395
|
+
"parameters": [
|
|
396
|
+
{ "name": "prompt", "type": "str", "description": "The prompt string written to standard output", "optional": true }
|
|
397
|
+
],
|
|
398
|
+
"returns": "str"
|
|
399
|
+
},
|
|
400
|
+
"repr": {
|
|
401
|
+
"signature": "repr(object) -> str",
|
|
402
|
+
"description": "Return a string containing a printable representation of an object. For many types, this returns a string that would yield an object with the same value when passed to eval().",
|
|
403
|
+
"type": "function",
|
|
404
|
+
"module": "builtins",
|
|
405
|
+
"parameters": [
|
|
406
|
+
{ "name": "object", "type": "Any", "description": "The object to represent" }
|
|
407
|
+
],
|
|
408
|
+
"returns": "str"
|
|
409
|
+
},
|
|
410
|
+
"hash": {
|
|
411
|
+
"signature": "hash(object) -> int",
|
|
412
|
+
"description": "Return the hash value of the object (if it has one). Hash values are integers used to quickly compare dictionary keys during lookup.",
|
|
413
|
+
"type": "function",
|
|
414
|
+
"module": "builtins",
|
|
415
|
+
"parameters": [
|
|
416
|
+
{ "name": "object", "type": "Hashable", "description": "An object implementing __hash__" }
|
|
417
|
+
],
|
|
418
|
+
"returns": "int"
|
|
419
|
+
},
|
|
420
|
+
"id": {
|
|
421
|
+
"signature": "id(object) -> int",
|
|
422
|
+
"description": "Return the identity of an object — guaranteed unique integer for this object during its lifetime. In CPython, this is the memory address.",
|
|
423
|
+
"type": "function",
|
|
424
|
+
"module": "builtins",
|
|
425
|
+
"parameters": [
|
|
426
|
+
{ "name": "object", "type": "Any", "description": "Any object" }
|
|
427
|
+
],
|
|
428
|
+
"returns": "int"
|
|
429
|
+
},
|
|
430
|
+
"dir": {
|
|
431
|
+
"signature": "dir(object=...) -> list[str]",
|
|
432
|
+
"description": "Without arguments, return the list of names in the current local scope. With an argument, return a list of valid attributes for that object.",
|
|
433
|
+
"type": "function",
|
|
434
|
+
"module": "builtins",
|
|
435
|
+
"parameters": [
|
|
436
|
+
{ "name": "object", "type": "Any", "description": "Object to inspect", "optional": true }
|
|
437
|
+
],
|
|
438
|
+
"returns": "list[str]"
|
|
439
|
+
},
|
|
440
|
+
"getattr": {
|
|
441
|
+
"signature": "getattr(object, name, default=...) -> Any",
|
|
442
|
+
"description": "Return the value of the named attribute of object. If default is provided, it is returned if the attribute doesn't exist.",
|
|
443
|
+
"type": "function",
|
|
444
|
+
"module": "builtins",
|
|
445
|
+
"parameters": [
|
|
446
|
+
{ "name": "object", "type": "Any", "description": "The object to inspect" },
|
|
447
|
+
{ "name": "name", "type": "str", "description": "The attribute name" },
|
|
448
|
+
{ "name": "default", "type": "Any", "description": "Value returned if attribute doesn't exist", "optional": true }
|
|
449
|
+
],
|
|
450
|
+
"returns": "Any"
|
|
451
|
+
},
|
|
452
|
+
"setattr": {
|
|
453
|
+
"signature": "setattr(object, name, value) -> None",
|
|
454
|
+
"description": "Set the named attribute on the given object to the specified value.",
|
|
455
|
+
"type": "function",
|
|
456
|
+
"module": "builtins",
|
|
457
|
+
"parameters": [
|
|
458
|
+
{ "name": "object", "type": "Any", "description": "The object to modify" },
|
|
459
|
+
{ "name": "name", "type": "str", "description": "The attribute name" },
|
|
460
|
+
{ "name": "value", "type": "Any", "description": "The value to set" }
|
|
461
|
+
],
|
|
462
|
+
"returns": "None"
|
|
463
|
+
},
|
|
464
|
+
"hasattr": {
|
|
465
|
+
"signature": "hasattr(object, name) -> bool",
|
|
466
|
+
"description": "Return True if the string is the name of one of the object's attributes.",
|
|
467
|
+
"type": "function",
|
|
468
|
+
"module": "builtins",
|
|
469
|
+
"parameters": [
|
|
470
|
+
{ "name": "object", "type": "Any", "description": "The object to check" },
|
|
471
|
+
{ "name": "name", "type": "str", "description": "The attribute name" }
|
|
472
|
+
],
|
|
473
|
+
"returns": "bool"
|
|
474
|
+
},
|
|
475
|
+
"callable": {
|
|
476
|
+
"signature": "callable(object) -> bool",
|
|
477
|
+
"description": "Return True if the object appears callable (has a __call__ method).",
|
|
478
|
+
"type": "function",
|
|
479
|
+
"module": "builtins",
|
|
480
|
+
"parameters": [
|
|
481
|
+
{ "name": "object", "type": "Any", "description": "The object to check" }
|
|
482
|
+
],
|
|
483
|
+
"returns": "bool"
|
|
484
|
+
},
|
|
485
|
+
"iter": {
|
|
486
|
+
"signature": "iter(object) -> Iterator / iter(callable, sentinel) -> Iterator",
|
|
487
|
+
"description": "Return an iterator object. The first form expects an iterable. The second form calls callable until sentinel is returned.",
|
|
488
|
+
"type": "function",
|
|
489
|
+
"module": "builtins",
|
|
490
|
+
"parameters": [
|
|
491
|
+
{ "name": "object", "type": "Iterable | Callable", "description": "An iterable, or a callable (sentinel form)" },
|
|
492
|
+
{ "name": "sentinel", "type": "Any", "description": "Stop value for the callable form", "optional": true }
|
|
493
|
+
],
|
|
494
|
+
"returns": "Iterator"
|
|
495
|
+
},
|
|
496
|
+
"next": {
|
|
497
|
+
"signature": "next(iterator, default=...) -> T",
|
|
498
|
+
"description": "Retrieve the next item from the iterator by calling __next__(). If the iterator is exhausted and default is given, return it instead of raising StopIteration.",
|
|
499
|
+
"type": "function",
|
|
500
|
+
"module": "builtins",
|
|
501
|
+
"parameters": [
|
|
502
|
+
{ "name": "iterator", "type": "Iterator[T]", "description": "An iterator" },
|
|
503
|
+
{ "name": "default", "type": "T", "description": "Default value if iterator is exhausted", "optional": true }
|
|
504
|
+
],
|
|
505
|
+
"returns": "T"
|
|
506
|
+
},
|
|
507
|
+
"reversed": {
|
|
508
|
+
"signature": "reversed(sequence) -> Iterator",
|
|
509
|
+
"description": "Return a reverse iterator over the values of the given sequence.",
|
|
510
|
+
"type": "function",
|
|
511
|
+
"module": "builtins",
|
|
512
|
+
"parameters": [
|
|
513
|
+
{ "name": "sequence", "type": "Sequence | Reversible", "description": "A sequence supporting __reversed__ or __len__ and __getitem__" }
|
|
514
|
+
],
|
|
515
|
+
"returns": "Iterator"
|
|
516
|
+
},
|
|
517
|
+
"any": {
|
|
518
|
+
"signature": "any(iterable) -> bool",
|
|
519
|
+
"description": "Return True if any element of the iterable is true. If the iterable is empty, return False.",
|
|
520
|
+
"type": "function",
|
|
521
|
+
"module": "builtins",
|
|
522
|
+
"parameters": [
|
|
523
|
+
{ "name": "iterable", "type": "Iterable", "description": "An iterable to test" }
|
|
524
|
+
],
|
|
525
|
+
"returns": "bool"
|
|
526
|
+
},
|
|
527
|
+
"all": {
|
|
528
|
+
"signature": "all(iterable) -> bool",
|
|
529
|
+
"description": "Return True if all elements of the iterable are true (or if the iterable is empty).",
|
|
530
|
+
"type": "function",
|
|
531
|
+
"module": "builtins",
|
|
532
|
+
"parameters": [
|
|
533
|
+
{ "name": "iterable", "type": "Iterable", "description": "An iterable to test" }
|
|
534
|
+
],
|
|
535
|
+
"returns": "bool"
|
|
536
|
+
},
|
|
537
|
+
"breakpoint": {
|
|
538
|
+
"signature": "breakpoint(*args, **kws) -> None",
|
|
539
|
+
"description": "Call sys.breakpointhook(), which by default drops into pdb. Set PYTHONBREAKPOINT=0 to disable.",
|
|
540
|
+
"type": "function",
|
|
541
|
+
"module": "builtins",
|
|
542
|
+
"parameters": [
|
|
543
|
+
{ "name": "*args", "type": "Any", "description": "Passed to sys.breakpointhook" },
|
|
544
|
+
{ "name": "**kws", "type": "Any", "description": "Passed to sys.breakpointhook" }
|
|
545
|
+
],
|
|
546
|
+
"returns": "None"
|
|
547
|
+
},
|
|
548
|
+
"pow": {
|
|
549
|
+
"signature": "pow(base, exp, mod=None)",
|
|
550
|
+
"description": "Return base to the power exp. If mod is present, return base**exp % mod (computed efficiently).",
|
|
551
|
+
"type": "function",
|
|
552
|
+
"module": "builtins",
|
|
553
|
+
"parameters": [
|
|
554
|
+
{ "name": "base", "type": "int | float", "description": "The base number" },
|
|
555
|
+
{ "name": "exp", "type": "int | float", "description": "The exponent" },
|
|
556
|
+
{ "name": "mod", "type": "int | None", "description": "Optional modulus for modular exponentiation", "optional": true }
|
|
557
|
+
],
|
|
558
|
+
"returns": "int | float"
|
|
559
|
+
},
|
|
560
|
+
"divmod": {
|
|
561
|
+
"signature": "divmod(a, b) -> tuple[int, int]",
|
|
562
|
+
"description": "Return the pair (a // b, a % b).",
|
|
563
|
+
"type": "function",
|
|
564
|
+
"module": "builtins",
|
|
565
|
+
"parameters": [
|
|
566
|
+
{ "name": "a", "type": "int | float", "description": "Dividend" },
|
|
567
|
+
{ "name": "b", "type": "int | float", "description": "Divisor" }
|
|
568
|
+
],
|
|
569
|
+
"returns": "tuple[int, int]"
|
|
570
|
+
},
|
|
571
|
+
"format": {
|
|
572
|
+
"signature": "format(value, format_spec='') -> str",
|
|
573
|
+
"description": "Convert a value to a formatted representation as controlled by format_spec.",
|
|
574
|
+
"type": "function",
|
|
575
|
+
"module": "builtins",
|
|
576
|
+
"parameters": [
|
|
577
|
+
{ "name": "value", "type": "Any", "description": "The value to format" },
|
|
578
|
+
{ "name": "format_spec", "type": "str", "description": "Format specification string", "optional": true }
|
|
579
|
+
],
|
|
580
|
+
"returns": "str"
|
|
581
|
+
},
|
|
582
|
+
"vars": {
|
|
583
|
+
"signature": "vars(object=...) -> dict[str, Any]",
|
|
584
|
+
"description": "Return the __dict__ attribute of the given object. Without arguments, acts like locals().",
|
|
585
|
+
"type": "function",
|
|
586
|
+
"module": "builtins",
|
|
587
|
+
"parameters": [
|
|
588
|
+
{ "name": "object", "type": "Any", "description": "Object whose __dict__ to return", "optional": true }
|
|
589
|
+
],
|
|
590
|
+
"returns": "dict[str, Any]"
|
|
591
|
+
},
|
|
592
|
+
"globals": {
|
|
593
|
+
"signature": "globals() -> dict[str, Any]",
|
|
594
|
+
"description": "Return the dictionary implementing the current module namespace.",
|
|
595
|
+
"type": "function",
|
|
596
|
+
"module": "builtins",
|
|
597
|
+
"parameters": [],
|
|
598
|
+
"returns": "dict[str, Any]"
|
|
599
|
+
},
|
|
600
|
+
"locals": {
|
|
601
|
+
"signature": "locals() -> dict[str, Any]",
|
|
602
|
+
"description": "Return a mapping of the current local symbol table.",
|
|
603
|
+
"type": "function",
|
|
604
|
+
"module": "builtins",
|
|
605
|
+
"parameters": [],
|
|
606
|
+
"returns": "dict[str, Any]"
|
|
607
|
+
},
|
|
608
|
+
"exec": {
|
|
609
|
+
"signature": "exec(code, globals=None, locals=None) -> None",
|
|
610
|
+
"description": "Dynamically execute Python code. code can be a string or code object.",
|
|
611
|
+
"type": "function",
|
|
612
|
+
"module": "builtins",
|
|
613
|
+
"parameters": [
|
|
614
|
+
{ "name": "code", "type": "str | code", "description": "Python code to execute" },
|
|
615
|
+
{ "name": "globals", "type": "dict | None", "description": "Global namespace", "optional": true },
|
|
616
|
+
{ "name": "locals", "type": "dict | None", "description": "Local namespace", "optional": true }
|
|
617
|
+
],
|
|
618
|
+
"returns": "None"
|
|
619
|
+
},
|
|
620
|
+
"eval": {
|
|
621
|
+
"signature": "eval(expression, globals=None, locals=None) -> Any",
|
|
622
|
+
"description": "Evaluate a single Python expression and return its value.",
|
|
623
|
+
"type": "function",
|
|
624
|
+
"module": "builtins",
|
|
625
|
+
"parameters": [
|
|
626
|
+
{ "name": "expression", "type": "str | code", "description": "A Python expression" },
|
|
627
|
+
{ "name": "globals", "type": "dict | None", "description": "Global namespace", "optional": true },
|
|
628
|
+
{ "name": "locals", "type": "dict | None", "description": "Local namespace", "optional": true }
|
|
629
|
+
],
|
|
630
|
+
"returns": "Any"
|
|
631
|
+
},
|
|
632
|
+
"compile": {
|
|
633
|
+
"signature": "compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1) -> code",
|
|
634
|
+
"description": "Compile source into a code or AST object.",
|
|
635
|
+
"type": "function",
|
|
636
|
+
"module": "builtins",
|
|
637
|
+
"parameters": [
|
|
638
|
+
{ "name": "source", "type": "str | bytes | AST", "description": "The source code to compile" },
|
|
639
|
+
{ "name": "filename", "type": "str", "description": "Name of the file the code was read from" },
|
|
640
|
+
{ "name": "mode", "type": "str", "description": "'exec' for module, 'eval' for expression, 'single' for interactive" }
|
|
641
|
+
],
|
|
642
|
+
"returns": "code"
|
|
643
|
+
},
|
|
644
|
+
"issubclass": {
|
|
645
|
+
"signature": "issubclass(class, classinfo) -> bool",
|
|
646
|
+
"description": "Return True if class is a subclass (direct, indirect, or virtual) of classinfo.",
|
|
647
|
+
"type": "function",
|
|
648
|
+
"module": "builtins",
|
|
649
|
+
"parameters": [
|
|
650
|
+
{ "name": "class", "type": "type", "description": "The class to check" },
|
|
651
|
+
{ "name": "classinfo", "type": "type | tuple[type, ...]", "description": "A type or tuple of types" }
|
|
652
|
+
],
|
|
653
|
+
"returns": "bool"
|
|
654
|
+
},
|
|
655
|
+
"delattr": {
|
|
656
|
+
"signature": "delattr(object, name) -> None",
|
|
657
|
+
"description": "Delete the named attribute from the given object.",
|
|
658
|
+
"type": "function",
|
|
659
|
+
"module": "builtins",
|
|
660
|
+
"parameters": [
|
|
661
|
+
{ "name": "object", "type": "Any", "description": "The object to modify" },
|
|
662
|
+
{ "name": "name", "type": "str", "description": "The attribute name to delete" }
|
|
663
|
+
],
|
|
664
|
+
"returns": "None"
|
|
665
|
+
},
|
|
666
|
+
"hex": {
|
|
667
|
+
"signature": "hex(x) -> str",
|
|
668
|
+
"description": "Convert an integer to a lowercase hexadecimal string prefixed with '0x'.",
|
|
669
|
+
"type": "function",
|
|
670
|
+
"module": "builtins",
|
|
671
|
+
"parameters": [
|
|
672
|
+
{ "name": "x", "type": "int", "description": "An integer" }
|
|
673
|
+
],
|
|
674
|
+
"returns": "str"
|
|
675
|
+
},
|
|
676
|
+
"oct": {
|
|
677
|
+
"signature": "oct(x) -> str",
|
|
678
|
+
"description": "Convert an integer to an octal string prefixed with '0o'.",
|
|
679
|
+
"type": "function",
|
|
680
|
+
"module": "builtins",
|
|
681
|
+
"parameters": [
|
|
682
|
+
{ "name": "x", "type": "int", "description": "An integer" }
|
|
683
|
+
],
|
|
684
|
+
"returns": "str"
|
|
685
|
+
},
|
|
686
|
+
"bin": {
|
|
687
|
+
"signature": "bin(x) -> str",
|
|
688
|
+
"description": "Convert an integer to a binary string prefixed with '0b'.",
|
|
689
|
+
"type": "function",
|
|
690
|
+
"module": "builtins",
|
|
691
|
+
"parameters": [
|
|
692
|
+
{ "name": "x", "type": "int", "description": "An integer" }
|
|
693
|
+
],
|
|
694
|
+
"returns": "str"
|
|
695
|
+
},
|
|
696
|
+
"ord": {
|
|
697
|
+
"signature": "ord(c) -> int",
|
|
698
|
+
"description": "Return the Unicode code point for a one-character string.",
|
|
699
|
+
"type": "function",
|
|
700
|
+
"module": "builtins",
|
|
701
|
+
"parameters": [
|
|
702
|
+
{ "name": "c", "type": "str", "description": "A single character string" }
|
|
703
|
+
],
|
|
704
|
+
"returns": "int"
|
|
705
|
+
},
|
|
706
|
+
"chr": {
|
|
707
|
+
"signature": "chr(i) -> str",
|
|
708
|
+
"description": "Return the string representing a character whose Unicode code point is the integer i.",
|
|
709
|
+
"type": "function",
|
|
710
|
+
"module": "builtins",
|
|
711
|
+
"parameters": [
|
|
712
|
+
{ "name": "i", "type": "int", "description": "A Unicode code point (0-1114111)" }
|
|
713
|
+
],
|
|
714
|
+
"returns": "str"
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|