Saravanan666/pypi-org huggingface dataset:
Package: eth-account-ex
eth-accountSign Ethereum transactions and messages with local private keysRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstalleth-accountDeveloper SetupIf you would like to hack on eth-account, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/eth-account.gitcdeth-account
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e.[dev]To run the integration test cases, you need to install node and the custom cli tool as follows:apt-getinstall-ynodejs# As sudo./tests/integration/ethers-cli/setup_node_v12.sh# As sudocdtests/integration/ethers-cli
npminstall-g.# As sudoTesting SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1eth_account/tests/-c"clear; flake8 eth_account tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-account failed'"../tests../eth_accountRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch).If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: eth-account-klaytn
eth-account-klaytnSign Ethereum transactions and messages with local private keysRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstalleth-account-klaytnDeveloper SetupIf you would like to hack on eth-account, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/eth-account.gitcdeth-account
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e".[dev]"To run the integration test cases, you need to install node and the custom cli tool as follows:apt-getinstall-ynodejs# As sudo./tests/integration/ethers-cli/setup_node_v12.sh# As sudocdtests/integration/ethers-cli
npminstall-g.# As sudoTesting SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1eth_account/tests/-c"clear; flake8 eth_account tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-account failed'"../tests../eth_accountRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch).If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: eth-account-n
eth-account-nSign Ethereum transactions and messages with local private keysRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstalleth-accountDeveloper SetupIf you would like to hack on eth-account, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/eth-account.gitcdeth-account
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e".[dev]"To run the integration test cases, you need to install node and the custom cli tool as follows:apt-getinstall-ynodejs# As sudo./tests/integration/ethers-cli/setup_node_v12.sh# As sudocdtests/integration/ethers-cli
npminstall-g.# As sudoTesting SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1eth_account/tests/-c"clear; flake8 eth_account tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-account failed'"../tests../eth_accountRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch).If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: eth-accounts
eth-accountsLocal Ethereum keystore management libraryFree software: MIT licenseDocumentation:https://eth-accounts.readthedocs.io.FeaturesCreate and manage local Ethereum accountsAccount encryption (password)Configurable PBKDF2 iterationsTransaction signature (TODO)Example>>> from eth_accounts.account_utils import AccountUtils
>>>
>>> account_utils = AccountUtils(keystore_dir="/tmp/keystore")
>>> account_utils.new_account(password="strong_password")
<Account(address=0x7f92b97485c361ae50d5f30936fb52abac14fe08, id=None)>
>>> account_utils.get_account_list()
[<Account(address=0x7f92b97485c361ae50d5f30936fb52abac14fe08, id=None)>]
>>> account = account_utils.get_account_list()[0]
>>> account.privkey
b'wU\xb1\xd6\xf1,`\x05f\xf1\x93\x04B\x11\x88\xe4i\x9d \xb9z9B\xb4\x9a\x1f\xae\xc4{\xa5\x13\x1f'
>>> account_utils.delete_account(account)
>>> account_utils.get_account_list()
[]History20191227 (2019-12-27)AddedCoverallssupportAccountUtils.get_by_address()AccountUtils.update_account_password()20191226 (2019-12-26)First release on PyPI.
Package: eth-address-dump
eth-address-dump is a utility for dump eth address from mnemonic words or private key.ExampleDump eth address from mnemonic words:$ eth_address_dump "olympic wine chicken argue unaware bundle tunnel grid spider slot spell need"
mnemonic = olympic wine chicken argue unaware bundle tunnel grid spider slot spell need
private_key = 0x6ee825aafad19a0d759e1e0ba61d0c523b7b23038998a92d7904458b91667105
public_key = 0xaa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9fe85fc162e43d721533736d79c102139d3035d2d9251ccf809bc5bddb81cc6563
compressed_public_key = 0x03aa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9f
address = 0xF7dcf60AebA077461862d51b77d6d804C06E0073
nonce_zero_contract_address = 0xE861cA8695fEF51Da017D0187bA8C83D22de6708Dump eth address from private key:$ eth_address_dump 0x6ee825aafad19a0d759e1e0ba61d0c523b7b23038998a92d7904458b91667105
private_key = 0x6ee825aafad19a0d759e1e0ba61d0c523b7b23038998a92d7904458b91667105
public_key = 0xaa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9fe85fc162e43d721533736d79c102139d3035d2d9251ccf809bc5bddb81cc6563
compressed_public_key = 0x03aa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9f
address = 0xF7dcf60AebA077461862d51b77d6d804C06E0073
nonce_zero_contract_address = 0xE861cA8695fEF51Da017D0187bA8C83D22de6708Dump eth address from public key:$ eth_address_dump 0xaa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9fe85fc162e43d721533736d79c102139d3035d2d9251ccf809bc5bddb81cc6563
public_key = 0xaa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9fe85fc162e43d721533736d79c102139d3035d2d9251ccf809bc5bddb81cc6563
compressed_public_key = 0x03aa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9f
address = 0xF7dcf60AebA077461862d51b77d6d804C06E0073
nonce_zero_contract_address = 0xE861cA8695fEF51Da017D0187bA8C83D22de6708Dump eth address from compressed public key:$ eth_address_dump 0x03aa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9f
public_key = 0xaa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9fe85fc162e43d721533736d79c102139d3035d2d9251ccf809bc5bddb81cc6563
compressed_public_key = 0x03aa3e0b3f86053c2aaa08d6f6398e18f76100e0d675680228b000c252e4393e9f
address = 0xF7dcf60AebA077461862d51b77d6d804C06E0073
nonce_zero_contract_address = 0xE861cA8695fEF51Da017D0187bA8C83D22de6708Dump checksum encoded address from all lowercase address:$ eth_address_dump 0xf7dcf60aeba077461862d51b77d6d804c06e0073
address = 0xF7dcf60AebA077461862d51b77d6d804C06E0073
nonce_zero_contract_address = 0xE861cA8695fEF51Da017D0187bA8C83D22de6708InstallationTo install eth-address-dump from PyPI:$ pip3 install eth-address-dump
Package: ethanypc-simplerequest
ethanypc-simplerequestA simpler API built on top of Python's http.client.Support for Python 3 only.Install# from pypipipinstallethanypc-simplerequest# from testpypipipinstall-ihttps://test.pypi.org/simple/ethanypc-simplerequestUsageimportsimplehttpr=simplehttp.get_json("https://httpbin.org/get")assertr["args"]=={}r2=simplehttp.get_json("https://httpbin.org/get?debug=true",params={"name":"常⾒見見問題 Q&A"})assertr2["args"]=={"debug":"true","name":"常⾒見見問題 Q&A"}data={"isbn":"9789863479116","title":u"流暢的 Python"}r3=simplehttp.post_json("https://httpbin.org/post",params={"debug":"true"},data=data)assertr3["args"]=={"debug":"true"}assertjson.loads(r3["json"])==data
Package: eth-ape
OverviewApe Frameworkis an easy-to-use Web3 development tool.
Users can compile, test, and interact with smart contracts all in one command line session.
With ourmodular plugin system, Ape supports multiple contract languages and chains.Ape is built byApeWorX LTD.Join ourApeWorX Discord serverto stay up to date on new releases, plugins, and tutorials.If you want to get started now, see theQuickstartsection.DocumentationRead ourtechnical documentationto get a deeper understanding of our open source Framework.Read ouracademic platformwill help you master Ape Framework with tutorials and challenges.PrerequisiteIn the latest release, Ape requires:Linux or macOSPython 3.8 up to 3.11Windows: Install Windows Subsystem Linux(WSL)Check your python version in a terminal withpython3 --version.InstallationThere are three ways to install ape:pipx,pip, orDocker.Considerations for InstallingIf usingpip, we advise using the most up-to-date version ofpipto increase the chance of a successful installation.See issuehttps://github.com/ApeWorX/ape/issues/1558.To upgradepipfrom the command line, run:pip install --upgrade pip.We advise installing in avirtualenvorvenvto avoid interfering withOS-level site packages.We advise installingapewith recommended pluginspip install eth-ape'[recommended-plugins]'.We advise formacOSusers to install virtual env viahomebrew.Installing withpipxorpipInstallpipxvia theirinstallation instructionsorpipvia theirinstallation instructions.Installapeviapipx install eth-apeorpip install eth-ape.Installing withdockerApe can also run in a docker container.Please visit ourDockerhubfor more details on using Ape with Docker.dockerrun\--volume$HOME/.ape:/home/harambe/.ape\--volume$HOME/.vvm:/home/harambe/.vvm\--volume$HOME/.solcx:/home/harambe/.solcx\--volume$PWD:/home/harambe/project\apeworx/apecompileQuickstartAfter you have installed Ape, runape --versionto verify the installation was successful.Interact with Ape using either theCLIorPython code.See the following user-guides for more in-depth tutorials:AccountsNetworksProjectsCompilingTestingConsoleScriptingLoggingPlugin SystemApe's modular plugin system allows users to have an interoperable experience with Web3.Learn aboutinstallingplugins from following thisinstalling user guide.Learn more aboutdevelopingyour own plugins from thisdeveloping user guide.NOTE: If a plugin does not originate from theApeWorX GitHub Organization, you will get a warning about installing 3rd-party plugins.
Install 3rd party plugins at your own risk.
Package: eth-balancer
eth-balancereth-balancer is a python wrapper built ontop theweb3pylibrary to interact withBalancersolidity contracts on a public or private ethereum blockchain.The library defines a python function for each function defined by the solidity contracts in python, adding type hints for the arguments and return values. This makes it easier to call the contracts' function by enabling IDE features such as auto-completion.InstallationYou can install theeth-balancerpackage using pip:python -m pip install eth-balancerGetting startedHere is how to deploy and use theBalancer v1 BFactory solidity contractusing this library:# First, you need a connection to an ethereum node.# Here, we are using a local node created with ganache-cli for instance.fromweb3importWeb3,HTTPProviderurl="http://127.0.0.1:8545"w3=Web3(HTTPProvider(url))# We can deploy the factory as follows:frometh_balancer.v1.coreimportBFactory,BPoolreceipt=BFactory.deploy(w3).waitForReceipt()factory=receipt.contract# Alternatively, we can connect to a deployed instance:factory_address='0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd'factory=BFactory(w3,address=factory_address)# All the functions defined by the solidity contract are available.# Here is how to send a transaction to the newBPool functionreceipt=factory.functions.newBPool().waitForReceipt()# You can parse the event emitted by the function as follows:events=receipt.events.LOG_NEW_POOL()pool_address=events[0]["args"]["pool"]# Here is how to make an eth-callreturn_value=factory.functions.isBPool(pool_address).call()print(f"isBPool({pool_address}) returned{return_value}")# And here is how to create a BPool object using the newly created addresspool=BPool(w3,pool_address)DocumentationFor each solidity contract defined by Balancer, this package contains a python class with the same name and its methods also have the same name as the solidity one. This makes it easy to find the class and method you are looking for. Refer to Balancer documentation to learn how to interact with the contracts.Balancer documentationSolidity contracts for Balancer v1
Package: eth-blocky
eth-blockyPackage providing date utilities for finding blocks.Witheth-blocky, you can:Find the closest block to a given timestamp that happened beforeFind the closest block to a given timestamp that happened at the exact same
time or afterInstallationpip install eth-blockyUsageProvide a timestamp for which you want to find the closest block, and as a
result you will get the block object. For more information check outweb3
docsfrometh_blockyimportEthBlockyclient=EthBlocky(NODE_URL)# 2021-03-11T12:00:00timestamp=1615464000block=client.closest_block(timestamp,before=True)print(block.number)# 12017166block=client.closest_block(timestamp)print(block.number)# 12017167Methodeth-blockyworks as an optimized binary search.
Start with finding the first and latest block as the boundry. Left and right
block.Steps:Get left and right block and their timestampsCalculate the average time for blocks to being mined in this time rangeEstimate distance from start block based on timestamps [1, 3, 10] -> 0.3Estimate wanted block based on distanceCalculate potential errorRepeat from step 1 with [estimated block - error, estimated block + error] as
the left and right blockThe process is repeated until left block is equal to right block.
Package: ethcc
# ethcc
Ethereum smart contracts interface on top of web3pyInexample.pyyou can find a definition for aflag mapsmart contract where you have two methods,updateFlagCoordsandflagIdToCoords. Those two methods are said to accept and return an array of two ints, and in the model you can see how that is handled, so by defining anencodemethod and adecodemethod: those two will be automatically picked up - if defined - by the contract interface (ethcc/contract_interface.py).TODO:
* add contract creation
* add logging
* add tests
Package: eth_channel
Demonstrate an offline payment in Ethereum with a signed message, in
PythonPython 3.5+ supportRead more in thedocumentation on
ReadTheDocs.View the change
log.Quickstartpipinstalleth-channelgeth--devpython-meth_channel.demo_devDeveloper setupIf you would like to hack on eth-channel, please check out theEthereum
Development Tactical
Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:carver/eth-channel.gitcdeth-channelvirtualenv-ppython3venv.venv/bin/activatepipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1eth_channel/tests/-c"clear; flake8 eth_channel tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenvptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-channel failed'"../tests../eth_channelRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for
stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable
(stagecan be alpha or beta).To issue the next version in line, specify which part to bump, likemake release bump=minorormake release bump=devnum.If you are in a beta version,make release bump=stagewill switch to
a stable.To issue an unstable version when the current version is stable, specify
the new version explicitly, likemake releasebump="--new-version4.0.0-alpha.1devnum"
Package: eth-cobra
A fast, flexible and simple development environment framework for Ethereum smart contract, testing and
deployment on Ethereum virtual machine(EVM).With cobra you can get built-in smart contract compilation, linking, deployment, binary management,
automated contract testing with Unittest and PyTest frameworks, scriptable deployment & migrations framework
and network management for deploying to many public & private networks likeINFURAorGanache CLI.DependencyThis library requires thesolcexecutable to be present.Only versions>=0.4.2are supported and tested though this library may work
with other versions.solc: Ethereum solidity compiler.ganache-cli: A command-line version of Ethereum blockchain server.pip: To install packages from the Python Package Index and other indexes.python3: version 3.6 or greater.InstallationPIP to install cobra globally. For Linux sudo may be required.$ pip install eth-cobraDevelopmentWe welcome pull requests. To get started, just fork this repo, clone it locally, and run:$ pip install -e . -r requirements.txtQuick UsageInitialize project structureA default set of contract and tests, run the following command:$ cobra initGet help:$ cobra --helpFrom there, you can runcobra compile,cobra deploy/migrateandcobra test --unittest/--pytestto compile your contracts, deploy those contracts to the network, and run their associated unit tests.advanced cobra.yamlcompile:solidity_path:"./contracts"# globalartifact_path:"./build/contracts"contracts:[contract:{solidity:"Contract.sol",solidity_path:"./contracts/libs",# detailimport_remappings:["=/path/folder/contracts/"],allow_paths:["/path/folder/contracts/"]}]deploy:artifact_path:"./build/contracts/"contracts:[contract:{artifact:"Contract.json",links:["Contract.json"]}]test:artifact_path:"./build/contracts/"test_paths:["./tests"]contracts:[contract:{artifact:"Contract.json",links:["Contract.json"]}]network:development:{url:"https://ropsten.infura.io/...",host:"localhost",port:8545,hdwallet:{mnemonic:"decideadjustlegendnationtypesametaskaimrigidluckyguiltclose",# orseed:"decideadjustlegendnationtypesametaskaimrigidluckyguiltclose",password:"meherett",private:"5f8935bb3b61b312ba1114cbf6f1ea30102383f2b043a1b213aa482132d25049",gas:3000000,gas_price:1000000},protocol:"HTTP",# HTTP, HTTPS, WS(WebSocket) and ICPaccount:{address:"0x6a373a75c388ac2d160f1d2b6d9ada34f29831cd",gas:3000000,gas_price:1000000}}TestingTests are still under development.You can run the tests with:$ pytest testsOr usetoxto run the complete suite against the full set of build targets, or pytest to run specific
tests against a specific version of Python.MetaMeheret Tesfaye –@meherett–meherett@zoho.comDistributed under the MIT license. SeeLICENSEfor more information.https://github.com/meherettLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: eth-constants
Easy access to a variety of Ethereum constants in PythonRead more in thedocumentation on
ReadTheDocs.View the change
log.Quickstartpipinstalleth-constantsDeveloper setupIf you would like to hack on eth-constants, please check out theEthereum Development Tactical
Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:carver/eth-constants.gitcdeth-constantsvirtualenv-ppython3venv.venv/bin/activatepipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1eth_constants/tests/-c"clear; flake8 eth_constants tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenvptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-constants failed'"../tests../eth_constantsRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for
stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable
(stagecan be alpha or beta).To issue the next version in line, specify which part to bump, likemake release bump=minorormake release bump=devnum.If you are in a beta version,make release bump=stagewill switch to
a stable.To issue an unstable version when the current version is stable, specify
the new version explicitly, likemake releasebump="--new-version4.0.0-alpha.1devnum"