Saravanan666/pypi-org huggingface dataset:
Package: bitbucket-python
bitbucket-python is an API wrapper for Bitbucket written in PythonInstallingpip install bitbucket-pythonUsagefrombitbucket.clientimportClientfrombitbucketimportAsyncClientclient=Client('EMAIL','PASSWORD')# Or to specify owner URL to find repo own by other userclient=Client('EMAIL','PASSWORD','Owner')# Async clientasyncwithAsyncClient('EMAIL','PASSWORD')asclient:...MethodsGet user informationresponse = client.get_user()Get account privileges for repositoriesresponse = client.get_privileges()Get repositoriesresponse = client.get_repositories()Get repositoryresponse = client.get_repository('REPOSITORY_SLUG')Post repositoryresponse = client.create_repository(data, params, repositoryName, teamName)Get branches for repositoryresponse = client.get_repository_branches('REPOSITORY_SLUG')Get tags for repositoryresponse = client.get_repository_tags('REPOSITORY_SLUG')Get commits for a repositoryresponse = client.get_repository_commits('REPOSITORY_SLUG')Get components for repositoryresponse = client.get_repository_components('REPOSITORY_SLUG')Get milestones for repositoryresponse = client.get_repository_milestones('REPOSITORY_SLUG')Get versions for repositoryresponse = client.get_repository_versions('REPOSITORY_SLUG')Create issuedata = {..DATA..}
response = client.create_issue('REPOSITORY_SLUG', data)Get all issuesresponse = client.get_issues('REPOSITORY_SLUG')Get issueresponse = client.get_issue('REPOSITORY_SLUG', 'ISSUE_ID')Delete issueresponse = client.delete_issue('REPOSITORY_SLUG', 'ISSUE_ID')WebhooksCreate webhookdata = {
    "description": "Webhook",
    "url": "http://mywebsite.com",
    "active": True,
    "events": [
        "repo:push",
        "issue:created",
        "issue:updated"
    ]
}
response = client.create_webhook('REPOSITORY_SLUG', data)Get all webhooksresponse = client.get_webhooks('REPOSITORY_SLUG')Get webhookresponse = client.get_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')Delete webhookresponse = client.delete_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')Helper methodsall_pagesTheall_pagesmethod is a helper function that makes it easy to retrieve all items from an API methods that uses pagination (seehttps://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination).client=Client()items=list(client.all_pages(client.get_repositories))Note that theall_pagesmethod uses a generator to return the results.Requirementsrequestshttpx
Package: bitbucket-webhooks
bitbucket-webhooksPython library that makes bitbucket webhook APIevent payloadsavailable via decorators with payload serialized into python objects.Installation$ pip install bitbucket-webhooksQuickstartfromflaskimportFlaskfromflaskimportrequestfrombitbucket_webhooksimportevent_schemasfrombitbucket_webhooksimporthooksfrombitbucket_webhooksimportrouterapp=Flask(__name__)@app.route("/hooks",methods=["POST"])defbb_webhooks_handler():router.route(request.headers["X-Event-Key"],request.json)return("",204)@hooks.repo_pushdef_handle_repo_push(event:event_schemas.RepoPush):print(f"One or more commits pushed to:{event.repository.name}"Hereis the full example.Webhook events supportedrepo:pushpullrequest:createdpullrequest:updatedpullrequest:approvedpullrequest:unapprovedpullrequest:fulfilledpullrequest:rejectedpullrequest:comment_createdpullrequest:comment_updatedpullrequest:comment_deleted
Package: bitcart
Bitcart SDKThis is a client library(wrapper) around Bitcart daemon. It is used to simplify common commands.
Coins support(⚡ means lightning is supported):Bitcoin (⚡)Bitcoin CashMoneroEthereumBinance coin (BNB)SmartBCHPolygon (MATIC)Tron (TRX)ErgonLitecoin (⚡)Globalboost (⚡)Groestlcoin (⚡)Main focus is Bitcoin.This library supports both asynchronous and synchronous usages.You can call it's methods synchronously, like so:print(btc.help())Or you can await it's methods when using from async functions:asyncdefmain():print(awaitbtc.help())Async callback functions for@btc.onare supported.For more informationRead the DocsRelease versioningWe follow a custom variant of semver:major.minor.feature.bugfixWheremajoris changed not frequently, and means significant changes to the SDKminormeans breaking changesfeaturemeans adding new features without breaking existing APIsbugfixmeans fixing bugs without breaking existing APIsContributingSeeCONTRIBUTING.md.Copyright and LicenseCopyright (C) 2019 MrNaif2018Licensed under theMIT license
Package: bitcart-async
BitcartCC SDKThis is a client library(wrapper) around BitcartCC daemon. It is used to simplify common commands.
Coins support(⚡ means lightning is supported):Bitcoin(⚡)Bitcoin CashLitecoin(⚡)Gravity Zero(⚡)Globalboost(⚡)Main focus is Bitcoin.This library supports both asynchronous and synchronous versions.
Usebitcartas a sync version(better for beginners), andbitcart-asyncfor async version.If you install from github, by default it is async.
Use:ASYNC=false python setup.py installFor it to convert async version to sync and install that.
That process is done viasync_generator.py.For more informationRead the DocsAsync version's APIs are the same as sync, just use async and await.
Async callback functions for @btc.on now supported.ContributingSeeCONTRIBUTING.md.
Package: bitcasa
Bitcasa SDK for PythonBitcasa SDK for Python, providing access to Bitcasa’s REST API.License: MITRequirements:requests >= 1.2.3SetupInstall bitcasa librarypip install bitcasaGet A Bitcasa Developer API KeyIn order to access the API successfully, you need to first get an API key from Bitcasa:Go to:https://developer.bitcasa.com/Either sign up with your Bitcasa account, or log in with itClick “Console” on the top header, and “Create App” on the top rightSave your Client ID and your Client Secret locally; you will use them in your codeUsing The Bitcasa APIIn order to access a Bitcasa user’s files, you’ll need to authorize your application with the user via our authentication exchange. Once completed, you’ll gain an access token that you can utilize for API usage.Examine the tests for examples of usage.
Package: bitcaviar
pybitcoinA simple Python wrapper for Bitcoin JSON-RPC API.InstallationpipinstallbitcaviarUsageYou should pass yourbitcoin-clidirectory and where you have the blockchain stored to each method.frombitcaviarimportconfigbitcoin=config.Bitcoin(cli_dir='your/dir/to/bitcoin-cli',data_dir='/where/is/the/blockchain')Example 1Get the number of blocks in the blockchainfrombitcaviarimportconfigfrombitcaviarimportblockchaindefmain():bitcoin=config.Bitcoin(cli_dir='bitcoin-cli',data_dir='/Users/dennis/Bitcoin')block_count=blockchain.get_block_count(bitcoin=bitcoin)print(block_count)if__name__=='__main__':main()
Package: bitcaviar-plus
bitcaviar-plusA Bitcoin blockchain parser written in Python.InstallationClone repositorypipinstallbitcaviar-plusUsageDeserialize first block from fileblk00000.datfrombitcaviar_plus.blockimportdeserialize_blockdefparse_genesis_block():withopen('path/to/file/blk00000.dat','rb')asf:block=deserialize_block(f)print(block)Deserialize entire blockchainimportosfrombitcaviar_plus.blockimportdeserialize_blockfrombitcaviar_plus.errorsimportInvalidMagicBytesdefparse_entire_blockchain():file_counter=-1whileTrue:file_counter+=1file_name='path/to/file/blk{}.dat'.format(str(file_counter).zfill(5))withopen(file_name,'rb')asf:file_size=os.path.getsize(file_name)whilef.tell()<file_size:try:block=deserialize_block(f)exceptInvalidMagicBytesase:print(e)Example output{"magic_number":"f9beb4d9","size":"0000011d","id":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f","transaction_count":"01","header":{"version":"00000001","previous_block_id":"0000000000000000000000000000000000000000000000000000000000000000","merkle_root":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b","time":"495fab29","bits":"1d00ffff","nonce":"7c2bac1d"},"transactions":[{"version":"00000001","input_count":"01","output_count":"01","lock_time":"00000000","id":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b","inputs":[{"id":"0000000000000000000000000000000000000000000000000000000000000000","vout":"ffffffff","script_sig_size":"4d","script_sig":"04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73","sequence":"ffffffff"}],"outputs":[{"value":"000000012a05f200","script_pub_key_size":"43","script_pub_key":"4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac"}]}]}Attributionblockchain-parserbitcoinbookLearnMeABitcoin.com
Package: bitchain
Bitchain: A Simple Blockchain Emulator in PythonOverviewBitchain is a simple lockchain emulator written in Python. Aimed at fostering education and understanding of blockchain technologies, Bitchain provides a clear and easy-to-understand interface to interact with a blockchain.Key FeaturesBlock Creation: Easily create new blocks with customizable data.Transaction Handling: Simulate transactions between parties in the blockchain.Chain Validation: Verify the integrity of the blockchain through hash calculations.Persistence: Keep a record of transactions until they are incorporated into a block.InstallationRequirementsPython 3.6 or higherGit (optional)To install Bitchain, clone the repository using Git:gitclonehttps://github.com/username/bitchain.gitcdbitchainYou can also download the source code as a zip file and extract it.UsageOnce you have the Bitchain code on your local machine, you can run it using Python:python3main.pyBitchain includes amainfunction that creates a simple blockchain, adds transactions to it, and prints out the entire chain.ExampleHere's a quick example of creating a blockchain, adding transactions, and creating new blocks:blockchain=Bitchain()blockchain.new_transaction("Satoshi","Mike",'5 BTC')blockchain.new_transaction("Mike","Satoshi",'1 BTC')blockchain.new_transaction("Satoshi","Hal Finney",'5 BTC')blockchain.new_block(12345)blockchain.new_transaction("Mike","Alice",'1 BTC')blockchain.new_transaction("Alice","Bob",'0.5 BTC')blockchain.new_transaction("Bob","Mike",'0.5 BTC')blockchain.new_block(6789)print("Genesis block: ",blockchain.chain)DocumentationPlease refer to the docstrings in theBitchainclass for detailed information on the functionality of each method.ContributingWe welcome all contributions to Bitchain! Whether it's bug fixes, feature additions, or documentation improvements, your input is greatly appreciated. Please check the CONTRIBUTING.md file for detailed instructions on how to contribute.
Package: bitchute-dl
# BitChute-DL## AboutThis Python script will download any video from the BitChute video platform to your PC for archival or offline use. The target video will be placed in a clearly named directory based on the publisher’s name, a file name will be created based on the video title & publishing date and a check will be done for duplicate files. The project is inspired by [YouTube-DL](https://youtube-dl.org/).## InstallationYou’ll need Python >= 3.6 and you can usepipto automatically install this command line tool and the requiredlxmldependency:sudo pip install bitchute-dlIf you prefer to download [this repository](https://github.com/Matteljay/bitchute-dl/releases) you could install it after unpacking like so:sudo pip install .## LaunchingHere is an example of how to usebitchute-dl:bitchute-dlhttps://www.bitchute.com/video/oX3AgHj0jlUX/To keep videos organized, a new folder will be created in the current directory and the target video saved inside:./Matteljay/20200529 Tightcms Set Up Your Own Website Cms Built In Vuejs With Mongodb Docker Container.mp4## Coding detailsFeel free to modify the script’s behavior, it is a nice example of a small Python app that will perform web scraping actions based on XPath XML selectors.## Contact info & donationsMore info here: [Contact](CONTACT.md)
Package: bitchute-scraper
Bitchute ScraperPython scraper for the Bitchute video platform. It allows you to query for videos and to retrieve platform recommendations such as trending videos, popular videos or trending tags. It makes use of Selenium for retrieving data.Installationbitchute-scraper is available on PyPi:$pip3installbitchute-scraperAlternatively you can download the repository and install the package by running the setup.py install routine. Make sure to install the requirements as well:$pip3install-rrequirements.txt
$python3setup.pyinstallAdditionally this package requires Google Chrome and chromedriver to be installed on your system. Make sure that they are available.brewinstall--caskgoogle-chrome
brewinstallchromedriverIn addition to the python package the scraper makes use of the selenium chromedriver which is an application that programmatically controls the Google Chrome browser. While the package uses the webdriver-manager to ensure that the proper webdriver is installed on your system you need to make sure that Google Chrome is installed. On macOS you can install both easily with homebrew:brewinstall--caskgoogle-chromeOn Linux and Windows installing Google Chrome should be straight forward as well. In case you don't know how to do this, just query it with the search engine of your trust!UsageCreate a crawler object and download the trending videos.importbitchuteasbcb=bc.Crawler()trending_videos=b.get_trending_videos()Besides videos the trending page lists tags that can be retrieved with.trending_tags=b.get_trending_tags()In case you want to retrieve both trending videos and trending tags at once, you can call.trending_videos,trending_tags=b.get_trending()You can also retrieve videos listed inpopularandallfrom the homepage as well.popular_videos=b.get_popular_videos()all_videos=b.get_all_videos()Recommended channels can be retrieved via.recommended_channels=b.get_recommended_channels(extended=False)Retrieve channel information containing both the channel about as well as the videos published by the channel.about,videos=b.get_channels(channel_ids,get_channel_about=True,get_channel_videos=True)Search Videos (sorted by relevance only).videos=search(query,top=100)
Package: bitcli
Retrieve prices in cli from BitpandaInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run bitcli cli application

$ bitcli --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingBitpanda prices CLI,
and can be built with the includedmakehelper:$ make docker

$ docker run -it bitcli --help
Package: bitclone
bitcloneClone All My bitbucket RepoEasly select your repo and clone it in your folder, save time.Install:pip install bitcloneRun:bitcloneorpython -m bitcloneAnd uninstall:pip uninstall bitcloneHelpbitclone [-h] [--dir [DIR]]Automatically choice hg or git and clone it your location,You must havehgorgittool.Please check your credential cache, it can store your passwordUNSET and SET caching passwords:unset:  git config --global --unset credential.helperSet on Linux:git config --global credential.helper 'cache --timeout=3600'Set on Windows:set:    git config --global credential.helper wincredoptional arguments:-h, --help   show this help message and exit--dir [DIR]  Clone Location (default: where are you run it)Usage
Package: bitclust
BitClust: Fast and memory-efficient clustering of long Molecular DynamicsHome PageBitClust´s latest documentation is availablehereDescriptionBitClustis a Python command-line interface (CLI) conceived for fast
clustering of relatively long Molecular Dynamics trajectories following
Daura's algorithm [1]. Retrieved clusters are roughly equivalent to those
reported byVMD'sinternal commandmeasure clusterbut they are computed in a much faster way (see benchmark section for more details).MotivationNowadays very long simulations are carried on routinely. Enhanced sampling
methods like metadynamics, REMD, and accelerated dynamics allow escaping from
potential energy minima, returning trajectories that are conformationally sparsed
and where every cluster can be potentially important to detect and analyze. Improvements
on software designed to address this task is an important field of research.BitClustoffer is a classical tradeoff; RAM for speed. It can
calculate all pairwise distances between frames to run a clustering job and
then store them in memory instead of recalculating them whenever a cluster is found.
It is worth noting that used memory has been deeply optimized by encoding similarity distances
as bits (0 if the distance is less equal than a specified threshold, 1 otherwise).
This encoding result in a storage reduction as high as 32X/64X compared to similar algorithms
that saves the same information as single-precision/double-precision float values.Main DependenciesBitClustis built on the shoulders of two giants:MDTraj softwarethat allows a very fast
calculation of RMSD pairwise distances between all frames of trajectories in
a parallelized fashionandbitarray third-party python librarywhich offers a memory-efficient data structure of bit-vectors (bit arrays)
and a set of bitwise operations that are the very heart of our clustering
implementation.CitationIf you make use ofBitClustin your scientific work,BitCoolandcite it ;)LicenceBitClustis licensed under GNU General Public License v3.0.Reference[1] Daura, X.; van Gunsteren, W. F.; Jaun, B.; Mark, A. E.; Gademann, K.; Seebach, D. Peptide Folding: When Simulation Meets Experiment. Angew. Chemie Int. Ed. 1999, 38 (1/2), 236–240.
Package: bitcode-test
This repo is a pure python implementation forintbitset.InstallationRequirementsPython 3.8 or laterpipinstallbitcode-testDocumentationbitcode is a fallback library for intbitset, so theintbitsetclass and its methods
have same names and parameters.Below listed are the implemented classes and methods.ClassesintbitsetMethods for Automaton classaddclearcopydifferencedifference_updatediscardisdisjointissupersetissubsetremovestrbitssymmetric_differencesymmetric_difference_updatetolistunionunion_updateintersectionintersection_update__and____eq____contains____len____iter____hash____str__For documentation please refer to:https://intbitset.readthedocs.io/en/latest/
Package: bitcoinabuse-monitor
bitcoinabuse_monitorImports and formats bitcoinabuse.com dataProvides a statistical summary of the uploaded datasetProvides a statistical distribution of the address size as bot
activity increases.Provides a dataframe of all addresses and an indication of whether
it has duplication in its description or notProvides a time range analysis on the range of spam of each
individual addressesProvides analytical insight on both the abuse type and the abusersInstallpipinstallbitcoinabuse_monitorHow to useThis package is simply utilised by first initialising an object then
applying useful functions as indicated in the analyzer page.
Package: bitcoinAlertWithTelegram
bitcoinAlertWithTelegramThis is the starter text for a python package.
github link :https://github.com/praveenNagaraj97-au7/Bitcoin-Alert-Based-on-PythonHow to run the codefrom bitcoinalert import run()
run()join the channel here : Telegram link:http://t.me/praveenNagarajto get notified!
Package: bitcoinaverage
BitcoinAverage PIP LibraryThe following examples demonstrate how Http and Websocket requests are made.
Just enter your public key and you can run the examples.Get your api key by logging in here:https://pro.bitcoinaverage.com/Official documentation:https://apiv2.bitcoinaverage.comMore examples on Github:https://github.com/bitcoinaverage/api-integration-examples/Http examplefrombitcoinaverageimportRestfulClientif__name__=='__main__':public_key='your_public_key'restful_client=RestfulClient(public_key)ticker_global_per_symbol=restful_client.ticker_global_per_symbol('BTCUSD')print('Global Ticker for BTCUSD:')print(ticker_global_per_symbol)Websocket V1 examplefrombitcoinaverageimportTickerWebsocketClientif__name__=='__main__':public_key='your_public_key'print('Connecting to the ticker websocket...')ws=TickerWebsocketClient(public_key)ws.ticker_data('local','BTCUSD')Websocket V2 examplesVersion 2 the websocket clients accept a list of cryptocurrencies and a list of exchange respectively.
They also use new optimized algorithm for quicker updates.TickerfrombitcoinaverageimportTickerWebsocketClientV2if__name__=='__main__':public_key='your_public_key'print('Connecting to the ticker websocket...')ws=TickerWebsocketClientV2(public_key)ws.ticker_data('local',['BTCUSD','ETHUSD'])ExchangesfrombitcoinaverageimportExchangeWebsocketClientV2if__name__=='__main__':public_key='your_public_key'print('Connecting to the exchange websocket...')ws=ExchangeWebsocketClientV2(public_key)ws.exchange_data(['bitstamp','coinbasepro'])Copyright Blockchain Data LTD
Package: bitcoincli
DescriptionHeavily based onpython-bitcoinrpcandSavoirbut replacing the httplib withrequests.Installationgitclonehttps://github.com/chainstack/bitcoincliUsageAfter cloning this repository, run:pythonsetup.pydevelopUse theBitcoin API documentacionand make calls to the wrapper.Remember to replace the RPC variables with your Bitcoin node access credentials.frombitcoincliimportBitcoinhost="nd-123-456-789.p2pify.com"port="80"username="user-name"password="pass-word-pass-word-pass-word"bitcoin=Bitcoin(username,password,host,port)info=bitcoin.getblockchaininfo()print(info)
Package: bitcoin-cli
BitcoinThis is a small command line tool that gives you the price of the Bitcoin cryptocurrency. You can use it for every currency as long as coinbase supports itInstallation# For your userpipinstallbitcoin-cli# Globallysudopipinstallbitcoin-cliUsageThe default currency is GBP, so by just runningbitcoinyou will see the price in GBP
If you wish to use another currency, use:bitcoinUSD# US DollarsbitcoinEUR# EurosbitcoinAUD# Australian Dollars# etc.It will return an output like this:--------------------------------------------------
Current Bitcoin Price in GBP:
£34,557.00
--------------------------------------------------
Price Change over 24 Hours:
Down 11.71%
--------------------------------------------------
Date & Time (BST):
18:55:31, Thursday 13 May 2021
--------------------------------------------------
Source:
Coin Gecko API (coingecko.com)
--------------------------------------------------
Package: bitcoin-coin-selection
bitcoin_coin_selectionPort of Bitcoin core coin selection logic to Python, prioritizing fidelity to the original and convenience.Classes / functions were named and organized per the original C++ code as far as was practicable. Most comments are copied.Installationpip install bitcoin_coin_selectionUsageselect_coinsis the main interface here. See the exmples folder for a step-by-step walkthrough.ContextBitcoin core coin selection logic:https://github.com/bitcoin/bitcoin/blob/master/src/wallet/coinselection.cpphttps://github.com/bitcoin/bitcoin/blob/master/src/wallet/wallet.cppErhardt's thesis on coin selectionhttps://murch.one/wp-content/uploads/2016/11/erhardt2016coinselection.pdfExplanation of the "OutputGroup" type (privacy enhancement)https://github.com/bitcoin/bitcoin/pull/12257