Saravanan666/pypi-org huggingface dataset:
Package: cryptosyspki
This is a Python interface to theCryptoSys PKI Prolibrary.CryptoSys PKI Pro is a library to carry out public key cryptography using RSA and ECDSA.
You can generate and manage X.509 certificates, PKCS#8/PKCS#12 private keys and CMS/PKCS#7 objects.
It includes all required supporting cryptographic utilities.CryptoSys PKI Pro v22.1 or above must be installed on your system.
This is available fromhttps://www.cryptosys.net/pki/.To use in Python’s REPL>>>fromcryptosyspkiimport*>>>Gen.version()# "hello world!" for CryptoSys PKI220100>>>Hash.hex_from_data(b'abc')# compute SHA-1 hash in hex of 'abc' as bytes'a9993e364706816aba3e25717850c26c9cd0d89d'>>>Hash.hex_from_string('abc',Hash.Alg.SHA256)# same but over a string and using SHA-256'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad'>>>h=Hash.data(b'abc')# h is a byte array (bytes->bytes)>>>print(Cnv.tohex(h))# display the byte array in hexA9993E364706816ABA3E25717850C26C9CD0D89DIf you don’t likeimport *and findcryptosyspkia bit long to
type each time, try>>>importcryptosyspkiaspki>>>pki.Gen.version()#  Underlying core PKI dll220100>>>pki.__version__# cryptosyspki.py package'22.1.00.0000'ExamplesThere is a series of tests intest_pki.py(source).
You should find an example there of what you want to do.These tests require a subdirectoryworkin the same folder
which must contain all the required test files.
A spare set of these test files is available separately inpkiPythonTestFiles.ziptest
|   test_pki.py
|
\---work
    |   <...all required test files>
    |
    \---tmp.XXXXXXXX
            <..temporary files...>The test function creates a new temporary subdirectory each time, which is deleted automatically.
