Saravanan666/pypi-org huggingface dataset:
Package: coindesk
CoinDesk API clientPowered byClient written in Python3 for CoinDesk API service.FeaturesGet Bitcoin current priceGet Bitcoin historical priceGetting StartedThese instructions will get you a copy of the project on your local system.DependenciesCoinDesk API client uses a number of open source projects to work properly:aiohttp- Asynchronous HTTP client/server for asyncio and Pythonfurl- URL parsing and manipulation made easyjsonschema- An implementation of JSON Schema validation for Pythonrequests- Python HTTP for HumansAnd of course CoinDesk API client itself is open source with apublic repositoryon GitHub.InstallationIntall the package fromPypiusing the command:pipinstall-UcoindeskQuick StartA series of simple examples:Get currentprice price for Bitcoin in json formatfromcoindesk.clientimportCoindeskAPIClientapi_client=CoindeskAPIClient.start('currentprice')response=api_client.get()Get currentprice price for Bitcoin in other currency than USDfromcoindesk.clientimportCoindeskAPIClientapi_client=CoindeskAPIClient.start('currentprice',{'currency':'EUR'})response=api_client.get()Get historical price for Bitcoin in json formatfromcoindesk.clientimportCoindeskAPIClientapi_client=CoindeskAPIClient.start('historical')response=api_client.get()Get historical price for Bitcoin providing optional parametersfromcoindesk.clientimportCoinDeskAPIClientapi_client=CoindeskAPIClient.start('historical',{'currency':'EUR','for':'yesterday'})response=api_client.get()Make a request with custom parameters either for currentprice or historicalfromcoindesk.clientimportCoinDeskAPIClientapi_client=CoindeskAPIClient.start('currentprice',retries=5,redirects=False,timeout=10)response=api_client.get()Get raw http response either for currentprice or historicalfromcoindesk.clientimportCoinDeskAPIClientapi_client=CoindeskAPIClient.start('currentprice')response=api_client.get(raw=True)Get supported currencies to fetch Bitcoin price infromcoindesk.clientimportCoindeskAPIClientapi_client=CoindeskAPIClient()supported_currencies=api_client.get_supported_currencies()Full documentation for CoinDesk API is available athttps://www.coindesk.com/api/.LicenseMITFree Software. Hell Yeah!
Package: coindicator
CoindicatorCoindicator is a cryptocurrency price indicator applet for Linux.FeaturesMultiple price tickers in the status barAutomatic trade pair discovery on supported exchangesAdditional price points in the dropdown menuAudiovisual price alertsAdjust the refresh rateThousands of cryptocurrency pairs from the following exchanges:KrakenBitstampGeminiBinanceBittrexBitfinexPoloniexHitBTCCEX.ioOKCoinUnocoinAdd your own easily (SeeExtending (Plugins)below)InstallingYou will need Git and Python 3.5 or higher, as well as some system dependencies.For your convenience, I've included a small install script that will install (or upgrade)
coindicator and its dependencies, as well as create a desktop icon. It will ask to elevate
permissions to install dependencies. It takes the install location as an argument.gitclonehttps://github.com/bluppfisk/coindicator.git&&cdcoindicator./install.sh/opt/coindicator# or wherever you want it installed.Upgrading from 1.xUser data has moved to your home folder. To keep your settings, move the user.conf file to:~/.config/coindicator/.RunningA launcher icon "Coindicator" should have been installed that can be used to start the appAlternatively, go to the install folder, activate the environmentsource venv/bin/activateand run the app withcoindicator. Add&to run it in the background.ConfiguringUse the GUI to add and remove indicators (find the piggy icon), to pick assets, to set refresh frequency and to set alarms. Alternatively, edit the~/.config/coindicator/user.confYAML file.max_decimals: default 8. Lower if you want fewer decimals (takes priority oversignificant_digits)significant_digits: default 3. Set to higher if you want more significant digits.Extending (Plug-ins)Adding your own exchange plug-in is easy. Just create class file with methods for returning a ticker URL, a discovery URL, and parsing the responses from the ticker and discovery APIs. Then add the file to theexchangesfolder.Have a peek at the existing plug-ins (e.g.kraken.py) for an example and don't forget to contribute your plug-ins here on GitHub!BuildingCreate and activate environmentrunpip install -e .[develop]to install required toolsrunpython3 setup.py build bdistruntwine upload dist/{version}if you want to upload to PyPi (will need credentials)TroubleshootingThis software was tested and found working on the following configurations:Ubuntu Linux 16.04 (Xenial Xurus) with Unity 7Ubuntu Linux 17.10 (Artful Aardvark) with GNOME 3 and Unity 7Ubuntu Linux 18.04 (Bionic Beaver) with GNOME 3 and Unity 7Ubuntu Linux 19.04 (Disco Dingo) with GNOME 3 and Unity 7Ubuntu Linux 19.10 (Eoan Ermine) with GNOME 3 and Unity 7Ubuntu Linux 20.04 (Focal Fossa) with GNOME 3Ubuntu Linux 20.10 (Groovy Gorilla) with GNOME 3Ubuntu Linux 21.04 (Hirsute Hippo) with GNOME 3Ubuntu Linux 21.10 (Impish Indri) with GNOME 40Ubuntu Linux 22.04 (Jammy Jellyfish) with GNOME 42Ubuntu Linux 22.10 (Kinetic Kudu) with GNOME 43Ubuntu Linux 23.04 (Lunar Lobster) with GNOME 44For other systems, you may need to install LibAppIndicator support.Before reporting bugs or issues, please try removing/renaming the~/.config/coindicatorfolder first.
Package: coinespy
COINESPY: Interface for Bosch Sensortec's Engineering Boards.COINESPYprovides a python interface for interacting with the Bosch Sensortec's Engineering boards.GitHub repositoryDocumentationExamplesThe library offers the following range of functionalities:Control VDD and VDDIO of sensorConfigure SPI and I2C bus parametersRead and write into registers of sensors from Bosch Sensortec via SPI and I2CRead and write digital pins of the Application Board.Code exampleHere’s a script to verify the installation by fetching the coinespy version, and the hardware and software versions of the connected board.importcoinespyascpyfromcoinespyimportErrorCodesCOM_INTF=cpy.CommInterface.USBif__name__=="__main__":board=cpy.CoinesBoard()print('coinespy version -%s'%cpy.__version__)board.open_comm_interface(COM_INTF)ifboard.error_code!=ErrorCodes.COINES_SUCCESS:print(f'Could not connect to board:{board.error_code}')else:b_info=board.get_board_info()print(f"coines lib version:{board.lib_version}")print(f'BoardInfo: HW/SW ID:{hex(b_info.HardwareId)}/{hex(b_info.SoftwareId)}')board.close_comm_interface()
Package: coinexpy
coinexpy - Python wrapper for Coinex APIsThrough coinexpy you can simply buy or sell crypto in yourCoinexaccountFeaturesplace limit orderplace market orderget balanceget priceInstallpipinstallcoinexpyExampleYou can create API key and get your access_id & secret_keyherefromcoinexpy.coineximportCoinexcoinex=Coinex('<your_access_id>','<your_secret_key>')balance=coinex.get_balance()usdt_balance=coinex.get_available('USDT')btc_price=coinex.get_last_price('BTCUSDT')coinex.market_buy('BTCUSDT',100)# buy 100$ worth of bitcoin with market pricecoinex.market_sell('BTCUSDT',100)# sell 100$ worth of BTCcoinex.limit_buy('BTCUSDT',100,50000)# place a limit buy order on bitcoin with amount=100$result=coinex.limit_sell('BTCUSDT',100,50000)coinex.cancel_order(result['id'],result['market'])AmountFieldamountshould be calculated with the 2nd currency in pair e.g. in BTCUSDT you should calculate amount in USDTDonateFor additional support you can always donate.My TRX address:TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2BCH:qrxfzgu5prerumfmzm20jajkp6nvje092yx8n5g0k6USDT TRC20:TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2ContactIf you need another function or found a bug in existing ones submit a new issueHere.
Package: coinex.py
coinexA minimalcoinex.com APIwrapper.  Some of the functions accept additional arguments, see the API documentation for those.installationpip install coinex.pyusagefromcoinex.coineximportCoinExfromsomewhere_elseimportaccess_id,secretcoinex=CoinEx(access_id,secret)# public APIcoinex.market_list()coinex.market_ticker('BCHBTC')coinex.market_depth('BCHBTC')coinex.market_deals('BCHBTC')# private APIcoinex.balance_info()coinex.balance_coin_withdraw_list()coinex.balance_coin_withdraw('BCH','qzjtuuc9nafvfhmwt47z84awltp9gmx7wyma3kvy9v',0.001)coinex.balance_coin_withdraw_list(coin_withdraw_id=2465345342)coinex.balance_coin_withdraw_cancel(coin_withdraw_id=2465345342)coinex.order_limit('CETBCH','sell',100.0,10.0)coinex.order_market('CETBCH','buy',1.0)coinex.order_ioc('CETBCH','sell',100.0,10.0)coinex.order_pending('CETBCH')coinex.order_finished('CETBCH')coinex.order_status('CETBCH',2465345342)coinex.order_deals(2465345342)coinex.order_user_deals('CETBCH')coinex.order_pending_cancel('CETBCH',2465345342)coinex.order_mining_difficulty()
Package: coin-falcon
CoinFalcon Python PackageThe CoinFalcon Python Package provides convenient access to the CoinFalcon API from applications written in the Python language.UsageThe client needs to be configured with your account's key and secret which is available in your CoinFalcon Dashboard:API Clientfromcoin_falcon.clientimportClientclient=Client(key,secret)It is also possible to set up an API endpoint and version:client=Client(key,secret,endpoint)Defaults:ENDPOINT='https://coinfalcon.com'VERSION=1Accountsres=client.accounts()print(res)Create orderres=client.create_order({'market':'ETH-BTC','operation_type':'limit_order','order_type':'buy','size':'0.01','price':'0.05'})print(res)Cancel orderres=client.cancel_order('547a730e-42b9-4dab-9abf-ed37b08a2947')print(res)List ordersres=client.my_orders()print(res)res=client.my_orders({'market':'ETH-BTC'})print(res)List tradesres=client.my_trades({'market':'ETH-BTC'})print(res)Deposit addressres=client.deposit_address('btc')print(res)Deposit historyres=client.deposit_history()print(res)Deposit detailsres=client.deposit_details('bf6f203a-8f1c-4594-ae49-6c68ab804581')print(res)List orderbookres=client.orderbook('ETH-BTC')print(res)res=client.orderbook('ETH-BTC',{'level':3})print(res)Feesres=client.fees()print(res)Withdrawal historyres=client.withdrawal_history()print(res)Create withdrawalres=client.create_withdrawal({'currency':'btc','address':'2N8hwP1WmJrFF5QWABn38y63uYLhnJYJYTF','amount':'0.1'})print(res)Withdrawal detailsres=client.withdrawal_details('a2a70c40-cad3-46c7-bb4f-a6160de1eaf6')print(res)List market's tradesres=client.trades('ETH-BTC')print(res)Websocket Clientfromcoin_falcon.websocket_clientimportWebsocketClientws_client=WebsocketClient(key,secret)Set up channelsws_client.channels.append({"command":"subscribe","identifier":"{\"channel\":\"OrderbookChannel\",\"market\":\"ETH-BTC\"}"})ws_client.channels.append({"command":"subscribe","identifier":"{\"channel\":\"UserTradesChannel\",\"market\":\"ETH-BTC\"}"})Run feedws_client.feed()
Package: coinflex-ws
WebSocket AdapterThis is a simple CoinFLEX WebSocket adapter.Installationpip install coinflex-wsUsageAll CoinFLEX WebSocket streams and requests are available in this package.Import the CoinFLEX WebSocket library and initialise an instance of the client:importcoinflex_wsws=coinflex_ws.CoinFLEXWebSocket(url="wss://v2stgapi.coinflex.com/v2/websocket",# Testnet endpoint; live endpoint is "wss://v2api.coinflex.com/v2/websocket"market='BTC-USD-SWAP-LIN',# Change markets hereapi_key='',# API public key generated by coinflex.comapi_secret=''# API secret key generated by coinflex.com)API keys, api_key and api_secret, are required to access private streams and requests.Streaming data and making requestsThis wrapper supports all of the WebSocket channels on the docs (docs.coinflex.com).When a get method, such as get_depth(), returns an empty string it indicates that no relevant data has been received by the client yet.# Subscribe to WebSocket streams# Public endpoints# ws.subscribe_liquidation()ws.subscribe_depth(25)# ws.subscribe_trade()# ws.subscribe_ticker()# ws.subscribe_kline('60s')# ws.subscribe_market()# Private endpoints# ws.subscribe_balance()# ws.subscribe_position()# ws.subscribe_order()# Order Management# ws.place_limit_order(1, 'BUY', 10,  0.001, 'GTC', 1)		# clientOrderId, side, price, quantity, time in force, tag# ws.place_stop_order(1, 'BUY', 50000, 60000, 0.001, 'GTC', 2)  # clientOrderId, side, stopPrice, limitPrice, quantity, time in force, tag# ws.place_market_order(1, 'BUY', 0.001, time.time())		# clientOrderId, side, quantity, tag# ws.cancel_order('304397024272106384', 3)				# orderId, tag# ws.modify_order('304397024272106383', 'BUY', 4000, 0.1, 'modify1')	# orderId, side, price, quantity, tag# Get responses foreverwhileTrue:# print(ws.get_liquidation())print(ws.get_depth(25))# print(ws.get_trade())# print(ws.get_ticker())# print(ws.get_kline('60s'))# print(ws.get_market())# print(ws.get_balance())# print(ws.get_position())# print(ws.get_order())time.sleep(0.5)See a full usage example in test.py athttps://github.com/coinflex-exchange/api-connectors/tree/main/official-ws/python.
Package: coinflip
Randomness testing for humanscoinflipaims to implement the tests recommended byNIST SP800-22to check random number generators for randomness.  A user-friendly command-line
interface provided allows you torunthe tests on your data, and
subsequentlyreporton the results by generating informational HTML
documents.coinflip.randtestsacts as thepublic APIfornotebook usersand developers to use
the randomness tests directly. The tests are implemented as general solutions,
meaning they accept basically any sequence with two distinct elements!SetupYou can get the latest release of coinflip from PyPI.$pipinstallcoinflipAlternatively you can get the (unstable) development version straight from
GitHub.$pipinstallgit+https://github.com/Honno/coinflipIf that means nothing to you, no fret! Please continue reading the instructions
below.Install Python 3.7+Cross-platform installation instructions for Python  are available atrealpython.com/installing-python/.Notecoinfliponly works onPython 3.7 or above. Make sure you have
Python 3.7 (or higher) by checking the version of your installation:$python--versionPython 3.7.XClone repositoryYou can clone the source code viaGit:$gitclonehttps://github.com/Honno/coinflipInstall coinflipEnter the directorycoinflipis downloaded to:$cdcoinflipYou can installcoinflipvia thepipmodule:$pipinstall-e.pipis the standard package manager for
Python, which should of installed automatically when installing Python 3.7+.Trial runTry running the randomness tests on an automatically generated binary sequence:$coinflipexample-runIf the commandcoinflipis “not found”, you may need to add your local
binaries folder to your shell’s path. For example, in bash you would do the
following:$echo"export PATH=~/.local/bin:$PATH">>~/.bash_profile$source~/.bash_profileIn the worst case, you can execute commands viapython-m:$python-mcoinflipexample-runQuick startRandomness tests can be ran over your RNG output via theruncommand.$coinfliprunDATAOUT...DATAis the path to newline-delimited text file that contains a binary
sequence. An example file to use is available onmy gist.
Alternatively, raw binary files can be read as bitstreams via the--binaryflagOUTis the path where you want the results to be saved. The results will be
saved as apickle-serialised
file, which can be viewed again via thereadcommand. Additionally you can
generate informational HTML reports from the results via thereportcommand,
but note that the reports are currently very lacking.Output should comprise of the sequence parsed fromDATA, test-specific result
summaries, and a final overall summary table.
Package: coingate
Simple API client for theCoinGateservice.Usagefromcoingate.clientimportCoinGateClient,CoinGateOrder# Create a client# To use the production API, add env="live"client=CoinGateClient("app_id","api_key","api_secret")# Prepare an ordernew_order=CoinGateOrder.new("order-ID",10.5,"USD","USD",callback_url='https://api.example.com/paymentcallback?token=randomtoken',cancel_url='https://www.example.com/ordercancelled',success_url='https://www.example.com/orderprocessed')# Create the orderplaced_order=client.create_order(new_order)# Get the payment URL:print(placed_order.payment_url)# List orders :orders=list(client.iterate_all_orders())# Get an order by id:order=orders[0].coingate_id
Package: coingate-api
CoinGate API SDK (API v2)The repo contains Python 3 SDK forCoinGate API v2.
This is open source library is provided bySociumNETteam and it is used in some internal
projects.InstallationYou can install the library using PIP:$ pip install coingate-apiQuick startTry it:fromcoingate_apiimportCoingateAPIapi=CoingateAPI(auth_token='your-auth-token',environment='sandbox')print(api.ping())Only replace "your-auth-token" to your token from CoinGate of CoinGate sandboxHow toDefault behavior of API uses retries for requests:3 retrieswith back-off factor 0.2http statuses of response for retries: 500, 502, 504You can change all these params by initialization of API client:fromcoingate_apiimportCoingateAPIapi=CoingateAPI(auth_token='your-auth-token',environment='sandbox',retries=5,backoff_factor=0.5,status_forcelist=(500,502,504,505))Methods of API:api.test_connection()- tests authentication. Should return simple "OK"api.ping()- tests connection to server. Should return "pong"api.exchange_rate(from_='EUR', to='USD')- check documentation of APIapi.exchange_rates()- check documentation of APIapi.ip_addresses()- check documentation of APIapi.orders(per_page=100, page=1, sort='created_at_desc', **kwargs)- check documentation of API.
Values of kwargs can contain alsocreated_at_fromandcreated_at_toapi.checkout(order_id, pay_currency='BTC')- check documentation of APIapi.create_order(price_amount, price_currency, receive_currency, **kwargs)- check documentation of API.
Values of kwargs can contain alsoorder_id,title,description,callback_url,cancel_url,success_url,tokenExceptionsfromcoingate_apiimportCoingateAPI,api_errorapi=CoingateAPI(auth_token='your-auth-token',environment='sandbox')try:print(api.test_connection())exceptapi_error.APIErrorase:print(e)Exceptions hierarchy:APIErrorUnauthorizedBadCredentialsBadAuthTokenAccountBlockedIPAddressIsNotAllowedNotFoundPageNotFoundRecordNotFoundOrderNotFoundUnprocessableEntityOrderIsNotValidRateLimitErrorInternalServerError- notice that client will do retries for this error by defaultContributionYou can be free to contribute in the project. You should only create PR with a short description what it is for and
what the problem can be solved by your PR.
Package: coingecko
Python API wrapper for CoinGecko APIThis CoinGecko Python library provides convenient access to CoinGecko API.RequirementsPython 3.0+requestsInstallationsThe recommended way to install coingecko API wrapper is viapippipinstall--upgradecoingeckoQuickstartBefore you start, visitcoingeckoto obtain a demo/paid API key.
After that, you can start using the API by:importcoingecko# Demo API keyclient=coingecko.CoinGeckoDemoClient(api_key=<insert_your_demo_api_key>)# Paid API keyclient=coingecko.CoinGeckoProClient(api_key=<insert_your_paid_api_key>)# Test your API key with pingresponse=client.ping.get()DocumentationFor the list of endpoints, visitCoinGecko API DocumentationFor more informations, visitCoinGecko API GuideExamplesThe default values and parameter namings for each endpoints follows the officialdocumentation.Making your first API Call, PING!response=client.ping.get()# -> {'gecko_says': '(V3) To the Moon!'}Just want to get price? Simple!# /simple/price - one coin_id/currencyresponse=client.simple.get_price(ids='bitcoin',vs_currencies='usd')# -> {'bitcoin': {'usd': 40067}}Use List from Python instead of comma separated strings!# /simple/price - multiple coin_ids (pass in a list of strings)response=client.simple.get_price(ids=['bitcoin','ethereum'],vs_currencies=['usd','myr'])# -> {'bitcoin': {'usd': 40067, 'myr': 189478}, 'ethereum': {'usd': 2223.37, 'myr': 10514.34}}Use booleans instead of string for "true"/"false"# /simple/price - pass in booleans instead of stringresponse=client.simple.get_price(ids='bitcoin',vs_currencies='usd',include_24hr_vol=True)# -> {'bitcoin': {'usd': 40067, 'usd_24h_vol': 16742608673.077057}}For precisions, use Integer/Strings# simple/price - precision accepts integer/stringresponse=client.simple.get_price(ids='bitcoin',vs_currencies='usd',precision=2)# -> {'bitcoin': {'usd': 40066.81}}response=client.simple.get_price(ids='bitcoin',vs_currencies='usd',precision="2")# {'bitcoin': {'usd': 40066.81}}Need more examples?Check outhere!LicenseThe library is available as open source under the terms of theMIT License.
Package: coingecko-api
coingecko_apiPython wrapper for theCoinGeckoAPI(v3) with GPLv3 license.Documentation of the API atDonations 🙇🙇‍♀Bitcoinbc1q79vja8jzr27dxaf3ylu7e49ady8zq0jsm5qfk6Monero88Rezd6ZQzaCb1s7K1tRCiCaDzuHrfYsn4q348jJuePpLs84JNsWEghMAZZgzpDPrqD4PBxk7hwMkSdNQ4CLqFHyPVLdX1DWowneroWW2RheTNrq8goAi42Dz5AKUj1qLSaTSSgiH7sHR2qRqojg238EXP3MM3xuUgswriET7UrpkEoYaCkecBhnU49oxM1dZyYoSmm
Package: coingecko-api-client
CoinGecko API ClientUnofficialCoinGecko APIclient based on HTTPX.InstallationUse the package managerpipto install the library.pipinstallcoingecko-api-clientOrpoetry.poetryaddcoingecko-api-clientUsage# imports sync clientfromcoingecko_api_client.clientimportCoinGeckoAPIClient# imports async clientfromcoingecko_api_client.clientimportCoinGeckoAPIAsyncClient# instantiates sync clientsync_client=CoinGeckoAPIClient()# instantiates async clientasync_client=CoinGeckoAPIAsyncClient()# pings CoinGecko API with sync clientsync_ping_data=sync_client.ping()# pings CoinGecko API with async clientasync_ping_data=awaitasync_client.ping()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMITThanksThis readme file was constructed usingthis template.