Saravanan666/pypi-org huggingface dataset:
Package: pycrosskit
Python Cross Platform Toolkit for Windows and Linux variables, shortcuts and start menu shortcutsSimple Cross Platform creation of shortcuts and Persistent Environment VariablesInstallingInstall and update usingpip:pipinstallpycrosskit

or

pip3installpycrosskitSupported Platforms:LinuxWindowsShortcuts usage:frompycrosskit.shortcutsimportShortcut# Will Create shortcut# * at Desktop if desktop is True# * at Start Menu if start_menu is TrueShortcut(shortcut_name="My Spaghetti Shortcut",exec_path="/usr/bin/order_spaghetti",description="Such Yummy Spaghetti",icon_path="/home/.../spaghetti.png",desktop=True,start_menu=True)# Will Delete shortcut# * at Desktop if desktop is True# * at Start Menu if start_menu is TrueShortcut.delete(shortcut_name="My Spaghetti Shortcut",desktop=True,start_menu=True)Environment Variables usage:Accessing and write to environment variables is automatically handled based on your system Lin/Win SysEnv class is
implemented as a singleton metaclass so don't be afraid about multiple instancesSupport of Mac env variables on requestfrompycrosskit.envariablesimportSysEnv### ** Linux **# Will Set Persistent Value for Variable in Systems bashrc file or custom one that you can passSysEnv().set(key="spaghetti",value="boloneys",shell_file="~/.zsh")# Will Get Persistent Value for Variable in System# * reg_path works only for windows as register path# * registry works only for windows, if is False variable is obtained from User Environment VariablesSysEnv().get(key="spaghetti",shell_file="~/.zsh",shell="zsh")# Will unset variable from your environment or registrySysEnv().unset(key="spaghetti",shell_file="~/.zsh")# For not having to override argument shell_file or shell# This saves specs for every access, default arguments are ignoredSysEnv.save_shell_specs(shell="zsh",shell_file="~/.zsh")### ** Windows **# Will Set Persistent Value for Variable in System# * subkey works only for windows like file in folder# * reg_path works only for windows as register path (is ignored if registry=False)# * registry works only for windows, if is False variable is saved to User Environment VariablesSysEnv().set(key="spaghetti",value="bologna",subkey="italian_food",reg_path="HKEY-...\\CustomPath",registry=True)# Will Get Persistent Value for Variable in System# * reg_path works only for windows as register path# * registry works only for windows, if is False variable is obtained from User Environment VariablesSysEnv().get(key="spaghetti",reg_path="HKEY-...\\CustomPath",registry=True)# Will unset variable from your environment or registrySysEnv().unset(key="spaghetti",registry=True)DevelopClone the repository, then:# install dependencies and package in editable modepython-mpipinstall-U-rrequirements.txt# install development dependenciespython-mpipinstall-U-e.[dev]# install git hookspre-commitinstallDid I made your life less painfull ?Support my coffee addiction ;)
Package: pycrostates
PycrostatesAn open-source Python package for analyzing EEG microstates developed to work withMNE-python.DocumentationThe documentation including tutorials and example can be foundhere.InstallationInstallation instructions can be foundhere.CitingThe associated paper can be retrieved here:https://joss.theoj.org/papers/10.21105/joss.04564To cite specific version numbers of the software, you can use the DOIs provided
byZenodo.ContributingPycrostates welcomes contributions from anyone interested in improving this project. These contributions can take the form of bug reports/fixes, feature requests/additions, documentation revision and new tutorials.In all cases, it is recommended toopen a new issueon Github to discuss the best way to integrate a contribution.Check theContribution Guideif you want to make a changes to Pycrostates.Contributors ✨Thanks goes to these wonderful people (emoji key):Victor Férat⚠️💻📖🤔🚇🚧📆👀Mathieu Scheltienne💻📖🤔🚇🚧📆👀⚠️Lou🎨rkobler💻📖🤔⚠️Frederic-vW💻✅👀This project follows theall-contributorsspecification. Contributions of any kind welcome!Acknowledgment
Package: pycrsltd
This is the central library for the python interface to CRS Ltd hardware (Bits++,
ColorCal etc…).The library is very much under construction and should not be used yet except by
enthusiasts.It is being written mostly by Jon Peirce, with support from CRS Ltd. If you would
like to contribute please get in touch!Assuming you have python and setuptools installed already, you can install the package with the command:easy_install pycrsltd
Package: pycrud
pycrudA common crud framework for web.Features:Generate query by json or dslRole based permission systemEasy to integrate with web frameworkTestedExamples:DefinefromtypingimportOptionalfromplayhouse.db_urlimportconnectfrompycrud.crud.ext.peewee_crudimportPeeweeCrudfrompycrud.typesimportRecordMappingclassUser(RecordMapping):id:Optional[int]nickname:strusername:strpassword:str='password'db=connect("sqlite:///:memory:")c=PeeweeCrud(None,{User:'users'},db)Createfrompycrud.valuesimportValuesToWritev=ValuesToWrite({'nickname':'wwww','username':'u2'})lst=awaitc.insert_many(User,[v])print(lst)Readfrompycrud.queryimportQueryInfo# from dsllst=awaitc.get_list(QueryInfo.from_table_raw(User,where=[User.id!=1]))# from jsonlst=awaitc.get_list(QueryInfo.from_json(User,{'id.eq':1}))print([x.to_dict()forxinlst])Updatefrompycrud.queryimportQueryInfofrompycrud.valuesimportValuesToWritev=ValuesToWrite({'nickname':'bbb','username':'u2'})# from dsllst=awaitc.update(QueryInfo.from_table_raw(User,where=[User.id.in_([1,2,3])]))# from jsonlst=awaitc.update(QueryInfo.from_json(User,{'id.in':[1,2,3]}),v)print(lst)Deletefrompycrud.queryimportQueryInfolst=awaitc.delete(QueryInfo.from_json(User,{'id.in':[1,2,3]}))print(lst)Query by jsonfrompycrud.queryimportQueryInfo# $or: (id < 3) or (id > 5)QueryInfo.from_json(User,{'$or':{'id.lt':3,'id.gt':5}})# $and: 3 < id < 5QueryInfo.from_json(User,{'$and':{'id.gt':3,'id.lt':5}})# $not: not (3 < id < 5)QueryInfo.from_json(User,{'$not':{'id.gt':3,'id.lt':5}})# multiple same operator: (id == 3) or (id == 4) or (id == 5)QueryInfo.from_json(User,{'$or':{'id.eq':3,'id.eq.2':4,'id.eq.3':5,}})# multiple same operator: (3 < id < 5) or (10 < id < 15)QueryInfo.from_json(User,{'$or':{'$and':{'id.gt':3,'id.lt':5},'$and.2':{'id.gt':10,'id.lt':15}}})Query by DSL# $or: (id < 3) or (id > 5)(User.id<3)|(User.id>5)# $and: 3 < id < 5(User.id>3)&(User.id<5)# $not: not (3 < id < 5)~((User.id>3)&(User.id<5))# multiple same operator: (id == 3) or (id == 4) or (id == 5)(User.id!=3)|(User.id!=4)|(User.id!=5)# multiple same operator: (3 < id < 5) or (10 < id < 15)((User.id>3)&(User.id<5))|((User.id>10)&(User.id<15))OperatorstypeoperatortextcompareEQ('eq', '==')compareNE('ne', '!=')compareLT('lt', '<')compareLE('le', '<=')compareGE('ge', '>=')compareGT('gt', '>')relationIN('in',)relationNOT_IN('notin', 'not_in')relationIS('is',)relationIS_NOT('isnot', 'is_not')relationPREFIX('prefix',)relationCONTAINS('contains',)relationCONTAINS_ANY('contains_any',)logicAND('and',)logicOR('or',)// usage:
{
  'time.ge': 1,
  '$or': {
    'id.in': [1, 2, 3],
    '$and': {
      'time.ge': 100,
      'time.le': 500,
    }
  }
}
Package: pycruisemapper
pyCruiseMapperPython package for retrieving data on (cruise) ships from cruisemapper.comThis is a very basic implementation, and it might stay like this, but I still
wanted to share it in case anyone finds it useful. I can't promise that I will
keep this package updated or that it's going to work forever as is, though.I wanted to keep it simple, so this package has no dependencies outside the
standard library. Tested on Python 3.10.6 only, but should work on any >= 3.8.Basic UsagefrompycruisemapperimportCruiseMappercruisemapper=CruiseMapper()# First, retrieve basic data on all ships# Returns a list of Ship objectsall_ships=cruisemapper.get_ships()# Then, select the ship(s) you are interested in from that listmeinschiff1=list(filter(lambdax:x.imo==9783564))[0]# You may want to retrieve additional information of a ship's current status# Pass the Ship object into fill_ship and it will return an object with detailsmeinschiff1=cruisemapper.fill_ship(meinschiff1)# You can now access things like the current location or temperaturelocation=meinschiff1.location# .latitude/.longitudetemperature=meinschiff1.current_temperature# returned in °C# Check the class definitions in /classes/*.py to see all possible attributes
Package: pycrybittrex
How to install```pip3 install pycrybittrex```Usage example:```pythonfrom pycrybittrex import bittrex, ApiVersionclient = bittrex.create_client(ApiVersion.V1_1, api_key='<api_key>', api_secret='<api_secret>')order_history = client.get_order_history("ETH-XRP")```To setup development environment using conda:```bashconda create --name pycrybittrex --file requirements.txt```
Package: pycrypcli
PyCrypCliPythonCryptic GameClientInstall viapip$ sudo pip3 install pycrypcli
$ pycrypcli [<server>]Or clone fromGitHub$ git clone https://github.com/Defelo/PyCrypCli.git
$ cd PyCrypCli/
$ sudo pip3 install -r requirements.txt
$ python3.10 pycrypcli.py [<server>]Or pull theDocker Image$ sudo docker run -it --rm ghcr.io/defelo/pycrypcli
Package: pycrypt-cli
PyCryptPyCrypt is a Command-Line Interface (CLI) program, for encryption and decryption using various techniques. PyCrypt takes in an input file, then encrypts/decrypts and stores the result into the output file, provided by the user.Pycrypt commands:all: Returns a list of all available techniques for cryptioncategory: Returns a list of techniques under a category given by the userencrypt: Encrypts the content of theinputfile, stores them inoutputfiledecrypt: Decrypts the content of theinputfile, stores them inoutputfileEncryptcommandTheencryptcommand takes 4 parameters:-tor--technique: Technique to be used for encryption-ior--input_file: The file whose contents have to be encrypted-oor--output_file: The file in which the encrypted data has to be savedkor--key: Key that is used in the encrypting technique (if any)Examplepycryptencrypt--techniquecaesercipher--input_fileinput.txt--output_fileoutput.txt--key7DecryptcommandThedecryptcommand takes 4 parameters:-tor--technique: Technique to be used for decryption-ior--input_file: The file whose contents have to be decrypted-oor--output_file: The file in which the decrypted data has to be savedkor--key: Key that is used in the decrypting technique (if any)Examplepycryptdecrypt--techniquecaesercipher--input_fileinput.txt--output_fileoutput.txt--key7LicenseMIT License
Package: py-crypto
py-cryptoAboutpy-cryptois an open-source, cryptocurrency trading library for Python. This library is ideal for developers who wish to be able to interact with API endpoints of multiple cryptocurrency exchanges at once without wanting to write code specific to each. Simply specify which exchange you would like to interact with by name, along with your API credentials, as shown in the Example section below. Currently, the library offers API support for the following exchanges:BinanceandBittrex.InstallationThe source code is currently hosted on GitHub athttps://github.com/gokulk04/py-cryptoThe latest released version is also available for download via pip:pipinstallpy-cryptoExampleimportpycrypto.clientaspycBINANCE_API_KEY="MY_BINANCE_API_KEY"BINANCE_API_SECRET="MY_BINANCE_API_SECRET"binance=pyc.Client(pyc.Exchange.BINANCE,BINANCE_API_KEY,BINANCE_API_SECRET)binance.get_all_balances()DocumentationFor further details onpy-crypto's usage, please refer to itsdocumentation.LicenseThis project is licensed under the terms of the MIT license and can be viewedhere.
Package: pycryptobox
pyCryptoboxpyCryptoBox is a Python package that allows you to encrypt and decrypt files and folders using the Fernet symmetric encryption algorithm.InstallationUse the package managerpipto install foobar.pipinstallpycryptoboxUsageEncryptionTo encrypt a single file, use theencrypt_file()function:frompycryptoboximportencrypt_fileencrypt_file('/path/to/file')To encrypt all files in a directory, use theencrypt_dir()functionfrompycryptoboximportencrypt_files_in_directoryencrypt_files_in_directory('/path/to/directory')DecryptionTo decrypt a single file, use the decrypt_file() function:from pycryptobox import decrypt_file

