Saravanan666/pypi-org huggingface dataset:
Package: ethpm
Join the chat at
https://gitter.im/ethpm/lobbyCircleCIPyPI
versionA Python implementation of theEthereum Package Manager
Specification.Read more in the documentation onReadTheDocs.WARNING!Py-EthPMis currently in public alpha.Keep in mind: - It is
expected to have bugs and is not meant to be used in production - Things
may be ridiculously slow or not work at allQuickstartpipinstallethpmDeveloper SetupIf you would like to hack on Py-EthPM, please check out theEthereum
Development Tactical
Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDeveloper Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethpm/py-ethpm.gitcdpy-ethpmvirtualenv-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-1py-ethpm/tests/-c"clear; flake8 py-ethpm 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 <REPO_NAME> failed'"../tests../<MODULE_NAME>How to Execute the Tests?Setup your development
environment.Executetoxfor the testsThere are multiplecomponentsof the tests. You can run test to against specific component. For
example:# Run Tests for the Core component (for Python 3.5):tox-epy35# Run Tests for the Core component (for Python 3.6):tox-epy36If for some reason it is not working, add--recreateparams.toxis good for testing against the full set of build targets. But
if you want to run the tests individually,py.testis better for
development workflow. For example, to run only the tests in one file:pytesttests/ethpm/utils/test_uri_utils.pyIPFS integration tests (tests/ethpm/integration/) require a direct
connection to an IPFS node and are skipped by default (except in
CircleCI, where they are run). To include these tests in your test run,
first start an IPFS node and then add--integrationto the pytest
command.Release 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"EthPM-SpecEthPM-Spec<https://github.com/ethpm/ethpm-spec>__ is
referenced inside this repo as a submodule.**If you clone this repository, run this command to fetch the contents
of the submodulegit submodule init
Package: ethpm-cli
CLI for EthPMRead more in thedocumentation on
ReadTheDocs.View the change
log.Quickstartpipinstallethpm-cliDeveloper SetupIf you would like to hack on ethpm-cli, 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/ethpm-cli.gitcdethpm-clivirtualenv-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-1ethpm_cli/tests/-c"clear; flake8 ethpm_cli 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 ethpm-cli failed'"../tests../ethpm_cliRelease 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). To include changes made with each
release, update “docs/releases.rst” with the changes, and apply commit
directly to master before release.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: ethpm-types
Quick StartEthPM is an Ethereum package manifest containing data types for contracts, deployments, and source code usingEIP-2678.
The library validates and serializes contract related data and provides JSON schemas.Dependenciespython3version 3.8 to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallethpm-typesviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ethpm-types.gitcdethpm-types
python3setup.pyinstallQuick UsageStarting with a dictionary of attribute data, such as a contract instance, you can build an EthPM typed object.fromethpm_typesimportContractInstancecontract=ContractInstance(contractType="ContractClassName",address="0x123...")print(contract.contract_type)
Package: eth-portal
Portal Network ToolsA collection of utilities related to Ethereum's Portal NetworkRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstalleth-portalDeveloper SetupIf you would like to hack on eth-portal, 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-portal.gitcdeth-portal
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-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_portal/tests/-c"clear; flake8 eth_portal 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-portal failed'"../tests../eth_portalRelease 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-prototype
eth-prototypePrototype Ethereum Smart Contracts in PythonDescriptionLibrary with base classes to prototype Ethereum Smart Contracts in Python. This includes:wadray: classes for fixed number of decimals math implemented with integers.contracts: classes to simulate contracts in Python with features likerollbackon exception, external
methods, views. Also classes for common contracts like ERC20 (tokens), ERC721 (NFTs) and AccessControl.w3wrappers: classes to wrap ethereum contracts called thruweb3pybut with a pythonic interfaceTo use thedefender_relaymodule you need to have thewarrantpackage from this repo:https://github.com/gnarvaja/warrant. Add it to your requirements.txt as:warrant @ git+https://github.com/gnarvaja/warrant.git#egg=warrantNote that using thewarrantpackage from pypi will not work because of incompatibilities with newer python versions.Tox TestsThe tox tests run in two variants:default: only uses and tests the prototype libraries, no blockchain.default-w3: users and tests two variants: prototype and w3wrappers (wrappers using web3py).NoteThis project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: ethproxy
DescriptionThis is Stratum Proxy for Ethereum based pools (RPCv2) using asynchronous networking written in Python Twisted.NOTEThis fork is still in development. Some features may be broken. Please report any broken features or issues.FeaturesAdditional up to 20% increase of earning compared to standard poolsETH stratum proxyAutomatically failover via proxyOnly one connection to the poolWorkers get new jobs immediatelySubmit of shares without network delay, it’s like solo-mining but with benefits of professional poolCentral Wallet configuration, miners doesn’t need wallet as usernameSupport monitoring via emailBypass worker_id for detailed statistic and per rig monitoringpass submitHashrate to poolFast deployment through DockerHow it worksExample:rig1 ---- rig2 ---- rig3
            |
        stratum proxy (ethproxy)
        |          |
    Pool A      Pool B
   (Active)   (Failover)Configurationethproxy/settings.py contains settings, all of which can be set via
