Saravanan666/pypi-org huggingface dataset:
Package: crypto-candlesticks
crypto-candlesticks 📈The goal behind this project is to facilitate downloading cryptocurrency candlestick data fast & simple.
Currently only theBitfinexexchange is supported with more to come in future releases.The command-line interface is built usingClick, which is intuitive and will prompt you for the commands.Once the data is downloaded, it will be converted and stored in a.csv, .sqlite3 and .picklefile for convenient analysis.
The data will include theOpen, High, Low, Closeof the candles and thevolumeduring theintervaland itstimestamp.SeedocumentationandGithub repositoryfor more information.InstallationTo install the Crypto-candlesticks project,
run this command in your terminal:pipinstallcrypto-candlesticksOr if you are usingPoetrypoetryaddcrypto-candlesticksUsagecrypto-candlesticks can be used the following way:$crypto-candlesticks"Welcome, what data do you wish to download?"Which will prompt the following:Cryptocurrency symbol to download (ie. BTC, ETH, LTC):
    Base pair:
    Interval to download the candlestick data:
    Date to start downloading the data (ie. YYYY-MM-DD):
    Date up to the data will be downloaded (ie. YYYY-MM-DD):Or you can pass the arguments yourself and skip the prompt:crypto-candlesticks [OPTIONS]

   Available options:

   -s <symbol>, --symbol <symbol>

   The ticker you wish to download,
   currently, only data from the Bitfinex exchange
   is supported.
   (e.g. [BTC|ETH|LTC] etc.)

   -b <base currency>, --base_currency <base currency>

    The base pair for the ticker.
    (e.g. [USD|USDT|EUR|CNHT|GBP|JPY|DAI|BTC|EOS|ETH|XCHF|USTF0])

   -i <interval>, --interval <interval>

    The interval for each bar.
    (e.g. [1m|5m|15m|30m|1h|3h|6h|12h|1D|7D|14D|1M])

   -sd <start date>, --start_date <start date>

    YYYY, MM, DD from which the candlestick data
    will start.
    (e.g. [2018-01-01])

   -ed <end date>, --end date <end date>

    YYYY, MM, DD up to which the candlestick
    data will be downloaded.
    (e.g. [2020-01-01])

   --help

   Display a short usage message and exit.Example output for CSVOpenCloseHighLowVolumeTickerDateTime720372017203.77200.19.404174BTC/USD12/31/201916:00:0072017223.67223.672017.9037398BTC/USD12/31/201916:01:007224.472257225.57224.40.4799298BTC/USD12/31/201916:02:007224.9817225.97225.97224.9810.9294573BTC/USD12/31/201916:03:007225.8627225.72957225.97225.72950.2913202BTC/USD12/31/201916:04:007225.77225.86737225.97225.29731.0319704BTC/USD12/31/201916:05:00Example output for SQL (the timestamp is shown in milliseconds)IDTimestampOpenCloseHighLowVolumeTickerInterval11577868000000.07205.77205.87205.87205.70.07137942BTCUSD1m21577867940000.07205.701553057205.87205.87205.701553050.035BTCUSD1m31577867880000.07205.77205.701553057205.701553057205.70.025BTCUSD1m41577867820000.07205.752997487205.752997487205.752997487205.70.075BTCUSD1m51577867760000.07205.752997487205.27206.37205.20.005BTCUSD1m61577867700000.07205.27205.27205.27205.24.5802BTCUSD1mContributingFeel free to open anissueorpull requeston Github.LicenseGPL-3.0-or-laterBuy me a coffeeETH: 0x06Acb31587a96808158BdEd07e53668d8ce94cFE
