Saravanan666/pypi-org huggingface dataset:
Package: crc-calculator
Usage with InstallationInstallcrc-calculatorusing pip.$pipinstallcrc-calculatorRuncrccommand with arguments.$crc-husage:crc-p[POLYNOMIAL]-d[DATA]$crc--polynomial100101--data101101001checksum:00010validation:00000Usage of Windows ExecutableDownloadcrc-calculator-{version}-windows.zipfrom the release.Unzip file and run the powershell on that path.Run.\crccommand with arguments$.\crc-husage:crc-p[POLYNOMIAL]-d[DATA]$.\crc--polynomial100101--data101101001checksum:00010validation:00000
Package: crc-ct
crc-ctC and Python (ctypes/cffi-based) CRC calculations module.OverviewTBD…PyPI record.Documentation.UsageTBD…InstallationPrerequisites:Python 3.8 or higherhttps://www.python.org/pip and setuptoolshttps://pypi.org/project/pip/https://pypi.org/project/setuptools/To install run:python -m pip install --upgrade crc-ctDevelopmentPrerequisites:Development is strictly based ontox. To install it run:python -m pip install --upgrade toxVisitDevelopment page.Installation from sources:clone the sources:git clonehttps://github.com/karpierz/crc-ct.gitcrc-ctand run:python -m pip install ./crc-ctor on development mode:python -m pip install --editable ./crc-ctLicenseCopyright (c) 1994-2024 Adam KarpierzLicensed under the zlib/libpng Licensehttps://opensource.org/license/zlibPlease refer to the accompanying LICENSE file.AuthorsAdam Karpierz <adam@karpierz.net>Changelog1.2.3 (2024-01-26)Cleanup.1.2.1 (2024-01-22)Tox configuration has been moved to pyproject.tomlSetup update (now based on tox >= 4.0).Add support for Python 3.12Drop support for Python 3.7Add support for PyPy 3.9 and 3.10Copyright year update.1.2.0 (2022-08-02)Add support for Python 3.10 and 3.11Add support for PyPy 3.7, 3.8 and 3.9Setup update (currently based mainly on pyproject.toml).1.1.0 (2022-01-10)Drop support for Python 3.6.Copyright year update.Setup update.1.1.0rc4 (2021-07-20)Setup general update and improvement.1.1.0rc3 (2020-10-18)Add support for Python 3.9.Drop support for Python 3.5.General update and cleanup.Fixed docs setup.1.0.0rc9 (2020-01-16)Fix for missing include stddef.h (for size_t) in crc.hAnother fixes for gcc/Linux.Added ReadTheDocs config file.Setup update.1.0.0rc6 (2019-11-13)Drop support for Python2.Add support for Python 3.8.Setup update and cleanup.1.0.0rc2 (2019-05-19)C API has been changed in one place: crc_finalize() -> crc_final().Python API has been changed. It is now finally established in the
folowing way; crc.name instead of crc.crc_name in most of cases.Python doc-strings update.Fix for error in Python definition of crc.predefined_models.Python tests have been improved, enhanced and fixed.Changes and fixes for support of Python2.Minor setup improvement.1.0.0b2 (2019-05-13)Python tests have been added.Minor setup improvements.1.0.0b1 (2019-05-12)Firt beta release.0.0.1 (2017-05-09)Initial release for Python.
Package: crcelk
CrcElk is an updated fork of theCrcMoosemodule for recent versions of Python. It provides a pure Python implementation
of the CRC algorithm and allows for variants to easily be defined by providing
their parameters such as width, starting polynomial, etc. Python versions 2.6+
and 3.1+ are supported.Usage Example>>>importcrcelk>>>importstruct>>>crc=crcelk.CRC_CCITT.calc_bytes(b'Hello World')>>>print("{0}(0x{0:04x})".format(crc))19749(0x4d25)LicenseCrcElk is released under the same MIT license as the original CrcMoose
source. Details are available in thefile
header.
Package: crc-event-schemas
console.redhat.com CloudEvents for PythonThis repo contains Python bindings of the JSON schema definitions for events
generated by console.redhat.comGetting startedcrc-event-schemasis available onPyPi.
You can install usingpip.$pipinstallcrc-event-schemasLayoutapi: Defines a submodule with the current version of console.redhat.com
CloudEvents.examples: Contains examples on how to use this library.event_schemas: Python bindings for console.redhat.com cloud events.Generating codeThegenerate.jsscript generates the Python code.This script is executed on any push to our main branch, ensuring it never goes out
of sync.Releasing a new versionThe release process works withrelease-please-action.
You can head to theirdocumentationto learn more about it, but in a nutshell:UsesConventional CommitsCreates a PR when there is something to be released (patch, minor or major).
Once that PR is merged, a new release occurs.The release is published toPyPi.DocsDocs are automatically generated and hosted on GitHub pages:https://redhatinsights.github.io/event-schemas-python/.
Package: crcf
Combination Robust Cut ForestsIsolation Forests[Liu+2008]and Robust Random Cut Trees[Guha+2016]are very similar in many ways,
as outlined in thesupporting overview. Most notably, they are extremes
of the same outlier scoring function:$$\theta \textrm{Depth} + (1 - \theta) \textrm{[Co]Disp}$$The combination robust cut forest allows you to combine both scores by using an theta other than 0 or 1.InstallYou can install with throughpip install crcf. Alternatively, you can download the repository and runpython3 setup.py installorpip3 install .Please note that this package uses features from Python 3.7+
and is not compatible with earlier Python versions.Taskscomplete basic implementationprovide clear documentation and usage instructionsensure interface allows for fitting and scoring on multiple points at the same timeimplement a better saving method than picklinguse random tests with hypothesisimplement tree down in cythonaccelerate forests with multi-threadingincorporate categorical variable support, including categorical rulescomplete the write-up document with a benchmarking of performanceReferences[Liu+2008]:Liu, Fei Tony, Kai Ming Ting, and Zhi-Hua Zhou.
"Isolation forest." In 2008 Eighth IEEE International Conference on Data Mining,
pp. 413-422. IEEE, 2008.[Guha+2016]:Guha, Sudipto, Nina Mishra, Gourav Roy, and Okke Schrijvers.
"Robust random cut forest based anomaly detection on streams."
In International conference on machine learning, pp. 2712-2721. 2016.
Package: crcFinder
CrcFinderA tool to find well known crc params that matches the input data and crc result (right or wrong)InstallpipinstallcrcFinderUsageAs Libraryfindzlib.crc32fromcrcFinderimportCrcFinderimportzlibdata=[]data.append((b"123456789",zlib.crc32(b'123456789')))data.append((b"123456789xxxx",zlib.crc32(b'123456789xxxx')))f=CrcFinder()r=f.findCrc(data)print([str(i)foriinr])find something elsefromcrcFinderimportCrcFinderdata=[]data.append((b"123456789\x09",b'\x11\x60\x7a\x37'))data.append((b"1234567890\x0a",b'\xb3\x95\xcb\x46'))f=CrcFinder()r=f.findCrc(data)print(r[0])use CrcCalculator directlyfromcrcFinderimportCrcCalculator,ShiftTypecrc_pkzip=CrcCalculator(32,0x04c11db7,0xffffffff,True,True,0xffffffff,ShiftType.LEFT,ShiftType.LEFT)assert(crc_pkzip.check()==0xcbf43926)clipython3-mcrcFinder-d616263646566,4b8e39ef
python3-mcrcFinder-d616263646566,0x4b8e39ef313233343536373839,0xcbf43926Referencehttps://reveng.sourceforge.io/crc-catalogue/all.htmhttps://github.com/Michaelangel007/crc32
Package: crcgen
CRC algorithm HDL code generator (VHDL, Verilog, MyHDL)HomepageGit repositoryGithub repositoryThis tool generates VHDL, Verilog or MyHDL code for use in FPGAs to calculate CRC (Cyclic Redundancy Check) checksums.The generated HDL code is synthesizable and combinatorial. That means the calculation runs in one clock cycle on an FPGA.Any combination of CRC algorithm parameters and polynomial coefficients can be selected.Example usageDisplay all options:crcgen-hGenerate Verilog code for CRC-32:crcgen-aCRC-32-vGenerate VHDL code for CRC-32:crcgen-aCRC-32-VGenerate Verilog code for a custom non-standard CRC or any standard algorithm that’s not included in crcgen’s -a list:crcgen-P"x^8 + x^7 + x^5 + x^4 + x^2 + x + 1"-B16-R-vOnline crcgenAn easy to use online version of crcgen that can be used without installing or downloading anything to your machine is available here:Online crcgenLicense of the generated HDL codeThe generated code is Public Domain.Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.License of the generatorCopyright (c) 2019-2023 Michael Büsch <m@bues.ch>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: crc-jupyter-auth
CRC JupyterHub AuthenticatorThecrc_jupyter_authpackage is a Jupyter authentication plugin for redirecting users based on their account status and VPN role.
The utility is based on thejhub_remote_user_authenticatorpackage originally created for more general applications.
The CRC version builds on the original utility by providing significantly improved test coverage and a refined set of configuration options.How It WorksThe authentication plugin checks incoming authentication requests and routes users based on the associated header values.
The name of the inspected headers and the routing destination are configurable via the standard Jupyter config file.Installation and SetupThecrc_jupyter_authpackage can be installable via thepippackage manager.pipinstallcrc-jupyter-authAfter installing the package, you will need to update theauthenticator_classoption in your Jupyter configuration file.
To enable basic authentication capabilities and request routing, specify theRemoteUserAuthenticatorclass:c.JupyterHub.authenticator_class="crc_jupyter_auth.RemoteUserAuthenticator"To enable the same functionality plus local account management, useRemoteUserLocalAuthenticator:c.JupyterHub.authenticator_class="crc_jupyter_auth.RemoteUserLocalAuthenticator"TheRemoteUserLocalAuthenticatorclass provides the same authentication functionality
asRemoteUserAuthenticatorbut is derived from Jupyter's built-inLocalAuthenticatorclass.
This provides extra features such as the ability to add local accounts through the admin interface.Package ConfigurationThe authenticator works by fetching the authenticated username from the HTTP headerCn.
If found, and not blank, the client will be logged in as that user.
Otherwise, the user is redirected.The HTTP header names and failure redirects are configurable via the Jupyter settings file.
Setting names and default values are provided in the table below:Setting NameDefaultDescriptionusername_header"Cn"HTTP header name to inspect for the authenticated username         -vpn_header"isMemberOf"HTTP header name to inspect for the user VPN role(s).required_vpn_role""Required VPN role for accessing the service. Ignored if an empty string.missing_role_redirect""Redirect URL if the user is missing the required VPN header. Defaults to 404 if empty string.To modify a settings value, use thec.Authenticatorobject in the configuration file.
For example:c.Authenticator.missing_role_redirect="https://my.redirect.domain"If your system assigns multiple VPN roles to users and more than a single role is reported by the headervpn_header, the VPN roles should be provided in the header as a semicolon-delimited list
(e.g.,role1;role2).Architecture and Security RecommendationsThis authenticator relies on HTTP headers that can be spoofed by a malicious client.
To protect against this, an authenticating proxy should be placed in front
of Jupyterhub. The JupyterHub daemon shouldonlybe accessible from the proxy
andneverdirectly accessible by a client.The authenticating proxy should remove any HTTP headers from incoming
requests and only apply headers to proxied requests that have been properly authenticated.
Package: crcmodbus
crc16介绍查表法实现crc16算法.参数模型是CRC-16/MODBUS 多项式是8005。API"""计算校验和.参数模型是CRC-16/MODBUS 多项式是8005,返回值是高字节在前的16位校验值"""defchecksum(data:bytearray)->int示例class_UnitTest(unittest.TestCase):deftest_case1(self):data=bytearray([1,2,3,4,5,6,7,8,9])self.assertEqual(crcmodbus.checksum(data),0x0eb2)deftest_case2(self):data=bytearray([3,1,4])self.assertEqual(crcmodbus.checksum(data),0x8193)deftest_case3(self):data=bytearray([0x19,0x89,0x56])self.assertEqual(crcmodbus.checksum(data),0x47a9)if__name__=='__main__':suite=unittest.TestSuite()suite.addTest(_UnitTest('test_case1'))suite.addTest(_UnitTest('test_case2'))suite.addTest(_UnitTest('test_case3'))runner=unittest.TextTestRunner()runner.run(suite)
Package: crcnsget
crcnsgetCommand-line interface for downloading data from crcns.orgFree software: BSD licenseDocumentation:https://crcnsget.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-01)First release on PyPI.
Package: crc-shinigami
ShinigamiShinigami is a stand alone Python application for killing errant processes on Slurm based compute nodes.
The application scans for and terminates any running processes not associated with a currently running Slurm job.
Processes associated with whitelisted users (root, administrators, service accounts, etc.) are ignored.Installation and SetupTheshinigamicommand line utility is installable via the pip (or pipx) package manager:pipxinstallshinigamiTo be of maximal use, it is recommended to run the utility every half hour.
However, you may find a different cadence more appropriate depending on your cluster size and use case.
Running the utility automatically is accomplished via a simple cron job:0,30 * * * * shinigamiYou may wish to configure the cron job to run under a dedicated service account.
When doing so, ensure the user is added to the admin list and satisfies the following criteria:Exists on all compute nodesHas appropriate permissions to terminate system processes on compute nodesHas established SSH keys for connecting to compute nodes
Package: crcsolver
ExampleSupply the known data, unknown bits, target checksum, and crc function:>>> crcsolver.solve(b'MONK__', range(32,48), 0x401a68b6, binascii.crc32)
b'MONKEY'Example>>> crcsolver.solve(b'M_NK_Y', [8,9,10,11,12,13,14,15,16,32,33,34,35,36,37,38,39], 0x401a68b6, binascii.crc32)
b'MONKEY'ExampleYou may supply an arbitrary CRC function or thenameof a CRC algorithm:>>> crcsolver.solve(b'__NKEY', range(16), 0x401a68b6, 'CRC-32/ISO-HDLC')
b'MONKEY'The full list of available named CRC's is found incrc_catalog.py.ExampleThis package also can compute checksums:>>> hex(crcsolver.compute(b'MONKEY', 'CRC-3/GSM'))
'0x5'
>>> hex(crcsolver.compute(b'MONKEY', 'CRC-32/ISO-HDLC'))
'0x401a68b6'
>>> hex(crcsolver.compute(b'MONKEY', 'CRC-32/MPEG-2'))
'0xe643d817'
>>> hex(crcsolver.compute(b'MONKEY', 'CRC-64/ECMA-182'))
'0x2cf08634f65960ae'
>>> hex(crcsolver.compute(b'MONKEY', 'CRC-82/DARC'))
'0x240a7856c67f10a2c0f7f'The full list of available named CRC's is found incrc_catalog.py.ExampleYou may supply a dictionary of generalized CRC parameters to compute a CRC:>>> hex(crcsolver.compute(b'MONKEY', {'width':32, 'poly':0x04c11db7, 'init':0xffffffff, 'refin':True, 'refout':True, 'xorout':0xffffffff}))
'0x401a68b6'Prior Arthttp://reveng.sourceforge.netCRC RevEng: arbitrary-precision CRC calculator and algorithm finderhttps://github.com/resilar/crchackReversing CRC for fun and profit
Package: crctools-DavidRodriguezSoaresCUI
crctools- A simple tool to check file integrity using CRC32 hash in filenameHaving the hash of files in their name makes it so much easier to:keep track of their integritydeduplicate filesprobably moreThis is intended to be a simple to use command-line utility to:add CRC32 hash into filename in a widely recognised format (suffix with 8 hex uppercase characters in square brackets)verify integrity of files based on hash in file nameupdate hash in nameRequirementsThis project was developed for Python 3.10 and may not work on lower versions.InstallationFrom a terminal execute:python-mpipinstallcrctools-DavidRodriguezSoaresCUIOn some systems it may be necessary to specify python version aspython3Usage$>python-mcrctools--help
usage:__main__.py[-h][--skip_verify][--overwrite][--recursive][--extensions[EXTENSIONS...]][--min_sizeMIN_SIZE][--write_report][--skip_frozen_dirs][--frozen_dirs[FROZEN_DIRS...]][--frozen_dir_file_ext[FROZEN_DIR_FILE_EXT...]][--debug]PATH

