Saravanan666/pypi-org huggingface dataset:
Package: cryptoforecast-io-scraper
cryptoforecast.io scraperIntroductionCryptoForecast.io scraperAllows simple interface for automating downloading of data fromhttps://www.cryptoforecast.ioAPI.Table of contensInstallationAPIAPI MethodsCreditsInstallationpip install cryptoforecast_io_scraperRequirementsRequires RequestsAPIGet data from CryptoForecastfrom cryptoforecast_io_scraper.request import DataReq

data_req = DataReq()

print(data_req._get_data())API MethodsThe following API methods are available:[Get data]: returns recent dataCreditshttps://github.com/Drakkar-Software/pytrends
Package: cryptofusepy
# CryptoFusePyCryptoFusePy is a Python library for interacting with theCryptoFuse API. It enables developers to easily integrate CryptoFuse's cryptocurrency swapping functionality into their Python applications.## InstallationAlternatively, if the package is available on PyPI, you can install it usingpip:gitclonehttps://github.com/your_username_here/cryptofusepy.gitcdcryptofusepy
pipinstall.UsageYou can use theCryptoFuseClientclass from thecryptofusepypackage to interact with the CryptoFuse API.Here's a quick example on how you can instantiate the client and fetch the available cryptocurrencies:fromcryptofusepyimportCryptoFuseClient# Instantiate the clientclient=CryptoFuseClient()# Fetch available cryptosavailable_cryptos=client.fetch_available_cryptos()print(available_cryptos)For a more detailed example that shows how to use all the endpoints, please see theexample.pyfile in this repository.Available MethodsHere is a list of available methods in theCryptoFuseClientclass:fetch_available_cryptos(): Fetches the available cryptocurrencies.fetch_exchange_rate(from_crypto, to_crypto): Fetches the exchange rate between two cryptocurrencies.generate_address(from_crypto, to_crypto, user_address, referral=None): Generates an address for swapping.register_referral(to_crypto, user_address, referral): Registers a referral.get_address_by_uuid(uuid): Retrieves address information by UUID.get_latest_transaction(uuid, latest_known_transaction_id=None, latest_known_transaction_status=None): Retrieves the latest transaction for the provided UUID.get_crypto_swap_status(): Retrieves the Crypto Swap status.ContributingContributions are welcome! Please feel free to submit a pull request or create an issue if you find a bug or have a feature request.
Package: cryptofy
cryptofySimple encryption/decryption functions for PythonInstallationpip install cryptofyUsageGeneratea secret:fromcryptofyimportencoding,generate_secretkey=generate_secret().decode(encoding)print(key)# Output randomized secretEncrypta string:fromcryptofyimportencoding,encryptstring="my-password"key="my-secret"encrypted=encrypt(bytes(key,encoding=encoding),bytes(string,encoding))print(encrypted)# Output ciphertextDecryptciphertext:fromcryptofyimportencoding,decryptencrypted="<ciphertext>"key="my-secret"string=decrypt(bytes(key,encoding=encoding),encrypted).decode(encoding)print(string)# Output decrypted stringCommand LineUsage:cryptofy ((-d | -e) -k <key> -s <source>) | (-n [-l <length>])Example 1:Generate a secretcryptofy -nExample 2:Encrypt a string:cryptofy -e -k "my-secret" -s "my-password"Example 3:Decrypt ciphertext:cryptofy -d -k "my-secret" -s "<ciphertext>"LicenseDistributed under theApache, version 2.0 license.
Package: cryptography
cryptographyis a package which provides cryptographic recipes and
primitives to Python developers. Our goal is for it to be your “cryptographic
standard library”. It supports Python 3.7+ and PyPy3 7.3.11+.cryptographyincludes both high level recipes and low level interfaces to
common cryptographic algorithms such as symmetric ciphers, message digests, and
key derivation functions. For example, to encrypt something withcryptography’s high level symmetric encryption recipe:>>>fromcryptography.fernetimportFernet>>># Put this somewhere safe!>>>key=Fernet.generate_key()>>>f=Fernet(key)>>>token=f.encrypt(b"A really secret message. Not for prying eyes.")>>>tokenb'...'>>>f.decrypt(token)b'A really secret message. Not for prying eyes.'You can find more information in thedocumentation.You can installcryptographywith:$pipinstallcryptographyFor full details seethe installation documentation.DiscussionIf you run into bugs, you can file them in ourissue tracker.We maintain acryptography-devmailing list for development discussion.You can also join#pycaonirc.libera.chatto ask questions or get
involved.SecurityNeed to report a security issue? Please consult oursecurity reportingdocumentation.
Package: cryptography318
Cryptography318Cryptography318 is a package intended to provide utility for important cryptographic and
linear algebra functions in Python. This package includes functions for generating primes,
primality tests including AKS, Miller-Rabin, Baillie-PSW, functions for factoring integers including
Pollard's P-1, Self-Initializing Quadratic Sieve, Pollard's Rho, and Lenstra's ECM factorization algorithm
using both Montgomery curves over projective space and short Weierstrass curves, functions for solving
discrete logarithm problems including Pollard's Rho method for logarithms,
baby-step-giant-step, and Pohlig-Hellman, support for working with elliptic curve cryptography including
'fast power algorithm' and baby-step-giant-step, general algebra functions such as Chinese Remainder and the
Euclidean Extended Algorithm for gcd's. In development is the index calculus method
for solving DLP's.Required PackagesnumpyInstall$ pip install cryptography318License
Package: cryptoguardian
# CryptoGuardianCryptoGuardian é um pacote Python que fornece uma ferramenta simples e poderosa de criptografia e descriptografia de arquivos. Ele permite que você proteja seus arquivos confidenciais com criptografia forte usando a biblioteca de criptografia Fernet.## CaracterísticasCriptografia de arquivo: criptografe facilmente seus arquivos para proteger dados confidenciais.Descriptografia de arquivo: Descriptografe arquivos criptografados anteriormente quando precisar acessar seu conteúdo.Gerenciamento de senhas: gere automaticamente chaves de criptografia fortes e copie-as para a área de transferência para proteção.### InstalaçãoVocê pode instalar o CryptoGuardian viapip:` pip install cryptoguardian `### Uso` import cryptoguardian `# Crie uma instância do CryptoGuardian` guardian = CryptoGuardian() `# Criptografar um arquivo` guardian.criptografar_arquivo() `Copie o caminho para o arquivo que deseja criptografar e cole no terminalEx.: C:UsersMelissaDesktopufpi/logo.pngCopie a senha que foi gerada ao criptografar o arquivo e salve para usar posteriormente quando quiser descriptografar o arquivo.# Descriptografar um arquivo` guardian.descriptografar_arquivo() `Copie o caminho para o arquivo criptografado e cole no terminal.C:UsersMelissaDesktopufpi/logo.png.encryptedAo selecionar o arquivo criptogrado é importante colocar .encrypted após o nome do arquivo pois é o tipo do arquivo.Cole a senha que você salvou quando for pedida a senha de descriptografia.Para a abrir o arquivo descriptografado selecione um programa para o tipo específico de arquivo que foi criptografado.Ex.: Windows Media Player para vídeos ou músicas.### LicençaO CryptoGuardian é distribuído sob a [Licença MIT](https://opensource.org/licenses/MIT). Você é livre para usar, modificar e distribuir este pacote de acordo com os termos da licença.
Package: cryptoguardianTeste
# CryptoGuardianCryptoGuardian é um pacote Python que fornece uma ferramenta simples e poderosa de criptografia e descriptografia de arquivos. Ele permite que você proteja seus arquivos confidenciais com criptografia forte usando a biblioteca de criptografia Fernet, ao mesmo tempo em que fornece uma interface gráfica construída com PyQt5.## CaracterísticasCriptografia de arquivo: criptografe facilmente seus arquivos para proteger dados confidenciais.Descriptografia de arquivo: Descriptografe arquivos criptografados anteriormente quando precisar acessar seu conteúdo.Gerenciamento de senhas: gere automaticamente chaves de criptografia fortes e copie-as para a área de transferência para proteção.Interface Gráfica Intuitiva: A interface gráfica do usuário torna mais fácil para usuários de todos os níveis de habilidade criptografar e descriptografar arquivos.### InstalaçãoVocê pode instalar o CryptoGuardian viapip:`bash pip install cryptoguardian `### Uso
import cryptoguardian
# Crie uma instância do CryptoGuardian
guardian = cryptoguardian.CryptoGuardian()
# Criptografar um arquivo
guardian.encrypt_file()
# Descriptografar um arquivo
guardian.decrypt_file()### Licença
O CryptoGuardian é distribuído sob a [Licença MIT](https://opensource.org/licenses/MIT). Você é livre para usar, modificar e distribuir este pacote de acordo com os termos da[licença](https://opensource.org/licenses/MIT).
Package: cryptohands
CryptohandsFor making Crypto PizzaFree software: Apache Software License 2.0Documentation:https://cryptohands.readthedocs.io.Features# TODO: Add some features to addCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2017-09-10)First releaseNo Anchovy
Package: cryptohash
Crypto HashTiny hashing module that uses the native crypto API in PythonDemoDemo onRepl.itScreenshotInstall$ pip install cryptohashUsagefromcryptohashimportsha1print(sha1('🤓'))#=> d0b16946377589fbc68d8b1ca324f16e84171463APIAPIsha1(input)sha224(input)sha256(input)sha384(input)sha512(input)md5(input)Returns aPromise<string>with a hex-encoded hash.Don't usemd5orsha1for anything sensitive.They're insecure.inputType:stringoutputFormatType:stringValues:hexDefault:hexLicenseMITYoginth
Package: crypto-info
crypto-infoA module for collecting information about crypto assets and crypto exchanges.first of allspecifics:writen and owned by: Shahaf Frank-Shapirall the rights are saved for: Shahaf Frank-Shapirprogramming languages: python 3.9.12 (100%)before we startdescription:A module for collecting information about crypto assets and crypto exchanges.dependencies:opening:
As for this is a really complex program, which uses a lot of modules, there are required dependencies needed
in order to run the program. keep in mined the program was writen in python 3.9, so any python version lower
than 3.8 might not work properly. Moreover, built-in python modules are being used, so keep that in mind.install app dependencies by writing the "-r" option to install the requirements
writen in a file, and write the following line in the project directory:pip install -r requirements.txtrun a testrun from windows command line (inside the project directory)run with python by writing to the command line in the project directory:python test.py
Package: cryptoino
cryptoino moduleA small python module to get 12,000 cryptocurrencies information from coingeckoTech StackMain Stack:PythonPackages/Modules:requestsHow to using?Sure to have requests moduleClone or download this project.Importcryptoinoto your project and useCoin()classor install using pip.pip install cryptoinousing examplefrom cryptoino import Coindoge = Coin(name="dogecoin" , target_currency="usd")print("Current btc price:", doge.get_current_price(),"USD")CompatibilitySuccessful test on:Python 3.7Python 3.8Python 3.10
Package: cryptojsaesdecrypt
CryptoJS DecryptThis is a Python module that makes it possible and easier to decrypt ciphers generated withNodeJS CryptoJS PackageInstallationpip install cryptojsaesdecryptUsagefromaesdecryptimportdecryptCiphercrytojs_cipher_text=""crytojs_passphrase="".encode()dec=decryptCipher(crytojs_cipher_text,crytojs_passphrase)CreditsThe CryptoJS source code for showing how the encryption is done, generating passphrase.
Package: cryptokey
CryptoKey=========Python (>= 3.7) library for asymmetric cryptography with algorithms such as RSA and ECC.Various backends implement wrappers around other crypto libraries (such as https://cryptography.io/)and makes them available using a unified API. The actual cryptographic operations are carried outby those backend libraries.No hard dependencies on any non-python libraries such as OpenSSL exist.CryptoKey is meant to be used by other libraries that need to carry out cryptographicoperations. That could e.g. be an ACME client, TrustedTimeStamp service or an SSH client.Users can implement their own backends to utilise their favourite HSM or smartcard,cloud HSMs or their own ECC implementation (don't!), etc.CryptoKey can thus be seen as a python alternative to PKCS#11.There are high-level interfaces such as `key.sign(msg)` which just do the right thing,and low-level interfaces such as `rsakey.sign_int` to calculate `s = m ** d % n` which,if used incorrectly, opens up security holes.Implementations for padding schemes such as PSS are given. They can be used for low-levelplumbing like extracting the salt from a PSS signature or creating a PSS signature with aspecific salt.One stated goal is to provide interfaces for unsafe operations too.If you want to shoot yourself in the foot, here's the tool to do it!Examples========Sign a message::from asyncio import runfrom cryptography.hazmat.primitives import serializationfrom cryptokey.backend.cryptography import backendfrom cryptokey.backend.cryptography.rsa import RsaPrivateKey# Load a private key using normal cryptography.io operations.with open('private.key', 'rb') as fp:cryptography_key = serialization.load_pem_private_key(fp.read(),password=None,backend=backend,)# Create wrapperkey = RsaPrivateKey(cryptography_key)# Sign a message. By default, PSS and SHA2_256 are used. The# signature object also contains the parameters that were used.sig = run(key.sign(b'Hello, World!'))# Write signature to a file.with open('hello.sig', 'wb') as fp:fp.write(sig.value)Verifying the signature using openssl::echo -n 'Hello, World!' | openssl sha256 -binary | openssl pkeyutl \-verify -inkey private.key -sigfile hello.sig -pkeyopt digest:sha256 \-pkeyopt rsa_padding_mode:pssSolving homework::from asyncio import runfrom cryptokey.backend.textbook.rsa import TextbookRsaPrivateKeykey = TextbookRsaPrivateKey(public_exponent=7, primes=(17, 31))print(f'Private exponent: {key.private_exponent}')print(f'Signature for M=2: {run(key.sign_int(2)).int_value}')Security--------This library is supposed to be just as (in)secure as the used backend.If in doubt, use the `cryptography` backend, which builds upon OpenSSL.The `textbook` backend is deliberately insecure and should not be used forreal applications.
Package: cryptolation
CryptolationA Python static code analysis tool.ReferenceIf you find this database useful, please cite our NDSS'22Poster.@inproceedings{frantz2022poster,
  title={POSTER: Precise Detection of Unprecedented Python Cryptographic Misuses Using On-Demand Analysis},
  author={Frantz, Miles and Xiao, Ya and Pias, Tanmoy Sarkar and Yao, Danfeng Daphne},
  booktitle={The Network and Distributed System Security (NDSS) Symposium},
  year={2022}}
Package: cryptologic
cryptologicPython3 wrapper to query cryptocurrency prices (and more) using theCryptoCompareAPI.InstallpipinstallcryptologicUsageimportcryptologicAPI KeyIf you have an API key, you can either set it as environment variableCRYPTOCOMPARE_API_KEYor set it manually with:cryptologic.cryptologic._set_api_key_parameter(KEY_HERE)Coin Listcryptologic.coin_list(format=False)# ...# },# 'BTC': {#  'Id': '1182'#  'Url': '/coins/btc/overview'#  'ImageUrl': '/media/19633/btc.png'#  'Name': 'BTC'#  'CoinName': 'Bitcoin'#  'FullName': 'Bitcoin (BTC)'#  'Algorithm': 'SHA256'#  'ProofType': 'PoW'#  'FullyPremined': '0'#  'TotalCoinSupply': '21000000'#  'PreMinedValue': 'N/A'#  'TotalCoinsFreeFloat': 'N/A'#  'SortOrder': '1'# },# ...IfformatisTrue, the coin list is returned as Python list,
containing only the abbreviations (likeBTC).Pricecryptologic.get_price('BTC')# orcryptologic.get_price('BTC',currency='USD',full=True)# orcryptologic.get_price(['BTC','ETH'],['EUR','GBP'])# {'BTC': {'EUR': 3709.04, 'GBP': 3354.78},#  'ETH': {'EUR': 258.1, 'GBP': 241.25}}Historical Prices# pass either datetime or time instancecryptologic.price('XMR',timestamp=datetime.datetime(2017,6,6),exchange='CCCAGG')# orcryptologic.price('XMR','EUR',datetime.datetime(2017,6,6))# {'XMR': {'EUR': 43.05}}Daycryptologic.price_day('BTC',currency='EUR')cryptologic.price_day('BTC',currency='EUR',limit=30)cryptologic.price_day('BTC','EUR',limit=24,exchange='CCCAGG',toTs=datetime.datetime(2019,6,6))# orcryptologic.price_day('BTC','EUR',limit=24,exchange='CCCAGG',toTs=datetime.datetime(1559815200))Hourcryptologic.price_hour('BTC',currency='USD')cryptologic.price_hour('BTC',currency='EUR',limit=24)cryptologic.price_hour('BTC','EUR',limit=24,exchange='CCCAGG')cryptologic.price_hour('BTC','EUR',limit=24,exchange='CCCAGG',toTs=datetime.datetime(2019,6,6,12))# orcryptologic.price_hour('BTC','EUR',limit=24,exchange='CCCAGG',toTs=datetime.datetime(1559815200))Minutecryptologic.price_minute('BTC',currency='EUR')cryptologic.price_minute('BTC',currency='EUR',limit=1440)cryptologic.price_minute('BTC','EUR',limit=24,exchange='CCCAGG',toTs=datetime.datetime.now())Averagecryptologic.get_average('BTC',currency='EUR',exchange='Kraken')# {# 'MARKET': 'CUSTOMAGG',# 'FROMSYMBOL': 'BTC',# 'TOSYMBOL': 'EUR',# 'FLAGS': 0,# 'PRICE': 3610,# 'LASTUPDATE': 1503066719,# 'LASTVOLUME': 0.5,# 'LASTVOLUMETO': 1805,# 'LASTTRADEID': 1503066719.7584,# 'VOLUME24HOUR': 12614.509997469995,# 'VOLUME24HOURTO': 46397723.00499387,# 'OPEN24HOUR': 3847.9,# 'HIGH24HOUR': 3848.96,# 'LOW24HOUR': 3555,# 'LASTMARKET': 'Kraken',# 'CHANGE24HOUR': -237.9000000000001,# 'CHANGEPCT24HOUR': -6.182593102731363# }Exchangescryptologic.get_exchanges()Pairscryptologic.get_pairs()pairs=cryptologic.get_pairs(exchange='Kraken')DevelopingTests run assuming you have an API key, otherwise they will error due to rate limiting. Install the dev dependencies and run the tests:pip3install-rrequirements.txt
python3-mpytestCreditTheCryptoCompare API.
Package: cryptology
CryptologyThis is a package which decrypt/encrypts text using a few different methods.InstallationRun the following to install:pipinstallcryptologyUsagefromcryptologyimportatbash_decrypt# Generate decryptionstring=atbash_decrypt(cipher_text="GSRHRHMLGEVIBHVXIVGZGZOO")print(string)Other functions include:importcryptologyascp# Generate decryption# Atbashstr_atbash_decrypted=cp.atbash_decrypt(cipher_text="GSRHRHMLGEVIBHVXIVGZGZOO")str_atbash_encrypted=cp.atbash_encrypt(plain_text="THISISNOTVERYSECRETATALL")# Ceaserstr_ceaser_decrypted=cp.ceaser_decrypt(cipher_text="MTBVZNHPQDINIDTZGWJFPYMNX",shift=5)str_ceaser_encrypted=cp.ceaser_encrypt(plain_text="HOWQUICKLYDIDYOUBREAKTHIS",shift=5)# Vigenerestr_ceaser_decrypted=cp.vigenere_decrypt(cipher_text="YDXGJHCJVODXUGGZ",keyword="NIGHTTIME",permutation="thislepgywnomarkdbfcjquvxz")str_ceaser_encrypted=cp.vigenere_encrypt(plain_text="VISABILITYISPOOR",keyword="NIGHTTIME",permutation="thislepgywnomarkdbfcjquvxz")# Playfairstr_playfair_decrypted=cp.playfair_decrypt(cipher_text="GIVHYCHGSYPCFHWHGDHPUTSMYTLD",keyword="GLAMORGAN")str_playfair_decrypted=cp.playfair_encrypt(plain_text="MEETMEATTREFFORESTSTATION",keyword="GLAMORGAN")print(string)
Package: cryptology-ws-client
This is an official Python client library for the Cryptology exchange WebSocket API.By using this Cryptology Python client you confirm that you have read and acceptLicense Agreement:FeaturesAsynchronous implementation of all WebSocket Market Data and Account endpoints.Handling response errorsWithdrawal functionalityQuick StartReceive your own API access key and secret key.pipinstallcryptology-ws-clientRun tests.maketestsAnd see example.importasyncioimportitertoolsimportosimportloggingimporttimefromcollectionsimportnamedtuplefromcryptologyimportClientWriterStub,run_client,exceptionsfromdatetimeimportdatetimefromdecimalimportDecimalfromtypingimportIterable,Dict,ListSERVER=os.getenv('SERVER','wss://api.sandbox.cryptology.com')logging.basicConfig(level='DEBUG')asyncdefmain():asyncdefwriter(ws:ClientWriterStub,pairs:List,state:Dict)->None:whileTrue:client_order_id=int(time.time()*10)awaitws.send_message(payload={'@type':'PlaceBuyLimitOrder','trade_pair':'BTC_USD','price':'1','amount':'1','client_order_id':client_order_id,'ttl':0})awaitasyncio.sleep(5)asyncdefread_callback(ws:ClientWriterStub,ts:datetime,message_id:int,payload:dict)->None:ifpayload['@type']=='BuyOrderPlaced':awaitws.send_message(payload={'@type':'CancelOrder','order_id':payload['order_id']})whileTrue:try:awaitrun_client(access_key='YOUR ACCESS KEY',secret_key='YOUR SECRET KEY',ws_addr=SERVER,writer=writer,read_callback=read_callback,last_seen_message_id=-1)exceptexceptions.ServerRestart:asyncio.sleep(60)if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())For morecheck out the documentation.
Package: cryptolytics
CryptolyticsFundamental analysis for blockchain and crypto projectsGetting Started•Features•Documentation•Support•Report a Bug•Contribution•ChangelogCalculate quality scores for open-source blockchain and crypto projects based on developer and social activity. Metadata is collected from a variety of different data sources. The goal is to get a list of the best projects for long-term investment based on the current project fundamentals.HighlightsTBDGetting StartedTBDSupport & FeedbackPlease understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly so that more people can benefit from it.TypeChannel🚨Bug Reports🎁Feature Requests👩‍💻Usage Questions📢AnnouncementsFeaturesTBDDocumentationTBDContributionPull requests are encouraged and always welcome. Read ourcontribution guidelinesand check outhelp-wantedissues.Submit Github issues for anyfeature request and enhancement,bugs, ordocumentationproblems.By participating in this project, you agree to abide by itsCode of Conduct.Thedevelopment sectionbelow contains information on how to build and test the project after you have implemented some changes.DevelopmentTo build the project and run the style/linter checks, execute:pipinstalluniversal-build
pythonbuild.py--make--checkAlternatively, you can also run all necessary steps (build, check, test, and release) within a containerized environment by executing the following in the project root folder (this requiresDockerandAct):act-b-jbuildRefer to ourcontribution guidesfor more detailed information on our build scripts and development process.LicensedMIT.
Package: cryptomailer
CryptoMailerA package to send and receive encrypted emails via Gmail.Encryption and decryption are done with the help ofKeyword Cipheralgorithm.NOTE:Make sure to allow less secure app access for the Gmail account(s) that will be used to send/receive emails through this package.Provide less secure app access fromhere.Package DetailsPyPI link to package:https://pypi.org/project/cryptomailer/Directory Structure:CryptoMailer/
├── cryptomailer
│   ├── crypt.py
│   ├── __init__.py
│   ├── mailer_receive.py
│   └── mailer_send.py
├── LICENSE
├── README.md
└── setup.pyCryptoMailer:GitHub repository.cryptomailer: Package directory.cryptomailer/crypt.py: Module used for encryption and description.cryptomailer/mailer_receive.py: Module to receive emails.cryptomailer/mailer_send.py: Module to send emails.setup.py: File responsible to manage package.Using the package.View filesample.pyto understand how to import and run the package.Use the following command to run the send and receive emails using the packagecryptomailer.python3 sample.py