Saravanan666/pypi-org huggingface dataset:
Package: crx3
CRX3crx3is a python library for packaging and parsing crx files.Installationcrx3is available on PyPI:$python-mpipinstallcrx3crx3 officially supports Python 3.7+.FunctionsCreate a private key for signing the crx file.fromcrx3importcreatorcreator.create_private_key_file('output/example-extension.pem')Packaging a zip file or extension code directory to a crx file.fromcrx3importcreatorcreator.create_crx_file('example/example-extension','example/example-extension.pem','output/example-extension.crx')Verify if a file is a valid crx version 3 file.fromcrx3importverifierverifier_result,header_info=verifier.verify('example/example-extension.crx')assertverifier_result==verifier.VerifierResult.OK_FULLassertheader_info.crx_id=='jjomgndeajdmncfenopimafofpnflcfo'assertheader_info.public_key=='MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMI...FkbU7H8sDQIDAQAB'CommandsCreate a crx file.crx3 create [-pk PRIVATE_KEY_FILE] [-o OUTPUT_FILE] [-v] sourceusage: crx3 create [-h] [-pk PRIVATE_KEY_FILE] [-o OUTPUT_FILE] [-v] source

positional arguments:
  source                zip file or directory to be packed

options:
  -h, --help            show this help message and exit
  -pk PRIVATE_KEY_FILE, --private-key PRIVATE_KEY_FILE
                        private key file to be used for signing. If not specified, the program automatically creates a new one and saves it to the same directory as the crx file
  -o OUTPUT_FILE, --output OUTPUT_FILE
                        path to the output crx file
  -v, --verbose         print more informationVerify that a crx file is valid.crx3 verify [-v] crx_fileusage: crx3 verify [-h] [-v] crx_file
positional arguments:
  crx_file       crx file

options:
  -h, --help     show this help message and exit
  -v, --verbose  print more information
Package: crxcavatorpy
CrxcavatorpyA python package for working with the CRXCavator api as an imported package or as a command line utilityInstallationpip install crxcavatorpyCLI UsageGet a single report# Generic Use
python3 -m crxcavator report <extension_id> <extension_version>

# Example Use
python3 -m crxcavator report aapbdbdomjkkjkaonfhkkikfgjllcleb 2.0.13Example Output for a single extension reportreport-output.jsonGet all reports for an extension# Generic Use
python3 -m crxcavator reports <extension_id>

# Example Use
python3 -m crxcavator reports aapbdbdomjkkjkaonfhkkikfgjllclebExample Output for all reports for a single extensionall-reports-output.jsonSubmit an extension to be scanned# Generic Use
python3 -m crxcavator submit <extension_id>

# Example Use
python3 -m crxcavator submit aapbdbdomjkkjkaonfhkkikfgjllclebExample Output for extension scan submission{"code":801,"extensionID":"aapbdbdomjkkjkaonfhkkikfgjllcleb","message":"Extension successfully submitted","platform":"Chrome","version":"2.0.13"}
Package: crx-hslayers
HSLayers-NG map widget for Wagtail CodeRed CMSNote: Has npm dependency onHSLayers-NGthat gets automatically installed into static files.python manage.py collectstaticmust be executed for the module to correctly locate the HSLayers bundles.InstalationInstall this package from PyPi using folowing command:$ pip install crx-hslayersAdd 'hslayers' to the INSTALLED_APPS list in the settings/base.pyINSTALLED_APPS = [
    # This project
    'website',
    
    # CodeRed CMS
    'coderedcms',
    'bootstrap4',
    ...
    
    'crx_hslayers'
]Install HSLayers app package from npmcd ./static/hslayers
npm installUse crx_hslayers in any of your Wagtail models and migrate properlyCollect static files from crx-hslayers to your Wagtail site$ python3 manage.py collectstaticRestart WagtailNew HSLayers blocks are added to the CMSHSLayers mapClima mapDevelopmentUpdate semantic version of the packageRun test update without commiting$ bumpver update --patch(--minor|--major) --dryRun update and commit the changes to the repo$ bumpver update --patch(--minor|--major)
Package: crxmake
Python script for building google chrome extension crx package.
It is inspired by rubygems’ crxmake.Ubuntu Installationsudo apt-get install swig
sudo pip install crxmakeUsage# CLI
$ crxmake.py PACKAGE_BASE_DIR