positionalarguments:PATHCanbefilepathordirectory(allfilesindirectorywillbeprocessed)options:-h,--helpshowthishelpmessageandexit--skip_verifySkipverification;onlyprocessfileswithnohashinfilename(usefultoresumeinterruptedexecution)--overwriteOverwriteCRCinfilenamewhenverificationfails--recursive(OnlywithPATHadirectory)Enablesrecursivesearchforfilestoverify--extensions[EXTENSIONS...]Restrictfilestoprocesswithextensionwhitelist(default:norestriction;youmaylistextensionswithleadingdotseparator)--min_sizeMIN_SIZERestrictfilestoonesofatleast<min_size>bytes;acceptsvalueslike'-4.4k','99G'or'0.5M'(caseinsensitive);default:0)--write_reportWritesJSONfilewithlistoffilesprocessedbycategory:COMPUTED,VERIFIED,ERROR--skip_frozen_dirsSkipfrozendirs(see--frozen_dirs)--frozen_dirs[FROZEN_DIRS...]Nameofdirectoriesthatshouldbetreatedasread-only(sonofilerenaming);default:VIDEO_TSBDMV--frozen_dir_file_ext[FROZEN_DIR_FILE_EXT...]Listoffileextensionstypicallyassociatedwithfrozendirectories(usedforwarning);default:IFOBUPVOBM2TSBDMVMPLSCLPIExample: Check large (>10MB) video files in directoryD:\Videos(and subdirectories) :python -m crctools "D:\Vidéos" --recursive --extensions mkv mp4 --min_size 10MNote: these are all equivalent:--extensions mkv mp4--extensions .mkv .mp4--extensions MKV MP4--extensions .MKV .MP4I typically use:python -m crctools . --recursive --extension 7Z AAC AC3 APK AVI FLAC FLV ISO M2TS M4A M4V MKV MOV MP4 MPEG MPG NDS PDF RAR RMVB TS WAV WBFS WEBM WMV ZIP --min_size 20M --write_reportConcept offrozen directoriesSome directories, like DVD/BD disk backups, have a known directory structure and shouldn't be changed by adding hash into file names. Instead, all files inside are hashed, their hashes collected into a file outside the directory, and that file hashed to give a "composite" hash that represents the whole directory.
Package: crdb
This is Python frontend to the CRDB, a database with published data from cosmic ray measurements. The official website of the CRDB with online-viewer and documentation on the database ishttps://lpsc.in2p3.fr/crdb. The frontend also installs a command-line interface calledcrdbto conveniently download data.The Python frontend internally uses the REST API of CRDB to download data from the database. A tutorial on using the REST API directly can be found at theCRDB tutorial repository. The repository alsocontains example code on how to make standard plotsusing thecrdbPython frontend.Installationpip install crdbDocumentationThe official website of the CRDB has documentation on the database, seehttps://lpsc.in2p3.fr/crdb. To obtain documentation for thecrdbPython package, just usehelp(crdb)in the Python interpreter. The command-line frontend comes with built-in help, just run:crdb --help
Package: crdesc
crdesccrdescis a python package that produces a textual description from acrmodeloutput.This tool was developed and tested under Ubuntu 20.04.DependenciesThis tool depends on crmodel andpyrealb. You can install everything with pip:pip3install-rrequirements.txtHow to useYou can obtain a description of an intersection this way:./main-cxy[-ooutputformat]Withxandythe coordinates of the targeted intersection. Description will be outputed on stdout. You can also output the json and geojson of crmodel that will be completed with the description of each object.
Package: crdf-serializer
Custom RDF Serializer Package - CRDF1. RequirementsThis module requires the rdflib package installation:$ pip install rdflib2. How to InstallFor install this package execute the command in your environment:$ pip install crdf-serializeror:$ pip install -ihttps://test.pypi.org/simple/crdf-serializer3. How to useclassPerson:nick=FOAF.nickname=FOAF.nameemail=FOAF.mbox@ObjectDecorator(FOAF.Person,None)# blank node@BindDecorator("dc",DC)@BindDecorator("foaf",FOAF)def__init__(self,name,nick,email):self.nick=Literal(nick,lang="foo")self.name=Literal(name)self.email=URIRef(email)p=Person("Donna Fales","donna","mailto:donna@example.org")
Package: crdist
crdist=========.. image:: https://travis-ci.org/solvo/crdist.svg:target: https://travis-ci.org/solvo/crdistCosta Rican Geografic distribution for model admin in Django.Now django 1.11 compatible... note::The data is in Spanish.All source code is in English and of course it is spanish translated.Installation-------------Install crdist in your python environment1- Download and install package:.. code:: bash$ pip install crdistThrough Github:.. code:: bash$ pip install git+https://github.com/solvo/crdist.gitPut crdist in your INSTALLED_APPS.. code:: pythonINSTALLED_APPS = (...'crdist',)Include crdist in your urls.py.. code:: pythonfrom django.conf.urls import url, includeurlpatterns = [url(r'^crdist/', include("crdist.urls")),]Run migration.. code:: bash$ python manage.py migrateUsage---------In your models create a Foreign relation to District in your *models.py* file... code:: pythonfrom crdist.models import Districtclass Test(models.Model):name = models.CharField(max_length=64)location = models.ForeignKey(District)We provide a form widget specially for choose Province, Canton and District in the same widget. eg... code:: pythonfrom crdist.widgets import DistrictSelectfrom crdist.models import Districtclass CRForm(forms.Form):district = forms.ModelChoiceField(queryset=District.objects.all(),widget=DistrictSelect)It's also ok use with admin interface, you can add some code in your *admin.py* file... code:: pythonclass TestAdminForm(forms.ModelForm):class Meta:model = Testfields = '__all__'widgets = {'district': DistrictSelect(attrs={"class": "form-control"}),}class TestAdmin(admin.ModelAdmin):form = TestAdminFormadmin.site.register(Test, TestAdmin)We also support multiple relations in the same model, so you can display several widgets in the same page.Javascrit triggers-------------------------- load_canton   { "dist": 'div_district_' + name, "canton": 'div_canton_' + name }- load_district   { "dist": 'div_district_' + name }.. code:: javascriptdocument.addEventListener("load_canton", function(e) {console.log(document.cantoncrdist.dist);console.log(document.cantoncrdist.canton);   // id of divs});