Saravanan666/pypi-org huggingface dataset:
Package: bitcoind-mock
bitcoind mockbitcoind mock is an approach to simulate bitcoind for unit testing. It is specially useful forContinuous integration  (CI)tools.The mock provides aJSON-RPCinterface with some of the RPC commands available inbitcoindalong with azmqinterface for transaction and block notification. The mock also provides additional endpoints to generate blocks on
demand (/generate) and to create forks (/fork).The mock can be run either bytime, where blocks will be generated in fix time intervals, or byeventswhere a block
will be generated each time/generateis called.This are the current partially covered commands:decoderawtransaction:   querying for the decoding of a raw transaction will return a dictionary with a single
                        field: "txid".

sendrawtransaction:     sending a rawtransaction will notify our mining simulator to include such transaction in
                        a subsequent block (add it to mempool).

getrawtransaction:      requesting a rawtransaction from a txid will return a dictionary containing a single
                        field: "confirmations", since rawtransactions are only queried to check whether a
                        transaction has made it to a block or not.

getblockcount:          the block count represents the length of the longest chain.

getblock:               querying for a block will return a dictionary with three fields: "tx" representing a
                        list of transactions, "height" representing the block height and "hash" representing the
                        block hash.

getblockhash:           returns the hash of a block given its height.

getbestblockhash:       returns the hash of the block in the tip of the chain.

