Saravanan666/pypi-org huggingface dataset:
Package: coin2086
Coin2086Crypto Taxes Made Easy ! 📒Coin2086 is a Python module that makes it easy for French tax residents to
fill their crypto-currency tax return.Tax autorities requires French tax residents to report their profit and losses
(PnL) on each of their cryto-currency sales of the previous year onFormulaire n°2086.The formula to compute your profit and losses, detailed onFormulaire n°2086,
requires you to valuate yourwholecrypto-currency portfolio every time you sell,
and keep track of the amount of initial investment capital that was sold. This
accounting is tedious to do by hand.Coin2086 does all of that automatically for you. It takes your trades as input,
valuates your cryptocurrency portfolio, computes your taxable profit and outputs
theexactinformation you need to fill onFormulaire n°2086.It's that simple !📖  Documentation:https://coin2086.readthedocs.io/📦  PyPI Package:https://pypi.org/project/coin2086/📝  Example Jupyter Notebook:Launch on Binder💻  GitHub Project:https://github.com/fandre90/coin2086Installationpipinstallcoin2086Alternatively, you may use theBinder Notebookdirectly in your browserBasic Usage>>>importpandasaspd>>>importcoin2086>>>trades=pd.read_csv('trades.csv')>>>tradesdatetimetrade_sidecryptocurrencyquantitypricebase_currencyamountfee02019-10-1911:10:00BUYBTC1.007149.38EUR7149.380035.74690012019-11-1419:50:00SELLBTC0.507844.88EUR3922.440019.61220022020-07-2810:20:00BUYBTC2.009262.42EUR18524.840092.62420032020-09-0112:20:00BUYETH5.00393.58EUR1967.90009.83950042020-09-0516:50:00SELLBTC1.008722.70EUR8722.700043.61350052020-09-0812:40:00SELLETH5.00285.07EUR1425.35007.12675062020-12-2009:10:00SELLBTC0.2519223.90EUR4805.975024.02987572021-03-1323:40:00SELLBTC0.2550025.17EUR12506.292562.531463>>>year=2020>>>form2086,taxable_profit=coin2086.compute_taxable_pnls(trades,year=year)>>>print(f"Total taxable profit for year{year}:{taxable_profit:.2f}euros")Totaltaxableprofitforyear2020:2038.50euros>>>form2086Description...Plus-valuesetmoins-values[pnl]4SELL1.00BTC...-371.7087925SELL5.00ETH...-102.3323586SELL0.25BTC...2512.542417[3rowsx10columns]For more information, check out thedocumentationor theexample notebook
Package: coinaddr
MaintainerJoe Black |me@joeblack.nyc|githubIntroductionA cryptocurrency address inspection/validation library for python.Supported currenciesbitcoinbitcoin-cashlitecoinethereumethereum-classicether-zerodogecoindashcoinneocoinrippleInstallationpip3installcoinaddrUsage>>>importcoinaddr>>>coinaddr.validate('btc',b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT')ValidationResult(name='bitcoin',ticker='btc',address=b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT',valid=True,network='main')ExtendingCurrenciesTo add a new currency, simply instantiate a newcoinaddr.currency.Currencyclass.  It will be automatically registered.fromcoinaddrimportCurrencyCurrency('testcoin',ticker='ttc',validator='Base58Check',networks=dict(main=(0x00,0x05),test=(0x6f,0xc4)))To override a default currency, simply instantiate a new currency with that name.ValidatorsTo add a new validator, simply create a subclass ofcoinaddr.validation.ValidatorBasewith your own implementation that implements thecoinaddr.interfaces.IValidatorinterface.  It will be automatically registered.fromzope.interfaceimportimplementerfromcoinaddr.interfacesimportIValidatorfromcoinaddrimportValidatorBase@implementer(IValidator)classNewValidator(ValidatorBase):name='New'@propertydefnetworks(self):return'testing'defvalidate(self):returnTrueTo override a default validator, simply create a new validator with that name.ChangesCHANGELOG
Package: coinaddress
coinaddressCrypto address generator from xpubFree software: MIT licenseDocumentation:https://coinaddress.readthedocs.io.Featuresgenerate addresses for multiple blockchains from extended public key (xpub)minimum dependency (it means security)CLI interfaceGetting startedInstall package using pip (prefer virtualenv):pip install coinaddressAnd you can start use provided CLI. Read help first:coinaddress –helpTo generate 1000 addresses for bitcoin xpub from file (xpub should be a single line in this file):cat xpub.txt | coinaddress bitcoin 0 -n 1000To generate another bunch of addresses:cat xpub.txt | coinaddress bitcoin 1000 -n 1000xpub can be passed with–xpuboption but you should avoid this and prefer read from file for security reasons.Using from codeYou can use public python interface to convert addresses:from coinaddress import address_from_xpub
address_from_xpub(
    network='bitcoin',
    xpub='<XPUB>',
    path='0/0'
)CreditsThis package uses code (as is or as reference) from:https://github.com/ranaroussi/pywallethttps://github.com/oskyk/cashaddresshttps://github.com/ethereum/eth-utilsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2019-12-23)Public api0.1.0 (2019-12-22)First release on PyPI.Support Bitcoin (BTC), Bitcoin Cash (BCH), Ethereum (ETH), Litecoin (LTC), Ripple (XRP)
Package: coinaddrvalidator
CoinAddrValidatorMaintainerMohammad Aghamir -Maintainer of this repository-coinaddrvalidatorFork MaintainerDevmons s.r.o. -Maintainer of this fork-coinaddrngSee also the list ofcontributorswho participated in this project.Original MaintainerJoe Black |me@joeblack.nyc|githubIntroductionA cryptocurrency address inspection/validation library for python.Supported currenciesbinancecoinbitcoinbitcoin-svbitcoin-cashboscoincardanocosmosdashcoindecreddogecoineosethereumethereum-classicether-zerogroestlcoinhorizenkusamalitecoinneocoinontologypolkadotravencoinripplestellartezostronixvechainzcashInstallationpip3installcoinaddrvalidatorUsage>>>importcoinaddrvalidator>>>coinaddrvalidator.validate('btc',b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT')ValidationResult(name='bitcoin',ticker='btc',address=b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT',valid=True,network='main',is_extended=False,address_type='address')ValidationResult returns coin name and ticker, address, if the address is valid or not. In case network prefix bytes are defined for the checked currency, then the network
is returned, too. If the coin supports that and the address is an extended key, it returns if it is valid or not.  For some coins the address type can be guessed based on its
format, which is returned as address_type. If there's none, 'address' is being returned as a default.ExtendingCurrenciesTo add a new currency, simply instantiate a newcoinaddr.currency.Currencyclass.  It will be automatically registered.fromcoinaddrvalidatorimportCurrencyCurrency('decred',ticker='dcr',validator='DecredCheck',networks=dict(main=(0x073f,0x071a,0x02fda926),test=(0x0f21,0x0efc,0x043587d1)),address_types=dict(address=(0x073f,0x0f21),ticket=(0x071a,0x0efc),xpubkey=(0x02fda926,0x043587d1)))To override a default currency, simply instantiate a new currency with that name.ValidatorsTo add a new validator, simply create a subclass ofcoinaddr.validation.ValidatorBasewith your own implementation that implements thecoinaddr.interfaces.IValidatorinterface.  It will be automatically registered.fromzope.interfaceimportimplementerfromcoinaddr.interfacesimportIValidatorfromcoinaddrimportValidatorBase@implementer(IValidator)classNewValidator(ValidatorBase):name='New'@propertydefnetworks(self):return'testing'defvalidate(self):returnTrueTo override a default validator, simply create a new validator with that name.ChangesCHANGELOG
Package: coinbase
The official Python library for theCoinbase API.FeaturesNear-100% test coverage.Support for bothAPI Key + SecretandOAuth 2authentication.Convenient methods for making calls to the API - packs JSON for you!Automatic parsing of API responses into relevant Python objects.All objects have tab-completable methods and attributes when usingIPython.For more information, pleasevisit the Github repository.Note: this package name used to refer to the unofficialcoinbase_pythonlibrary maintained byGeorge Sibble.
George graciously allowed us to use the name for this package instead. You can
still find that packageon Github. Thanks, George.
Package: coinbase4py
python &amp; Django include project for anybody who wants to use coinbase.comA small Django app that provides a client to coinbase.com# InstallationGet a git clone of the source tree:git clonehttps://github.com/claytantor/coinbase4py.gitThen you’ll need the “lib” subdir on your PYTHONPATH:cd coinbase4py
python setup.py install# Django project setupAddcoinbase4pytoINSTALLED_APPSin your project’s “settings.py”.
Package: coinbaseadvanced
Coinbase AdvancedPython library for the Coinbase Advanced Trade API.FeaturesSupport for all theREST API endpointsthrough convenient methods.Automatic parsing of API responses into relevant Python objects.Unit Tests based on real responses using fixtures.Support for Cloud and Legacy Auth Schemas:Support forCloud API Trading Keys(Recommended)Support forLegacy API Keys(Deprecated but supported in this library for backward compatibility reasons)Examplefrom coinbaseadvanced.client import CoinbaseAdvancedTradeAPIClient