environment variablesCommand line startRecommended farm-recheck to use with stratum-proxy is 200:./ethminer --farm-recheck 200 -G -F http://127.0.0.1:8080/rig1Proxy working checkTo check that proxy works open in browserhttp://127.0.0.1:8080/(or your changed ip and port from config)If you see “Ethereum stratum proxy” and some infos about connections.If not then mostly case that you have application running on this port, at example Antivirus.Requirementseth-proxy is built in python. The requirements for running the software are below.Python 2.7+, 3.6+python-twistedInstallation[Linux]With python (and pip) installed, use pip to install:pip install ethproxyStart proxy with:ethproxy[Windows]This are old directions, might be easier to pip install but twisted has native
dependencies so good luck with that :)Download compiled versionhttps://github.com/Atrides/eth-proxy/releasesOr use python source code1) Download Python Version 2.7.14 (or greater) for Windowshttps://www.python.org/downloads/Modify PATH variable (how-tohttp://www.java.com/en/download/help/path.xml) and add
C:Python27;C:Python27Scripts;3) Install python setuptoolshttps://pypi.python.org/pypi/setuptools/#windows-7-or-graphical-install4) Install Python-Twistedhttps://pypi.python.org/pypi/Twisted/15.4.0File Twisted-15.4.0.win32-py2.7.msi (32bit) or Twisted-15.4.0.win-amd64-py2.7.msi (64bit)Install zope.interface, in console run:pip install -U zope.interface6) Install PyWin32 v2.7
pywin32-219.win32-py2.7.exe or pywin32-219.win-amd64-py2.7.exehttp://sourceforge.net/projects/pywin32/files/pywin32/Download eth-proxy. Extract eth-proxy.zip. Change settings and start with command:python xmr-proxy.py[Docker]Use this generic command line (conf references likely need to be updated with package refactor):docker run -d -v CONFIG:/app/eth-proxy.conf -p PORT:8080 --name eth-proxy fmauneko/eth-proxyExemple:docker run -d -v /srv/eth-proxy/eth-proxy.conf:/app/eth-proxy.conf -p 8080:8080 --name eth-proxy fmauneko/eth-proxyTODOlint and make python more happyCreditsAtrides workOriginal version by Slush0 (original stratum code)More Features added by GeneralFault, Wadee Womersley and MooplessLicensePlease see LICENSE for further info
Package: ethpwn
ethpwnethpwnis a project inspired by the widely popular CTF exploitation framework pwntools, and the amazing enhanced GDB utility GEF. In other words, ethpwn is all you ever wanted for debugging and interacting with smart contracts on EVM-based blockchains.More practically, this package includes a kick-ass command line debugger for simulating and re-playing Ethereum transactions (ethdbg), and a set of convenient wrappers for manyweb3functionalities that are useful for interacting with smart contracts.⚡️ Quick SetupRelease InstallationpipinstallethpwnDeveloper InstallationMake sure your pip version is >= 23.1.2, then:gitclonegit@github.com:ethpwn/ethpwn.git&&cd./ethpwn&&pipinstall-e.❗️ NoteTo start out, if you haven't created your global config before, you should runethpwn config createto generate your initial configuration file. This command will interactively prompt you for the most important settings, including the Ethereum node URL to use and wallets you want to use.⚡️ Jump Start for ethdbgethdbg--txid0x82a11757c3f34c2882e209c6e5ae96aff3e4db7f7984d54f92b02e1fed87e834--node-urlhttps://mainnet.infura.io/v3/38eb4be006004da4a89315232040e222📖 Documentation⚙️ Currently Supported EVM-based ChainsChain NameChain IdSupportedmainnet1✅sepolia (testnet)11155111✅
Package: ethpwn-py-evm
Python Implementation of the Ethereum protocolPy-EVMPy-EVM is an implementation of the Ethereum protocol in Python. It contains the low level
primitives for the existing Ethereum 1.0 chain as well as emerging support for the upcoming
Ethereum 2.0 / Serenity spec.GoalsPy-EVM aims to eventually become the defacto Python implementation of the Ethereum protocol,
enabling a wide array of use cases for both public and private chains.In particular Py-EVM aims to:be a reference implementation of the Ethereum 1.0 and 2.0 implementation in one of the most widely used and understood languages, Python.be easy to understand and modifiablehave clear and simple APIscome with solid, friendly documentationdeliver the low level primitives to build various clients on top (includingfullandlightclients)be highly flexible to support both research as well as alternate use cases like private chains.QuickstartGet started in 5 minutesDocumentationCheck out thedocumentation on our official websiteWant to help?Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our
guidelines forcontributingand then check out one of our issues that are labeledGood First Issue.
Package: eth-pydantic-types
eth-pydantic-typesThe types in this package are pydantic types for Ethereum inspired frometh-typing.HashHashBytes{n}andHashStr{n}are good types to use when your hex values are sized.
Both types serialize tostringin the JSON schema.
UseHashBytestypes when you want types to serialize to bytes in the Pydantic core schema andHashStrtypes when you want to serialize tostrin the core Pydantic schema.frompydanticimportBaseModelfrometh_pydantic_typesimportHashBytes32,HashStr20# When serializing to JSON, both types are hex strings.classTransaction(BaseModel):tx_hash:HashBytes32# Will be bytesaddress:HashStr20# Will be str# NOTE: I am able to pass an int-hash as the value and it will#  get validated and type-coerced.tx=Transaction(tx_hash=0x1031f0c9ac54dcb64b4f121a27957c14263c5cb49ed316d568e41e19c34d7b28,address=0x1031f0c9ac54dcb64b4f121a27957c14263c5cb4,)HexBytesA thin-wrapper around an already thin-wrapperhexbytes.HexBytes.
The difference here is that this HexBytes properly serializes.
Use HexBytes any place where you would actually usehexbytes.HexBytes.HexBytesserializes to bytes in the Pydantic core schema andstringin the JSON schema with a binary format.frompydanticimportBaseModelfrometh_pydantic_typesimportHexBytesclassMyStorage(BaseModel):cid:HexBytes# NOTE: We are able to pass a hex-str for a HexBytes value.storage=MyStorage(cid="0x123")AddressUse the Address class for working with checksummed-addresses.
Addresses get validated and checksummed in model construction.
Addresses serialize tostrin the Pydantic core schema andstringin the JSON schema with a binary format.frompydanticimportBaseModelfrometh_pydantic_typesimportAddressclassAccount(BaseModel):address:Address# NOTE: The address ends up checksummed#   ("0x0837207e343277CBd6c114a45EC0e9Ec56a1AD84")account=Account(address="0x837207e343277cbd6c114a45ec0e9ec56a1ad84")HexStrUse hex str when you only care about un-sized hex strings.
TheHexStrtype serializes tostrin the Pydantic core schema and astringin the JSON schema with a binary format.frometh_pydantic_typesimportHexStrfrompydanticimportBaseModelclassTx(BaseModel):data:HexStrtx=Tx(data="0x0123")Bip122UriUse BIP-122 URIs in your models by annotating with theBip122Uritype.
This type serializes to astrin the Pydantic core schema as well as astringin the JSON schema, however the individual hashes are validated.frometh_pydantic_typesimportBip122UrifrompydanticimportBaseModelclassMessage(BaseModel):path:Bip122Urimessage=Message(path=("blockchain://d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3""/block/752820c0ad7abc1200f9ad42c4adc6fbb4bd44b5bed4667990e64565102c1ba6"))
Package: ethraid
# EthraidCharacterize long-period companions with partial orbits.## Environment
### Create new environment with python 3.7
-$ conda create –name trends_env python=3.7-$ conda activate trends_env## Download using pip
-$ pip install ethraid- If the installation fails, try upgrading pip:$ curl https://bootstrap.pypa.io/get-pip.py | python## Example CLI usage
### Run orbit fits, plot results, and print 95% confidence intervals all at once
-$ ethraid all -cf path/to/ethraid/example_config_files/config_191939.py-rfp results/test1/test1_processed.h5 -t 1d 2d### Or run each command separately:### Run orbit fits using parameters in configuration file
-$ ethraid run -cf path/to/ethraid/example_config_files/config_191939.py### Load and plot saved results
-$ ethraid plot -cf ethraid/config_files/test1.py -rfp results/test1/test1_raw.h5 -gn 75 -t 1d 2d### Print 95% mass and semi-major axis confidence intervals based on derived posterior
-$ ethraid lims -rfp results/test1/test1_raw.h5 -gn 100## Download repo from Github
### Install dependencies using requirements.txt
-$ pip install -r requirements.txt### Build code from top level of repo
-$ cd trends/-$ python setup.py build_ext –inplace### Use api_run.py as a reference
-$ python api_run.py
Package: eth-rlp
eth-rlpRLP definitions for common Ethereum objects in PythonRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpython-mpipinstalleth-rlpDeveloper SetupIf you would like to hack on eth-rlp, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsDocumentationWe usepre-committo maintain consistent code style. Once
installed, it will run automatically with every commit. You can also run it manually
withmake lint. If you need to make a commit that skips thepre-commitchecks, you
can do so withgit commit --no-verify.Development Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/eth-rlp.gitcdeth-rlp
virtualenv-ppython3venv
.venv/bin/activate
python-mpipinstall-e".[dev]"pre-commitinstallRelease setupTo 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
main branch, except when releasing a beta (in which case the beta is released from main,
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: ethrpc
ethrpc.pyA Python library for interacting with Ethereum.Python 3.7.2+ supportQuickstartGet started in 5 minutesortake a tourof the library.DocumentationFor additional guides, examples, and APIs, see thedocumentation.Want to help?Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our
guidelines forcontributing,
then check out issues that are labeledGood First Issue.Questions on implementation or usage? Join the conversation ondiscord.安装twinepip3 install twine打包检查python3 setup.py check打包python3 setup.py sdist build上传twine upload dist/*
Package: ethrpc-accounts
ethrpc-accountsSign Ethereum transactions and messages with local private keysRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpython-mpipinstallethrpc-accountsDeveloper SetupIf you would like to hack on ethrpc-accounts, 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/ethrpc-accounts.gitcdethrpc-accounts
virtualenv-ppython3venv
.venv/bin/activate
python-mpipinstall-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_v18.sh# As sudocdtests/integration/ethers-cli
npminstall-g.# As sudoRelease setupTo 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"