file_path = "/path/to/file.txt.locked"
decrypt_file(file_path)To decrypt all files in a directory, use the decrypt_dir() function:from pycryptobox import decrypt_files_in_directory

dir_path = "/path/to/directory"
decrypt_files_in_directory(dir_path)ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Package: pycryptocore
PyCryptoCore is a self-contained Python package of low-level
cryptographic primitives.It supports Python 2.7, Python 3.5 and newer, and PyPy.You can install it with:pip install pycryptocoreAll modules are installed under theCryptoCorepackage.Check thepycryptocorexproject for the equivalent library that
works under theCryptoCorepackage.PyCryptoCore is a fork of PyCryptoCore. It brings several enhancements
with respect to the last official version of PyCryptoCore (2.6.1),
for instance:Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)Accelerated AES on Intel platforms via AES-NIFirst class support for PyPyElliptic curves cryptography (NIST P-256, P-384 and P-521 curves only)Better and more compact API (nonceandivattributes for ciphers,
automatic generation of random nonces and IVs, simplified CTR cipher mode,
and more)SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithmsSalsa20 and ChaCha20 stream ciphersscrypt and HKDFDeterministic (EC)DSAPassword-protected PKCS#8 key containersShamir’s Secret Sharing schemeRandom numbers get sourced directly from the OS (and not from a CSPRNG in userspace)Simplified install process, including better support for WindowsCleaner RSA and DSA key generation (largely based on FIPS 186-4)Major clean ups and simplification of the code basePyCryptoCore is not a wrapper to a separate C library likeOpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.For more information, see thehomepage.All the code can be downloaded fromGitHub.
Package: pycryptodome
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.It supports Python 2.7, Python 3.5 and newer, and PyPy.You can install it with:pip install pycryptodomeAll modules are installed under theCryptopackage.Check thepycryptodomexproject for the equivalent library that
works under theCryptodomepackage.PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)Accelerated AES on Intel platforms via AES-NIFirst class support for PyPyElliptic curves cryptography (NIST P-curves; Ed25519, Ed448)Better and more compact API (nonceandivattributes for ciphers,
automatic generation of random nonces and IVs, simplified CTR cipher mode,
and more)SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithmsSalsa20 and ChaCha20 stream ciphersscrypt and HKDFDeterministic (EC)DSA and EdDSAPassword-protected PKCS#8 key containersShamir’s Secret Sharing schemeRandom numbers get sourced directly from the OS (and not from a CSPRNG in userspace)Simplified install process, including better support for WindowsCleaner RSA and DSA key generation (largely based on FIPS 186-4)Major clean ups and simplification of the code basePyCryptodome is not a wrapper to a separate C library likeOpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.For more information, see thehomepage.All the code can be downloaded fromGitHub.
Package: pycryptodomex
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.It supports Python 2.7, Python 3.5 and newer, and PyPy.You can install it with:pip install pycryptodomexAll modules are installed under theCryptodomepackage.Check thepycryptodomeproject for the equivalent library that
works under theCryptopackage.PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)Accelerated AES on Intel platforms via AES-NIFirst class support for PyPyElliptic curves cryptography (NIST P-curves; Ed25519, Ed448)Better and more compact API (nonceandivattributes for ciphers,
automatic generation of random nonces and IVs, simplified CTR cipher mode,
and more)SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithmsSalsa20 and ChaCha20 stream ciphersscrypt and HKDFDeterministic (EC)DSA and EdDSAPassword-protected PKCS#8 key containersShamir’s Secret Sharing schemeRandom numbers get sourced directly from the OS (and not from a CSPRNG in userspace)Simplified install process, including better support for WindowsCleaner RSA and DSA key generation (largely based on FIPS 186-4)Major clean ups and simplification of the code basePyCryptodome is not a wrapper to a separate C library likeOpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.For more information, see thehomepage.All the code can be downloaded fromGitHub.
Package: pycryptofile
pyCryptoFilepyCryptoFile contains some functions to encrypt/decrypt using ssh keys.The source for this project is available here.pyCryptoFile module can be called in command line : python3 pyCryptoFile.py -husage: pyCryptoFile.py [-h] [-V] [-f FILE] [-m {encrypt,decrypt}] [-k KEYFILE]
[-o OUTPUTFILE]pyCryptoFile is a python3 program that encrypts, decrypts using ssh key encryptionoptional arguments:
-h, --help show this help message and exit
-V, --version Display the version of pyCryptoFile
-f FILE, --file FILE file to encrypt/decrypt
-m {encrypt,decrypt}, --mode {encrypt,decrypt}
encrypt/decrypt mode
-k KEYFILE, --keyfile KEYFILE
public key file if encrypt mode or private key file if decrypt
mode
-o OUTPUTFILE, --outputfile OUTPUTFILE
outputfile by default it will be the file with .enc or .dec
extensionexample to encrypt a file content and put in another file :python3 pyCryptoFile.py -f mytext2.txt -k ~/.ssh/id_rsa.pubit generates by default the same file with .enc extension like mytext2.txt.enc.
You can use -o option to generate specific output filepython3 pyCryptoFile.py -f mytext2.txt -k ~/.ssh/id_rsa.pub -o myoutput.txtexample to decrypt a file content and put in another file :python3 pyCryptoFile.py -f mytextcrypted.txt -k ~/.ssh/id_rsa -m decryptBy default it generates the same file with .dec extension like mytextcrypted.txt.dec. You can specify a specific output file with -o optionpython3 pyCryptoFile.py -f mytextcrypted.txt -k ~/.ssh/id_rsa -m decrypt -o myoutput.txtrelease notes1.0.7 fix on pyCryptoFile function wrong tab before return encoded and also fixing the bytes to crypt and encrypt to 128 and 344.1.0.8 adding new option to have an output file and tested with gifs and pdfs and now it works better.
Package: py-crypto-hd-wallet
PY Crypto HD WalletIntroductionThis package contains a very basic implementation of a HD (Hierarchical Deterministic) wallet based on mybip_utilslibrary.It is basically a nice wrapper for thebip_utilslibrary for generating mnemonics, seeds, public/private keys and addresses.
Therefore, it has no network functionalities.The supported coins are the same of thebip_utilslibrary, so check the related page.Install the packageThe package requires Python 3, it is not compatible with Python 2.
To install it:Usingpip, from this directory (local):pip install .Usingpip, from PyPI:pip install py_crypto_hd_walletNOTE:if you are using an Apple M1, please make sure to updatecoincurve(required bybip_utils) to version 17.0.0 otherwise it won't work.Test and CoverageInstall develop dependencies:pip install -r requirements-dev.txtTo run tests:python -m unittest discoverTo run tests with coverage:coverage run -m unittest discover
coverage reportTo run code analysis, just execute theanalyze_codescript.Modules descriptionBIP walletAlgorand walletCardano Shelley walletElectrum V1 walletElectrum V2 walletMonero walletSubstrate walletExamples of wallet JSON outputsBIP walletAlgorand walletCardano Shelley walletElectrum V1 walletElectrum V2 walletMonero walletSubstrate walletDocumentationThe library documentation is available atpy-crypto-hd-wallet.readthedocs.io.Buy me a coffeeYou know, I'm italian and I love drinking coffee (especially while coding :D). So, if you'd like to buy me one:BTC:bc1qq4r9cglwzd6f2hzxvdkucmdejvr9h8me5hy0k8ERC20/BEP20:0xf84e4898E5E10bf1fBe9ffA3EEC845e82e364b5BThank you very much for your support.LicenseThis software is available under the MIT license.
Package: pycryptokms
Py-CryptoSimple Cryptographic Library With Key Management Server IntegrationQuick StartThe easiest way to install PyCrypto is with pip:# in bash
pip install pycryptokmsPython example:# in python
from py_crypto.kms import StepKMSProvider
from py_crypto.crypto import AESCBCCipher