If you want to keep this temp folder for debugging, then add the argumentnodeleteon the command line.This structure is already set up in the distribution file, so unzip the
filecryptosyspki-x.x.x.zipand open a command-line prompt in thetestsubdirectory. You can do any of the following.python test_pki.pypy.test-vOpen the filetest_pki.pyusing IDLE and selectRun > Run Module (F5).We’ve tested this using the Python 3.12.0 interpreter and IDLE, PyCharm 2023.2.3, andpy.test7.4.2.post1 Update2023-01-08: Updated distribution to use pyproject.toml and build instead of setup.py, and removed troublesome and unnecessary requirements file
(which messed up pytest).ContactFor more information or to make suggestions, please contact us athttps://www.cryptosys.net/contact/David IrelandDI Management Services Pty LtdAustralia<https://www.di-mgt.com.au> <https://www.cryptosys.net>8 January 2024
Package: cryptotik
cryptotikStandardized common API for several cryptocurrency exchanges.
Cryptotik is python3 compatible collection of cryptocurrency exchange wrappers.
Main goal of cryptotik is to deliver unified common interface to some of the most popular cryptocurrency exchanges, cryptotik accomplishes that by standardizing names of the methods and expected inputs and outputs.Installpip install cryptotikor latest development version:pip install git+git://github.com/indiciumfund/cryptotik.gitSupported ExchangesExchangeAPIPublic MethodsPrivate MethodsNormalized PrivateNormalized PublicTestswww.binance.comDoneDoneDoneTODODoneDonebitkonan.comDoneDoneTODOTODOTODOTODOwww.bitstamp.netDoneDoneDoneTODODoneDonebittrex.comDoneDoneDoneTODODoneDonewww.cryptopia.co.nzDoneDoneDoneTODODoneDonehitbtc.comDoneDoneDoneTODODoneDonewww.kraken.comDoneDoneDoneTODODoneDonepoloniex.comDoneDoneDoneTODODoneDonetherocktrading.comDoneDoneDoneTODODoneDoneExamplesRight now library supports: Poloniex.com, Bitstamp.com, Kraken.com Bittrex.com, Binance, TheRockTrading, HitBtc, Bitkonan with elementary support for Livecoin.
Library supports other useful features like wrapper around Coinmarketcap.com's public API.from cryptotik import Wex, Bittrex, PoloniexYou only need to learn commands once, for exampleget_marketswill work anywhere:Bittrex().get_markets()Poloniex().get_markets()Binance().get_markets()and will yield similar results. However parsing and interpreting them is left to user.More examplesPoloniex().get_market_order_book("btc-nxt")Bittrex().get_market_depth("btc-maid")Binance().get_market_ticker('etc-eth')Private API methods (the ones that require authentication)Library also supports private API methods for Poloniex, Binance, Bitstamp, Kraken, TheRockExchange, Bittrex, Wex and some others.
To use them you need to make class instance though with your API credentials.polo = Poloniex(yourkey, yoursecret)polo.get_balances()polo.withdraw(<coin>, <amount>, <address>)Same goes for Bittrex:btrx = Bittrex(yourkey, yoursecret)btrx.get_balances()btrx.withdraw(<coin>, <amount>, <address>)Running testscd testBittrexpytest bittrex_test.py --apikey=<APIKEY> --secret=<APISECRET>Poloniexpytest poloniex_test.py --apikey=<APIKEY> --secret=<APISECRET>ContributingFork it (https://github.com/indiciumfund/cryptotik/fork)Study how it's implementedCreate your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create a new Pull Request
Package: crypto-tools
crypto_toolsAn open-source, python library that helps you build software for breaking "traditional" cyphers and codes
(cryptograms too).At this early stage in this project, this README is designed with two users in mind:developers who want to use this library within their software;developers who want to contribute to build crypto_tools.When the project will become large enough, most of the information needed by the audiences listed above will be moved
to a different place (most likely a dedicated website). Then the main purpose of this README will become that of
providing the information that everyone expects to find on pypi.org, plus an index of the other available resources.Table of ContentsUsageContributeUsageThe package can be installed by running:pip install crypto-toolsIt can then be imported with:import crypto_toolsor using a from... import... statement. Please note the different naming (- vs. _), which was originally caused by an
error when setting up the project in pypi.The package is made of the sub-packages that follow.utilsGenerally short functions written to avoid repetition in the rest of the package. This doesn't generally need to be
imported.dataData files used by the rest of the package. This doesn't generally need to be imported, unless you're planning to
rewrite on your own some of the logics provided by the package.statsTools that help you compute basic statistics on the text that you're analysing, such as calculating letter or ngram
frequencies, or the index of coincidence.analysisTools that help you analyse a cyphertext before you apply other cryptoanalytic techniques (e.g. to estimate the
probable language of an unknown cyphertext).Contributeto do
Package: cryptotranslator
# CryptotranslatorStandardization of names for cryptocurrency pairs and ticketsBuild status:### PrerequisitesYou need to install pyyaml before use the module to be able to read` pip3.x install pyyaml `## Getting StartedUse pip to install the module` pip3.x install cryptotranslator `## Running the testsClone this code and use the following command` tox tests/test_cryptotranslator.py `## AuthorsRafael Esteban Ceron Espinosa-Initial work- [estebance](https://github.com/estebance)James Lin-Initial work- [jameslin101](https://github.com/jameslin101)## LicenseThis project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details
Package: crypto-treehole
crypto_treehole 加密树洞树洞 Bot，基于Mixin Messenger和Rum System开发。特点：用户通过 mixin bot 作为内容发布入口除了树洞内容，用户的任何隐私数据、行为数据均不采集或存储树洞内容，将采用 Ethereum 规范的密钥签名，即时推送到 RUM 种子网络上链存储部署时，有两种密钥方案可选择（修改 PRIVATE_KEY_TYPE 参数）：DIFF: 每条树洞随机生成新密钥SAME: 所有树洞采用同一个密钥部署1、mixin bot：在 mixin 开发者后台申请创建，获得 session keystore 作为 MIXIN_BOT_KEYSTORE2、seed url:通过 rum fullnode 创建 group 并生成轻节点 seedurl，或获取现有的 轻节点 seedurl3、安装 crypto_treehole：pip install crypto_treehole4、修改配置并运行：python do_treehole.py &SourceMixin python sdkhttps://github.com/nodewee/mixin-sdk-pythonquorum data module for python:https://github.com/liujuanjuan1984/quorum-data-pyquorum mininode sdk for python:https://github.com/liujuanjuan1984/quorum-mininode-pyand more ...https://github.com/okdaodine/awesome-quorumLicenseThis work is released under theMITlicense. A copy of the license is provided in theLICENSEfile.
Package: cryptounifier
CryptoUnifier Python SDKA simple Python SDK for interacting withCrypto UnifierAPI V1.InstallationYou can install the package via pip:piprequirecryptounifierUsageUsing the Wallet API clientYou can use theWalletAPIclass for convenient access to API methods. Some are defined in the code:fromcryptounifierimportMerchantAPIclient=WalletAPI("WALLET_KEY","SECRET_KEY","btc")balance=client.getBalance()print(balance)depositAddresses=client.getDepositAddresses()print(depositAddresses)Using the Merchant API clientYou can use theMerchantAPIclass for convenient access to API methods. Some are defined in the code:fromcryptounifierimportMerchantAPIclient=MerchantAPI("MERCHANT_KEY","SECRET_KEY")invoice=client.createInvoice(["btc","bch","eth"])print(invoice)LicenseThe MIT License (MIT). Please seeLicense Filefor more information.
Package: cryptounifier-python-sdk
CryptoUnifier PYTHON SDKA simple PYTHON SDK for interacting withCrypto UnifierAPI V1.InstallationYou can install the package via pypi:pipinstallcryptounifier_python_sdkUsageUsing the Wallet API clientYou can use theWalletAPIclass for convenient access to API methods. Some are defined in the code:fromcryptounifier_python_sdkimportMerchantAPIclient=newWalletAPI("WALLET_KEY","SECRET_KEY","btc")balance=client.getBalance()print(balance)depositAddresses=client.getDepositAddresses()print(depositAddresses)Using the Merchant API clientYou can use theMerchantAPIclass for convenient access to API methods. Some are defined in the code:fromcryptounifier_python_sdkimportMerchantAPIclient=newMerchantAPI("MERCHANT_KEY","SECRET_KEY")invoice=client.createInvoice(["btc","bch","eth"])print(invoice)LicenseThe MIT License (MIT). Please seeLicense Filefor more information.
Package: crypto-wallet
Crypto wallets are most secured digital wallets which are used to send and receive virtual currencies like bitcoin.
Whenever a user wants to use his digital assets, then he must use a crypto wallet. Every crypto wallets have a private key and public keys, these keys are used to send and receive coins, also these keys are used to track the transactions.Osiz Technology Pvt. Ltd. - Team experts are offering ready to made solution to integrate a cryptowallet with your web applications. Our tech guys offering secured wallets made with Python packages. Now it is easy to integrate crypto wallets with your applications.
Feel free to contact us at any time to make a most secured crypto wallet with high-end features!
Package: cryptowatch-client
PyPI versionLicense:
MITcryptowatch-client is a python client library forcryptowatch public
market rest apiInstallation$ pip install cryptowatch-clientUsagefromcryptowatch_clientimportClientclient=Client(timeout=30)response=client.get_allowance()print(response.status_code,response.json())client.get_allowance()# GET /client.get_assets()# GET /assetsclient.get_assets(asset='btc')# GET /assets/btcclient.get_pairs()# GET /pairsclient.get_pairs(pair='ethbtc')# GET /pairs/ethbtcclient.get_exchanges()# GET /exchangesclient.get_exchanges(exchange='kraken')# GET /exchanges/krakenclient.get_markets()# GET /marketsclient.get_markets(exchange='kraken')# GET /markets/krakenclient.get_markets(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusdclient.get_markets_price(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/priceclient.get_markets_summary(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/summaryclient.get_markets_trades(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/tradesclient.get_markets_trades(exchange='gdax',pair='btcusd',limit=100,since=1481663244)# GET /markets/gdax/btcusd/tradesclient.get_markets_orderbook(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/orderbookclient.get_markets_ohlc(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/ohlcclient.get_markets_ohlc(exchange='gdax',pair='btcusd',before=1481663244,after=1481663244,periods='60,180,108000')# GET /markets/gdax/btcusd/ohlcclient.get_markets_prices()# GET /markets/pricesclient.get_markets_summaries()# GET /markets/summariesContributingFork itCreate your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create new Pull Request
Package: crypto-wealth-rank
Crypto Wealth RankA simple python package to get crypto wealth rank.ranks are as follows:Shrimp: less than 1 BTCCrab: 1 to 10 BTCOctopus: 10 to 50 BTCFish: 50 to 100 BTCDolphin: 100 to 500 BTCShark: 500 to 1000 BTCWhale: >1000 BTCHumpback: >5000 BTCTable of ContentsInstallationUsageSupportContributingInstallationInstall the package using pip:pipinstallcrypto-wealth-rankUsagefromcrypto_wealth_rankimportrank_wealtheth_balance=100rank=rank_wealth(eth_balance)print(rank)# FishSupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: cryptoXam
Packages needed to runccxtplotlypycoingeckopandasCommand to install the required packageswould recommend pairing this with a virtual environment#option virtual env
#install
pip install virtual env

#creating
python3 -m virtualenv env

# activating
env\scripts\activate

# deactivating
env\scripts\deactivate


pip install -r requirements.textOn the current free plan we can expect to retrieve one request per every 30 secondsfurther improvements can be made to increase the traffic if need beetesting changesshowing jordan a test
Package: cryptoyaml
senic.cryptoyamlcryptoyamlis a python library to manage encrypted YAML files, its motivation was to provide an API for applications to read (and write) potentially sensitive configuration settings (i.e. passwords, personal user information) in encrypted form.Another motivation is that even in scenarios where the private key to access those settings is persisted alongside the settings themselves, the advantage would be that it becomes trivial to delete those settings securely: you now only need to destroy the key properly and not worry that you leave sensitive bits and bytes on the storage device.This package is simply a convenience wrapper tailored to that use case. The actual heavy lifting of parsing and writing YAML and encrypting and decrypting it is done by the excellent librariesPyYAMLandcryptographyrespectively.
Also, while they support both Python 2.x and 3.x this package only targets Python >= 3.5 (because it’s 2016).API UsageHere’s a simple example:>>> from cryptoyaml import generate_key, CryptoYAML
>>> new_key = generate_key('secret')
>>> config = CryptoYAML('/path/to/settings.yml.aes', keyfile=new_key)Initially you must generate a key (it uses theFernet symmetric encryptionfrom thecryptographylibrary) and use it to construct an CryptoYAML instance.That instance then provides adataattribute which is initally an empty dictionary that you can fill with arbitrary data, provided, thePyYAMLlibrary can encode it:>>> config.data['foo'] = 123Note, however, that the data is only persisted on the filesystem when you explicitly commit it to disk like so:>>> config.write()Once written, the file can be re-read as long as the original secret is still provided:>>> reread = CryptoYAML('/path/to/settings.yml.aes', keyfile=new_key)
>>> reread.data['foo']
>>> 123Command Line UsageHaving an encrypted settings file is neat, but sometimes you might want to take a look at it or manipulate it from the command line instead of programmatically.For thiscryptoyamlhas three commands for generating a key, creating a new file, reading it and setting individual settings:# cryptoyaml generate_key mysecret
Created new private key at /Users/senic/Development/senic.cryptoyaml/mysecret
# cryptoyaml create mysettings.yml.aes --keyfile mysecret
created new file at /Users/senic/Development/senic.cryptoyaml/mysettings.yml.aes
# cryptoyaml set mysettings.yml.aes foo bar --keyfile mysecret
foo -> bar
# cryptoyaml cat mysettings.yml.aes --keyfile mysecret
{'foo': 'bar'}Environment variablesA common practice is to provide the secret key via an environment variable.
Simply settingCRYPTOYAML_SECRETwill allow you to omit the key for both API usage and for the command line.Release InformationChangelogVersions followCalVerwith a strict backwards compatibility policy.
The third digit is only for regressions.0.2.0 (2017-02-27)Re-released ascryptoyaml(instead ofsenic.cryptoyaml) to make packing simpler and to tone down the branding.0.1.1 (2017-01-03)Cosmetic brown bag release…fix README markup.fix namespace declaration (to allow it to co-exist with othersenic.*packages).0.1.0 (2016-12-20)Initial release.
Package: cryptoyaml3
senic.cryptoyamlcryptoyamlis a python library to manage encrypted YAML files, its motivation was to provide an API for applications to read (and write) potentially sensitive configuration settings (i.e. passwords, personal user information) in encrypted form.Another motivation is that even in scenarios where the private key to access those settings is persisted alongside the settings themselves, the advantage would be that it becomes trivial to delete those settings securely: you now only need to destroy the key properly and not worry that you leave sensitive bits and bytes on the storage device.This package is simply a convenience wrapper tailored to that use case. The actual heavy lifting of parsing and writing YAML and encrypting and decrypting it is done by the excellent librariesPyYAMLandcryptographyrespectively.
Also, while they support both Python 2.x and 3.x this package only targets Python >= 3.5 (because it’s 2016).API UsageHere’s a simple example:>>> from cryptoyaml import generate_key, CryptoYAML
>>> new_key = generate_key('secret')
>>> config = CryptoYAML('/path/to/settings.yml.aes', keyfile=new_key)Initially you must generate a key (it uses theFernet symmetric encryptionfrom thecryptographylibrary) and use it to construct an CryptoYAML instance.That instance then provides adataattribute which is initally an empty dictionary that you can fill with arbitrary data, provided, thePyYAMLlibrary can encode it:>>> config.data['foo'] = 123Note, however, that the data is only persisted on the filesystem when you explicitly commit it to disk like so:>>> config.write()Once written, the file can be re-read as long as the original secret is still provided:>>> reread = CryptoYAML('/path/to/settings.yml.aes', keyfile=new_key)
>>> reread.data['foo']
>>> 123Command Line UsageHaving an encrypted settings file is neat, but sometimes you might want to take a look at it or manipulate it from the command line instead of programmatically.For thiscryptoyamlhas three commands for generating a key, creating a new file, reading it and setting individual settings:# cryptoyaml generate_key mysecret
Created new private key at /Users/senic/Development/senic.cryptoyaml/mysecret
# cryptoyaml create mysettings.yml.aes --keyfile mysecret
created new file at /Users/senic/Development/senic.cryptoyaml/mysettings.yml.aes
# cryptoyaml set mysettings.yml.aes foo bar --keyfile mysecret
foo -> bar
# cryptoyaml cat mysettings.yml.aes --keyfile mysecret
{'foo': 'bar'}Environment variablesA common practice is to provide the secret key via an environment variable.
Simply settingCRYPTOYAML_SECRETwill allow you to omit the key for both API usage and for the command line.Release InformationChangelogVersions followCalVerwith a strict backwards compatibility policy.
The third digit is only for regressions.0.2.0 (2017-02-27)Re-released ascryptoyaml(instead ofsenic.cryptoyaml) to make packing simpler and to tone down the branding.0.1.1 (2017-01-03)Cosmetic brown bag release…fix README markup.fix namespace declaration (to allow it to co-exist with othersenic.*packages).0.1.0 (2016-12-20)Initial release.
Package: cryptpickle
CryptPickleEncrypted python object serializationCryptPickle allows you to easily encrypt python objects into a file and decrypt, regardless of their content. It may be any python object, including for example a Pandas DataFrame.Installpip install cryptpickleExamplesUsage example 1 (Encrypt and Decrypt a dict with some sensible data):import cryptpickle

# Create a dictionary with some data
# It could be any other python object. ie: a Pandas Dataframe 
ej1 = { 'name1': 'John Doe',
        'name2': 'Lisa Doe'}

# Print the data
print(ej1)

# Serialice the data in an encrypted file with a password (file.crypt)
cryptpickle.obj_to_encrypted(ej1,password="SecretPassword",path='./file.crypt')

# Load the serialiced data in other python object. Password is needed to unencrypt the data
ej2 =cryptpickle.obj_from_encrypted(password="SecretPassword",path='./file.crypt')

# Print the data
print(ej2)Usage example 2 (Encrypt and Decrypt a Pandas DataFrame with some sensible data):import cryptpickle
import pandas as pd

# Create a dictionary with some data
df1 = pd.DataFrame({'A': [1, 2, 3],
                   'B': ['one', 'one', 'four']})

# Print the data
print(df1)

# Serialice the data in an encrypted file (path) with a password (password)
cryptpickle.obj_to_encrypted(df11,password="SecretPassword",path='./pd_data.crypt')

# Load the serialiced data in other Pandas DataFrame.
df2 =cryptpickle.obj_from_encrypted(password="SecretPassword",path='./pd_data.crypt')

# Print the data
print(df2)Install and try it (Linux)Clone this repository and enter in the directory:git clone https://github.com/privtools/CryptPickle.git
cd CryptPickleCreate a vitual environment:python3 -m venv .venvActivate the virtual environment:source .venv/bin/activateInstall the package:pip install -r requirements.txtRun sample1:python sample1.pyRun sample2:python sample2.py
Package: cryptpy
Dynamically programmable Python botnet (educational purposes only).InstallationCore Installation with PIP (botnet sources)pipinstallcryptpyBuilding the Node Source (GUI Implementation)Note: requires installation of cryptpyFirst,cd payload/vbucks.Build for MacOS:npm iyarn distBuild for Windows:npm inpm run distUsageStart a Server:cryptpy--server--terminalStart and Register a Bot:cryptpy