Saravanan666/pypi-org huggingface dataset:
Package: eviz
EVizconsists of two Python-based visualization libraries,eVizandiViz, that can process a variety
of model generated output and produce a corresponding variety of diagnostic plots. These libraries are intended
to be used, first and foremost, as a validation tool for earth system model data. Though both sets of libraries
process the same diagnostic datasets, there are clear distinctions between eViz and iViz in terms of the
functionality they provide. eViz provides static diagnostic images based on the matplotlib python visualization
library. iViz provides interactive images and panels based on the holoviz python visualization library.
We recommend users use one or both of these tools based on their needs. eViz is great for fast and at-a-glance
diagnostic, and iViz allows for both fast diagnostics and GUI-based investigation.DocumentationFor more information on installing and using eViz please refer to the [documentation](https://astg.pages.smce.nasa.gov/visualization/eviz).
For questions, comments, bug reports or feature requests please use the [issues section](https://gitlab.smce.nasa.gov/astg/visualization/eviz/-/issues) on Gitlab.LicenseEviz is distributed under the Apache license.  Please read the LICENSE document located in the root folder.References[![ASTG Logo](docs/static/ASTG_logo.png)](https://astg.pages.smce.nasa.gov/website)
Package: evkafka
evkafkaEVKafkais a lightweight framework for building
event-driven microservices with Apache Kafka and Python.
It is based on the asynchronous Kafka client libraryaiokafka.FeaturesEasy to start and useSync/async handlers are supportedExtensible through consumer middlewareLifespanAt-Least-Once/At-Most-Once event delivery guaranteesAutomatic API documentation generationInstallation$ pip install evkafkaExampleCreate a consumer appfromevkafkaimportEVKafkaApp,Handlerfromevkafka.configimportConsumerConfig,BrokerConfigfrompydanticimportBaseModelhandler=Handler()classFooEventPayload(BaseModel):user_name:str@handler.event("FooEvent")asyncdeffoo_handler(event:FooEventPayload)->None:print('Received FooEvent',event)if__name__=="__main__":broker_config:BrokerConfig={"bootstrap_servers":"kafka:9092"}consumer_config:ConsumerConfig={"group_id":"test","topics":["src-topic"],**broker_config}app=EVKafkaApp(expose_asyncapi=True)app.add_consumer(consumer_config,handler)app.run()Explore API docsAutomatic documentation (based onAsyncAPI) is build and served athttp://localhost:8080.Add a producer to the appfromevkafkaimportEVKafkaApp,Handler,Senderfromevkafka.configimportConsumerConfig,BrokerConfig,ProducerConfigfrompydanticimportBaseModelsender=Sender()handler=Handler()classFooEventPayload(BaseModel):user_name:strclassBarEventPayload(BaseModel):user_name:strmessage:str@sender.event('BarEvent')asyncdefsend_bar(event:BarEventPayload)->None:pass@handler.event("FooEvent")asyncdeffoo_handler(event:FooEventPayload)->None:print('Received FooEvent',event)new_event=BarEventPayload(user_name=event.user_name,message='hello')awaitsend_bar(new_event)if__name__=="__main__":broker_config:BrokerConfig={"bootstrap_servers":"kafka:9092"}consumer_config:ConsumerConfig={"group_id":"test","topics":["src-topic"],**broker_config}producer_config:ProducerConfig={"topic":"dest-topic",**broker_config}app=EVKafkaApp(expose_asyncapi=True)app.add_consumer(consumer_config,handler)app.add_producer(producer_config,sender)app.run()Check API docs updateDocumentation includes both consumed and produced events.More details can be found in thedocumentationLicenseThis project is licensed under the terms of the MIT license.
Package: ev-manager
ev-manager (Event Manager)Useful when working with DCCs like Maya, MotionBuilder, Unreal Engine, etc. and you want different tools/scripts to communicate with each other.Installation:pip install ev-managerExamples:importev_managerdefhello_world():print("Hello World")ev_manager.bind("MyEvent",hello_world)>>>importev_manager>>>ev_manager.emit("MyEvent")>>>"Hello World"Available functions:FunctionDescriptionbind(event, function)Bind a function to an event.unbind(event, function)Unbind a function from an event.unbind_all(*, event, function)Either unbind all functions from an event or unbind a function from all events.is_bound(event, function)Check if a function is bound to an event.emit(event, *args, **kwargs)Call all functions bound to an event.Limitations:Events are per Python instance. So they will for example not be communicating between different applications.
Package: evm-architect
EVM_ArchitectThere's a handful of optimizations still to be had. Speed has been increased by using a rpc provider rather than etherscan for getCode, and the multicheck function is now multithreaded so that all the checks occur simultaneaously. The following is an example of how to get a flat list of entities in an architecture, given a single address.To use this, make sure you're using python 3.9.0. You can install using pip.pipinstallevm-architectMost of the time you'll probably just want to use getArch(), these are the arguments:getArch(address-string,transaction_limit-int,flatten-bool)If flatten==True, then you will get a list of addresses (EOAs and contracts).#Example:['0xd1c24f50d05946b3fabefbae3cd0a7e9938c63f2','0xc0a47dfe034b400b47bdad5fecda2621de6c4d95','0xa087b7351c24082ac7ef7ca79b4f4c5d2e82be84','0x2157a7894439191e520825fe9399ab8655e0f708','0x2c4bd064b998838076fa341a83d007fc2fa50957','0xddee242662323a3cff3f9aa139ffa496ac3c73b0',...]If flatten==False, then you will get a dictionnary in the format below. Keep in mind that created1 may also be a creator somewhere else in the dictionnary.{creator:[created1,created2,created3,...]}#Example:{'0xd1c24f50d05946b3fabefbae3cd0a7e9938c63f2':['0xa087b7351c24082ac7ef7ca79b4f4c5d2e82be84','0x2157a7894439191e520825fe9399ab8655e0f708','0xc0a47dfe034b400b47bdad5fecda2621de6c4d95'],...}Here are some code examples:fromevm_architectimportarchitectarch=architect.Arch()architecture=arch.getArch("0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95",50,False)architecture=arch.getArch("0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95",50,True)uarch=arch.uniqueContracts(architecture,{})#returns a dictionary of {address: hash of opcode stack} using every address in the creationdict (unflattened architecture)highest=arch.getHighest(architecture)#returns the highest position creator in the creationdict (unflattened architecture)
Package: evmath
EvmathWebsite: (https://ballandt.github.io/projects/evmath/index.html)
Documentation: (https://ballandt.github.io/docs/evmath.html)DescriptionEvmath is a python package that contains advances math features
and functionalities. It is created to easily access deeper math
without the need of mathematical support, so it shall to concentrate
on the programming part.InformationCategoryDataAuthorCamillo BallandtRelease version1.1.0Developing version1.1.1FeaturesStandard featurestrigonometryfacultiesGeometryvectorsmatricesanglespoint structuresvector areasIssuesEvmath standard features are sometimes dependent to the
standard math library.Current developmentsmatricesdeterminant function (1.1.1)vectorsmatrix operations (n.p.)std featuresindependence of math module (1.2.0)
Package: evm-cfg-builder
# EVM CFG BUILDER
[![Build Status](https://travis-ci.org/crytic/evm_cfg_builder.svg?branch=master)](https://travis-ci.org/crytic/evm_cfg_builder)
[![Slack Status](https://empireslacking.herokuapp.com/badge.svg)](https://empireslacking.herokuapp.com)
[![PyPI version](https://badge.fury.io/py/evm-cfg-builder.svg)](https://badge.fury.io/py/evm-cfg-builder)evm-cfg-builderis used to extract a control flow graph (CFG) from EVM bytecode. It is used by Ethersplay, Manticore, and  other tools from Trail of Bits. It is a reliable foundation to build program analysis tools for EVM.We encourage contributions that address any known [issues](https://github.com/trailofbits/evm_cfg_builder/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) and will pay out bounties for accepted PRs. Join us on the [Empire Hacking Slack](https://empireslacking.herokuapp.com) to discuss using or extendingevm-cfg-builder.## FeaturesReliably recovers a Control Flow Graph (CFG) from EVM bytecode using a dedicated Value Set AnalysisRecovers functions namesRecovers attributes (e.g., payable, view, pure)Outputs the CFG to a dot fileLibrary API## Usage### Command lineTo export basic dissassembly information, run:`evm-cfg-buildermycontract.evm `To export the CFG of each function (dot format), run:`evm-cfg-buildermycontract.evm--export-dotmy_dir `dot files can be read using xdot.### Library
See [examples/explore_cfg.py](examples/explore_cfg.py) and [examples/explore_functions.py](examples/explore_functions.py) for library examples.## How to install### Using Pip` $ pip installevm-cfg-builder`### Using Git` git clonehttps://github.com/trailofbits/evm_cfg_builderpip install . `## RequirementsPython >= 3.6[pyevmasm](https://github.com/trailofbits/pyevmasm)## Getting HelpFeel free to stop by our [Slack channel](https://empireslacking.herokuapp.com) (#ethereum) for help using or extending evm-cfg-builder.## Licenseevm-cfg-builderis licensed and distributed under the AGPLv3. [Contact us](mailto:opensource@trailofbits.com) if you’re looking for an exception to the terms.
Package: evm-cfg-builder-fixed
# EVM CFG BUILDER
[![Build Status](https://travis-ci.org/crytic/evm_cfg_builder.svg?branch=master)](https://travis-ci.org/crytic/evm_cfg_builder)
[![Slack Status](https://empireslacking.herokuapp.com/badge.svg)](https://empireslacking.herokuapp.com)
[![PyPI version](https://badge.fury.io/py/evm-cfg-builder.svg)](https://badge.fury.io/py/evm-cfg-builder)> This version is modified by Soptq to possible infinite loop error.evm-cfg-builderis used to extract a control flow graph (CFG) from EVM bytecode. It is used by Ethersplay, Manticore, and  other tools from Trail of Bits. It is a reliable foundation to build program analysis tools for EVM.We encourage contributions that address any known [issues](https://github.com/trailofbits/evm_cfg_builder/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) and will pay out bounties for accepted PRs. Join us on the [Empire Hacking Slack](https://empireslacking.herokuapp.com) to discuss using or extendingevm-cfg-builder.## FeaturesReliably recovers a Control Flow Graph (CFG) from EVM bytecode using a dedicated Value Set AnalysisRecovers functions namesRecovers attributes (e.g., payable, view, pure)Outputs the CFG to a dot fileLibrary API## Usage### Command-lineTo export basic dissassembly information, run:`bashevm-cfg-buildermycontract.evm `To export the CFG of each function (dot format), run:`bashevm-cfg-buildermycontract.evm--export-dotmy_dir `dot files can be read using xdot.### Library
See [examples/explore_cfg.py](examples/explore_cfg.py) and [examples/explore_functions.py](examples/explore_functions.py) for library examples.## How to install### Using Pip`bash pip installevm-cfg-builder`### Using Git`bash git clonehttps://github.com/trailofbits/evm_cfg_builderpip install . `## RequirementsPython >= 3.6[pyevmasm](https://github.com/trailofbits/pyevmasm)## Getting HelpFeel free to stop by our [Slack channel](https://empireslacking.herokuapp.com) (#ethereum) for help using or extending evm-cfg-builder.## Licenseevm-cfg-builderis licensed and distributed under the AGPLv3. [Contact us](mailto:opensource@trailofbits.com) if you’re looking for an exception to the terms.
Package: evmchain-etl-table-definition-cli
EVM Chain ETL Table Definition CLIEVM Chain ETL Table Definition CLI allows generating table definitions forEthereum ETL,Polygon ETL,EVM Chain ETL.Read this article for more details:How to get any Ethereum smart contract into BigQuery (in 8 mins).Requirements:Python 3.6+QuickstartInstall the cli:pipinstallevmchain-etl-table-definition-cliGenerate table definitions (example_uniswap_abi.jsoncan be downloaded fromhere):tabledefinitiongenerate\--abi-fileexample_uniswap_abi.json\--dataset-nameuniswap\--contract-nameUni\--contract-address0x1f9840a85d5af5bf1d1762f925bdaddc4201f984For Solana:tabledefinitiongenerate\--chainsolana\--abi-fileexample_metaplex_idl.json\--dataset-namemetaplex\--contract-nameAuctionHouse\--contract-addresshausS13jsjafwWwGqZTUQRmWyvyxn9EQpqMwV1PBBmk--include-functionsOutput will be in theoutputdirectory.For the latest version, check out the repo and callpipinstall-e.
pythontabledefinition.py--help
Package: evmchains
Python EVM Chains MetadataProvides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.Original soure data:https://github.com/ethereum-lists/chainsQuick StartDependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallevmchainsviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/evmchains.gitcdevmchains
python3setup.pyinstallQuick Usagefrom evmchains import get_chain_meta
chain = get_chain_meta("ethereum", "mainnet")
assert chain.chainId == 1DevelopmentPlease see thecontributing guideto learn more how to contribute to this project.
Comments, questions, criticisms and pull requests are welcomed.
Package: evmdasm
evmdasmA lightweight ethereum evm bytecode instruction registry, disassembler and evmcode manipulation library.This library is meant for providing a static interface and registry for EVM opcodes and instructions. The idea is to keep it as lightweight as possible especially when it comes to dependencies or high level features.e.g. Theethereum-dasmproject - a kind of high level disassembler with static/dynamic analysis features - relies on the registry and base disassembling functionality provided byevmdasm.More information-->WikiProjects building onevmdasm::trophy:https://github.com/ethereum/evmlab:trophy:https://github.com/tintinweb/ethereum-dasm:trophy:https://github.com/tintinweb/evmcodegenSetupfrom pypi#> python3 -m pip install evmdasmfrom source#> python3 setup.py install
Package: evm-extras
evm-extrasThe package containing utilities to develop Web3-based projectsTelegram channelBug reportsPackage's source code is made available under theMIT LicenseInstalling evm-extrasTo install python-extras from PyPi, you can use that:pipinstallevm-extrasTo install python-extras from GitHub, use that:pipinstallgit+https://github.com/blnkoff/evm-extras.git
Package: evmos
Pyevmos - Python SDK to assist developers on Evmos chain.Disclaimer: this package is not officialy maintained by Evmos affiliates.Read ourdocumentationon ReadTheDocs.This project is a direct python port ofevmosjslibrary.InstallationInstall with pip:pipinstall-UevmosInstall from source:gitclonehttps://github.com/sterliakov/pyevmos/cdpyevmos
pipinstall.Supported extras:test: install test dependencies (pip install evmos[test])dev: install development dependencies (pip install evmos[dev]) - currentlypre-commitandcompilerextension forbetterproto.docs: dependencies for building documentation (pip install evmos[docs])
Package: evmosgrpc
Evmos GRPCEvmos' grpc messages.
WIP: Only themessage sendwas implemented because is the one used for the faucet.RequirementsPython3.9+Evmos grpc endpoint availableWallet seed (only supports the evmos default algorithm:ethsecp256k1)InstallationpipinstallevmosgrpcConfigurationThe configuration can be set usingenv vars:GRPC_ENDPOINT: Default = '127.0.0.1:9090'MEMO: Default = 'Sent from Hanchon's faucet'FEE: Default = '20'GAS_LIMIT: Default = '200000'CHAIN_ID: Default = 'evmos_9000-1'DENOM: Default = 'aphoton'Usagefromevmosgrpc.messages.msgsendimportcreate_msg_sendfromevmosgrpc.builderimportTransactionBuilderfromevmosgrpc.transactionimportTransactionseed='garment seat help gallery ride divide truth smooth end chunk '\'ten cross badge want vehicle mirror dismiss remind crouch '\'base crouch palm leader dinner'builder=TransactionBuilder(seed)msg=create_msg_send(builder.address,"evmos1sgg7ny6mkk375ghdlx837hkm92dqxs450fxwwz",100,)res=builder.send_tx(Transaction().generate_tx(builder,msg))# res =# tx_response {#   txhash: "F4DFCF8E0BAEBBE088DF0C8A4DA1EF70CD29983C5F7663A523A87F1CE479BFF5"#   raw_log: "[]"# }# To read the response as a dict:fromgoogle.protobuf.json_formatimportMessageToDictres_obj=MessageToDict(res)TODOAdd tests.Add more messages.Addsecp256k1wallet support onevmoswallet.
Package: evmosproto
Evmos protoCompiled evmos'protobuffiles ready to use withpython3.9+.InstallationpipinstallevmosprotoUsageimportgrpcfromevmosproto.cosmos.tx.v1beta1.service_pb2_grpcimportServiceStubfromevmosproto.cosmos.tx.v1beta1.service_pb2importBroadcastTxRequestchannel=grpc.insecure_channel('127.0.0.1:9090')stub=ServiceStub(channel)msg=BroadcastTxRequest()# Set your msg params...send=stub.BroadcastTx(msg)print(send)
Package: evmos-protobuf
evmos ProtobufThis repository contains the whole evmos protobuf files compiled for python and ready to use with grpc. Please use the according .proto file as documentation for each python file.InstallationYou can install this package directly from the repository by using:python -m pip install evmos-protobufUsageThe following code snippet will query the balances for the addressosmo15hzhcvgs2ljfng6unghvr5l32prwqdyq4aguxn. The according query.proto file in the bank subdirectory contains the Request and the Response for this request. The details for the response are defined inQueryAllBalancesResponse. It contains the balances and pagination attribute which can be accessed as shown in the example below.importgrpcimportevmos_protobuf.cosmos.bank.v1beta1.query_pb2_grpcasquery_pb2_grpcimportevmos_protobuf.cosmos.bank.v1beta1.query_pb2asquery_pb2host="evmos.strange.love"port="9090"c=grpc.insecure_channel(f'{host}:{port}')stub=query_pb2_grpc.QueryStub(c)r=stub.AllBalances(query_pb2.QueryAllBalancesRequest(address="osmo15hzhcvgs2ljfng6unghvr5l32prwqdyq4aguxn"))print(r.balances)Build yourselfThere are two scripts helping you to fork this repository to work with any cosmos based coin.Create a config inconfigsand take a existing one as exampleRun theaggregate.pyfile with your filename without.json(Examplepython aggregate.py cosmos)Run thecompile.pyto compile all your files to protobufBuild your package. You're done!Protobuf compilationThe files are compiled using thegrpc_tools.protoccommand from thegrpcio-toolslibrary.
To compile a .proto file manually use following command:python -m grpc_tools.protoc -I <absolute path to project root> --python_out=. --grpc_python_out=. <absolute path to .proto file>After compiling all the files with protoc you need to fix the imports by usingprotoletariatNote:The --grpc_python_out=. is only needed when compiling a query.proto file as these define the actual grpc queryTo compile the whole project it is favorable to match all proto files by using*.protoinstead of each individual file. You can also match the whole folders to compile multiple folders at the same time. Not that the folders might contain sub-folders.Other Cosmos based coinsCurrently following coins are maintained by me:Cosmos (branch:main)evmos (this branch)
Package: evmospy
EvmospyPython3.9+ utils for the Evmos Blockchain.RequirementsThe cryptocurve dependency requires some libs to be built:sudoapt-getinstallbuild-essentiallibssl-devlibffi-devpython3-devautoconflibtoolpkgconfMacOS:brewinstallautoconfautomakelibtoolInstallationpipinstallevmospyMacOS openssl errorIf you get the error that says something likethe libcrypto is running on unsafe modeand the process is aborted:brewinstallopenssl
sudoln-s/opt/homebrew/opt/openssl@1.1/lib/libcrypto.1.1.dylib/usr/local/lib
sudoln-s/opt/homebrew/opt/openssl@1.1/lib/libssl.1.1.dylib/usr/local/libcd/usr/local/lib
sudoln-slibcrypto.3.dyliblibcrypto.dylib
sudoln-slibssl.3.dyliblibssl.dylibUsageInside each./evmospy/<module>/there is a README file with an example on how to use the module.
Package: evmoswallet
Evmos walletEvmos wallet utils forpython3.9+.InstallationpipinstallevmoswalletUsagefromevmoswalletimportWalletwallet=Wallet(seed)seed='report spend crisp crisp world shock morning hour '\'spoon problem one hole program piano donkey width '\'today view canoe clap brick bundle rose book'print(wallet.eth_address)# "0xe7e3654bc1ea915e7216d8193ef8dd7d5dae987f"print(wallet.evmos_address)# "evmos1ul3k2j7pa2g4uuskmqvna7xa04w6axrl85alz5"print(wallet.private_key)# bytes.fromhex("8721109b7244925c0480f4172546b8b53dfe87845274070fbe8e6da739d1b813")msg=bytes(...)# protobuf messagesigned=wallet.sign(msg)Referencespywallettow1
Package: evmTools-pipi
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: evmTools-py
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.