step_kms = StepKMSProvider(kms_base_url='https://localhost', kms_username='kms', kms_password='kms')

aes = AESCBCCipher(kms_provider=step_kms)

cipher_text = aes.encrypt(clear_text='254727128043', key_identifier='dummy-key')

print(f'Cipher Text: {cipher_text} -> Expected Cipher Text: \'Tywy7Y272MmuDlrewpOV9A==\'')History0.1.1 (2023-04-30)First release on PyCrypto.
Package: pyCryptoMS
**pyCryptoMS is a library for CADBIOM software.It uses [CryptoMiniSat](http://www.msoos.org/cryptominisat2/), an MIT-licensed SAT solver.CADBIOM is an open source modelling software. Based on Guarded transition semantic,it gives a formal framework to help the modelling of biological systems such as cellsignaling network.**Snapshots of CADBIOM graphical interface and model represenation are presented in[Screenshots section](http://cadbiom.genouest.org/cw_screenshots.html).To get more informations about CADBIOM utilization, go to[Support section](http://cadbiom.genouest.org/cw_support.html).Finally, to know more about the project and people in charge,[About section](http://cadbiom.genouest.org/cw_about.html) will help you.
Package: pyCryptomusAPI
pyCryptomusAPIPython implementation ofCryptomuspublicAPIThis library is developing for my personal needs, so it may not fully implement API. However I will continue to maintain it, so if you need some not implemented methods - just open an issue.InstallationInstallation using pip (a Python package manager):$ pip install pyCryptomusAPIUsageEverything is as simple as theAPIitself.Create pyCryptomusAPI instanceAccess API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())Most methods return result as correspondent class, so you can access data as fieldsfrom pyCryptomusAPI import pyCryptomusAPI
client = pyCryptomusAPI(
    "xxxx-xxxx-xxxx-xxxx-xxxx",  # Merchand UUID
    payment_api_key="xxxxxxx",   # Payment API key (for payment methods)
    payout_api_key="xxxxxxx")    # Payout API key (for payout methods)
balance = client.balance()
for item in balance.merchant:
    print("Merchant balance: {} {}".format(item.balance, item.currency_code))You can also check tests.py.ExceptionsExceptions are rised using pyCryptomusAPIException class.
Package: pycrypton
Affine & Block Cypher Implementations With PythonFrom PipYou can install pycrypton from pip$pipinstallpycryptonFrom SourceYou need Python 3.7+ to use CryptonInstall Dependencies$pipinstall.Install Dev Dependencies (for running tests)$pipinstall-rrequirements_dev.txtRun Tests$pytestAuthorsBatuhan InanAtilla Basaran