# Creating the client using Clould API Keys.
client = CoinbaseAdvancedTradeAPIClient.from_cloud_api_keys(API_KEY_NAME, PRIVATE_KEY)

# Listing accounts.
accounts_page = client.list_accounts()
print(accounts_page.size)

# Creating a limit order.
order_created = client.create_limit_order(client_order_id="lknalksdj89asdkl", product_id="ALGO-USD", side=Side.BUY, limit_price=".19", base_size=5)Installationpip install coinbaseadvancedContributing/DevelopmentAny and all contributions are welcome! The process is simple:Fork repo.Install Requirements:pip install -r requirements.txt.Make your changes.Run the test suitepython -m unittest -v.Submit a pull request.
Package: coinbase-advancedtrade-python
Coinbase Advanced Trade API Python ClientThis is the unofficial Python client for the Coinbase Advanced Trade API. It allows users to interact with the API to manage their cryptocurrency trading activities on the Coinbase platform.FeaturesEasy-to-use Python wrapper for the Coinbase Advanced Trade APISupports all endpoints and methods provided by the official APILightweight and efficient wrapperAdded support for trading strategies covered on theYouTube channelSetupClone this repository or download the source files by runningpipinstallcoinbase-advancedtrade-pythonSet your API key and secret in config.py. To obtain your API key and secret, follow the steps below:Log in to your Coinbase account.Navigate to API settings.Create a new API key with the appropriate permissions.Copy the API key and secret to config.py.AuthenticationHere's an example of how to authenticate:fromcoinbase_advanced_trader.configimportset_api_credentials# Set your API key and secretAPI_KEY="ABCD1234"API_SECRET="XYZ9876"# Set the API credentials once, and it updates the CBAuth singleton instanceset_api_credentials(API_KEY,API_SECRET)Usage of StrategiesHere's an example of how to use the strategies package to buy $20 worth of Bitcoin:fromcoinbase_advanced_trader.strategies.limit_order_strategiesimportfiat_limit_buy# Define the trading parametersproduct_id="BTC-USD"# Replace with your desired trading pairusd_size=20# Replace with your desired USD amount to spend``# Perform a limit buylimit_buy_order=fiat_limit_buy(product_id,usd_size)Usage of Fear and Greed Indexfromcoinbase_advanced_trader.strategies.fear_and_greed_strategiesimporttrade_based_on_fgi_simple# Define the product idproduct_id="BTC-USD"# Implement the strategytrade_based_on_fgi_simple(product_id,10)Usage of Fear and Greed Index (Pro)fromcoinbase_advanced_trader.strategies.fear_and_greed_strategiesimporttrade_based_on_fgi_pro# Define the product idproduct_id="BTC-USD"# Define the custom schedulecustom_schedule=[{"threshold":20,"factor":1,"action":"buy"},{"threshold":80,"factor":0.5,"action":"buy"},{"threshold":100,"factor":1,"action":"sell"},]# Implement the strategyresponse=trade_based_on_fgi_pro(product_id,10,custom_schedule)DocumentationFor more information about the Coinbase Advanced Trader API, consult theofficial API documentation.LicenseThis project is licensed under the MIT License. See the LICENSE file for more information.AuthorRhett Reisman

Email: rhett@rhett.blog

GitHub: https://github.com/rhettre/coinbase-advancedtrade-pythonDisclaimerThis project is not affiliated with, maintained, or endorsed by Coinbase. Use this software at your own risk. Trading cryptocurrencies carries a risk of financial loss. The developers of this software are not responsible for any financial losses or damages incurred while using this software. Nothing in this software should be seen as an inducement to trade with a particular strategy or as financial advice.
Package: coinbitrage
coinbitrageCommand line interface application for comparing coin prices for crypto-currency arbitrage$ coinbitrage diff bitfinex gdax
┌──────────┬──────────┬───────┬─────────┬───────────┐
│ currency │ bitfinex │ gdax  │ diff    │ diff_perc │
├──────────┼──────────┼───────┼─────────┼───────────┤
│ Litecoin │ 283.6    │ 283.8 │ 0.21700 │ -0.07652  │
│ Ethereum │ 686.4    │ 696.2 │ 9.713   │ -1.41498  │
│ Bitcoin  │ 16355    │ 16869 │ 514.3   │ -3.14458  │
└──────────┴──────────┴───────┴─────────┴───────────┘Free software: GNU General Public License v3Documentation:https://coinbitrage.readthedocs.io.Features$coinbitrage diff --help
Usage: coinbitrage diff [OPTIONS] EXCHANGE1 EXCHANGE2

  show difference between two exchanges

Options:
  --reverse       reverse ordering
  --sort-by TEXT  which column to sort by [diff, diff_perc]  [default:
                  diff_perc]
  --help          Show this message and exit.Coinbitrage is using coinmarketcap for price data.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-12-10)First release on PyPI.
Package: coinblockpro
coinblockproA toy server written in Sanic to mimic an online currency exchange, with
REST and websocket APIs.Installationcoinblockprois available on the Python Package Index (PyPI).pip install coinblockproRunThe bash scriptrun_cbp_serveris placed in the user's bin when the
package is installed. Running:./run_cbp_serverwill produce output like the following:[2020-10-05 19:19:37 +0100] [34227] [INFO] Creating ticker db at /tmp/tickers.db.
[2020-10-05 19:19:37 +0100] [34227] [INFO] Created db.
[2020-10-05 19:19:37 +0100] [34227] [INFO] Running websocket server.
[2020-10-05 19:19:37 +0100] [34227] [INFO] Goin' Fast @ http://0.0.0.0:8001
[2020-10-05 19:19:37 +0100] [34227] [INFO] Starting modulation coroutine.
[2020-10-05 19:19:37 +0100] [34227] [INFO] Starting worker [34227]
[2020-10-05 19:19:38 +0100] [34228] [INFO] Running REST server.
[2020-10-05 19:19:38 +0100] [34228] [INFO] Goin' Fast @ http://0.0.0.0:8000
[2020-10-05 19:19:38 +0100] [34228] [INFO] Starting worker [34228]
[2020-10-05 19:19:43 +0100] [34227] [INFO] update to market btc_ltc: 3350.505 -> 3292.16
[2020-10-05 19:19:49 +0100] [34227] [INFO] update to market ltc_dot: 2752.763 -> 2708.661Connecting to the serverThe server runs on the localhost.The REST API is available on port 8000, while the websocket API is
available on port 8001.REST endpoints:/full_ticker- no parameters, returns a json response of the form:{ 'result':  
    {'btc_eur':  2134.12, 'btc_usd': 2245.76} ... }
}/single_ticker- single parameter "market", must be given. Returns a
json response of the form:{ 'result':
    {'btc_eur': 2134.12}
}The list of available markets can be found at:importcoinblockprocoinblockpro.marketsSome example requests are given below:importrequestsr1=requests.get('http://0.0.0.0:8000/full_ticker')r2=requests.get('http://0.0.0.0:8000/singler_ticker',params={'market':'btc_eur'})Websocket APIThe websocket API runs on the localhost, on port 8001, and gives
real-time information on markets as they change at the/ticker_feedendpoint.An example configuration using thewebsocketslibrary is given below.importwebsocketsimportasyncioimportwebsocketsasyncdefsubscribe():asyncwithwebsockets.connect('ws://0.0.0.0:8001/ticker_feed')asws:whileTrue:resp=awaitws.recv()print(resp)if__name__=='__main__':asyncio.run(subscribe())Example clientUNDER CONSTRUCTION
Package: coinbridge
Bridge between Bitcoin and PostgreSQL.Coinbridge connects the Bitcoin daemon (bitcoind) and a local PostgreSQL
database. It listens for transaction confirmations and automatically
updates a transactions table in your database.Includes a “payment” method which uses free, instant Bitcoin transfers
between accounts in the same wallet, and standard Bitcoin transactions
otherwise. Also includes a comprehensive wrapper for
Bitcoin’s JSON-RPC functionality.Coinbridge has been tested with Bitcoin, but it should work for any
altcoin that shares Bitcoin’s RPC command suite (i.e., most of them). To
add a different coin, enter the new coin’s information intocoinbridge/data/coins.json. For wallet listener functionality, you
also need to create acoinbridge/newcoin-listenscript withnewcoin-cli(ornewcoind) in place ofbitcoin-cli, and point
the new coin’swalletnotifyto this script in newcoin’s configuration
file.Bitcoin: 1CjevDn76Yg5TsEZLkbKy2A6g5hYPE3gAGInstallation$ pip install coinbridgeDepending on your system, compiling Bitcoin from scratch can be a
headache. On Ubuntu, you can simply installbitcoindfrom the
bitcoin PPA:$ apt-get install python-software-properties
$ add-apt-repository ppa:bitcoin/bitcoin
$ apt-get update
$ apt-get install bitcoindA convenience script,init.sh, is included that will do some initial
configuration for you. I have only tested this on Ubuntu 12.04/14.04 so
far. The below steps are only necessary ifinit.shdoes not work for
you:Set up apgpassfile so transaction confirmations can be
autologged to Postgres. Replace HOST, PORT, USER, DATABASE, PASSWORD
with your own settings. Note:coinbridge/db.pyexpects the
username to becoinbridge. If you use a different username, you
must also create acoinbridge/data/pg.cfgfile (containing theHOST:PORT:USER:DATABASE:PASSWORDstring) so that Python can
connect to Postgres.$ touch ~/.pgpass
$ echo HOST:PORT:USER:DATABASE:PASSWORD >> ~/.pgpass
$ chmod 600 ~/.pgpassSet environment variables:$ echo "export BRIDGE=/path/to/coinbridge" >> ~/.profile
$ echo "export PGPASSFILE=$HOME/.pgpass" >> ~/.profile
$ source ~/.profileFinally, you need to point Bitcoin’swalletnotifyatcoinbridge/bitcoin-listen:$ apt-get install jq
$ echo "walletnotify=$BRIDGE/coinbridge/bitcoin-listen %s" >> ~/.bitcoin/bitcoin.confUsagefromcoinbridgeimportBridgebridge=Bridge()bridge.payment(from_account,to_account,amount)
Package: coincappy
CoincappySimple Python wrapper around CoinMarketCap free endpoints.InstallingInstall from PyPI using pip:pip install coincappyInstall directly from repository:pip install git+https://github.com/kiwioverseas/coincappy.gitUsageResponse data is in JSON format.from coincappy import CoinMarketCap

