Saravanan666/pypi-org huggingface dataset:
Package: bethereum-etl
Ethereum ETLEthereum ETL lets you convert blockchain data into convenient formats like CSVs and relational databases.Do you just want to query Ethereum data right away? Use thepublic dataset in BigQuery.Full documentation available here.QuickstartInstall Ethereum ETL:pip3installethereum-etlExport blocks and transactions (Schema,Reference):>ethereumetlexport_blocks_and_transactions--start-block0--end-block500000\--blocks-outputblocks.csv--transactions-outputtransactions.csv\--provider-urihttps://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643cExport ERC20 and ERC721 transfers (Schema,Reference):>ethereumetlexport_token_transfers--start-block0--end-block500000\--provider-urifile://$HOME/Library/Ethereum/geth.ipc--outputtoken_transfers.csvExport traces (Schema,Reference):>ethereumetlexport_traces--start-block0--end-block500000\--provider-urifile://$HOME/Library/Ethereum/parity.ipc--outputtraces.csvStream blocks, transactions, logs, token_transfers continually to console (Reference):>pip3installethereum-etl[streaming]>ethereumetlstream--start-block500000-eblock,transaction,log,token_transfer--log-filelog.txt\--provider-urihttps://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643cFind other commandshere.For the latest version, check out the repo and call>pip3install-e.>python3ethereumetl.pyUseful LinksSchemaCommand ReferenceDocumentationPublic Datasets in BigQueryExporting the BlockchainQuerying in Amazon AthenaQuerying in Google BigQueryQuerying in KaggleAirflow DAGsPostgres ETLEthereum 2.0 ETLRunning Tests>pip3install-e.[dev,streaming]>exportETHEREUM_ETL_RUN_SLOW_TESTS=True
>exportPROVIDER_URL=<your_porvider_uri>
>pytest-vvRunning Tox Tests>pip3installtox
>toxRunning in DockerInstall Docker:https://docs.docker.com/get-docker/Build a docker image> docker build -t ethereum-etl:latest .
 > docker image lsRun a container out of the image> docker run -v $HOME/output:/ethereum-etl/output ethereum-etl:latest export_all -s 0 -e 5499999 -b 100000 -p https://mainnet.infura.io
 > docker run -v $HOME/output:/ethereum-etl/output ethereum-etl:latest export_all -s 2018-01-01 -e 2018-01-01 -p https://mainnet.infura.ioRun streaming to console or Pub/Sub> docker build -t ethereum-etl:latest .
 > echo "Stream to console"
 > docker run ethereum-etl:latest stream --start-block 500000 --log-file log.txt
 > echo "Stream to Pub/Sub"
 > docker run -v /path_to_credentials_file/:/ethereum-etl/ --env GOOGLE_APPLICATION_CREDENTIALS=/ethereum-etl/credentials_file.json ethereum-etl:latest stream --start-block 500000 --output projects/<your-project>/topics/crypto_ethereumIf running on Apple M1 chip add the--platform linux/x86_64option to thebuildandruncommands e.g.:docker build --platform linux/x86_64 -t ethereum-etl:latest .
