Saravanan666/pypi-org huggingface dataset:
Package: cryptoaddress
Crypto Address ValidationSimple crypto address validator. Currently it supports the following crypto addresses:BitcoinEthereumLitecoinSupported Python versionsOnly supported inpython >= 3.5.Installation$pipinstallcryptoaddressAPIThe BitcoinAddress classBitcoinAddress(address [, network_type='mainnet'])Parametersaddress: the Bitcoin address to validate.network_type: Optional. Use either 'mainnet' or 'testnet'.RaisesValueErrorif the provided address is not a valid Bitcoin addressThe EthereumAddress classEthereumAddress(address)Parametersaddress: the Ethereum address to validate.RaisesValueErrorif the provided address is not a valid Ethereum addressThe LitecoinAddress classLitecoinAddress(address [, network_type='mainnet'])Parametersaddress: the Litecoin address to validate.network_type: Optional. Use either 'mainnet' or 'testnet'.RaisesValueErrorif the provided address is not a valid Litecoin addressUsage exampleYou can use directly a subclass ofCryptoAddress:fromcryptoaddressimportBitcoinAddresstry:bitcoin_address=BitcoinAddress('17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem',network_type='mainnet')print('The address "%s" is valid.'%str(bitcoin_address))exceptValueError:print('The address is invalid.')# Prints 'The address "17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem" is valid.'Or you can use theget_crypto_addressutility function:fromcryptoaddressimportget_crypto_addresstry:bitcoin_address=get_crypto_address('BTC','17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem',network_type='mainnet')print('The address "%s" is valid.'%str(bitcoin_address))exceptValueError:print('The address is invalid.')# Prints 'The address "17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem" is valid.'Upload to pypiAfter creating a semantic versioning tag proceed in the following way:Install all required packages:$python3-mpipinstall--user--upgradesetuptoolswheeltwineGenerate the package:$python3setup.pysdistbdist_wheelThis will create adist/folder whose content has to be uploaded.Upload the new package to pypi:$python3-mtwineuploaddist/*
Package: cryptoadvance-liquidissuer
Liquid issuerMake sure your liquid node is running onliquidtestnetwith rpc server enabled (elementsd, orelements-qtwithserver=1inelements.conf).
Also , you'll need an existing default wallet on that elements node, something like this:elements-cli -rpcport=18891 -rpcuser=liquid -rpcpassword=liquid createwallet ""cd src                # or wherever all your projects are
git clone git@github.com:cryptoadvance/liquidissuer.git

# we assume that you have cloned specter-desktop in parallel with amp-issuer
cd ../specter-desktop # your specter-desktop is here
git checkout master   # you need at least the master-branch
cd ../liquidissuer       # jump back to liquidissuer

# Use the environment from specter-desktop
. ../specter-desktop/.env/bin/activate
# Install additional requirements
pip3 install -r requirements.txt
# Start specter
python3 -m cryptoadvance.specter server --config DevelopmentConfig --debugConfigure your specter to have the liquid node ready.Releasing# Build
python3 -m pip install --upgrade build
python3 -m build

# ... and upload
python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*
Package: cryptoadvance.spectrum
Spectrum - Specter Desktop + ElectrumThis is a electrum-adapter. It exposes a Bitcoin-Core style API while using an electron API in the backend. It might be useful in specific usecases, e.g. having better performance when connecting to a electrum-server via Tor. In order to do that, it needs a Database. Quite easily you can use a kind of builtin SQLite. Depending on your usecase, you might want to use an external DB.Modes of usageThis can be used either in standalone mode or as a specter-extension. The second option is probably the main use-case.StandaloneGet this to work with something like that:python3 --version # Make sure you have at least 3.8. Might also work with lower versions though
virtualenv --python=python3 .env
. ./.env/bin/activate
pip3 install -e .

# If you have a electrum server running on localhost:
python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.NigiriLocalElectrumLiteConfig

# If you want to run on mainnet and use emzy's Server
python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.EmzyElectrumLiteConfig

# Using Emzy's server but with a postgres
export DB_USERNAME=bla
export DB_PASSWORD=blub
python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.EmzyElectrumPostgresConfigCheck theconfig.pyfor the env-vars which need to be exported in order to connect to something different than localhost.Specter ExtensionIn order to get a development environment:virtualenv --python=python3 .env
. ./.env/bin/activate
pip3 install -e .
pip3 install cryptoadvance.specter
python3 -m cryptoadvance.specter server --config DevelopmentConfig --debugTODO:refill keypool when address is used or new address is requestedflaskdebug=Trueflag creates two electrum sockets that notify twice - this causes duplications in the databasereconnect with electrum on disconnectadd support for credentials / cookie file for RPC callsDevelopmentBefore your create a PR, make sure toblackifyall your changes. In order to automate that,
there is a gitpre-commit hookwhich you can simply install like this:pre-commit install
Package: crypto-allauth
# Welcome to crypto-allauth[![Build Status](https://travis-ci.org/Solution4Future/crypto-allauth.svg?branch=master)](https://travis-ci.org/Solution4Future/crypto-allauth)[![Requirements Status](https://requires.io/github/Solution4Future/crypto-allauth/requirements.svg?branch=master)](https://requires.io/github/Solution4Future/crypto-allauth/requirements/?branch=master)[![Shield Status](https://img.shields.io/pypi/v/crypto-allauth.svg)](https://pypi.python.org/pypi/crypto-allauth)[![Join the chat at https://gitter.im/solution4future/crypto-allauth](https://badges.gitter.im/solution4future/crypto-allauth.svg)](https://gitter.im/solution4future/crypto-allauth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(DISCLAIMER! This software is early alpha and doesn't have tests yet so you are using it on your own)Crypto-allauth is a library that adds support for some advanced login methods.It was first drafted at the TREZOR 2 Hackathon in Prague.Right now you can only use Trezor but plans are to support other hardware encryption solutions.## Installation```sh$ pip install crypto-allauth``````pyINSTALLED_APPS = {...'allauth','allauth.account','allauth.socialaccount',...'crypto_allauth.providers.trezor',...}```And you're all set up.For the "Login with TREZOR" button to work properly you either need a Chrome plugin or a trezor-bridge daemon. Go to [satoshilabs.com/trezor](http://satoshilabs.com/trezor/) to learn more.## Roadmap- U2F support (Yubikey and others)- Offline Trezor support- Keybase support## Final notesFeel free to create pull requests.If you feel generous you can donate: [1AnrshDKmzRU57GTNJ2ki1bTKK45NDd2Dn](http://i.imgur.com/hlhWwOO.png)
Package: crypto-analysis-cli
DataCrypto AnalyticsQuantitative Analysis AlgorithmsAlgoritmos Machine Learning para o mercado deCriptomoedas. Desenvolvido com rede neural e árvore de decisões que analisa as possiveís movimentações do mercado.Observe que no site temos a páginaResultados, está hospedado oBacktestingda nossa última versão, e em nosso canal noYoutubevídeos de instalação e configuração.Quantitative Machine Learning Algorithms for theCryptocurrenciesmarket. Developed with neural network and decision tree that analyzes the possible movements of the market.Note that on the website we have theResultspage, theBacktestingof our latest version is hosted, and on our channel atYoutubeinstallation and configuration videos.Instalação/InstallationDownload and install Anaconda Projectanaconda.comPyPi~$ pip install crypto-analysis-cli-datacryptoanalytics==0.0.1Ou/orDownload~$ git clone https://github.com/datacryptoanalytics/crypto-analysis-cli.git~$ cd crypto-analysis-cli~$ cd algorithmsAbrirdatacrypto-analytics_sentimento.pye alterar as seguintes linhas:Opendatacrypto-analytics_sentimento.pyand change the following lines:13 consumer_key = 'SUA API KEY TWITTER'14 consumer_secret = 'SUA API SECRET KEY TWITTER'1516 access_token = 'SEU ACCESS TOKEN'17 access_token_secret = 'SEU ACCESS TOKEN'Instalar dependências necessárias/Install required dependenciesInstalar Requeriments.txt~$ pip install -r requirements.txtNumPy~$ pip install numpyTweepy~$ pip install tweepyTextblob~$ pip install textblobPYTHON-BINANCE~$ pip install python-binanceIniciar algoritmo/Run algorithms~$ python regressao-linear.py~$ python num-trades-binance-spot.py~$ python datacrypto-analytics_sentimento.pyAtenção: Este repositório não contém os algoritmos a venda em nossosite.
Package: crypto-analysis-cli-datacryptoanalytics
DataCrypto AnalyticsQuantitative Analysis AlgorithmsAlgoritmos Machine Learning para o mercado deCriptomoedas. Desenvolvido com rede neural e árvore de decisões que analisa as possiveís movimentações do mercado.Observe que no site temos a páginaResultados, está hospedado oBacktestingda nossa última versão, e em nosso canal noYoutubevídeos de instalação e configuração.Quantitative Machine Learning Algorithms for theCryptocurrenciesmarket. Developed with neural network and decision tree that analyzes the possible movements of the market.Note that on the website we have theResultspage, theBacktestingof our latest version is hosted, and on our channel atYoutubeinstallation and configuration videos.<<<<<<< HEAD2b7f88affca4a772e18e08c6a3b066d8544e22fcInstalação/InstallationDownload and install Anaconda Projectanaconda.comDownload~$ git clone https://github.com/datacryptoanalytics/crypto-analysis-cli.git~$ cd crypto-analysis-cli~$ cd algorithmsAbrirdatacrypto-analytics_sentimento.pye alterar as seguintes linhas:Opendatacrypto-analytics_sentimento.pyand change the following lines:13 consumer_key = 'SUA API KEY TWITTER'14 consumer_secret = 'SUA API SECRET KEY TWITTER'1516 access_token = 'SEU ACCESS TOKEN'17 access_token_secret = 'SEU ACCESS TOKEN'Instalar dependências necessárias/Install required dependenciesInstalar Requeriments.txt~$ pip install -r requirements.txtNumPy~$ pip install numpyTweepy~$ pip install tweepyTextblob~$ pip install textblobPYTHON-BINANCE~$ pip install python-binanceIniciar algoritmo/Run algorithms~$ python regressao-linear.py~$ python num-trades-binance-spot.py~$ python datacrypto-analytics_sentimento.pyAtenção: Este repositório não contém os algoritmos a venda em nossosite.
Package: cryptoapi
cryptoapiAsynchronous cryptocurrency REST and websocket API with support for multiple exchanges.Cryptoapi is built on top of the fantasticCCXTlibrary.
If you plan to do any serious trading, I would recommend paying for access toCCXT Probecause cryptoapi is still in development.InstallationCryptoapi is available on PyPI.It is recommended to use the--userflag on package installations. Drop the flag if installing cryptoapi system-wide.pip install --user cryptoapiUsageThe API currently supports Bitfinex (API version 2), Bitvavo, Coinbase Pro, and Kraken.Unified MethodsEach exchange has four unified websocket methods in addition to the REST methods provided byCCXT.
All results are formatted the same as in the CCXT library.All of the methods put the results received from the exchange in theexchange_instance.resultasyncio queue.
The results can be retrieved by using the.get()corountine method on the queue.subscribe_ticker: ticker as a dictionary.subscribe_trades: a list of trades recieved from the exchange.subscribe_ohlcvs: a list of[timestamp, open, high, low, close, volume]candles, often just one candle is present (the candle for the timeframe provided, which is one minute by default).subscribe_order_book: the data sent to the queue is the update from the exchange. Cryptoapi automatically keeps an updated order book for every instance (see the Local Order Book section below).ExampleNote thatasynciomust be available to take advantage of asynchronous capabilities.
The results from the exchanges are stored in theexchange.resultasyncioqueue in the form of(channel, data)tuples.
Thechannelin this example is'order_book'. The data is the reply from the exchange.importasyncioimportcryptoapiasyncdefmain():exchanges=[cryptoapi.Bitfinex(),]forexchangeinexchanges:awaitexchange.load_markets()symbols=['BTC/EUR','ETH/EUR']tasks=[asyncio.create_task(exchange.subscribe_order_book(symbols))forexchangeinexchanges]tasks.append(asyncio.create_task(get_results(exchanges,symbols)))fortintasks:awaittforexchangeinexchanges:exchange.close()asyncdefget_results(exchanges,symbols):whileTrue:forexchangeinexchanges:forsymbolinsymbols:ifsymbolinexchange.symbols:channel,data=awaitexchange.result.get()print(data)if__name__=="__main__":asyncio.run(main())Local Order BookIf you subscribe to an order book channel, cryptoapi will keep a local copy of the order book in theexchange.order_bookdictionary.
Keep in mind that this dictionary is tied to the exchange instance, so if you have multiple instances of the same exchange you will also have multiple order books.
An example structure of the dictionary is outlined below.{'BTC/USD':{'bids':[[11111,1.7],...]# [price, amount] sorted by price in descending order (best bid first).'asks':[[11112,3],...]# [price, amount] sorted by price in ascending order (best ask first).'timestamp':1596729013,# Unix timestamp for when the book was last updated.'datetime':'2020-08-06T15:50:56.714Z',# iso860 datetime. Computed from the timestamp property.'nonce':109335233,# Exchange-provided nonce. None if not provided.},...}
Package: cryptoassetdata
Python module to fetch historic crypto asset market data fromCoinMarketCap.
To reduce traffic extracted data is cached. Furthermore loading the required pages is threaded for performance improvement. Returns Pandas DataFrames with dates as index. As symbols arenotunique, thewebsite slugis used.DocumentationSeerequirements.txtfile for additional dependencies:Python3.xdateparserPandasrequestslxmlInstallationPip Installation:$ pip install cryptoassetdataTo install from source:$ git clone https://github.com/linuskohl/cryptoassetdata
$ pip install -r requirements.txt
$ python setup.py installUsageSample code to plot Ethereums Open dataimportcryptoassetdataimportmatplotlib.pyplotaspltdefavailable_assets():# As Symbols are not unique, the website slugs are used.# Get a list of available crypt assetsprint(cryptoassetdata.get_slugs())defplot_ethereum_price():# get_historic_data takes an array containing asset slugs, start and end date of the data.# fill_na specifies if the DataFrame contains only dates the assets were traded, or every date# in the specified date range. A dictionary containing a DataFrame for every is returned.data=cryptoassetdata.get_historic_data(["ethereum"],"01/01/2017","12/31/2017",fill_na=True)ethereum=data['ethereum'].Open# Get open data from Ethereumethereum.plot()plt.show()# Display plotContributeSource Code:https://github.com/linuskohl/cryptoassetdataIssue Tracker:https://github.com/linuskohl/cryptoassetdata/issuesChangelogPlease see theCHANGES.txtfor a list
of all changes.LicenseThe project is licensed under the GPLv3 License. SeeLICENSE.txtfor more details.Package AuthorLinus Kohl <linus@munichresearch.com>
Package: cryptoasset-data-downloader
Cryptocurrency Historical Data DownloaderA desktop application to download historical data of desired crypto assets by connecting several different crypto-exchanges' API.Historical data of crypto assets are demanded for different purposes such as investment analysis, academic research, etc. Though the data is most of the time publicly available, it is not always easy to reach it for the people who have less coding skills to connect API of crypto exchanges and download data by making several sequencing requests. Besides, crypto-exchanges mostly have different data formats that must be standardized. This application handles all these processes and makes it easier for its users.InstallationProject is already uploaded in PyPI. You can download application by writing the code below in your terminal:pip install cryptoasset-data-downloaderto execute the application, you should run below code:cryptoasset-data-downloaderRequirementsApplication works in Python version 3.6 or higher! If you would like to run the script without installing from PyPI, you need to install below dependencies:pip install arrow
pip install requests
pip install pandas
pip install PySimpleGUIHow to useApplication is pretty straightforward and easy to use. You just need to select a crypto-exchange from the list and provide the name & abbreviation of the crypto asset which you would like to download historical data. It is extremely important to use exactly the same crypto asset abbreviation supported by the selected crypto exchange. By clicking 'available coins?' button, you can learn which crypto assets are being currently supported by the selected crypto exchange.You can also select a start and end date for your historical data. It should be noted that start date of your data will dependent on the selected crypto exchange's data providing capabilities.Historical data can be downloaded with different resolutions such as minutes,hours,days,weeks and months. However, some crypto exchanges might have limited choices for historical data resolution.
Package: cryptoassets.core
cryptoassets.coreis a Python framework for building Bitcoin, other cryptocurrency (altcoin) and cryptoassets services. Use cases include eCommerce, exhanges, wallets and payments.BenefitsRequirements and installationGetting startedDocumentationSupported environmentsCryptocurrencies and assetsDatabasesDaemons and wallet servicesPython frameworksSource code and issue trackingLicenseAuthorChangelog0.2 (2015-03-26)0.1.2 (2015-02-06)0.1.1 (2015-02-06)0.1 (2015-02-06)0.0 (2015-02-06)BenefitsEasy: Documented user-friendly APIsExtensible: Any cryptocurrency and cryptoassets supportSafe: Secure and high data integrityLock-in free: Vendor independent and platform agnosticsCustomizable: Override and tailor any part of the framework for your specific needsRequirements and installationPython 3You need to install database support libraries separately, depending on which database you are using.SeeInstallation.Getting startedSeeGetting started tutorial.DocumentationThe documentation is on readthedocs.org.Supported environmentsCryptocurrencies and assetsBitcoinDogecoinLitecoinApplebyteIt is easy toadd support for any cryptocurrency.DatabasesPostgreSQLSQLiteMySQLOracleFor the full list see SQLAlchemy dialects documentation.Daemons and wallet servicescryptoassets.corecan operate with a cryptocurrency daemon or third party API service.Example daemons and services include:bitcoindand bitcoind-compatible altcoins (Dogecoin, Litecoin, etc.)block.io(Bitcoin, Dogecoin, Litecoin)blockchain.info(Bitcoin)Python frameworksYou can integratecryptoassets.coreonPyramidDjango (seeDjango integration)Flask… and any other Python application whereSQLAlchemy can be run.Source code and issue trackingThe project source code is hosted atBitbucket.LicenseMITAuthorMikko Ohtamaa (blog,Facebook,Twitter,Google+)Changelog0.2 (2015-03-26)Added HTTP webhook notification support for block.ioAdded websocket notification support for block.ioLogging system setup and logging level updates for more sane defaultsInclude ngrok tunneling utility0.1.2 (2015-02-06)Further PyPi README woes and fixes0.1.1 (2015-02-06)Fixed README badges0.1 (2015-02-06)Initial release.0.0 (2015-02-06)Release testing.
Package: crypto-balancer
Cryptocurrency Portfolio BalancerUSE AT YOUR OWN RISK. THIS TRADES REAL MONEY. NO WARRENTY IS GIVENA script that can connect to a cryptocurrency exchange and buy/sell cryptocurrency to keep your portfolio balancer to a certain ratio.Install$ virtualenv --python=python3 .
$ . bin/activate
$ pip install -r requirements.txt
$ pip install -e .ConfigCreate a config file inconfig.iniwith definition of your exchange and portfolio percentages, and theshold (percent) that rebalancing is needed:[binance]
api_key = <api key>
api_secret = <api secret>
threshold = 2.0
targets = XRP 40
          BTC 20
	  ETH 20
	  BNB 10
	  USDT 10By default it values the portfolio in USDT, this can be changed with--valuebaseargument.RunningDry run (don't actually trade) against Binance$ crypto_balancer binance
Connected to exchange: binance

Current Portfolio:
  XRP    3272.28  (39.92 / 40.00%)
  BTC    0.14     (20.05 / 20.00%)
  ETH    3.85     (20.02 / 20.00%)
  BNB    22.81    ( 9.99 / 10.00%)
  USDT   262.48   (10.02 / 10.00%)

  Total value: 2619.40 USDT
  Balance error: 0.043 / 0.08

No balancing neededTo force it to rebalance regardless of if needed:$ crypto_balancer --force binance
Connected to exchange: binance

Current Portfolio:
  XRP    3272.28  (39.92 / 40.00%)
  BTC    0.14     (20.04 / 20.00%)
  ETH    3.85     (20.02 / 20.00%)
  BNB    22.81    ( 9.99 / 10.00%)
  USDT   262.48   (10.02 / 10.00%)

  Total value: 2619.28 USDT
  Balance error: 0.042 / 0.08

Balancing needed [FORCED]:

Proposed Portfolio:
  XRP    3278.51  (40.00 / 40.00%)
  BTC    0.14     (20.04 / 20.00%)
  ETH    3.83     (19.95 / 20.00%)
  BNB    22.81    ( 9.99 / 10.00%)
  USDT   262.48   (10.02 / 10.00%)

  Total value: 2619.28 USDT
  Balance error: 0.032
  Total fees to re-balance: 0.00199 USDT

Orders:
  BUY 6.2279674364331195 XRP/ETH @ 0.00234478To get it to actually execute trades if needed:$ crypto_balancer --force --trade binance
Connected to exchange: binance

Current Portfolio:
  XRP    3272.28  (39.96 / 40.00%)
  BTC    0.14     (20.04 / 20.00%)
  ETH    3.84     (19.94 / 20.00%)
  BNB    22.94    (10.04 / 10.00%)
  USDT   262.48   (10.02 / 10.00%)

  Total value: 2619.01 USDT
  Balance error: 0.043 / 0.08

Balancing needed [FORCED]:

Proposed Portfolio:
  XRP    3272.28  (39.96 / 40.00%)
  BTC    0.14     (20.04 / 20.00%)
  ETH    3.85     (20.00 / 20.00%)
  BNB    22.80    ( 9.98 / 10.00%)
  USDT   262.48   (10.02 / 10.00%)

  Total value: 2619.01 USDT
  Balance error: 0.031 / 0.08
  Total fees to re-balance: 0.001592 USDT

Orders:
  Submitted: sell 0.13 BNB/ETH @ 0.08422Running automaticallyYou can set this to run in a cron job on a unix system by putting something along the lines of (adjust for your path and email address) below
in your crontab file:MAILTO=matt@example.com
*/5 * * * * OUTPUT=`cd /home/matt/crypto_balancer; bin/crypto_balancer --trade binance`; echo "$OUTPUT" | grep -q "No balancing needed" || echo "$OUTPUT"This will run the script every 5 minutes, and will email you only if some balancing (or an error) occurs.
Package: cryptobeacon
🚨 CryptoBeaconCryptoBeacon is a simple command-line interface tool for cryptocurrency alerts directly into your desktop. It uses the freeCoinGecko APIto obtain the current prices, sending desktop notification when alarm price targets are reached. The application is built inPython, with the help ofTyperandRich.Installationpipinstall--usercryptobeaconUsageTracking your favorite cryptocurrencies withCryptoBeaconis easy. Start byaddingthem to the watchlist, as follows:cryptobeaconcoinaddbitcoinConfirm the addition using theshowcommand:cryptobeaconshowNext, you need to add a price target for thealarm:cryptobeaconalarmaddbitcoin21000Finally,runthe application:cryptobeaconrun⚠️ Additionally, there are commands toremovecoins and alarms from the watchlist, or even toclearit entirely. Use thehelpcommando for more specific information.
Package: cryptobot-python
CryptoBot PythonNon official, but friendly CryptoBot library for the Python languageFree software: MIT licenseDocumentation:https://cryptobot-python.readthedocs.io.FeaturesGet app infoCreate invoiceTransfer fundsGet invoicesGet balancesGet exchange readthedocsGet currenciesCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2023-08-09)AddedBNBandTRXassets.0.1.0 (2022-07-05)First release on PyPI.