cmc = CoinMarketCap(API_KEY)
response = cmc.crypto_quotes(symbol='BTC')
print(response['BTC'][0]['quote']['USD']['price'])EndpointsCoinMarketCap API documentation is available athttps://coinmarketcap.com/api/documentation/v1/Endpoints available using the basic/free plan are supported:crypto_metadata()cryptocurrency/infoStatic metadata for one or more cryptocurrencies.Requires id, slug or symbol. Optional parameters are described in API documentation.response = cmc.crypto_metadata(id=1)crypto_cmc_map()/cryptocurrency/mapMapping of cryptocurrencies to CoinMarketCap ids.Optional parameters are described in API documentation.response = cmc.crypto_cmc_map()
response = cmc.crypto_cmc_map(symbol='BTC')crypto_listings()/cryptocurrency/listings/latestLatest cryptocurrency market data.Optional parameters are described in API documentation.response = cmc.crypto_listings()
response = cmc.crypto_listings(market_cap_min=10000000000)crypto_quotes()/cryptocurrency/quotes/latestLatest cryptocurrency market quotes.Requires id, slug or symbol. Optional parameters are described in API documentation.response = cmc.crypto_quotes(id=1)
response = cmc.crypto_quotes(id=1, convert='NZD')market_metrics()/global-metrics/quotes/latestLatest global cryptocurrency market metrics.Optional parameters are described in API documentation.response = cmc.market_metrics()convert_currency()/tools/price-conversionCoverts one cryptocurrency or fiat currency into another.Requires amount and id or slug. Optional parameters are described in API documentation.response = cmc.convert_currency(amount=100, id=1)fiat_cmc_map()/fiat/mapMapping of fiat currencies to unique CoinMarketCap ids.Optional parameters are described in API documentation.response = cmc.fiat_cmc_map()account_info()/key/infoAPI key details and usage stats.response = cmc.account_info()
Package: coincidence
Helper functions for pytest.DocsTestsPyPIAnacondaActivityQAOtherInstallationcoincidencecan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallcoincidenceTo install withconda:First add the required channels$condaconfig--addchannelshttps://conda.anaconda.org/conda-forge$condaconfig--addchannelshttps://conda.anaconda.org/domdfcodingThen install$condainstallcoincidence
Package: coin-clicker
Coin clickerScreenshotThe purpose of this app is to visit telegram clickbot channels and automatically visit
the websites they provide in order to earn crypto-currency, such as LTC.RequirementsPython 3.6+Installationpipinstallcoin-clickerRunningpython-mcoin_clickerYou will be asked to enter your phone number and then verify the code they send you on
the first run. On future runs you can select from existing numbers.
Next you choose which bot you wish to visit sites for.You should see the script visiting websites provided and earning crypto for you.
At some point it will run out of websites to visit and wait until more become available.Ensure to run from a directory in which you have write permissions so
that the session can be stored successfully.Developer notesWithpoetrythere is no need to have asetup.pyin the root. Just runpoetry buildandpoetry publish. The archived indist/will get asetup.pygenerated
from the values inpyproject.toml.
Package: coincurve
coincurveCI/CDDocsPackageMetaThis library provides well-tested Python bindings forlibsecp256k1, the heavily optimized C library
used byBitcoin Corefor operations on the elliptic curvesecp256k1.Feel free to read thedocumentation!UsersEthereumLBRYZeroNetlibp2pandmany more!Licensecoincurveis distributed under the terms of any of the following licenses:MITApache-2.0
Package: coindata
CoindataRead,Markdown Documentation.History1.4 (2019-03-31)Update documentationDump as JSONRefactor cache.py to cacher.py1.3 (2019-03-22)Refactor snapshot.py to cache.pyMigrate from snapshot logic to single cachingUpdate documentationUpdate parsing for coinmarketcap’s html template changeAdd test case1.2 (2019-01-28)Update snapshot.pyAlign with documentation by refactoring take_snapshot to takeAdd docstrings to takeHandle first snapshot by giving warnings1.1 (2019-01-27)Major update to data managerRefactor main.py to request.pyAdd snapshot.py and parser.pyUpdate documentation1.0 (????-??-??)First release