docker run --platform linux/x86_64 ethereum-etl:latest stream --start-block 500000Projects using Ethereum ETLGoogle- Public BigQuery Ethereum datasetsNansen- Analytics platform for Ethereum
Package: betiq
betiqAn unofficial SDK forThe Odds API v4.InstallationpipinstallbetiqUsageimportbetiqodds=betiq.get_odds(api_key={THE_ODDS_API_API_KEY},sports=["upcoming"],regions=["us","us2","uk","au","eu"],markets=["h2h"],date_format="iso",odds_format="decimal",)print(odds)# Dictionary with the latest odds dataDocumentationRead the docs.
Package: bet-optimizer
bet-optimizerbet-optimizeris a Python package designed for those interested in applying mathematical strategies to betting. It leverages the Kelly Criterion and the concept of positive expected value (EV) in betting, helping users calculate the optimal bet size and the minimum positive odds required for a bet to have a positive expected value.FeaturesKelly Criterion Bet Calculation: Calculate the optimal fraction of your bankroll to bet based on your probability of winning and the odds offered.Positive Odds Calculation: Determine the minimum positive odds required for a bet to have a positive expected value, based on the probability of winning.InstallationThe package can be easily installed via pip. Just run the following command in your terminal:pipinstallbet-optimizerUsageKelly Criterion Bet Size CalculationTo calculate the optimal bet size using the Kelly Criterion:frombet_optimizerimportkelly_criterion_betprobability=0.5# Probability of winning the betodds=2.0# Decimal odds of the betbankroll=100# Size of your current bankrollbet_size=kelly_criterion_bet(probability,odds,bankroll)print(f"Optimal Bet Size:{bet_size}")Positive Odds CalculationTo calculate the minimum positive odds required for a bet:frombet_optimizerimportget_positive_oddsprobability=0.5# Probability of winning the betpositive_odds=get_positive_odds(probability)print(f"Minimum Positive Odds:{positive_odds}")RequirementsPython 3.6 or later.LicenseThis project is licensed under the Apache License - see theLICENSEfile for details.ContributionsContributions are welcome! Please feel free to submit a pull request or open an issue.SupportIf you encounter any problems or have any questions, please open an issue on the project'sGitHub page.More InformationFor more information and to download the package, visitbet-optimizer on PyPI.
Package: bets-api
Installationpip install bets-api==0.0.9Basic Usageimportbetsapi=bets.BetsApi('<your token>')# get token via admin UIbets=api.get_active_bets()# list of active bets (same as on dashboard)len(bets)# => 70bets[13]# => {...} dict that represents the betbets=api.get_active_bets(project_id=123)# list of active bets filtered by project idlen(bets)# => 20# see docstrings for more on available parametersapi.get_bets(type='estimate_ticket',order_by='-last_stake',state='active',page_size=10)api.get_project_slug(bets[13])# => u'favim'api.stakes_in(bets[13])# => {'stakes': [{u'amount': Decimal('0.20000'),#      u'created': datetime.datetime(2014, 6, 2, 13, 36, 4, 322000),#      u'id': 3565,#      u'side': 0,#      u'user': u'username'}],#    'sum': Decimal('0.20000')}api.stakes_out(bets[13])# => {'stakes': [], 'sum': 0}Creating betsapi.create_budget(project_slug,expires_at,target_budget,bets_until,min_stake)# => {u'bet_id': 26, u'status': u'ok'}expires_at,bets_until- must be datetime objectsbets_until,min_stake- not requiredAlso, there are methods for creating other types of bets:create_no_bugs(self,project_slug,expires_at,bets_until=None,min_stake=None):create_budget(self,project_slug,expires_at,target_budget,bets_until=None,min_stake=None):create_deadline(self,project_slug,expires_at,target_deadline,bets_until=None,min_stake=None):create_human(self,description,expires_at,bets_until=None,min_stake=None):create_billable_hours(self,kava_username,expires_at,hours,start_date,end_date,bets_until=None,min_stake=None):create_closed_tickets(self,project_slug,expires_at,ticket_nums,bets_until=None,min_stake=None):create_fitting_budget(self,percent,expires_at,days=90,bets_until=None,min_stake=None):create_fitting_deadline(self,percent,expires_at,days=90,bets_until=None,min_stake=None):create_without_defects(self,percent,expires_at,days=90,bets_until=None,min_stake=None):create_estimate_ticket(self,project_slug,expires_at,ticket_num,bets_until=None,min_stake=None):Subscribe to Event.BET_EXPIREDimportbetsimportgeventapi=bets.BetsApi('<your token>')defcb(bet):print'Bet changed: [%s]%s'%(bet['id'],bet['description'])api.set_callback(bets.Event.BET_EXECUTED,cb)api.subscribe(bets.Event.BET_EXECUTED,[1020,1009,1010,11])gevent.joinall(api.event_loop())# => Bet changed: [1009] [42-jobs] 0 bugs (2014-05-02 18:00)#    Bet changed: [1010] [coinhand] budget <= 400.0 (2014-04-30 11:15)#    Bet changed: [11] [kavyarnya] deadline <= 2014-03-01 (2014-02-14 02:00)For more sophisticated example seeexamples/.
Package: bets-cli
CLI to assist football betsDescriptionReads a list of matches from a text file and outputs all possible scenariosInstallationpip installbets-cliUsagebets-aACTION--in-file=IN_FILE[---in-fmt=INT_FMT]--out-dest=OUT_DEST--out-fmt=OUT_FMTACTIONS:matches - read the matches file and output to console. ( Use this to check if the file can be loaded properly )--in-fmtcurrently supports[ lines | efbet ]--out-destdefaults to console, but will write to file if passed--out-fmtsupported formats[ plain | fancy_grid | csv ]scenarios - reads the matches file, then generates all the possible scenarios and outputs them to a file.--in-fileused as matches source file--out-destbehave same as with matchesNoteDue to memory issues, 13 matches is the current limit when having 16GB RAM.
Package: betsee
BETSEE(BioElectricTissueSimulationEngineEnvironment) is the open-source cross-platform graphical user
interface (GUI) forBETSE, afinite volumesimulator for 2D computational
multiphysics problems in the life sciences – includingelectrodiffusion,electro-osmosis,galvanotaxis,voltage-gated ion channels,gene
regulatory networks, andbiochemical reaction networks(e.g., metabolism).LikeBETSE, BETSEE isportably implementedin purePython 3,continuously stress-testedwithGitLab-CI×Appveyor+py.test, andpermissively distributedunder theBSD 2-clause license.ContentsInstallationLicenseCitationAuthorsFundingInstallationBETSEE is universally installable with either:[Recommended]pip, the standard Python package manager:pip3 install betseeAnaconda, a third-party Python package manager:conda config --add channels conda-forge
conda install betseeSee ourinstallation instructionsfor details.[1][1]Globally replace all instances of the substringbetsewithbetsee(e.g.,pip3 install betseerather thanpip3 install betse) in these
instructions, which technically refer to BETSE rather than BETSEE.LicenseBETSEE is open-source softwarereleasedunder the permissiveBSD
2-clause license. BETSEE contains third-party assets also released underBSD-compatible licenses, including:AllEntypo+ iconsdistributed with BETSEE,kindly releasedunder the permissiveCC BY-SA 4.0
licensebyDaniel Bruce.AllNoun Project iconsdistributed with BETSEE,kindly releasedunder the permissiveCC BY 3.0 licenseby various authors, including:Maxim Kulikov, author of thesalubrious bovineprominently displayed on thisproject page.AllOpen Iconic iconsdistributed with BETSEE,kindly releasedunder the permissiveMIT license.CitationBETSEis formally described in ourintroductory paper.
Third-party papers, theses, and other texts leveraging BETSEE (and henceBETSE) should ideally cite the following:Alexis PietakandMichael Levin, 2016.Exploring instructive physiological signaling with the bioelectric tissue
simulation engine (BETSE).(Supplement).[2]Frontiers in Bioengineering and Biotechnology,4(55).https://doi.org/10.3389/fbioe.2016.00055See alsothis list of BETSE-centric papersfor
additional material.[2]This article’s supplement extends the cursory theory presented by this
article with a rigorous treatment of the mathematics, formalisms, and
abstractions required to fully reproduce this work. If theoretical questions
remain after completing the main article, please consult this supplement.AuthorsBETSEE comes courtesy a dedicated community ofauthorsandcontributors– without whom this project would be computationally
impoverished, biologically misaligned, and simply unusable.Thanks, all.FundingBETSEE is currently independently financed as a volunteer open-source project.
Prior grant funding sources include (in chronological order):For the three year period spanning 2017—2019, BETSEE was graciously
associated with thePaul Allen Discovery CenteratTufts Universityand supported by aPaul Allen Discovery Center awardfrom thePaul G.
Allen Frontiers Group.
Package: betsy-ros
Betsy ROSIn this time of revolution between the regimes of ROS 1 and ROS 2, Betsy ROS creates a unified bannerTranslation: This package is a unified Python API for certain "meta" ROS API calls that work the same in ROS 1 and ROS 2.FunctionalityWorkspaceget_workspace_rootreturns aBuildTypeandpathlib.Pathindicating the type and location of the current workspace.BuildTypecan beCATKIN_MAKE,CATKIN_TOOLS, orCOLCONget_ros_versionreturns anintandstrindicating the ROS version (1 or 2) and the distro short-name (e.g.lunar,bouncy)Packagesget_package_name_from_pathreturns the name of the package that the initial path is in (including subfolders)get_package_namesreturns a set of strings of all the current package names, including the binary packages and the workspace packagesfind_packagereturns the path to a given packageis_binary_rosreturns True if the path passed to it is in the/opt/rosfolderInterfaces(i.e. messages, services and actions)The classROSInterfacehas three key attributes:packagetypenamelist_interfacesyieldsROSInterfaceinstances for all messages/services/actions in the environment.CreditPackage logo from artwork by Jean Leon Gerome Ferris (1863–1930):Betsy Ross 1777
Package: better-abc
Better ABChttps://stackoverflow.com/questions/23831510/abstract-attribute-not-propertyUsagefrombetter_abcimportABCMeta,abstract_attribute# see belowclassAbstractFoo(metaclass=ABCMeta):@abstract_attributedefbar(self):passclassFoo(AbstractFoo):def__init__(self):self.bar=3classBadFoo(AbstractFoo):def__init__(self):passFoo()     # ok
BadFoo()  # will raise: NotImplementedError: Can't instantiate abstract class BadFoo
# with abstract attributes: barIf you want other features of ABC they need to be imported from the abc module directly.fromabcimportabstractmethodfrombetter_abcimportABCMeta,abstract_attribute
Package: betteraiohttp
A better version of aiohttp that allows for url filtering and rickroll detection.PyPI:https://pypi.org/project/betteraiohttp/Docs:https://betteraiohttp.readthedocs.io/en/latest/InstallationYou can install released versions of growstocks from the Python Package Index via pip or a similar tool:Stable Release:pip install betteraiohttpWorking Version:pip installgit+https://github.com/BobDotCom/betteraiohttp.gitUsageUsed in the exact same way as aiohttp, except the response object has blocked and rickroll attributes.
Package: betterargs
betterargsA tool to create a command-line interface for your app using pythonInstallationRequirementspython3.10pip3pipinstallbetterargsReleasesPackaging and releases are handled in thepackaging branch.MAIN BRANCH IS RESERVED FOR MAINTAINING CODE ONLY!!!version 0.0.3version 0.0.2UsageCreate a command string in YAML format in a:YAML filePython dictionaryPython stringConvert the yaml file to command line namespace using appropriate function1. Using aYAML file# Create command tree in a yaml filegit:args:path:atype:flaghelp:Path of the reposubparsers:parsers:clone:args:quiet-clone:atype:flaghelp:Operate quietly. Progress is not reported to the standard error stream.no-checkout:help:No checkout of HEAD is performed after the clone is completeinit:args:quiet-init:atype:flaghelp:Operate quietly. Progress is not reported to the standard error stream.# Import betterargsimportbetterargs# Create command line namespace and get argumentscommand_tree_PATH='command_tree.yaml'args=betterargs.format_path_tree(command_tree_PATH)2. UsingPython Dictionary in YAML Format# Import betterargsimportbetterargs# Define command tree in a dictionary in YAML formatcommand_tree_DICT={"git":{"args":{"path":{"atype":"flag","help":"Path of the repo",},},"subparsers":{"parsers":{"clone":{"args":{"quiet-clone":{"atype":"flag","help":"Operate quietly. Progress is not reported to the standard error stream.",},"no-checkout":{"help":"No checkout of HEAD is performed after the clone is complete"},},},"init":{"args":{"quiet-init":{"atype":"flag","help":"Operate quietly. Progress is not reported to the standard error stream.",},},},},},},}# Create command line namespace and get argumentsargs=betterargs.format_dict_tree(command_tree_DICT)3. Usingstring in YAML Format# Import betterargsimportbetterargs# Define command tree in a string in YAML formatcommand_tree_STR="""git:args:path:atype: flaghelp: Path of the reposubparsers:parsers:clone:args:quiet-clone:atype: flaghelp: Operate quietly. Progress is not reported to the standard error stream.no-checkout:help: No checkout of HEAD is performed after the clone is completeinit:args:quiet-init:atype: flaghelp: Operate quietly. Progress is not reported to the standard error stream."""# Create command line namespace and get argumentsargs=betterargs.format_str_tree(command_tree_STR)ContributorsAuthor:Daniel MuringeContributionYou are more than welcome to contribute 😊ProcessIt's simple!!!Fork the github repoClone the github repogitclonehttps://github.com/danielmuringe/betterargsMake your modifications in thedev branchMerge into main branch respecting the .gitignore of the main branch.KEEP IT CLEAN PLEASE !!!Create pull requestWait for confirmationRulesActive changes must take place in thedev branch. Active changes include:Changes tobetterargs moduleModification of development notesbetterargs moduleChanges to theproject testsTests must be put in thetesting directory of dev branchAll packaging must be done in thepackaging branchOther rules will be added at my discretionTestsTests can be found in thetesting directory of dev branchDocumentationComing Soon 😊
Package: better-ast-comments
ast-commentsAn extension to the built-inastmodule.
Finds comments in source code and adds them to the parsed tree.Installationpip install ast-commentsUsageThere is no difference in usage betweenastandast-comments>>> from ast_comments import *
>>> tree = parse("hello = 'hello' # comment to hello")Parsed tree is an instance of the originalast.Moduleobject.
The only difference is that there is a new type of tree node:Comment>>> tree
<_ast.Module object at 0x7ffba52322e0>
>>> tree.body
[<ast.Assign object at 0x10a01d5b0>, <ast_comments.Comment object at 0x10a09e0a0>]
>>> tree.body[1].value
'# comment to hello'
>>> dump(tree)
"Module(body=[Assign(targets=[Name(id='hello', ctx=Store())], value=Constant(value='hello')), Comment(value='# comment to hello', inline=True)], type_ignores=[])"If you have python3.9 or above it's also possible to unparse the tree object with its comments preserved.>>> print(unparse(tree))
hello = 'hello'  # comment to helloNote: Pythoncompile()cannot be run on the tree output from parse. The includedpre_compile_fixer()function can be used to fix the tree (stripping
comment nodes) if it will be necessary to compile the output.More examples can be found in test_parse.py and test_unparse.py.ContributingYou are welcome to open an issue or create a pull request
Package: better-automation
Better Automation v3Набор инструментов для автоматизации:Все из библиотекиtweepy-self: логин, анлок, totp, OAuth, OAuth2, твиты, лайки, сообщения и многое другое..googleapis для OAuth2. Использовалось в Well3 (yogapetz) для авторизации и может использоваться в других проектах.Google login и OAuth2 наPlaywright.Особенности:Поддержка прокси в любом из существующих форматов благодаряbetter-proxyВсе (кроме Google) на запросах черезcurl_cffiMore libraries of the family:tweepy-selfbetter-web3better-proxyInstallationpipinstallbetter-automation
Package: better-bencode
Author:Krzysztof KosylVersion:0.2.1Date:2016-05-12Why usebetter_bencode?standard Python object serialization functions:load(),loads(),dump(),dumps()works with Python 2.6, 2.7, 3.3, 3.4, 3.5 and PyPy4.5 times faster thanbencodemodule, thanks to C Extensionwell testedInstallation$ pip install better-bencodeExample>>>importbetter_bencode>>>dumped=better_bencode.dumps(['spam',42])>>>better_bencode.loads(dumped)['spam', 42]
Package: better-bing-image-downloader
Better Bing Image DownloaderTable of ContentsDisclaimerInstallationUsageLicenseContactDisclaimerThis program lets you download tons of images from Bing.
Please do not download or use any image that violates its copyright terms.Installationgitclonehttps://github.com/KTS-o7better_bing_image_downloadercdbetter_bing_image_downloader
pipinstall.orpipinstallbetter-bing-image-downloaderPyPiPackage LinkUsagefrombetter_bing_image_downloaderimportdownloaderdownloader(query_string,limit=100,output_dir='dataset',adult_filter_off=True,force_replace=False,timeout=60,filter="",verbose=True,badsites=[],name='Image')query_string: String to be searched.limit: (optional, default is 100) Number of images to download.output_dir: (optional, default is 'dataset') Name of output dir.adult_filter_off: (optional, default is True) Enable of disable adult filteration.force_replace: (optional, default is False) Delete folder if present and start a fresh download.timeout: (optional, default is 60) timeout for connection in seconds.filter: (optional, default is "") filter, choose from [line, photo, clipart, gif, transparent]verbose: (optional, default is True) Enable downloaded message.bad-sites: (optional, defualt is empty list) Can limit the query to not access the bad sites.name: (optional, default is 'Image') Can add a custom name for the images that are downloaded.LicenseThis project is licensed under the terms of the MIT license.ContactIf you have any questions or feedback, please contact us atemail.
Package: better-boto
Better BotoDescriptionBetter Boto aims to reduce the burden of using AWS Boto3.  AWS Boto3 is a low level SDK for interacting with AWS Services
and sometimes it feels too low level or too crud like.Better Boto is a collection of helper functions to make using AWS Boto easier.  For example, it added a create_or_update
method to the AWS CloudFormation client.  It also provides some helpers for dealing with pagination operations and some
help using AWS Organizations.  Check out thedocsfor the full set of examples.Badges
Package: bettercache
Full Documentation: http://readthedocs.org/docs/django-better-cache/en/latest/Mailing List: https://groups.google.com/forum/#!forum/bettercache## Better CacheBetter Cache is a replacement for the default cache template tag library from Django.It is a better version of {% cache %}What is better about Better Cache?- Nested cache fragments inherit the variables their parent fragments key on- Parent cache fragments can be given additional keys by their child cache fragmentsAn example:{% cache 500 "outer" x %}y = {{ y }}<br />{% cache 500 "inner" y %}x = {{ x }}<br />{% endcache %}{% endcache %}In the default {% cache %} tag from Django, the inner fragment will not bererendered when x changes, because only the outer fragment uses that as a keyvariable. The outer fragment will not update with y changes, because only theinner fragment uses that.With Better Cache, x and y affect both, so fragments will be re-rendered whenany important variable changes.Better Cache also allows a syntax of giving defaults to key variables:{% cache 500 "test" x=10 %}### Controlling inheritenceYou don't always want the outer cache fragments to invalidate when variablesonly important to the inner fragment changes. In some cases, the inner fragmentis allowed to get stale if it stays cached longer as part of the parent, sowe want a way to disable the inheritence of the variables.You can do this with the `local` modifier. All modifiers after the `local` willaffect only this cache fragment, not its parent.{% cache 500 "outer" x %}y = {{ y }}<br />{% cache 500 "inner" local y %}x = {{ x }}<br />{% endcache %}{% endcache %}### Plans- on-demand invalidation of fragments based on mappings through an ORM-like interface