code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
from __future__ import annotations from sklearn.preprocessing import StandardScaler as sk_StandardScaler from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation._table_transformer import InvertibleTableTransformer from safeds.exceptions import NonNumericColumnError, TransformerNotFitt...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_standard_scaler.py
0.964422
0.495667
_standard_scaler.py
pypi
from __future__ import annotations import warnings from collections import Counter from typing import Any import numpy as np from safeds.data.tabular.containers import Column, Table from safeds.data.tabular.transformation._table_transformer import ( InvertibleTableTransformer, ) from safeds.exceptions import ( ...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_one_hot_encoder.py
0.942639
0.444746
_one_hot_encoder.py
pypi
from __future__ import annotations from sklearn.preprocessing import MinMaxScaler as sk_MinMaxScaler from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation._table_transformer import InvertibleTableTransformer from safeds.exceptions import NonNumericColumnError, TransformerNotFittedEr...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_range_scaler.py
0.969728
0.483344
_range_scaler.py
pypi
from __future__ import annotations import warnings from sklearn.preprocessing import OrdinalEncoder as sk_OrdinalEncoder from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation._table_transformer import ( InvertibleTableTransformer, ) from safeds.exceptions import NonNumericColum...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_label_encoder.py
0.963754
0.537284
_label_encoder.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING if TYPE_CHECKING: from safeds.data.tabular.containers import Table class TableTransformer(ABC): """Learn a transformation for a set of columns in a `Table` and transform another `Table` with the same colu...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_table_transformer.py
0.968291
0.694471
_table_transformer.py
pypi
from __future__ import annotations import warnings from typing import Any import pandas as pd from sklearn.impute import SimpleImputer as sk_SimpleImputer from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation._table_transformer import TableTransformer from safeds.data.tabular.typin...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/transformation/_imputer.py
0.964279
0.433742
_imputer.py
pypi
from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from safeds.data.tabular.typing import Anything, Integer, Nothing, RealNumber from safeds.data.tabular.typing._column_type import ColumnType from safeds.exceptions import UnknownColumnNameError if TYPE_CHECKING: ...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/typing/_schema.py
0.946126
0.483466
_schema.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from dataclasses import dataclass from types import NoneType from typing import TYPE_CHECKING, Any import numpy as np if TYPE_CHECKING: import pandas as pd class ColumnType(ABC): """Abstract base class for column types.""" _is_null...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/data/tabular/typing/_column_type.py
0.961561
0.45175
_column_type.py
pypi
import warnings from typing import Any from safeds.data.tabular.containers import Table, TaggedTable from safeds.exceptions import ( DatasetContainsTargetError, DatasetMissesDataError, DatasetMissesFeaturesError, LearningError, MissingValuesColumnError, ModelNotFittedError, NonNumericColumn...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/_util_sklearn.py
0.898
0.679418
_util_sklearn.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import GradientBoostingRegressor as sk_GradientBoostingRegressor from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regress...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_gradient_boosting.py
0.965299
0.675147
_gradient_boosting.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING from sklearn.svm import SVR as sk_SVR # noqa: N811 from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from safeds.ml.classical.regres...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_support_vector_machine.py
0.965365
0.59564
_support_vector_machine.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import AdaBoostRegressor as sk_AdaBoostRegressor from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHEC...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_ada_boost.py
0.975331
0.59355
_ada_boost.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING from sklearn.metrics import mean_absolute_error as sk_mean_absolute_error from sklearn.metrics import mean_squared_error as sk_mean_squared_error from safeds.data.tabular.containers import Column, Table, TaggedTab...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_regressor.py
0.971966
0.640566
_regressor.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from warnings import warn from sklearn.linear_model import Lasso as sk_Lasso from safeds.exceptions import ClosedBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHECKING:...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_lasso_regression.py
0.967854
0.631353
_lasso_regression.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.linear_model import LinearRegression as sk_LinearRegression from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHECKING: from sklearn.base import RegressorMixin from safeds.da...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_linear_regression.py
0.970183
0.638215
_linear_regression.py
pypi
from __future__ import annotations import warnings from typing import TYPE_CHECKING from warnings import warn from sklearn.linear_model import ElasticNet as sk_ElasticNet from safeds.exceptions import ClosedBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Re...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_elastic_net_regression.py
0.966789
0.596815
_elastic_net_regression.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.neighbors import KNeighborsRegressor as sk_KNeighborsRegressor from safeds.exceptions import ClosedBound, DatasetMissesDataError, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regre...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_k_nearest_neighbors.py
0.96799
0.641605
_k_nearest_neighbors.py
pypi
from __future__ import annotations import warnings from typing import TYPE_CHECKING from sklearn.linear_model import Ridge as sk_Ridge from safeds.exceptions import ClosedBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHECKING: from ...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_ridge_regression.py
0.964905
0.613468
_ridge_regression.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import RandomForestRegressor as sk_RandomForestRegressor from safeds.exceptions import ClosedBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHECKIN...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_random_forest.py
0.966108
0.548069
_random_forest.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.tree import DecisionTreeRegressor as sk_DecisionTreeRegressor from safeds.ml.classical._util_sklearn import fit, predict from ._regressor import Regressor if TYPE_CHECKING: from sklearn.base import RegressorMixin from safeds....
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/regression/_decision_tree.py
0.965714
0.66326
_decision_tree.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import GradientBoostingClassifier as sk_GradientBoostingClassifier from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Clas...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_gradient_boosting.py
0.964263
0.620219
_gradient_boosting.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING from sklearn.svm import SVC as sk_SVC # noqa: N811 from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from safeds.ml.classical.classi...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_support_vector_machine.py
0.96372
0.567757
_support_vector_machine.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.linear_model import LogisticRegression as sk_LogisticRegression from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Classifier if TYPE_CHECKING: from sklearn.base import ClassifierMixin from sa...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_logistic_regression.py
0.966418
0.55441
_logistic_regression.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import AdaBoostClassifier as sk_AdaBoostClassifier from safeds.exceptions import ClosedBound, OpenBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Classifier if TYPE_...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_ada_boost.py
0.97296
0.535098
_ada_boost.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.neighbors import KNeighborsClassifier as sk_KNeighborsClassifier from safeds.exceptions import ClosedBound, DatasetMissesDataError, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Cl...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_k_nearest_neighbors.py
0.965835
0.583441
_k_nearest_neighbors.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING from sklearn.metrics import accuracy_score as sk_accuracy_score from safeds.data.tabular.containers import Table, TaggedTable from safeds.exceptions import UntaggedTableError if TYPE_CHECKING: from typing imp...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_classifier.py
0.959837
0.593933
_classifier.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.ensemble import RandomForestClassifier as sk_RandomForestClassifier from safeds.exceptions import ClosedBound, OutOfBoundsError from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Classifier if TYPE_CHE...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_random_forest.py
0.964681
0.491334
_random_forest.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING from sklearn.tree import DecisionTreeClassifier as sk_DecisionTreeClassifier from safeds.ml.classical._util_sklearn import fit, predict from ._classifier import Classifier if TYPE_CHECKING: from sklearn.base import ClassifierMixin from sa...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/ml/classical/classification/_decision_tree.py
0.964681
0.591812
_decision_tree.py
pypi
from __future__ import annotations from abc import ABC, abstractmethod from numpy import isinf, isnan class OutOfBoundsError(ValueError): """ A generic exception that can be used to signal that a (float) value is outside its expected range. Parameters ---------- actual: float The actual...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/exceptions/_generic.py
0.970296
0.656025
_generic.py
pypi
class DatasetContainsTargetError(ValueError): """ Raised when a dataset contains the target column already. Parameters ---------- target_name: str The name of the target column. """ def __init__(self, target_name: str): super().__init__(f"Dataset already contains the target...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/exceptions/_ml.py
0.93453
0.728447
_ml.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from pathlib import Path class UnknownColumnNameError(KeyError): """ Exception raised for trying to access an invalid column name. Parameters ---------- column_names : list[str] The name of the col...
/safe_ds-0.15.0.tar.gz/safe_ds-0.15.0/src/safeds/exceptions/_data.py
0.964229
0.3694
_data.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETC_KOTTI = 6 TCH = 7 U...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/ethereum_network.py
0.439627
0.320422
ethereum_network.py
pypi
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/utils.py
0.900547
0.58255
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from web3 import We...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/multicall.py
0.898009
0.209348
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/clients/etherscan_client.py
0.742141
0.295059
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from ..utils import fast_is_checksum_address from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/clients/sourcify.py
0.899345
0.365966
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/clients/blockscout_client.py
0.768386
0.364042
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_normalized_address from hexbytes import HexBytes from ..utils import fast_bytes_to_...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/django/models.py
0.826362
0.198239
models.py
pypi
import binascii from typing import Any, Optional from django import forms from django.core import exceptions from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from hexbytes import HexBytes from gnosis.eth.utils import fast_is_checksum_address class EthereumAddress...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/django/forms.py
0.856107
0.237443
forms.py
pypi
import functools import logging from typing import Optional from eth_abi.exceptions import DecodingError from eth_typing import ChecksumAddress from web3.contract import Contract from web3.exceptions import BadFunctionCallOutput from gnosis.util import cached_property from .. import EthereumClient from ..constants i...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/uniswap_v3.py
0.860516
0.188175
uniswap_v3.py
pypi
import logging from typing import Optional from eth_abi.exceptions import DecodingError from web3.exceptions import BadFunctionCallOutput from gnosis.util import cached_property from .. import EthereumClient, EthereumNetwork from ..contracts import get_kyber_network_proxy_contract from .exceptions import CannotGetPr...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/kyber.py
0.880271
0.155015
kyber.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
uniswap_v3_factory_abi = [ {"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "uint24", "name": "fee", "type": "uint24", ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/uniswap_v3.py
0.515864
0.476275
uniswap_v3.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
multicall_v2_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/makerdao.py
0.492188
0.568595
makerdao.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract from gnosis.util import cache def load_contract_interface(file_name): return _load_json_file(_abi_file_path(file_n...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/contracts/__init__.py
0.621885
0.210543
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Optional, Union from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts imp...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/multi_send.py
0.915252
0.451206
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode_single, encode_single from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing import ChecksumAddress from hexbytes...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/safe_signature.py
0.917409
0.276031
safe_signature.py
pypi
from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eip712_structs import Address, Bytes, EIP712Struct, Uint, make_domain from eip712_structs.struct import StructTuple from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3.exceptions import Ba...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/safe_tx.py
0.909125
0.18939
safe_tx.py
pypi
import dataclasses import math from enum import Enum from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_abi import encode_abi from eth_abi.packed import encode_abi_packed from eth_account import Account from eth_account.signers.local import LocalAccount from eth_typin...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/safe.py
0.890425
0.166506
safe.py
pypi
from logging import getLogger from typing import Optional from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from web3.contract import Contract from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts import ( get_paying_proxy_deployed_bytecode, ge...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/proxy_factory.py
0.917096
0.158435
proxy_factory.py
pypi
from rest_framework import serializers from rest_framework.exceptions import ValidationError from gnosis.eth.constants import ( SIGNATURE_R_MAX_VALUE, SIGNATURE_R_MIN_VALUE, SIGNATURE_S_MAX_VALUE, SIGNATURE_S_MIN_VALUE, SIGNATURE_V_MAX_VALUE, SIGNATURE_V_MIN_VALUE, ) from gnosis.eth.django.seri...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/serializers.py
0.78838
0.331039
serializers.py
pypi
import math import os from logging import getLogger from typing import Any, Dict, List, Optional, Tuple import rlp from eth.vm.forks.frontier.transactions import FrontierTransaction from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from web3 import Web3 from web3.contract import ContractConstr...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/safe_creation_tx.py
0.798344
0.373476
safe_creation_tx.py
pypi
from typing import List, Tuple, Union from eth_keys import keys from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from gnosis.eth.constants import NULL_ADDRESS def signature_split( signatures: Union[bytes, str], pos: int = 0 ) -> Tuple[int, int, int]: """ :param signatures: sign...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/signatures.py
0.923049
0.493958
signatures.py
pypi
from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress, HexStr from gnosis.eth.ethereum_client import EthereumNetwork from .. import SafeTx from ..signatures import signature_split from .base_api import SafeAPIException, SafeBaseAPI try: from typing import TypedDict except Impor...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/api/relay_service_api.py
0.676406
0.207556
relay_service_api.py
pypi
import logging import time from typing import Any, Dict, List, Optional, Tuple, Union from eth_account.signers.local import LocalAccount from eth_typing import HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumNetwork from gnosis.safe import SafeTx from .base_api import SafeAP...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/safe/api/transaction_service_api.py
0.740174
0.23316
transaction_service_api.py
pypi
from typing import Any, Dict, List, Optional, Union, cast import requests from eip712_structs import make_domain from eth_account import Account from eth_account.messages import encode_defunct from eth_typing import AnyAddress, ChecksumAddress, HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.et...
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/protocol/gnosis_protocol_api.py
0.876687
0.221698
gnosis_protocol_api.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETC_KOTTI = 6 TCH = 7 U...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/ethereum_network.py
0.458349
0.411052
ethereum_network.py
pypi
from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_utils import to_canonical_address, to_checksum_address from hexbytes import HexBytes from web3 import Web3 def get_eth_address_with_key() -> Tuple...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/utils.py
0.899293
0.368747
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from web3 import We...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/multicall.py
0.891746
0.221267
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/clients/etherscan_client.py
0.761139
0.268366
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from web3 import Web3 from .. import EthereumNetwork from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: - Full: Both the ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/clients/sourcify.py
0.899682
0.369088
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/clients/blockscout_client.py
0.785144
0.29906
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_checksum_address from hexbytes import HexBytes from .filters import EthereumAddress...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/django/models.py
0.839865
0.192824
models.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
multicall_v2_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/makerdao.py
0.492188
0.568595
makerdao.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract try: from functools import cache except ImportError: from functools import lru_cache cache = lru_cache(maxs...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/eth/contracts/__init__.py
0.627267
0.156878
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Union from eth_account.signers.local import LocalAccount from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient from gnosis.eth.contracts import get_multi_send_contract from gnosis.eth.ethereum_client impor...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/multi_send.py
0.932116
0.389082
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode_single, encode_single from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing import ChecksumAddress from eth_util...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/safe_signature.py
0.904543
0.232093
safe_signature.py
pypi
from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eip712_structs import Address, Bytes, EIP712Struct, Uint, make_domain from eip712_structs.struct import StructTuple from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3 import Web3 from web...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/safe_tx.py
0.909034
0.152064
safe_tx.py
pypi
import dataclasses import math from enum import Enum from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_account import Account from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/safe.py
0.878887
0.176334
safe.py
pypi
from logging import getLogger from typing import Optional from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from web3 import Web3 from web3.contract import Contract from gnosis.eth import EthereumClient from gnosis.eth.contracts import ( get_paying_proxy_deployed_bytecode, ...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/proxy_factory.py
0.912629
0.16492
proxy_factory.py
pypi
from rest_framework import serializers from rest_framework.exceptions import ValidationError from gnosis.eth.constants import ( SIGNATURE_R_MAX_VALUE, SIGNATURE_R_MIN_VALUE, SIGNATURE_S_MAX_VALUE, SIGNATURE_S_MIN_VALUE, SIGNATURE_V_MAX_VALUE, SIGNATURE_V_MIN_VALUE, ) from gnosis.eth.django.seri...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/serializers.py
0.78838
0.331039
serializers.py
pypi
import math import os from logging import getLogger from typing import Any, Dict, List, Optional, Tuple import rlp from eth.constants import SECPK1_N from eth.vm.forks.frontier.transactions import FrontierTransaction from eth_keys.exceptions import BadSignature from eth_utils import to_canonical_address, to_checksum_a...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/safe_creation_tx.py
0.79858
0.390302
safe_creation_tx.py
pypi
from typing import List, Tuple, Union from eth_keys import keys from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from gnosis.eth.constants import NULL_ADDRESS def signature_split( signatures: Union[bytes, str], pos: int = 0 ) -> Tuple[int, int, int]: """ :param signatures: sign...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/safe/signatures.py
0.923049
0.493958
signatures.py
pypi
from typing import Any, Dict, List, Optional, Union, cast import requests from eip712_structs import make_domain from eth_account import Account from eth_account.messages import encode_defunct from eth_typing import AnyAddress, ChecksumAddress, HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.et...
/safe_eth_py_log-4.0.1-py3-none-any.whl/gnosis/protocol/gnosis_protocol_api.py
0.847321
0.227813
gnosis_protocol_api.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 EXPANSE_NETWORK = 2 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETHEREU...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/ethereum_network.py
0.403097
0.374733
ethereum_network.py
pypi
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/utils.py
0.907281
0.559892
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple import eth_abi from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/multicall.py
0.855957
0.229978
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/clients/etherscan_client.py
0.762159
0.364042
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from ..utils import fast_is_checksum_address from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/clients/sourcify.py
0.899345
0.365966
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/clients/blockscout_client.py
0.736021
0.380011
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_normalized_address from hexbytes import HexBytes from ..utils import fast_bytes_to_...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/django/models.py
0.826362
0.198239
models.py
pypi
import binascii from typing import Any, Optional from django import forms from django.core import exceptions from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from hexbytes import HexBytes from gnosis.eth.utils import fast_is_checksum_address class EthereumAddress...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/django/forms.py
0.856107
0.237443
forms.py
pypi
import functools import logging from functools import cached_property from typing import Optional from eth_abi.exceptions import DecodingError from eth_typing import ChecksumAddress from web3.contract import Contract from web3.exceptions import Web3Exception from .. import EthereumClient, EthereumNetwork from ..const...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/uniswap_v3.py
0.879652
0.163813
uniswap_v3.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
uniswap_v3_factory_abi = [ {"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "uint24", "name": "fee", "type": "uint24", ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/uniswap_v3.py
0.515864
0.476275
uniswap_v3.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi