Saravanan666/pypi-org huggingface dataset:
Package: cryptocompsdk
CryptoCompare-PyOverviewThis is a Python SDK for the CryptoCompare APIs which require an API key.https://min-api.cryptocompare.com/pricingGetting StartedInstallcryptocompsdk:pip install cryptocompsdkA simple example:importcryptocompsdkfromcryptocompsdkimportCryptoCompareAPI_KEY='my-api-key'cc=CryptoCompare(API_KEY)data=cc.history.get(from_symbol='BTC',to_symbol='USD',exchange='Kraken')df=data.to_df()LinksSee thedocumentation here.AuthorCreated by Nick DeRobertis. MIT License.
Package: cryptoconditions
The cryptoconditions PackageA Python implementation of the Crypto-Conditions spec: a multi-algorithm, multi-level, multi-signature format for expressing conditions and fulfillments.This implementation doesn’t implement the entire Crypto-Conditions spec. It implements the conditions needed by BigchainDB, and some others. It’s compliant withversion 02andversion 03of the spec.See also: therfcs/crypto-conditions repository.InstallationTo install latest release from PyPI:$pipinstallcryptoconditionsDocumentationSeehttps://cryptoconditions.readthedocs.io/en/latest/.
Package: cryptoconditions-tui
GatewaysCC Terminal User InterfaceThis program was created for demonstration and partial automation of Komodo GatewaysCC stack testing. (AssetsCC, OraclesCC, GatewaysCC, oraclesfeed dAPP)Python3 required for execution:sudo apt-get install python3.6pip packages needed:pip3 install setuptools wheel slick-bitcoinrpcorpip3 install -r requirements.txtBefore execution be sure than daemon for needed AC up.At the moment raw version of manual gateway how-to guide can be found here:https://docs.komodoplatform.com/cc/contracts/gateways/scenarios/tutorial.htmlI advice to read it before you start use this tool to understand the flow.
Package: crypto-connect
📈 - crypto-connectcrypto-connect is a CLI tool to keep track of cryptocurrencies.DocumentationVisit outDocumentation Pageto view detailed documentation for crypto-connect.InstallInstall crypto-connect using the following command:pipinstallcrypto-connectUsagecrypto-connect--help

crypto-connectisaCLItooltokeeptrackofcryptocurrencies.

Options:
--helpShowthismessageandexit.

Commands:
currenciesAlistofcurrenciessupportedbycrypto-connect
cryptocurrenciesAlistofcryptocurrenciessupportedbycrypto-connect
price<cryptocurrrency><currency>Currentpriceofthe<cryptocurrrency>relativetothe<currency>history<cryptocurrrency><currency>Agraphvisualisingthechangeinthe<cryptocurrency>priceinthepast30days

Examples:
crypto-connectcurrencies
crypto-connectcryptocurrencies
crypto-connectpricebitcoinusd
crypto-connecthistorybitcoinusdContributorsLicenseMIT
Package: crypto-contract-value
crypto-contract-valuePython bindings for thecrypto-contract-valuelibrary.QuickstartInstall,pip3installcrypto-contract-valuefromcrypto_contract_valueimportMarketType,get_contract_valueassertget_contract_value("binance",MarketType['inverse_swap'],'BTCUSD')==100.0assertget_contract_value("binance",MarketType['inverse_swap'],'ETHUSD')==10.0How to buildOn Mac OS X,condainstall--filerequirements-dev.txt

rm-rfbuildcrypto-contract-value-ffi/target
python3setup.pybdist_wheel# Need to create a ~/.pypirc file firsttwineupload--repositorytestpypidist/*
python3-mpipinstall--index-urlhttps://test.pypi.org/simple/--no-depscrypto-contract-value

twineuploaddist/*For Linux,dockerrun-it--rm-v$(pwd):/projectsoulmachine/rust:manylinux2014bash

/opt/python/cp36-cp36m/bin/pip3install-rrequirements-dev.txt
rm-rfbuildcrypto-contract-value-ffi/target
/opt/python/cp36-cp36m/bin/python3setup.pybdist_wheel
auditwheelrepairdist/*linux*.whl--platmanylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twineupload--repositorytestpypiwheelhouse/*Testpython3setup.pydevelop
pytest-s
Package: crypto-cookie
Package to encrypt and sign cookie content.  Before using make sure you really
need to secure cookie content: if at all possible any information should be
held server-side, the cookie merely acting as a handle to this information.  If
you really do need to hold actual content in the cookie then this package may be
able to help.Releases0.3.1: PyPI release0.3.0: drops dependency on Paste and adds support for Python 30.2.0: altered to disable Paste AuthTicket’s signature since the derived
implementation signs the cookie separately following encryption0.1.0: initial release
Package: cryptoco-py
CryptoCo-pyCryptoCo-pyis a Python CLI application that usesCoinGeckoAPI to allow the user to query cryptocurrency information
by typing simple commands.Table of contentsInstallationRequirementsUsageContributingLicenseInstallationUse the package managerpipto install cryptoco-py.pipinstallcryptoco-pyRequirementsNameVersionPython3.6 +Typer0.4.0 +Requests2.26.0 +Usage# pings the servercryptoco-py[OPTIONS]COMMAND[ARGS]...NOTE: you might not be able to run the command instantly after installing it
to solve this problem simply add the directory of the installed package to$PATH# returns a help messagecryptoco-py--helpyou can also write the output to an output file for example:cryptoco-pyspricebitcoin>output.txt

catoutput.txt# output:{"bitcoin":{"usd":48338}}ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: cryptocourse
Cryptography courseCode snippets to learn cryptography without the need to use other libraries. DO NOT USE IN PRODUCTIONInstallation procedure:
pip3 install cryptocourseUse it in Python, e.g.:
from cryptocourse import basic_ecOn the github, you find some short code snippets to give you an idea how everything works. This material complements the cryptography course that I
teach at Howest (https://www.howest.be).More complete documentation can be found onhttps://github.com/Johangalle/Cryptography.
Package: crypto-cpp-py
Crypto-cpp-pyA python packagedcrypto-cpplibrary, that can be used for hashing and signing messages in starknet.Dependenciesecdsa,sympy,pywin32 (Windows only),cmake [optional, for building package from sdist; can be installed withpip install crypto-cpp-py[build]]ChangelogVersion 1.4.4 (2024-01-30)Add support for Python 3.12Version 1.4.0 (2023-05-12)Add support for WindowsVersion 1.3.1 (2023-04-27)Add support for Python 3.11Version 1.3.0 (2023-04-20)Remove cairo-lang dependencyRequire ecdsa, sympy
Package: crypto-cr
CRYPTO_CR==========This project refers to a password encryptor, which also serves to encrypt and decrypt files through a password entered by users.Project Criptoto write your content.1 - Para instalar o pacote use:pip install crypto_cr2 - import o modulo usando:from crypto_cr import *3 - Formas de usar o pacote:#Encriptando e decriptando o arquivo

f = FilesDec()



print('Criptografar: ')
arq = 'arquivo.pdf'
f.encryptFile(arq,'1234')


print('Decriptografar: ')
f.decryptFiles(arq,'1234')


#Gerando senhas
senha1 = pwd.password_letters(8)
Package: crypto-crawler
crypto-crawlerA rock-solid cryprocurrency crawler.This is Python wrapper on top of thecrypto-crawlercrate.QuickstartInstall,pip3installcrypto-crawlerfromcrypto_crawlerimportMarketType,crawl_tradecrawl_trade("binance",MarketType.spot,["BTCUSDT","ETHUSDT"],lambdamsg:print(msg))How to buildOn Mac OS X,condainstall--filerequirements-dev.txt

rm-rfbuildcrypto-crawler-ffi/target
python3setup.pybdist_wheel# Need to create a ~/.pypirc file firsttwineupload--repositorytestpypidist/*
python3-mpipinstall--index-urlhttps://test.pypi.org/simple/--no-depscrypto-crawler

twineuploaddist/*For Linux,dockerrun-it--rm-v$(pwd):/projectsoulmachine/rust:manylinux2014bash

/opt/python/cp36-cp36m/bin/pip3install-rrequirements-dev.txt
rm-rfbuildcrypto-crawler-ffi/target
/opt/python/cp36-cp36m/bin/python3setup.pybdist_wheel
auditwheelrepairdist/*linux*.whl--platmanylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twineupload--repositorytestpypiwheelhouse/*Testpython3setup.pydevelop
pytest-s
Package: cryptocurrencies-scraper
Python : Simple Crypto currencies scrapperThis is a simple module that retrieve instant crypto
currencies values in BTC and USD from coin360.com and coinmarketcap apisHow to useFirst install the packagepip install cryptocurrencies_scraperBasic usagefromcryptocurrencies_scraper.CurrencyServiceimportManagermanager=Manager()# Create a new instance of the Managermanager.update()# Ask the manager to update all currencies valuesmanager.all_currencies()# returns a dict that contain the currency name and symbol as key and currency information as a listmanager.get_curency('btc')# return the list of currency values retrived for bitcoin using symbolmanager.get_curency('bitcoin')# return the list of currency values retrived for bitcoin using nameAdd your own scraperA scraper should extends theCurrentPriceInterface.
Here is a basic scheme for a new scraperclassMySourceForCurrencies(CurrentPriceInterface):instance=NoneURL='https://api.mysource.com/v1/ticker/?limit=3000'NAME="mysource.com"@classmethoddefget_instance(cls)->'CurrenciesFromCoinMarketCap':ifcls.instanceisNone:cls.instance=MySourceForCurrencies()returncls.instancedef__init__(self):super().__init__()defupdate_currency_list(self):self.process_data(requests.get(self.URL).json())defprocess_data(self,json_data:json)->None:# Manipulate the the json to be Currency "parsable"c=Currency.parse_json(json_data,self.NAME)#When parsed, add it to the indexNameIndexes.get_instance().add_to_index(c)returnNoneIn order for your scraper to be working you need to add it to the managerfromcryptocurrencies_scraper.CurrencyServiceimportManagermanager=Manager()manager.add_source(MySourceForCurrencies.get_instance())# you can also remove a sourcemanager.remove_source(MySourceForCurrencies.NAME)Then on eachmanager.update()call your scraper will be called and currencies added to the IndexNameIndexThis class is used internally to index all currencies.
When a new currency is added, it will be grouped by the symbol and the name (symbol upper, name lower case)The only useful method isNameIndexes.get_instance().add_to_index(currency). On each update, it get completlly cleared
from all old values.CurrencyThis is the object that represent one currency here is the structure{"symbol":"BTC","name":"Bitcoin","valueUSD":5513,"valueBTC":1,"lastUpdate":1566531513813,"source":"coin360.com","changes":{"7d":-1,"24h":-5,"1h":-10}}
Package: cryptocurrencyeda
cryptocurrencyedaThis is a Python package to analyze historical cryptocurrency prices and performance through simple exploratory data analysis including calculations and plotting. Data is sourced from the KuCoin API. There are four functions that are included in this python package which are described in more detail below. Cryptocurrency investors and enthusiasts can use this package to analyze cryptocurrencies of interest.There are existing Python libraries to access information of cryptocurrency such ascryptocompareandcryptofeed. There are also existing Python libraries to visualize financial data such asmplfinance.
However, there is no integrated Python library for accessing, analyzing, and visualizing cryptocurrency data altogether. Therefore, we want to build a simple tool that can facilitate simple cryptocurrency data analysis all at once.Function ListThe package contains the following four functions:retrieve_data: downloads historical data from a cryptocurrency exchange using an an http request from a cryptocurrency exchange.plot_price: generates and visualizes a plot of the price of the cryptocurrenty inputted over a period of time.daily_growth_rate: performs calculation of daily growth rate of the cryptocurrenty inputted over a period of time.avg_daily_return: performs calculation of the average daily return of the inputted cryptocurrency price.Installation and UsageIn order to use the package, please follow these steps:Create a new conda environment:conda create --name cryptocurrencyeda python=3.9 -yActivate the environment:conda activate cryptocurrencyedaInstall the package:pip install cryptocurrencyeda
or 
pip install git+https://github.com/UBC-MDS/cryptocurrencyedaOpen Python:PythonImport all functions:>>> from cryptocurrencyeda.retrieve_data import retrieve_data
>>> from cryptocurrencyeda.plot_price import plot_price
>>> from cryptocurrencyeda.avg_daily_return import avg_daily_return
>>> from cryptocurrencyeda.daily_growth_rate import daily_growth_rateUse the functions:>>> retrieve_data(symbol="BTC-USDT",
                  time_period="1day",
                  start_date="2018-01-01",
                  end_date="2022-01-10",
                 )

>>> plot_price(price_df)

>>> daily_growth_rate(price_df, "Close")

>>> avg_daily_return(price_df["Close"])DocumentationThe documentation is hosted on ReadTheDocshereContributorsWe welcome and recognize all contributions. You can see a list of current contributors in thecontributors tab. If you are interested in contributing to this project, please check out our CONDUCT.mdBerkay BulutCici DuAlex Yinan GuoNobby NguyenLicensecryptocurrencyedawas created by MDS Students from Group-11 for course 524. It is licensed under the terms of the MIT license.Creditscryptocurrencyedawas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: crypto_currency_price
=====================
crypto-currency-priceCLI cryptocurrency price conversionFree software: MIT licenseDocumentation:https://crypto-currency-price.readthedocs.io.CreditsThis package was created with Cookiecutter andrstms/cookiecutter-python-cli, a fork of theaudreyr/cookiecutter-pypackageproject template.audreyr/cookiecutteraudreyr/cookiecutter-pypackagerstms/cookiecutter-python-cli
Package: crypto-currency-world-price
FetchesWorld Priceof a Certain Symbol Concurrentlyfromworld_priceimportWorldPricefromworld_price.sourceimportBinancePriceSource,HuoBiPriceSource,MxcPriceSourceSYMBOL="BTC_USDT"asyncdefmain():price_source=[BinancePriceSource,HuoBiPriceSource,MxcPriceSource]wp=WorldPrice(price_source,price_diff_tolerance=3/5)p=awaitwp.get_price(SYMBOL)print(f"world price of{SYMBOL}:{p}")
Package: crypto-dev-signer
CRYPTO DEV SIGNERThis package is written because at the time no good solution seemed to exist for solving the following combined requirements and issues:A service has custody of its users' private keys.The are a large number of private keys involved (hundreds of thousands and up).Need to sign transactions conforming to EIP-155, with the ability to arbitrarily specify the "chain id".Do not want to store the keys inside an ethereum node, especially not the one connected to the network.Want to use the "standard" web3 JSON-RPC interface, so that the component can be easily replaced later.Multiple providers don't work on either web3.js and/or web3.py.As a bonus, provide a practical keystore solution for testing in general for web3 projects.TECHNICAL OVERVIEWScriptsWhen installed with pip/setuptools, this package provides a Unix socket IPC server ascrypto-dev-daemonimplementing the following web3 json-rpc methods:web3.eth.personal.newAccountweb3.eth.personal.signTransactionweb3.eth.signTransactionClassesThe classes and packages provided are:keystoreKeystore: Interface definitionReferenceKeystore: Implements theKeystoreinterface, with a postgresql backend expecting sql schema as defined inReferenceKeystore.schematransactionTransaction: Interface definition.EIP155Transaction: Creates transaction serializations appropriate for EIP155 replay protected signatures. Accepts a web3 format transaction dict as constructor argument together with nonce and optional chainId.signerSigner: Interface definition. ItssignTransactionmethod expects an object implementing theTransactioninterface.ReferenceSignerImplementsSigner, accepting a single argument of typeKeystoreinterface.VERSIONThis software is in alpha state.Current version is 0.2.5LICENSEGPLv3LEGAL MUMBO-JUMBONo responsibility assumed for any use of this software. You're on your own, as usual.
Package: cryptodo
CryptodoCryptodo is a Python library for text encryption and decryption. It provides various encryption methods such as Caesar cipher, substitution cipher, rail fence cipher, and more. This library is designed to be easy to use and can be integrated into your Python projects for secure data handling.InstallationYou can install Cryptodo using pip:pipinstallcryptodoUsageCrypto ClassTheCryptoclass provides methods for basic text encryption and decryption.fromcryptodoimportCrypto# Encryptioncipher=Crypto("Hello World!",3)encrypted_text=cipher.encrypt()# Returns encrypted text# Decryptiondecipher=Crypto(encrypted_text,3)decrypted_text=decipher.decrypt()# Returns decrypted textKeyGenerator ClassTheKeyGeneratorclass offers methods to generate cryptographic keys.fromcryptodoimportKeyGenerator# Generate a key (Example)key=KeyGenerator.key_generator_num_v1(1,10)# Returns a random keyCryptoV2 ClassTheCryptoV2class introduces more advanced encryption techniques.fromcryptodoimportCryptoV2# Encryptioncipher=CryptoV2("Hello World!","key")encrypted_text=cipher.encrypt()# Returns encrypted text# Decryptiondecipher=CryptoV2(encrypted_text,"key")decrypted_text=decipher.decrypt()# Returns decrypted textCryptoV3Num ClassTheCryptoV3Numclass specializes in numeric encryption and decryption.fromcryptodoimportCryptoV3Num# Encryptioncipher=CryptoV3Num(123456,5)encrypted_number=cipher.encrypt()# Returns encrypted number# Decryptiondecipher=CryptoV3Num(encrypted_number,5)decrypted_number=decipher.decrypt()# Returns decrypted numberKeyVariable ClassTheKeyVariableclass provides predefined character sets for key generation.fromcryptodoimportKeyVariableall_characters=KeyVariable.key_var_all# Contains all alphanumeric and special charactersLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: cryptodock-sdk
CryptoDock Python SDKCryptoDock SDK is a Python package used alongside the CryptoDock desktop iOS app, the CryptoDock remote API.When bootstrapping a trading strategy in the CryptoDock desktop app the SDK is copied into the target local directory for your use in strategy development. It communicates with the remote API to pull historic and current trading data from multiple exchanges.Additionally the SDK provides a Strategy Wrapper and Backtest Layer that is managed from the CryptoDock desktop interface.Using this method we can normalize the structures of data from across the exchanges, run comprehensive and adaptable backtest, and provide a semantic interface, allowing for a much more efficient strategy development and research process.InstallationTo install the SDK run:pip install cryptodock-sdk, orpip install cryptodock-sdk==0.0.1This package will not work unless used alongside CryptoDock.UsageImport Package(s)from cryptodock import CryptoDockSdkfrom cryptodock import CryptoDockApi, CryptoDockStrategy, CryptoDockBacktestInitialize SDKfull_sdk = CryptoDockSdk()full_sdk.Api.Local.get_products(exchanges="coinbasepro")full_sdk.Strategyfull_sdk.Backtest(<your_strategy>)api = CryptoDockApi(base=<base_url>, port=<port>, version=<api_version>)api.Local.get_exchanges()api.CoinbasePro.get_trade_histories('BTC-USDT')YourStrategy(CryptoDockStrategy)backtest = CryptoDockBacktest(YourStrategy)backtest.run_test(data)HistoryInitial ReleaseIntegrating backtest and strategy wrapper, not just api sdkCreditsCompany: ©2019 The LaunchAuthor: Daniel GriffithsRole: Founder and EngineerProject: ©2020 CryptoDockLicenseMIT Licence ©2020 Daniel Griffiths
Package: crypto-empyrical
crypto_empyricalcrypto_empyrical is a fork of Quantopian's Empyrical package modified byJesseto work for 24/7 markets of cryptocurrency.Table of ContentsInstallationUsageSupportContributingTestingInstallationpip install crypto_empyricalUsageSimple Statisticsimportnumpyasnpfromcrypto_empyricalimportmax_drawdown,alpha_betareturns=np.array([.01,.02,.03,-.4,-.06,-.02])benchmark_returns=np.array([.02,.02,.03,-.35,-.05,-.01])# calculate the max drawdownmax_drawdown(returns)# calculate alpha and betaalpha,beta=alpha_beta(returns,benchmark_returns)Rolling Measuresimportnumpyasnpfromcrypto_empyricalimportroll_max_drawdownreturns=np.array([.01,.02,.03,-.4,-.06,-.02])# calculate the rolling max drawdownroll_max_drawdown(returns,window=3)Pandas Supportimportpandasaspdfromcrypto_empyricalimportroll_up_capture,capturereturns=pd.Series([.01,.02,.03,-.4,-.06,-.02])# calculate a capture ratiocapture(returns)# calculate capture for up markets on a rolling 60 day basisroll_up_capture(returns,window=60)Testinginstall requirements"nose>=1.3.7","parameterized>=0.6.1"./runtests.py
Package: crypto-exchanges-clients
Crypto Exchanges Clientsis a library that provides interface to get the timestamp of listing of a token on multiple exchanges.
At the moment following exchanges are supported:BinanceBitgetBybitCoinbaseOkxUsage examplefromcrypto_exchanges_clientsimportBinanceasyncdefget_listing_ts():client=Binance()returnawaitclient.get_token_listing_timestamp('BTC')
Package: cryptofeed-experiments
What?This is the basis of a pipeline for live data from cryptocurrency exchanges. It normalizescryptofeedWebSocket messages, aggregates, and optionally publishes them to GCP Pub/Sub.How?Sequences of trades that have equal symbol, timestamp, and tick rule are aggregated. Aggregating trades in this way can increase information, as they are either orders of size or stop loss cascades.As well, the number of messages can be reduced by 30-50%By filtering aggregated messages, for example only emitting a mesage when an aggregated trade is greater than or equal to asignificant_trade_filter, the number of messages can be reduced more.ExampleThe following are two sequential aggregated trades by timestamp, nanoseconds, and tick rule.As it was aggregated from 4 raw trades, the second trade has ticks 4.[{"timestamp":1620000915.31424,"price":"57064.01","volume":"566.6479018604","notional":"0.00993004","tickRule":-1,"ticks":1},{"timestamp":1620000915.885381,"price":"57071.2","volume":"9376.6869202914","notional":"0.16429813","tickRule":1,"ticks":4}]An example filtered message, emitted because the second aggregated trade exceedssignificant_trade_filter >= 1000Information related to the first trade is aggregated with the second.[{"timestamp":1620000915.885381,"price":"57071.2","volume":"9376.6869202914","notional":"0.16429813","tickRule":1,"ticks":4,"high":'57071.2',"low":'57064.01',"totalBuyVolume":"9376.6869202914","totalVolume":"9943.3348221518","totalBuyNotional":"0.16429813","totalNotional":"0.17422817","totalBuyTicks":4,"totalTicks":5}]For 1m, 5m, 15m candles, there is an optional parameterwindow_seconds.For settings, see theexamplesSupported exchanges:white_check_mark: Binance:white_check_mark: Bitfinex:white_check_mark: Bitflyer:white_check_mark: BitMEX:white_check_mark: Bybit:white_check_mark: Coinbase Pro:white_check_mark: UpbitContributingInstall dependencies withpoetry install. The docker example is built withinvoke tasks. For example,invoke buildFuture plansOrder book aggregation, in the manner ofcrypto-whale-watching-app
Package: crypto-fernet
Crypto FernetCLI for symmetric encryption/decryption usingcryptography.fernetFree software: MIT licenseFeaturesUsescryptography.fernetfor symmetric encryption/decryption with 256-bit key derived from secret of arbitrary sizeSupports encryption of binary filesCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-05-01)First release on PyPI.
Package: cryptofetch
CryptoFetchA CLI tool to fetch and view cryptocurrencies prices, arrange in user-defined tables.
The script is currently using the following API:https://api.cryptowat.chScreenshots(https://imgur.com/a/ymkGbgU)Paraphernalia:Terminator,Oh-my-zshwithbullet-train themeandzsh-syntax-highlightingContributingThis code is under MIT license and is welcoming any contribution, including feedbacks and ideas.InstallingVia pip: ->$ pip install cryptofetchFrom AUR repository install package:python-cryptofetchUsageRunning$ cryptofetch -hDefinitions:A definition is a "pair in a exchange" represented as:exchange pair.Few examples ofvaliddefs:Binance BTC/USDT
BitStamp ETH/USD
biNaNcE btc/usdt
bitstamp ethusdA list of exchanges can be seen here:https://api.cryptowat.ch/exchanges