Package: crypto-capsule
A convenience module for symmetric cryptography based on cryptography.fernetFernet library is in turn based on AES (128 bit) cryptography. More on that here:https://cryptography.io/en/latest/fernet/InstallReqruires:Python >= 3.8Run install:pip3installcrypto_capsuleGet startedfromcrypto_capsuleimportKey,Capsule# derive a key from passwordkey=Key.from_password(b'Test me')# encapsulate your secretcapsule=Capsule.create(key,b'This is a secret message')print(capsule.open(key))Use with mnemonicsfromcrypto_capsuleimportKey,Capsule# create a new key (more secure than password)key=Key.generate()# print the key as a mnemonic phraseprint(key.to_mnemonic())# encapsulate your secretcapsule=Capsule.create(key,b'This is a secret message')# see what the capsule looks like as a mnemonic phraseprint(capsule.to_mnemonic())# open the capsule with the keyprint(capsule.open(key))TODOA client to manipulate files. A template for that is done incli.py, and installed ascrypt-capsulecommand. May be someone wants to extend that?LicenseMIT LicenseAuthorvlad @ smirnov.com
Package: cryptocerts
Library that wraps around thecryptographylibrary, aiming to simplify the loading and validation of certificates. Providing a more streamlined interface instead of delving into the intricacies of certificate operations.Notethat this project is still not meant for production-use scenarios, use it at your own risk.InstallationThis library is available on the python package index, you can install it like viapippipinstallcryptocertsContributingCommunity contributes are welcome. Please use the Github issue tracker for any feature, requests or bugs you might encounter.UsageLoading a certificateEasier loading a certificate without having to know which format it isfromcryptocertsimportCertificateToken# From a filecertificate=CertificateToken.load_from_file("filepath/mycert.crt")# From bytescertificate=CertificateToken(b"<certificate bytes>")Validate a certificate with a custom certificate storeValidate that a certificate is valid up to a custom trusted rootfromcryptocertsimport(CertificateToken,CertificateValidator,CertificatesStore)my_trusted_roots:list[CertificateToken]=[...]my_intermediate_certificates:list[CertificateTokens]=[...]certificates_store=CertificatesStore(my_trusted_roots,my_intermediate_certificates)certificate_validator=CertificateValidator(certificates_store)# `result` contains validation info about the certificate,# f.x. a valid certificateresult=certificate_validator.verify_certificate(certificate)result.validation_conclusion# ValidationStatus.VALIDresult.valid_to_trusted_root# Trueresult.certificate_validation_result[0].certificate_token# <certificate>result.certificate_validation_result[0].validation_errors# []# and an invalid certificateresult=certificate_validator.verify_certificate(invalid_certificate)result.validation_conclusion# ValidationStatus.INVALIDresult.valid_to_trusted_root# Trueresult.certificate_validation_result[0].certificate_token# <invalid_certificate>result.certificate_validation_result[0].validation_errors# [ValidatorErrors.EXPIRED]
Package: cryptochaos
CryptoChaosSimple encryption/decryption algorithms based on chaotic maps.Trypip install cryptochaosThen, import byfrom cryptochaos import logisticTo encrypt, tryencrypted_text = logistic.logistic_encrypt(plain_text, r)where plain_text is some string, and r is a float such that 3.6 < r < 4.0.To decrypt, trydecrypted_text = logistic.logistic_decrypt(encrypted_text, r)
Package: cryptocli
⚡️ Crypto CLI ⚡️Ever felt the pressing need to lookup crypto data right from your shell? Now you can!InstallationNote: requires Python 3,pipxrecommendedTBDonceIpublishtoPyPI.....# download the python script file to a location on your $PATHcurl-LTBD>/usr/local/bin/crypto.py# setup crypto commandecho"alias crypto='python /usr/local/bin/crypto.py'">>~/.bashrcsource~/.bashrcBuild from sourcegitclonehttps://github.com/acrenwelge/cryptocli-python.git
python-mbuild
pipxinstalldist/*.whlUsagePlease note: there is currently arate limit of 50 calls / minutefor the free API being used👀 Search for a cryptocryptosearchbitℹ️ Lookup info on a cryptocurrencycrypto--coinbitcoin💰 Get price info onlycryptoprice--coinbitcoin💶 Get price info for multiple coins in multiple currenciescryptoprice-cbitcoin-cethereum-clitecoin-curUSD-curEUR📈 Get price history by day, week, or monthcryptohistory-cbitcoin-d10# past 10 days of bitcoin pricecryptohistory-cbitcoin-d10--graph# add a graphcryptohistory-cbitcoin-w5# past 5 weeks of bitcoin pricecryptohistory-cbitcoin-m3# past 3 months of bitcoin price📖 Get USD price of bitcoin on May 1, 2015cryptoprice-cbitcoin--date2015-05-01⏱ Watch the price (default: refresh every 15 seconds)cryptoprice-cbitcoin--watch
cryptoprice-cbitcoin-w-i10-s1# interval of 10 seconds, stop after 1 minute％ See price gains over timecryptogains-cbitcoin2020-01-012021-01-01ConfigThe default coin and currency to use will be stored in$HOME/.crypto/defaults.properties. If this file exists, these values will be used unless overridden with command line arguments. If no file exists and no command line arguments are provided, the program reverts to bitcoin and USD defaults, respectively.⚙️ Set default crypto and currencycryptoconfig-cbitcoin
cryptoconfig-curUSD
cryptoconfig# displays current defaults if no args setCrypto coin must be itsid. Currency must followISO 4217AND be supported by the API used.📝 List possible coin and currency valuescryptolistcoins
cryptolistcurrenciesCachingA list of coins to search will be cached in$HOME/.crypto/coins.jsonfor quick searching and lookup. By default, aTTLvalue of 7 days will be used.Complex Queries & Examples 🧐# find the number of cryptocurrencies with the word "chain" in their namecryptolistcoins|grepchain|wc-l# store the price of bitcoin for the last yearcryptohistory-cbitcoin-d365>btc-prices-last-year.txtBuilt with...Python 3.9pycoingeckoCoingecko APICurrencySymbols
Package: cryptoclip
ComboCrypt is a high-strength asymmetrical encryption schemecryptoclip provides a command-line tool to encrypt/decrypt text from
your clipboard with ComboCryptInstallationpip install cryptoclipUsage TutorialGenerating keys:Before sending or receiving encrypted messages, one must generate a
personal key pair.cryptoclip generate [myname]Sending a message:To send a message to someone, they must first provide you with a copy of
theirpublickey (.pubkey) – after that, you can encrypt messages
that only they will be able to decrypt.cryptoclip encrypt [theirname]This will copy the encrypted message to your clipboard, which you can
send to the recipient via any means. The contents cannot be read or
altered in transit, and only the holder of the recipient’s key may
decrypt it.Receiving a message:To receive an encrypted message, the sender must provide you with an
encrypted message block that was made out toyourpublic key. To
decrypt the content, you must your yourprivatekey.cryptoclip decrypt [myname]This will decrypt the message and copy the result to your clipboard.
Package: cryptocmd
Cryptocurrency historical market price data scraper written in Python.Installation$ pip install cryptocmdto install from the latest source use following command$ pip install git+git://github.com/guptarohit/cryptoCMD.gitUsageCoinMarketCap ScraperFollowing methods are available to get data in multiple formats fromhttps://coinmarketcap.comTo get all time historical data of a cryptocurrencyfromcryptocmdimportCmcScraper# initialise scraper without time intervalscraper=CmcScraper("XRP")# get raw data as list of listheaders,data=scraper.get_data()# get data in a json formatxrp_json_data=scraper.get_data("json")# export the data as csv file, you can also pass optional `name` parameterscraper.export("csv",name="xrp_all_time")# Pandas dataFrame for the same datadf=scraper.get_dataframe()To get data of a cryptocurrency which have same coin code as othersfromcryptocmdimportCmcScraper# initialise scraper with coin name as wellscraper=CmcScraper(coin_code="sol",coin_name="solana")# get raw data as list of listheaders,data=scraper.get_data()# get data in a json formatsolana_json_data=scraper.get_data("json")# export the data as csv file, you can also pass optional `name` parameterscraper.export("csv",name="solana_all_time")# Pandas dataFrame for the same datadf=scraper.get_dataframe()To get data of a cryptocurrency for some daysfromcryptocmdimportCmcScraper# initialise scraper with time intervalscraper=CmcScraper("XRP","15-10-2017","25-10-2017")# get raw data as list of listheaders,data=scraper.get_data()# get data in a json formatjson_data=scraper.get_data("json")# export the data to csvscraper.export("csv")# get dataframe for the datadf=scraper.get_dataframe()Following are the columns of the dataDate, Open, High, Low, Close, Volume, Market Cap, Time Open, Time High, Time Low, Time CloseAcknowledgementsThe data is being scrapped fromcoinmarketcap:v: and it’sfreeto use. :tada:ContributingFeel free to make a pull request! :octocat:If you found this useful, I’d appreciate your consideration in the below. ✨☕
Package: cryptocmp
Python wrapper forCryptoCompare APIDescriptioncryptocmpprovides to theCryptoCompare APIin two ways:Straight wrappers of the API calls incryptocmp.apipackage.A more user friendly mapping to these wrappers in object-oriented
style via the following classes:cryptocmp.coin.Coinrepresents a crypto coin.Installationpip3 install cryptocmpor this can also work if you have only python3 installed (the symlinkpippointing topip3is created)pip install cryptocmpUsageExamplesIn object-oriented style:Get a set of all available crypto coins:>>> from cryptocmp.coin import Coin
>>> Coin.all()
{'EOSDAC', 'GAP', 'ARN', 'SERA', 'ICASH', 'STAR*', 'AC3', ...}Get a current price of BTC in USD:>>> from cryptocmp.coin import Coin
>>> bitcoin = Coin('BTC')
>>> bitcoin.price('USD')
6318.35``Get a current price of BTC in USD, EUR and GBP at the same time
(produces single API call under the hood):>>> from cryptocmp.coin import Coin
>>> bitcoin = Coin('BTC')
>>> bitcoin.price(('USD', 'EUR', 'GBP'))
{'USD': 6316.17, 'EUR': 5540.34, 'GBP': 4977.23}``Get last 2 candles of BTC/USD daily historical data:>>> CoinPair('BTC', 'USD').price_history(points_num=2)
[
    {
        'time': 1534291200,
        'close': 6274.22,
        'high': 6620.07,
        'low': 6193.63,
        'open': 6199.63,
        'volumefrom': 132926.33,
        'volumeto': 852103141.83
    },
    {
        'time': 1534377600,
        'close': 6439.39,
        'high': 6439.39,
        'low': 6217.33,
        'open': 6274.22,
        'volumefrom': 24013.18,
        'volumeto': 152446768.26
    }
]CreditThanks toCryptoComparefor providing this service and building a
nice community around everything crypto related.Project was partially patched with files generated byCookiecutterusingcookiecutter-pypackageproject template. Thanks toAudrey Roy
Greenfeldand contributors who made python package creation so easy.
Package: cryptocmpy
CryptoCmpyPython 3 "CryptoCompare" site API wrapper.Home-page: https://github.com/havocesp/cryptocmpyAuthor: Daniel J. UmpierrezAuthor-email: umpierrez@pm.meLicense: UNLICENSEDescription:CryptoCmpyPython 3 "CryptoCompare" site API wrapper.Keywords: altcoins,altcoin,exchange,mining,cryptocompare,crypto,compare,api,wrapperPlatform: UNKNOWNClassifier: Development Status :: 5 - ProductionClassifier: License :: OSI Approved :: MIT LicenseClassifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Programming Language :: Python :: 3.7
Package: cryptocode
cryptocodePython library used to encrypt and decrypt strings in the simplest possible way, while also being incredibly secure.RequirementsPython3 or later.InstallationInstall some Python utilities along with some libraries and other stuff:pip install cryptocodeBasic usageEncrypting a message:>>> import cryptocode
>>> myEncryptedMessage = cryptocode.encrypt("I like trains", "password123")
>>> print(myEncryptedMessage)
M+Wykmlub0z7FhEdmA==*PvAbXRNx0SiSDHHxLsKZ5w==*ihQM/fdkgrX3G+yOItyAUQ==*QFNDmuUP1ysgo01/P2MNpg==The first parameter is the string you want to encrypt. The second parameter is the password, which will be used for decrypting the string.Decrypting a message">>> import cryptocode
>>> myDecryptedMessage = cryptocode.decrypt("M+Wykmlub0z7FhEdmA==*PvAbXRNx0SiSDHHxLsKZ5w==*ihQM/fdkgrX3G+yOItyAUQ==*QFNDmuUP1ysgo01/P2MNpg==", "password123")
>>> print(myDecryptedMessage)
I like trainsThe first parameter is the encrypted string and the second parameter is the password. If the password is incorrect, decrypt function will returnFalse.ExampleHere, we will be creating a simple "trial product key". This is useful if you have software that you would like people to use temporarily.
In this example, we will be letting the user use the product for 2 hours. The password we will be using iscryptocode is amazing.Code on the server side:import cryptocode
import time
hours = 2
messageToEncrypt = str(time.time() + hours * 60 * 60)
## Hours * 60 * 60 is necessary because we need to turn the hours into seconds, since the timestamp is in seconds.
cryptocode.encrypt(messageToEncrypt, "cryptocode is amazing")Code on the client side:import cryptocode
import time
import sys
#Function to verify that the key is valid:
def check_valid(key):
    message = cryptocode.decrypt(key, 'cryptocode is amazing')
    if message == False:
        #The key is incorrect!
        return False
    if float(message) >= time.time():
        return True
    else:
        #The key has expired!
        return False
userKeyInput = input("Please enter your product key.")
keyChecked = check_valid(userKeyInput)
if keyChecked == True:
    print("You are good to go!")
if keyChecked == False:
    print("You have either entered an invalid key or your time has expired. Sorry!")
    sys.exit()
Package: cryptocoin
Cryptocurrencies for Humans.ServiceStatusTravis CICryptocoin is an attempt to create a stable, easy-to-use package that optimizes
for developer happiness. In the same way thatRequestsmakes working with
HTTP much less painful, Cryptocoin is intended to ease working with
cryptocurrencies.Project GoalsCross-version compatibility: Currently Python 2.7, 3.3, and PyPyTest Coverage: 100%!Support for multiple currenciesQuickstartTo generate a Bitcoin address from a passphrase:> from cryptocoin import BitcoinKey

> my_key = BitcoinKey(passphrase="correct horse battery staple")

> my_key.address
1JwSSubhmg6iPtRjtyqhUYYH7bZg3Lfy1T
Package: crypto.com
ðŸ¦¾ A python3 crypto.com API wrapper powered by modern technologies such as asyncio.Get crypto.comTo install the library, you can just run the following command:#Linux/macOSpython3 -m pip install -U crypto.com#Windowspy -3 -m pip install -U crypto.comWhy crypto.com?The crypto.com api is complex to grasp and using a wrapper saves time but also ensures that the right practices are adopted. Crypto.com offers a modern and asynchronous solution.FeaturestodoWhat it does nottodoIf you need these features, don't open an issue to ask me to implement themDonateETH (ENS):thomas.ethers.xyzETH (legacy address):0x54c5a92c57A07f33500Ec9977797219D70D506C9BTC:bc1qm9g2k3fznl2a9vghnpnwem87p03txl4y5lahyu
Package: crypto-com-client
Crypto.com websocket api clientThis is a low level api client, it just connects the exchange api with your python code in the most simple way. Over
this library, you can build your awesome applications or high level api.
For more information, check thelibrary documentation, theofficial documentationand theexamplesdirectory.FeaturesThis library is optimized to be small, fast and secure.Fully tested: 100% code coverageSimple: It just does one thing, but it does it rightFast: Relies on asyncio so latency and memory usage is near zero (much better than threading or multiprocessing)No forced dependencies: Justwebsocketsandorjson. No super modern cool features that you probably don't wantGetting startedThere are two kinds ofapis, theuserandmarket.
Theusertype requires providing api credentials (access and secret key)Before using the library, you have to install it:pipinstallcrypto_com_clientThe most simple example, subscribing to anorderbook:fromcrypto_com.crypto_comimportMarketClientimportasyncioimportlogginglogging.basicConfig(level=logging.INFO)asyncdefrun():asyncwithMarketClient()asclient:awaitclient.subscribe(["book.CRO_USDC.10"])whileTrue:event=awaitclient.next_event()print(event)if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(run())If you want to use theuserapi first get you apikeyandsecret.fromcrypto_comimportUserClientimportasyncioimportosimportlogginglogging.basicConfig(level=logging.INFO)asyncdefrun():asyncwithUserClient(api_key=os.environ["API_KEY"],api_secret=os.environ["API_SECRET"])asclient:awaitclient.send(client.build_message(method="private/get-open-orders",params={"instrument_name":"CRO_USDC","page_size":10,"page":0}))event=awaitclient.next_event()print(event)if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(run())With these two examples you can use the whole api. Just check the API documentation to know the different methods
and parameters.ContributingIf you have any suggestion, detect any bug or want any feature, please open anissueso we can discuss it.TestsTo run the tests just runtoxIt will run in first instanceflake8, thenpylintand finallypytestwith code coverage check.
The only rule ignored ismax-line-length=120basically because nowadays monitors are big enough for this.
Websockets import has E0611 disabled because pylint does not process__all__correctly
Package: cryptocom-exchange
Python 3.7+ async library for crypto.com/exchange API using httpx and websocketsDocumentation:https://cryptocom-exchange.rtfd.ioExchange original API docs:https://exchange-docs.crypto.comDescriptionpip install cryptocom-exchangeorpoetry add cryptocom-exchangeprovides all methods to access crypto.com/exchange API (except for websockets temporary)full test coverage on real exchange with real moneysimple async methods with custom retries and timeoutsPlease do not use secret keys, they used only for test purposes
Package: crypto-compare
# crypto_compareCryptoCompare.com API client for Python## Folder/code structureThe code is written such that all the methods are available as instance methods in `Client` class, but grouped them in diff. modules under `apis` module to keep the code readable. All these module methods are imported inside the class `Client`.```|_ crypto_compare|__ client.py -- This is the main client class which has all the public methods|__ apis|___ average.py - methods for average APIs|___ coin.py - methods for coin APIs|___ helper.py - helper methods|___ histo.py - methods for histo APIs|___ mining.py - methods for mining APIs|___ price.py - methods for pricing APIs|___ subs.py - methods for subs APIs|___ top.py - methods for top data APIs|___ uncategorized.py - other API methods```## Usage1. Install it using pip``` shellpip install crypto_compare```2. Use it as following``` pythonimport crypto_comparecrypto_compare_client = crypto_compare.Client() #Create an instance and call any public API method!crypto_compare_client.coin_list()crypto_compare_client.coin_snapshot('BTC', 'USD')```## API docs### Coin methods1. `coin_list()`2. `coin_snapshot_full_by_id(coin_id)`3. `coin_snapshot(fsym, tsym)`### Price methods4. `price(**kwargs) - fsym and tsyms are mandatory as named arguments`5. `price_multi(**kwargs) - fsyms and tsyms are mandatory as named arguments`6. `price_multifull(**kwargs) - fsyms and tsyms are mandatory as named arguments`7. `price_historical(**kwargs) - fsym and tsyms are mandatory as named arguments`### Average methods8. `generate_avg(**kwargs) - fsym, tsym and markets are mandatory as named arguments`9. `day_avg(**kwargs) - fsym and tsym are mandatory as named arguments`### Subs methods10. `subs_watchlist(**kwargs) - fsyms and tsym are mandatory as named arguments`11. `subs(**kwargs) - fsym is mandatory as named argument`### Top Data methods12. `top_exchanges(**kwargs) - fsym and tsym are mandatory as named arguments`13. `top_volumes(**kwargs) - tsym is mandatory as named argument`14. `top_pairs(**kwargs) - fsym and tsym are mandatory as named arguments`### Histo methods15. `histo_day(**kwargs) - fsym and tsym are mandatory as named arguments`16. `histo_hour(**kwargs) - tsym is mandatory as named argument`17. `histo_minute(**kwargs) - fsym and tsym are mandatory as named arguments`### Mining methods18. `mining_contracts()`19. `mining_equipment()`### Other methods20. `all_exchanges(**kwargs)`21. `social_stats(coin_id)`## ToDo1. Add tests
Package: cryptocompare-python
cryptocompare-Python-APIA Python wrapper for theCryptocompare API.The api call descriptions are from the official documentation.Getting StartedTo get your API Key visitCryptocompare Web Sitebut is not implemented yet in this packageTo install the wrapper, enter the following into the terminal.pipinstallcryptocompare-pythonAPI Key is optional herefromcryptocompare-pyimportCryptoCurrencycurrency=CryptoCurrency()simple_exchange_rate=currency.get_single_exchange_rate('BTC','USD')print(simple_exchange_rate)multiple_exchange_rate=currency.get_multiple_exchange_rate('BTC','USD','EUR','CAD')print(multiple_exchange_rate)