# From python
>>> from crxmake import package
>>> package('examples/app', outfile='examples/release1')ExampleAn example extension named ‘app’ is provided in the examples/
directory for testing purposes:$ crxmake.py examples/app
$ ls examples/app
$ app app.crx app.pemRequirespython 2swigM2Crypto (available via pip, requires swig)“openssl” command: because current M2Crypto lacks func for rsa pubout DERLegacy DependenciesAppendix: m2crypto-0.20.2-enable-rsa-pubout.patch“svn diff” output for appending the feature for rsa pubout DER.Howto build m2crypto with it:svn cohttp://svn.osafoundation.org/m2crypto/tags/0.20.2m2crypto-0.20.2
cd m2crypto-0.20.2
patch -p0 < ../legacy/m2crypto-0.20.2-enable-rsa-pubout.patch
python setup.py build(I hope someone send it to M2Crypto maintainer ^^)Resources“M2Crypto”:http://chandlerproject.org/bin/view/Projects/MeTooCrypto“crxmake”:http://github.com/Constellation/crxmake“Packing Chrome extensions in Python”:http://grack.com/blog/2009/11/09/packing-chrome-extensions-in-python/
Package: crx-settings-override
Wagtail CRX (CodeRed) Settings OverrideOverrides of default Wagtail CRX settings, eg. navbars, footers, etc.Quick startInstall the package from PyPi:pip install crx-settings-overrideAdd "crx_settings_override" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
   ...,"crx_settings_override",]Add "crx_settings_override.context_processors.navbars" and "crx_settings_override.context_processors.footers" to your TEMPLATES settings like this::TEMPLATES = [
   {
      ...,
      "OPTIONS": {
            "context_processors": [
               ...,"crx_settings_override.context_processors.navbars","crx_settings_override.context_processors.footers"],
            "loaders": [...]
      },
   },
]To make translations work for navbars, override navbar template of CodeRed by creating /templates/coderedcms/snippets/navbar.html and change{% if settings.coderedcms.LayoutSettings.site_navbar %}
   {% get_navbars as navbars %}
      {% for navbar in navbars %}
      <ul class="navbar-nav {{navbar.custom_css_class}}" {% if navbar.custom_id %}id="{{navbar.custom_id}}" {% endif %}>
         {% for item in navbar.menu_items %}
            {% include_block item with liclass="nav-item" aclass="nav-link" ga_event_category="Navbar" %}
         {% endfor %}
      </ul>
   {% endfor %}
{% endif %}so it doesn't use site_navbar and get_navbars method (this is overriden by thecontext_processor), eg. simply erase those lines like this{% for navbar in navbars %}
   <div>
      <ul class="navbar-nav flex-wrap justify-content-around">
         {% for item in navbar.menu_items %}
           {% include_block item with liclass="nav-item fs-5" aclass="nav-link" ga_event_category="Navbar" %}
         {% endfor %}
      </ul>
   </div>
{% endfor %}Runpython manage.py migrateto create the models.Start the development server and visit the admin to:create localized navbars under Snippets > Translatable Navigation Barsset one of the localized navbar as a site navigation inCRX Settings Overrides.Navigation switches automatically based on current site localization.DevelopmentUpdate semantic version of the packageRun test update without commiting$ bumpver update --patch(--minor|--major) --dryRun update and commit the changes to the repo$ bumpver update --patch(--minor|--major)
Package: crx-unpack
This module contains several utilities for working with Google Chrome extension files (CRXs), which have the*.crxfile extension. The goal of this project is to mimic as closely as possible the functionality of Google Chrome when
these extensions are unpacked and installed.DocumentationPlease view the full documentation for this project onRead the Docs.InstallationSincecrx_unpackis available onPyPI, you can install it usingpip:$ pip install crx_unpackStructure of CRX Package FormatThe information in this section introduces the structure and contents of CRX files.As explained athttps://developer.chrome.com/extensions/crxPackage HeaderThe header contains the author’s public key and the extension’s signature. The signature is generated from the ZIP file
using SHA-1 with the author’s private key. The header requires a little-endian byte ordering with 4-byte alignment. The
following table describes the fields of the.crxheader in order:FieldTypeLengthValueDescriptionmagic numberchar[]32 bitsCr24Chrome requires this constant at the beginning of every.crxpackage.versionunsigned int32 bits2The version of the*.crxfile format used (currently 2).public key lengthunsigned int32 bitspubkey.lengthThe length of the RSA public key inbytes.signature lengthunsigned int32 bitssig.lengthThe length of the signature inbytes.public keybyte[]pubkey.lengthpubkey.contentsThe contents of the author’s RSA public key formatted as an X509 SubjectPublicKeyInfo block.signaturebyte[]sig.lengthsig.contentsThe signature of the ZIP content using the author’s private key. The signature is created using the RSA algorithm with the SHA-1 hash function.Extension ContentsThe extension’s ZIP file is appended to the*.crxpackage after the header. This should be the same ZIP file that
the signature in the header was generated from.
Package: cry
Cry: SageMath/Python Toolkit for Cryptanalytic ResearchThis repository contains a bunch of various crypto-related algorithms implemented in Python 3 and SageMath. Pure Python code is located in cry/py package and can be imported from python code. The other modules must be imported from the SageMath interpreter.The most significant part is formed by S-Box analysis algorithms, implemented in the cry.sbox2.SBox2 class, which is similar to from sage.crypto.SBox but is much more rich. Another cool S-Box library isSboxUby Léo Perrin. It contains some more advanced algorithms, highly recommended!WARNING:This library is not well-shaped yet and many things (including API and structure) may change in future. For now, I will try to keep compatability only for minor versions. That is, lock to the minor version if you use this package.NOTEBefore, this library was calledcryptools, but since this name is used on PyPI, I decided to switch tocry, which is shorter.Currently, there is no documentation but examples will be added soon.Installation# for SageMath$sagepipinstall-Ucry# for python3$pip3install-UcryPrevious python2 version (cryptools) can be found in the tagpy2-arhived.DevelopmentFor development or building this repository,poetryis needed.
Package: crybaby
crybaby🥲 Python exception handler that sends error messages to Slack. 🚨InstallationpipinstallcrybabyExampleimportcrybabydefunhandled_exception():raiseException("Unhandled exception")defhandled_exception():try:raiseException("Handled exception")exceptExceptionase:crybaby.catch(e)if__name__=="__main__":crybaby.setup(slack_token="xoxb-sample-slack-token",slack_channel_id="SLACKCHANNELID")handled_exception()unhandled_exception()Then
Package: crycompare
cryComparePython wrapper for CryptoCompare public API (https://www.cryptocompare.com/api)Following API requests are supported:CoinListPricePriceMultiPriceMultiFullPriceHistoricalgenerateAvgdayAvgCoinSnapshotCoinSnapshotFullByIdHistoMinuteHistoHourHistoDaytopPairssocialStatsminingEquipmentInstallationpip install crycompareUsagefrom crycompare import price as p
print(p.coin_snapshot('btc', 'usd'))price submodule: price, price_multi, price_multi_full, generate_avg, day_avg, price_historical, coin_snapshot, coin_snahpshot_id, top_pairs.
history submodule: histo_minute, histo_hour, histo_day.
social submodule: social_stats, mining_equipmentFor detailed documentation visit CryptoCompare API website.
CryptoCompare API Documentation can be found athttps://www.cryptocompare.com/api/#introduction
Package: cryex
# CryexClients for various cryptocurrency exchanges.[![Build Status](https://travis-ci.org/walkr/cryex.svg?branch=master)](https://travis-ci.org/walkr/cryex)### Exchanges supported:* Kraken* Poloniex### Features supported:* Get ticker* ... more to come ...### Usage:```pythonfrom cryex import Poloniex, Kraken# Publicclient = Poloniex()ticker_data = client.public.ticker('eth_btc')trades = client.public.trades('eth_btc')currencies = client.public.currencies()# Privateclient = Poloniex(key='your-key', secret='your-secret')bal = client.private.balances()bath_eth = client.private.balances('eth')client.private.buy('eth_btc', price, amount)print(ticker_data)``````{'low24h': 0.0110211,'last': 0.0121899,'exchange': 'poloniex','volume24h': 1350859.34589662,'high24h': 0.0140101,'pair': 'eth_btc'}```### FAQ:* Why are you using namedtuple objects for asks, bids and public trades?To save space.=======History=======0.1.0 (2016-1-22)------------------* First release on PyPI.0.1.2* Return ticker values as `Decimal`
Package: cryha
Cryha is a Python toolkit for securing information into a data base; it lets
hash passwords, and encrypt/decrypt personal information. It is ready for input
of Unicode characters, and the schema is returned as Unicode.The text is stored according to this schema for a hash:separator, the hash function identifier, separator, the salt, separator, the hash outputAnd this another for a cipher text:separator, the cipher identifier, separator, the mode identifier, separator, the IV parameter, separator, the ciphertextThe idea of the schema has been taken of Linux systems that store the hashed
passwords so, using a$as separator.The use of a schema let us to store the salt (for hash) and IV (for cipher)
–which must be unique for each field–, together to the parameters that has
been used to hashing/encrypting the text.The salt and IV parameters are obtained from a random string –using thePRNGof the operating system– into a domain of 256 possible values for greater
security.[PRNG]Pseudo random number generator. In Linux is/dev/urandom.UseTypical usage:>>> import cryhaHasher:>>> hasher = cryha.Hasher()
>>> hash = hasher.create('text')>>> hasher.valid('text', hash)
True
>>> hasher.valid('Text', hash)
FalseCrypter:>>> crypter = cryha.Crypter(root_keyfile='.', dir_keyfile='test_crypter')
>>> crypt = crypter.encrypt('text')>>> crypter.decrypt(crypt) == 'text'
True
Package: cryobf
cryobfDocumentationA python 3 unpacker for .bf files , proprietary format made by Cryo Interactive in the late 90's.DescriptionCreate an unpacker utility for this format as a pre step for SCUMMVM integration.UsageThis utility copy's a shell executable to your local bin folder, so you can call it directly.$ cryobf -h
usage: cryobf [-h] [-l] [-e] [-o OUTPUT_BASE_DIR] file

positional arguments:
  file                A .bf file or a directory with .bf files.

optional arguments:
  -h, --help          show this help message and exit
  -l                  A flag to list the contents of FILE.
  -e                  A flag to extract the contents of FILE.
  -o OUTPUT_BASE_DIR  The output base directory where to extract to, defaults
                      to current working directory.Listing contents$ cryobf -l Return\ to\ Mysterious\ Island/datas/cd1/loc_GE_cmn.bf 
{'BDi_01.ogg': {'offset': 32, 'rel_path': 'OGG/BDi_01.ogg', 'size': 60930},
 'BDi_02.ogg': {'offset': 60962, 'rel_path': 'OGG/BDi_02.ogg', 'size': 112499},
 'BDi_06.ogg': {'offset': 173461, 'rel_path': 'OGG/BDi_06.ogg', 'size': 57828},
 'BDi_07.ogg': {'offset': 231289, 'rel_path': 'OGG/BDi_07.ogg', 'size': 61101},
 'BDi_08.ogg': {'offset': 292390, 'rel_path': 'OGG/BDi_08.ogg', 'size': 24178},
 'BDi_09.ogg': {'offset': 316568, 'rel_path': 'OGG/BDi_09.ogg', 'size': 86662},
 'BDp_06.ogg': {'offset': 403230, 'rel_path': 'OGG/BDp_06.ogg', 'size': 83541},Extracting contents$ cryobf Return\ to\ Mysterious\ Island/datas/cd1/loc_GE_cmn.bf -e -o /tmp
Writing /tmp/OGG/BDi_01.ogg - Wrote 60930 bytes
Writing /tmp/OGG/BDi_02.ogg - Wrote 112499 bytes
Writing /tmp/OGG/BDi_06.ogg - Wrote 57828 bytes
Writing /tmp/OGG/BDi_07.ogg - Wrote 61101 bytes
Writing /tmp/OGG/BDi_08.ogg - Wrote 24178 bytesDeprecation of PyPi PackagesPackages on PyPi are no longer updated due to attempts of the Python Software Foundation to enforce new rules and basically flush out
developers who do not consent.Recent packages can be installed directly from git, i.e.pip install git+https://gitlab.com/menschel/cryobf.git --upgrade
Package: cryoCAT
cryoCATContextual Analysis Tools for cryoET and subtomogram averagingInstallEnvironmentOS independentRequires Python 3.5 or higherCurrent dependenciesTo take advantage of all the functions within the package following modules should be installed (in brackets tested versions):scipy (1.9.1)numpy (1.23.4)pandas (1.5.3)skimage (0.20.0)starfile (0.4.11)emfile (0.3.0)mrcfile (1.4.3)matplotlib (3.6.2)seaborn (0.12.1)sklearn (1.0.2)einops (0.6.0)lmfit (1.2.2)PIPClone the repository and run:pip install -e /path/to/your/local/copy/of/cryocat/.Note that the '-e' will install editable version of the package - this is important because you do not have to upgrade it every time something is changed. The only thing you have to do is to pull the repo to have the latest version, all changes will be visible without running pip install upgrade.
Package: cryocon-22c-controller
CryoCon 22C Temperature ControllerInstall withpython -m pip install cryocon-22c-controllerAPIA CryoconController is a SCPI instrument and uses theeasy-scpipackage for means of communication. Thus, all the methods and properties of aneasy_scpi.Instrumentcan be called.Channels can be referenced either by their given name or their letter.
All commands generate a response from the controller, so only queries are performed to keep command and response synched.MethodsCryoconController( port, timeout, baud, backend, **resource_params ):Creates a new CryoconController instance.max_temperatrue( loop ):Returns the maximum set point temperature of the given loop.channel_max_temperatrue( loop ):Returns the maximum set point temperature of the loop controlling the given channel.temperature( channel ):Returns the current temperature of the given channelget_channel_loop( channel ):Returns the loop controlled by the given channel.get_range( loop ):Gets the output range for the loop. Values are [ 'hi', 'mid', 'low' ].set_range( loop, range ):Sets the ouput range for the loop. Range values are [ 'hi', 'mid', 'low' ].get_ouput( loop ):Gets the power output of the loop as a fraction of the full range.set_point( channel ):Returns the set point of the given channel.set_temperature( channel, temperature ):Sets the set point of the controlling loop of the given channel.lock( lock ):Locks or unlocks the front key pad.enable():Engages the temperature controller.disable():Stops the tempreature controller.auto_adjust_range( low_threshold, high_threshold, channles ):Automatically adjusts the power range.Propertieschannels:A dictionary of aliases of the channels.channel_names:A dictionary of given name of the channels.loops:A dictionary of loop:input source pairs.max_temps:A dictionary of maximum set point temperatures for each loop.units:A dictionary of units for each channel.enabled:Returns whether the temperature controller is currently engaged.Example# import packageimportcryocon_22c_controllerascc# Create a controllercryo=cc.CryoconController(<port>)# Connect to the controllercryo.connect()# Check if controller is connected (inherited from easy_scpi.Instrument)cryo.is_connected# Get channel namescryo.channels# Read the current set point temperature of channel acryo.set_point('a')# Set the desired temperature set point on channel bcryo.set_temperature('b',100)# Enable controllercryo.enable()# Disable controllercryo.disable()
Package: cryoet-data-portal
CryoET Portal api clientThecryoet_data_portalpackage provides a python client to facilitate the use of the Cryo-Electron Tomography Portal. For more information about the API and the project visit thechanzuckerberg/cryoet-data-portal GitHub repo.For More HelpFor more help, please file a issue on the repo, or contact us atcryoetdataportal@chanzuckerberg.com.If you believe you have found a security issue, we would appreciate notification. Please send email tosecurity@chanzuckerberg.com.
Package: cryogen
cryogenhelps you preserve the ethereum dataset fresh, fast and smallinstallpipinstallcryogenfeaturesintelligently consolidates cryo-extracted datasets, cutting the number of chunks by 400-1000x.offers fast in-place conversion that reduces disk footprint by 2x and increases query performance.keeps the dataset fresh so you can always come back to up-to-date data.usagecryogen collect <dataset>collect or update a cryo dataset.cryogen uses 1000 block batches with zstd -3 compression. the gaps are filled automatically. the dataset can be up to 1000 blocks behind head beacuse the align option is used.# you can also specify data_dir using CRYO_DATA_DIR env varcryogencollectcontracts--data-dir~/cryo_data# collect a block range, same format as cryocryogencollecttraces--blocks17000000:cryogen consolidate <dataset>consolidate a dataset in-place.this command will merge parquets into larger files covering 1e4, 1e5, 1e6 blocks. smaller files are not touched until a larger contiguous block can be formed. the worst case for this algorithm is 17 + 9 + 9 + 9 = 44 files at block 17,999,000.starting from v0.2.0 cryogen also reduces the number of row groups. it creates a row group when an uncompressed size of a batch reaches 32 mb. this row group size provides optimal performance without imposing higher memory requirements that could lead to heavy swapping.cryogenconsolidatecontracts# test the feature without overwriting the datasetcryogenconsolidatecontraces--no-inplacenote that after consolidating with cryogen, you should use cryogen to update the dataset. cryo won't recognize larger chunks and would attempt to collect the already merged and deleted smaller chunks, outputting duplicate data in the dataset.cryogen watch <dataset>combinescollectandconsolidatecommand.keep it running and it will update the dataset periodically.# refresh every 4 hourscryogenwatchcontracts--interval14400cryogen info <dataset>collects info about a parquet dataset.cryogeninfocontracts# {'num_rows': 62466632, 'files': 38, 'row_groups': 17984, 'total_compressed_size': 7850356027, 'total_uncompressed_size': 29236070746, 'elapsed': 0.747}