help:                   help is only used as a sample command to test if bitcoind is running when bootstrapping.
                        It will return a 200/OK with no data.Known limitationsThe implemented commands do not return every single field thatbitcoindwould, only the most important ones (or the
ones that I've required so for my own unit tests).The mock works well when interacting with viapythonbut not if queried directly bybitcoin-cli(check#1).zmqonly notifies about blocks being mined, but not about transactions.Requesting a fork while running the mock bytimewill not reset the timer for the block that will be mined on top of
the forked one.DependenciesRefer toDEPENCENCIES.md.InstallationYou can get the package from PyPi:pip install bitcoind-mockOr install it manually (refer toINSTALL.md).ContributingIf you'd like to add / extend any command, feel free to send a PR. We can make this as complete as we'd like by joining
efforts :smile:Refer toCONTRIBUTING.mdfor the style guidelines to follow.
Package: bitcoin-explorer
bitcoin-explorerbitcoin_exploreris an efficient library for reading
bitcoin-core binary blockchain file as a database (utilising multi-threading).This package is ported using pyO3 from rust librarybitcoin-explorerInstallationMacOS, Windows, and Linux wheels are provided.Usepip install bitcoin-explorerto install.DocumentationThis library has a Rust version, go toRust DocumentationFor python documentation, go toDocumentation.Compatibility NoteThis package deals with the binary file of another softwareBitcoin Core.
It might not be compatible with older Bitcoin Core versions.Currently, it is compatible with Bitcoin Core versionBitcoin Core version v0.21.1.0-g194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf Copyright (C) 2009-2020 The Bitcoin Core developers.ExamplesIt contains one classBitcoinDB.importbitcoin_explorerasbex# parse the same path as `--datadir` argument for `bitcoind`.db=bex.BitcoinDB("~/Bitcoin")# get the length of the longest chain currently on disk.db.get_block_count()# get block of a certain heightdb.get_block(1000)# to retrieve the connected outputs of each inputs as well.# note that this is inefficient.# Use `get_block_iter_range(end, connected=True)` for better performance.db.get_block(1000,connected=True)# get block hash of a certain height.db.get_hash_from_height(1000)# a fast method for getting just the header.# in memory query, no disk accessdb.get_block_header(1000)# get block of height 1000.db.get_height_from_hash("some hash")# get transaction from txid.# This queries the `levelDB` each time, thus it is relatively slow.db.get_transaction("some txid")# get the height of the block which this transaction belongs.db.get_height_from_txid("some txid")# get the script type and addresses from a script public keydb.parse_script("some hex script pubic key")# use iteratorforblockindb.get_block_iter_range(start=1000,end=2000):do_something_with(block)# use iterator, iterate over heightsforblockindb.get_block_iter_array(heights=[1,3,5,7,9]):do_something_with(block)# use iterator, connect outpoints# This requires 5 GB memory.forblockindb.get_block_iter_range(end=700000,connected=True):do_something_with(block)
Package: bitcoin-graph
Bitcoin GraphThebitcoin_graphlibrary makes it simple to produce graphs and matrices of Bitcoin transactions from a single wallet address of a list of wallet addresses.This is an alpha release, so please post bugs/requests as you encounter them. Thanks!Installation# via pip
pip install bitcoin_graph

# via github
pip install git+https://github.com/joeblankenship1/bitcoin_graph.gitExamplefrom bitcoin_graph import bitcoin_graph

# you can input a single wallet address or a list of dictionaries with metadata
node_data = [('1DqeUNa3wqJRamTEUMTiUXHAQynQuLh426', {'name': 'Near Genesis'})]

# this will take a single wallet address of a list of dictionaries with metadata
edge_data = bitcoin_graph.bitcoin_network(node_data)

# this will output a Networkx graph object
graph_object = bitcoin_graph.bitcoin_graph(node_data, edge_data)

# you can then export to one of several formats
bitcoin_graph.bitcoin_data_export(graph_object, 'graphml', 'filename')You can also now useNetworkXto manipulate the graph object.FeaturesSingle or multiple addressesMultiple output formatsExtends Networkx functionalityPython 3.6+DocumentationDocs are forthcoming.Bugs/RequestsPlease useGithub Issue TrackerChangelogChangelog is forthcoming (will be in same location as Docs).LicenseCopyright Joe Blankenship, 2019Distributed under the terms of theGNU GPL-3.0license. Bitcoin_graph is free and open-source software.
Package: bitcoin-karishma
BitCoin Notifier:Working Procedure:Installation
Following command on terminal will install bitcoin_karishma package/module from PIPpip3 install bitcoin_karishma
Following command on terminal will install the latest bitcoin_karishma package/module from PIPpip3 install -U bitcoin_karishmaUsageFollowing query on terminal will provide you with all the help options availableInput :bitcoin-notifier -hOutput :usage: bitcoin-notifier [-h] [-i interval] [-t threshold]
Bitcoin Notifier
optional arguments:
-h, --help            show this help message and exit
-i interval, --interval interval
Time interval in minutes
-t threshold, --threshold threshold
Threshold in USD
Following query on terminal will provide you five prices of Bitcoin at a time at one min interval and whenever it falls below $10000 and emergency notification will be sent.bitcoin-notifier -i 1 -t 10000Un-installation:Following command on terminal will uninstall bitcoin-notifier package/module from your devicepip3 uninstall bitcoin_karishma• The Project is divided into four functions/modules: get_latest_price() – Here I have used request module to collect data from source(‘blockchain.com’), Once it gets data it will convert the data into json format which is returned back to the function. post_ifttt_webhook() – Here the formatted data is sent to users as notifications once it acquires data from previous module. format_bitcoin_history() - The main objective of this module is to format the notification message which will be sent to users. main() – Here it will integrate all the steps and sets up timer to repeat the process at certain intervals.• IFTTT Applets: Webhooks, Telegram, Notifications, Email and Android SMS services are used here. When an event 'bitcoin_price_emergency is occurred in the webhooks it will send the event value to Notification in your phone and an email is sent to the email listed in the service. When and event 'bitcoin_price_update is occurred in the webhooks it will send the event value to the Telegram Channel 'Bitcoin Notifier' and text message to the phone number linked to the service.Credentials:  Webhooks Key- eA_ZN_ZsBcX4FZmsgzdc_7_yppNdLzDCWsJaoAz65Ci Telegram Channel Link- (@bitcoin_notifier)https://t.me/Bitcoin_update_21 Email linked to the service-karishmaag21@gmail.com Phone Number linked to the service- +917738222219
Package: bitcoin-keygen
# Bitcoin KeygenBitcoin Keygen is a minimalistic Pure Python script with Bitcoin utility functions.## InstallationBitcoin Keygen can be installed withpip install bitcoin-keygen(Python 3.6+ Required).## FeaturesGenerate and verify private keys for use on the Bitcoin Blockchain.Generate the public key, address and WIF associated with a private key.Base58Check encoding, decoding and checksum check utility functions.Bitcoin Keygen can accept optional parameters as well to work with compressed keys and the testnet.## License[GNU General Public License v3.0](LICENSE) (c) 2019 Cheran Senthilkumar
Package: bitcoin-notification-f
BITCOIN NOTIFICATION ALERT APPThis is a python script package, bitcoin price notification to get notified for the regular updates of bitcoin price on slack, gmail and telegram.
The aim is to push notifications when the price of bitcoin changes at certain time interval, user can specify the time interval. By default time interval and threshold are set to 0.1 in minutes and $10000 respectively.
When the conditions in the program are satisfied the trigger is fired and user will recieve notifications on slack, gmail and telegram.InstallationInstall python version 3This website will help you find all the versions available as per your system requirments.Install python3.https://www.python.org/downloads/Installation for PIP for windowsCommand : pip installRefer this website for further readhttps://pip.pypa.io/en/stable/installing/Dependencies
The only dependency is on the requests library.
Use the following command: pip install requests==2.18.4Following command on terminal will install bitcoin-notifier package/module from PIPpip install bitcoin-notification-fUsageFollowing query on terminal will provide you with all the help optionsInputbitcoin-notification-f -hOutputusage: bitcoin_price_notification.py [-h] [--d decision] [--i interval]
[--u upper threshold]Bitcoin Notification Alertoptional arguments:
-h, --help           show this help message and exit
--d decision         Enter (Yes/No) - Yes will run the program
--i interval         Enter time interval
--u upper threshold  Set upper threshold limit in USD for notificationFollowing query on terminal will provide you five prices of Bitcoin at a time at one minute interval and whenever it falls below $10000 emergency notification will be sent.bitcoin_notification --d=Yes --i=0.1 --u=10000Join this telegram channel to get the updates :Following is the invite linkhttps://t.me/Bitcoin_alert_attainU_fariya
Package: bitcoin-notification-project
BITCOIN NOTIFICATION ALERT APPThis is a python script package, bitcoin price notification to get notified for the regular updates of bitcoin price on slack, gmail and telegram.
The aim is to push notifications when the price of bitcoin changes at certain time interval, user can specify the time interval. By default time interval and threshold are set to 0.1 in minutes and $10000 respectively.
When the conditions in the program are satisfied the trigger is fired and user will recieve notifications on slack, gmail and telegram.InstallationFollowing command on terminal will install bitcoin-notifier package/module from PIPpipinstallbitcoin-notification-project==1.0.0UsageFollowing query on terminal will provide you with all the help options availableInputbitcoin_notification-hOutputusage:bitcoin_notification.py[-h][--ddecision][--iinterval][--uupperthreshold]BitcoinNotificationAlert

optionalarguments:-h,--helpshowthishelpmessageandexit--ddecisionEnter(Yes/No)-Yeswillruntheprogram--iintervalEntertimeinterval--uupperthresholdSetupperthresholdlimitinUSDfornotificationFollowing query on terminal will provide you five prices of Bitcoin at a time at one min interval and whenever it falls below $10000 and emergency notification will be sent.bitcoin_notification--d=Yes--i=0.1--u=10000Join this telegram channel to get the updates :Following is the invite linkhttps://t.me/Bitcoin_alert_attainU_fariya
Package: bitcoin-notification-python-fariya-banu
BITCOIN NOTIFICATION ALERT APPThis is a python script package, bitcoin price notification to get notified for the regular updates of bitcoin price on slack, gmail and telegram.
The aim is to push notifications when the price of bitcoin changes at certain time interval, user can specify the time interval. By default time interval and threshold are set to 0.1 in minutes and $10000 respectively.
When the conditions in the program are satisfied the trigger is fired and user will recieve notifications on slack, gmail and telegram.InstallationFollowing command on terminal will install bitcoin-notifier package/module from PIPpipinstallbitcoin-notification-project==1.0.0UsageFollowing query on terminal will provide you with all the help options availableInputbitcoin_notification-hOutputusage:bitcoin_notification.py[-h][--ddecision][--iinterval][--uupperthreshold]BitcoinNotificationAlert

optionalarguments:-h,--helpshowthishelpmessageandexit--ddecisionEnter(Yes/No)-Yeswillruntheprogram--iintervalEntertimeinterval--uupperthresholdSetupperthresholdlimitinUSDfornotificationFollowing query on terminal will provide you five prices of Bitcoin at a time at one min interval and whenever it falls below $10000 and emergency notification will be sent.bitcoin_notification--d=Yes--i=0.1--u=10000Join this telegram channel to get the updates :Following is the invite linkhttps://t.me/Bitcoin_alert_attainU_fariya
Package: bitcoin-notifier
Bitcoin NotifierA Python package to get bitcoin price notifications & predictions.InstallationFollowing command on terminal will install bitcoin-notifier package/module from PIPpip3 install bitcoin-notifierFollowing command on terminal will install the latest bitcoin-notifier package/module from PIPpip3 install -U bitcoin-notifierUsageFollowing query on cmd (windows) / terminal (linux) will provide you with all the help options availableInput :bitcoin-notifier -hOutput :usage: bitcoin-notifier [-h] [-i interval] [-t threshold]
Bitcoin Notifier
optional arguments:
  -h, --help            show this help message and exit
  -i interval, --interval interval
                        Time interval in minutes
  -t threshold, --threshold threshold
                        Threshold in USDFollowing query on terminal will provide you five prices of Bitcoin at a time at one min interval and whenever it falls below $10000 and emergency notification will be sent.bitcoin_notifier -i 1 -t 10000Un-installationFollowing command on terminal will uninstall bitcoin-notifier package/module from your devicepip3 uninstall bitcoin-notifierJoin this telegram channel to get the updates :Following is the invite linktelegram.me/bitcoin_notifications
Package: bitcoin-notifier-rajatbhatt500
Bitcoin Price NotificationDescriptionThis is a python package which is used to give regular notifications on different platforms like  email,telegram and IFTTT app notifications.Main aim is to give notification on selected platform on regular intervals which can be set according to the user, by default which is 1 minute and also user can set threshold price which is set to â‚¹4,00,000 by default.InstallationUse the package managerpipto install bitcoin notification package.pipinstallbitcoin-notifier-rajatbhatt500==0.0.1PrerequisiteTo use this package one should have below things:install the IFTTT App to receive the emergency notificationsAn Email account to get notification.Telegram App and must join this channel.click theTelegram channelto join the channel.UsageFor Help Menubitcoin-notification--helpYou'll see below message in command lineusage:Usage:Thisappgivesthepriceof1BitcoininINR.Destination(-d)mustbeprovidedelsedestinationwillbetelegrambydefault.TorecivenotificationfromIFTTTinstallIFTTTmobileapp.TorecivenotificationsonTelegraminstallTelegramappandjointhischannel@IFTTT.Prerequisite:INSTALLIFTTTAPPANDTELEGRAMAPPandTORECIVENOTIFICATON.PRESSCtrl+Ctoterminatetheapp


BITCOINPRICENOTIFIER

optionalarguments:-h,--helpshowthishelpmessageandexit-iinterval,--intervalintervalTimeintervalinminutes-tthreshold,--thresholdthresholdThresholdinINR(â‚¹)-ddestnation,--destinationdestnationTherearevariousoptionstorecivenotificationsfromus(1)IFTTTapp(2)Telegramapp(3)Email

Copyright@RajatBhattTo here the example for notification in telegram:bitcoin-notification-t1000-i2-dtelegramLicenseMIT
Package: bitcoinpython
BitcoinPythonBitcoin Cash Python libraryQuickstartBitcoinPython is so easy to use, in fact, you can do this:>>>frombitcoinpythonimportKey>>>>>>k=Key()>>>k.address'bitcoincash:qp0hamw9rpyllkmvd8047w9em3yt9fytsunyhutucx'>>>>>>k.get_balance('usd')'2'>>>>>># Let's donate a dollar to CoinSpice.io>>>outputs=[>>>('bitcoincash:qz69e5y8yrtujhsyht7q9xq5zhu4mrklmv0ap7tq5f',1,'usd'),>>># you can add more recipients here>>>]>>>>>>k.send(outputs)'6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ff'Done ✅ Here is the transaction:https://explorer.bitcoin.com/bch/tx/6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ffFeaturesPython's fastest available implementation (100x faster than closest library)Seamless integration with existing server setupsSupports keys in cold storageFully supports 25 different currenciesFirst class support for storing data in the blockchainDeterministic signatures via RFC 6979Exchange rate API, with optional cachingOptimal transaction fee API, with optional cachingCompressed public keys by defaultMultiple representations of private keys; WIF, PEM, DER, etc.Standard P2PKH transactionsInstallationBitcoinPython is distributed onPyPIand is available on Linux/macOS and Windows with Python 3.5+$pip3installbitcoinpythonCreditsForked from Ofek's Bit and Teran McKinney's bitcashofekfor the original bit codebaseteran-mckinneyfor the bitcash forkbjarnemagnussenfor his segwit code for the necessary BIP-143 support
Package: bitcoin-python
This package allows performing commands such as listing the current balance and sending coins to the Satoshi (original) client from Python. The communication with the client happens over JSON-RPC.Not actively maintainedbitcoin-python is not actively maintained. I don’t have the mental bandwidth
to maintain it and good alternatives have sprung up over time.I’d suggest python-bitcoinlib (https://github.com/petertodd/python-bitcoinlib)
as is the ultimate python bitcoin library. It offers not only RPC access but
also a Python version of almost every bitcoin data structure.The RPC is can be used throughbitcoin.rpc.Proxy, see for examplehttps://github.com/petertodd/python-bitcoinlib/blob/master/examples/make-bootstrap-rpc.py.If anyone wants to take up the maintainer role for bitcoin-python, let me know.
Package: bitcoin-qrreader
A python bitcoin qr readerRecognizes (and classifies)Addresses  (also BIP21 with amount)Transactions (also base43 electrum encoding)PSBTXpubDescriptorMultipath Descriptor (like Sparrow)Partial descriptors (Specter DIY) ( finger print , derivation, xpub)TxIdAnimated QR Codes (UR) (Transactions and Descriptors)Animated QR Codes (Specter)blazingly fastrecognitionSLIP132 --> BIP32 conversion (output descriptors replace SLIP132)DemoRun the demo withpython demo.pyInstall packageFrom pypipipinstallbitcoin_qrreaderFrom gitSetup poetry and install dependenciescurl-sSLhttps://install.python-poetry.org|python3-# see https://python-poetry.org/docs/master/#installing-with-the-official-installerpoetryconfigvirtualenvs.in-projecttruepoetryinstallRunpoetryshell
python-mbitcoin_qrreaderLicencesThe python files inbitcoin_qrreaderare under theGPL3.The folderbitcoin_qrreader/uris fromhttps://github.com/Foundation-Devices/foundation-ur-pyand underBSD-2-Clause Plus Patent License.The folderbitcoin_qrreader/urtypesfromhttps://github.com/selfcustody/urtypesis underMIT.
Package: bitcoin-requests
The simplest Bitcoin Core RPC library for when you just want to talk to Bitcoin Core.UsageIf you started Bitcoin Core like this:bitcoind-regtest-rpcuser=user-rpcpassword=passInstantiate thebitcoin_requestsRPC client like this:frombitcoin_requestsimportBitcoinRPCrpc=BitcoinRPC('http://127.0.0.1:18443','user','pass')blocks=rpc.generate(101)tx=rpc.sendtoaddress(address,20)Installationpip install bitcoin-requests
Package: bitcoin-rpc-client
Bitcoin RPC ClientRPC client for Bitcoin DaemonsInstallpipinstallbitcoin-rpc-clientUsagePrerequesites:Run a Bitcoin daemon/nodebitcoind-server-rpcuser=user-rpcpassword=passSyncfrombitcoin_rpc_clientimportRPCClientwithRPCClient('http://127.0.0.1:18443','user','pass')asrpc:blocks=rpc.generate(101)tx=rpc.sendtoaddress(address,20)# orrpc=RPCClient('http://127.0.0.1:18443','user','pass')blocks=rpc.generate(101)tx=rpc.sendtoaddress(address,20)rpc.close()Asyncfrombitcoin_rpc_clientimportRPCClientAsyncwithRPCClientAsync('http://127.0.0.1:18443','user','pass')asrpc:blocks=awaitrpc.generate(101)tx=awaitrpc.sendtoaddress(address,20)# orrpc=RPCClientAsync('http://127.0.0.1:18443','user','pass')blocks=awaitrpc.generate(101)tx=awaitrpc.sendtoaddress(address,20)awaitrpc.aclose()
Package: bitcoins
Bitcoins is an MIT licensed cryptocurrency library, written in Python, for human
beings.Nothing is complicated when it’s in Python. Not even cryptocurrencies.>>> bitcoins.get_difficulty()
2694047.952955For now, this library is only a wrapper to BlockExplorer’s stats API. This might
change as the project matures.FeaturesGetting the current difficulty as a multiple of the minimum difficulty
(highest target)InstallationTo install bitcoins, simply:$ pip install bitcoinsOr, if you have to:$ easy_install bitcoinsBut, you probably shouldn’t do that.
Package: bitcoin-toolkit
一个用于比特币追溯的框架[toc]简介一个用于比特币追溯的框架安装pipinstall-rrequirements.txt教程初始化数据基于文件fromtraceimportFileEnginemin_height,max_height=575012,575300engine=FileEngine(dir_blocks='xxx/Bitcoin/blocks',min_height=min_height,max_height=max_height,index_cache='index_cache.pkl')engine.read_data(show_progress=True)基于 redisfromtraceimportRedisEnginemin_height,max_height=575012,575300engine=RedisEngine()engine.write_data(dir_blocks='xxx/Bitcoin/blocks',min_height=min_height,max_height=max_height,index_cache='index_cache.pkl',show_progress=True)开始追踪fromtraceimportTracetrace=Trace(min_height=min_height,max_height=max_height,init_txid='e8b406091959700dbffcff30a60b190133721e5c39e89bb5fe23c5a554ab05ea',max_depth=4,debug=True).set_search_engine(engine)trace.start()trace.draw(min_weight=50,# 权重低于该值的边将被过滤min_weight_warning=200,# 权重低于该值的边将显示普通的蓝色，高于该值的边将标红min_balance=50,# 余额低于该值的节点将不显示标签no_label_addresses=None,# 在该列表中的地址将不显示标签)高级自定义搜索引擎除了基于文件和基于 redis 的两种内置搜索引擎，还支持用户自定义。只需要调用trace.set_search_func方法，将各函数传入即可。batch_的方法如果不传入的话，系统会自动用 for 循环调用单个查询函数。fromtraceimportTracetrace=Trace(min_height=min_height,max_height=max_height,init_txid='e8b406091959700dbffcff30a60b190133721e5c39e89bb5fe23c5a554ab05ea',max_depth=4,debug=True)trace.set_search_func(search_address=engine.get_address,search_tx=engine.get_tx,search_txo=engine.get_txo,batch_search_address=engine.batch_get_address,batch_search_tx=engine.batch_get_tx,batch_search_txo=engine.batch_get_txo)