Saravanan666/pypi-org huggingface dataset:
Package: check-s3-bucket
Check that a filename matching the regex was added to the bucket in the given time window.Usage$check_s3_bucket--helpusage:check_s3_bucket[-h]bucket[prefix][age_warning_threshold][age_critical_threshold][size_warning_threshold][size_critical_threshold]CheckthatafilewasaddedtoanS3bucketinthegiventimewindowandisofareasonablesize.positionalarguments:bucketS3buckettocheckprefixFilterfilesbythisprefixage_warning_thresholdWarningthresholdfortheageofthelatestfileinhours(defaultsto24)age_critical_thresholdCriticalthresholdfortheageofthelatestfileinhours(defaultsto48)size_warning_thresholdWarningthresholdforthedifferenceinsizebetweenthelatest2filesinpercents(defaultto25)size_critical_thresholdCriticalthresholdforthedifferenceinsizebetweenthelatest2filesinpercents(defaultto50)optionalarguments:-h,--helpshowthishelpmessageandexitLicenseThis software is licensed under the MIT license (see theLICENSE.txtfile).AuthorNimrod Adar,contact meor visit mywebsite. Patches are welcome viagit send-email. The repository is located
at:https://git.shore.co.il/explore/.
Package: check-sdist
check-sdistHave you ever shipped broken SDists with missing files or possibly dirty SDists
with files that shouldn't have been there? Have you noticed that standards
compliant tools aren't making the same SDist thatflit buildis? Is hatchling
adding.DSStorefiles when you ship from your macOS? No matter what
build-backend you use, check-sdist can help!Check-sdist builds an SDist and compares the contents with your Git repository
contents. It can even temporarily inject common junk files (like pycache files
or OS specific files) and help verify that those aren't getting bundled into
your SDist. If you are getting files you didn't expect or missing files you did
expect, consult your build backend's docs to see how to include or exclude
files.Quick startTo run:$pipxruncheck-sdistYou can add--no-isolationto disable build isolation (faster, but must
preinstall build dependencies),--source-dirto select a different source
directory to check, and--inject-junkto temporarily inject some common junk
files while running.If you need the latest development version:$pipxrun--specgit+https://github.com/henryiii/check-sdistcheck-sdistPre-commit integrationTo use thepre-commitintegration, put this in your.pre-commit-config.yaml:-repo:https://github.com/henryiii/check-sdistrev:v0.1.3hooks:-id:check-sdistargs:[--inject-junk]additional_dependencies:[]# list your build deps hereThis requires your build dependencies, but in doing so, it can cache the
environment, making it quite fast. If you don't mind slower runs and don't want
to require build dependency listing:-repo:https://github.com/henryiii/check-sdistrev:v0.1.3hooks:-id:check-sdist-isolatedargs:[--inject-junk]ConfigurationTo configure, these options are supported in yourpyproject.tomlfile:[tool.check-sdist]sdist-only=[]git-only=[]default-ignore=trueYou can add.gitignorestyle lines here, and you can turn off the default
ignore list, which adds some default git-only files.See alsocheck-manifest: A (currently)
setuptools specific checker that can suggest possible ways to include/exclude
files.scikit-hep developer pages: Guidelines on
which this package was designed.
Package: checksec-py
checksec.pyChecksec tool in Python, Rich output, based on LIEFDemoTable of ContentsOverviewRequirementsSetupWindowsLinuxUsageFAQReferencesLicenseContributorsOverviewA simple tool to verify the security properties of your binaries.These properties can be enabled by your compiler to enforce the security of your executables, and mitigate exploits.
However it can be challenging to apply them on a whole system.Check the level of security your Linux distro / Windows release is providing you !Supported formats:ELFPEMach-OBased on:Rich: Beautiful terminal output formattingLIEF: Cross-platform library to parse, modify and abstract ELF, PE and Mach-O formatsRequirementsSetupWindowsYou find thechecksec.exeon the latest Github releases:Linuxpython3 -m venv venv
source venv/bin/activate
(venv) pip install checksec.pyUsage(venv) checksec <file_or_directory>...Check--helpfor more options (JSON output,recursive walk,workers count)FAQ1️⃣ What's the difference betweenchecksec.pyandchecksec.sh?checksec.pychecksec.shCross-Platform support✔❌Distributed workload✔❌Scan file✔✔Scan directory✔✔Scan directory recursively✔❌Specify libc path✔❌Scan process❌✔Scan process libs❌✔Scan kernel config❌✔Output Cli✔✔Output JSON✔✔Output CSV❌✔Output XML❌✔ELF: Relro✔✔ELF: Canary✔✔ELF: NX✔✔ELF: PIE✔✔ELF: RPATH✔✔ELF: RUNPATH✔✔ELF: Symbols✔✔ELF: Fortify✔✔ELF: Fortified✔✔ELF: Fortifable✔✔ELF: Fortify Score✔❌2️⃣ What's the difference betweenchecksec.pyandwinchecksec?checksec.pywinchecksecCross-Platform support✔✔Distributed workload✔❌Scan file✔✔Scan directory✔❌Scan directory recursively✔❌Output CLI✔✔Output JSON✔✔PE: ASLR - DYNAMIC_BASE✔✔PE: ASLR - HIGHENTROPYVA✔✔PE: INTEGRITYCHECK✔✔PE: Authenticode signed✔✔PE: DEP✔✔PE: Manifest Isolation✔✔PE: SEH✔✔PE: SafeSEH✔✔PE: Control Flow Guard✔✔PE: Return Flow Guard❌✔PE: Stack Cookie✔✔3️⃣checksecis slow on some huge binaries ! What's happening ?!checksec.pyrelies on theLIEFlibrary to parsePE/ELF/MachOformats.➡️The library doesn't offer at this pointon-demandparsing, so it will parse and fetch unnecessary data.➡️Retrieving symbols can be slow (ex:pandoc,118M,+300 000symbols,+2m 20sec). See thisissue4️⃣ I sent aCTRL-Cto cancelchecksec.pyprocessing, the app doesn't want to quitchecksec.pyis working with multiple process workers to parallelize its execution and binary processing.
When aCRTL-Cis received,checksec.pywillwaitfor them to stop.Sometimes, this is not working, and I don't know why at this point.
You can kill the remaining Python workers afterwards.References@apogiatzisGist checksec.pychecksec.shwinchecksecLicenseContributors
Package: checksfinance-soulmoment
Soul MomentAn attempt to provide an implementation of SBT(Soul-bound token) in Cairo lang.Brought to you by@ChecksFinance.This module is implemented on StarkNet in Cairo language. Using this module requires that you have a basic understanding of the Cairo language and python.ConceptsOne of the most important concepts of SBT is non-transferable and verifiable split property rights. This basic logic is explored in a very simple way by implementing the issuance and verification of SBTs on L2's abstract account contracts.Use this module in your projectpipinstallgit+https://github.com/ChecksFinance/soul-moment.gitThenfromsoulmoment.libraryimportSoulMomentyou can find demo contracts in./src/accountand./src/soulmomentSet up the projectCreate a Python virtual environmentpython-mvenvenvsourceenv/bin/activate📦 Install the requirementspipinstall-rrequirements.txtNotice: this project use the latest version of OpenZeppelin contract for Cairo instead of the stable release of it.⛏️ Compilenilecompile--directorysrc
nilecompilesrc/soulmoment/account/SoulAccount.cairo--account_contract🌡️ Test# Run all testspytesttests📄 Licensesoul-momentis released under theMIT.
Package: check-shape
Check shapeTL;DR: This tool helps prevent bugs by checking shapes in-line, and making code more readable.Shape errorsA surprising amount of time in machine learning is spent on squashing shape-related bugs. There's two kinds of bugs:Runtime shape errors: These are annoying and can take up quite a bit of debugging time, but are not nearly as dangerous as broadcasting bugs.Unindended broadcasting bugs: These can be silent unexpected behaviours, which happen due to the broadcasting behaviour of the library in use.I've found that one thing which goes a long way to prevent/solve this issues is putting shapes in the docstrings or with in-line comments, such asdef foo(bar1, bar2):
    """
    Does foo on bar1 and bar2.

    Arguments:
        bar1 : np.array, shape (B, D, 2)
        bar2 : np.array, shape (B, 5, D)
    """

    # Do an einsum, blip shape (B, 2, 5)
    blip = np.einsum('bdi, bjd -> bij', bar1, bar2)Putting these shapes in is useful because it reduces the mental workload of remembering them, and improves readability. Butcommented shapes are never enforced and could become stale. When you read these docstrings/comments, you mightassume they are enforced, when in fact they are not, causing unexpected broadcasting and weird errors. One way to enforce this is to use assertions, such asdef foo(bar1, bar2):
    """
    Does foo on bar1 and bar2.

    Arguments:
        bar1 : np.array, shape (B, D, 2)
        bar2 : np.array, shape (B, 5, D)
    """

    # Check that bar1 and bar2 are correctly shaped
    assert bar1.shape[0] == bar2.shape[0]
    assert bar1.shape[1] == bar2.shape[2]

    # Optionally, could also check the other dimensions
    assert bar1.shape[2] == 2 and bar2.shape[1] == 5

    # Do an einsum, blip shape (B, 2, 5)
    blip = np.einsum('bdi, bjd -> bij', bar1, bar2)This does the job. It enforces the assumed shapes, and reduces the chance of a broadcasting error. But it can become very wordy and quite ugly when you start making more elaborate assertions, and can incur a mental load when reading code. Here's how to do the same thing with check_shapedef foo(bar1, bar2):
    """
    Does foo on bar1 and bar2.

    Arguments:
        bar1 : np.array, shape (B, D, 2)
        bar2 : np.array, shape (B, 5, D)
    """

    # Check shapes are compatible
    check_shape([bar1, bar2], [('B', 'D', 2), ('B', 5, 'D')])

    # Do an einsum, blip shape (B, 2, 5)
    blip = np.einsum('bdi, bjd -> bij', bar1, bar2)Which (in my opinion) is more readable. Thecheck_shapewill raise aShapeErrorwhenever the arrays don't match the shapes given. Now you have a line of code which is both a shape-checking assertion, and also an inline comment -- which won't go stale!
Package: check-shapes
check_shapescheck_shapesis a library for annotating and checking tensor shapes.
For example:importtensorflowastffromgpflow.experimental.check_shapesimportcheck_shapes@tf.function@check_shapes("features: [batch..., n_features]","weights: [n_features]","return: [batch...]",)deflinear_model(features:tf.Tensor,weights:tf.Tensor)->tf.Tensor:returntf.einsum("...i,i -> ...",features,weights)For more information see ourdocumentation.InstallationThe recommended way to installcheck_shapesis from pypi:pipinstallcheck_shapesFrom sourceTo developcheck_shapes, check it out from GitHub:gitclonegit@github.com:GPflow/check_shapes.gitWe usePoetryto install and manage dependencies. Follow their
instructions for how to install Poetry itself. Then:cdcheck_shapes
poetryinstallTo check you installation run our tests:poetryruntasktestFor testing with different versions of Python and dependencies, see thepoetryenvscript.
Package: checksignature
checksignaturea function decorator for enforcing function signaturesSetupInstall build dependencies.pip install -r requirementsRunnoxto build, install, and runchecksignaturetests.UsageDecorate any funciton with@checksignature.@checksignaturedeffunction(a:str,b:int,c,*args:int,**kwargs:int)::returna,b,c,args,kwargsUpon invocation offunction, the signature check is evaluated.function('one',2,3.0,1,2,3,**{'four':4})#=> functions as usual--no problem.function('one',2,3.0,1,2,3,**{'four':4.0})#=> raises a TypeErrorfunction('one',2,'x',1,2,3,**{'four':4})#=> raises a TypeError
Package: checksitemap
checksitemap -- A tool to verify your sitemapschecksitemap is a very simple tool that allows you to check the sitemaps of your websites.
Its development is not complete, but it is still currently usable.How to use itFirst, install Python 3 and thechecksitemappackage from PyPI:pipinstallchecksitemapYou can now use invoke the command:checksitemap"https://example.com/sitemap.xml"If you prefer, you can also usechecksitemapon a local file:checksitemappath/to/local/file.xmlIt will then check all the URLs in your sitemap and show errors if:the XML is malformedit references URLs that don't work correctly (i.e. they don't return 200-ish status codes)it references URLs that won't be indexablethe priority or the change frequency are not valid
Package: check-sl-delay
check_sl_delayIntroductioncheck_sl_delayis a simple Nagios plugins to check the percentage of late departures for any given site operated by SL (Stockholms Länstrafik).InstallationThe easiest way to installcheck_sl_delayis viapip. Make sure to run this with python3, in some environmentspipshould be replaced withpip3or similar.For a specific user:$pipinstall--usercheck-sl-delayThis will put the executablecheck_sl_delayin ~/.local/bin/, so make sure that this is part of your $PATH variable.System wide:# pip install check-sl-delayThis will put the executablecheck_sl_delayin /usr/local/bin/, which is usually already part of the system wide $PATH. Check the documentation of your specific OS.Wherever your executable file has been placed, you may symlink it to a place where plugins are generally available in your environment, for example/opt/plugins/:# ln -s /usr/local/bin/check_sl_delay /opt/plugins/check_sl_delayUsageOnce you have made sure thatcheck_sl_delayis on your $PATH, you can find some useful information with the--helpoption:$check_sl_delay--help
Usage:check_sl_delay[OPTIONS]check_sl_delaywillconnecttotheSLAPItodeterminethepercentageofdelayeddeparturesforanygivensite-id.Thesite-idandtheneededAPIkeycanbefoundusingtheAPISLPlatsuppslag:https://www.trafiklab.se/api/sl-platsuppslag/dokumentationThedeparture-api-keycanbefoundusingtheAPISLRealtidsinformation4:https://www.trafiklab.se/api/sl-realtidsdokumentation-4/dokumentationExample:check_sl_delay-a<site-api-key>-A<departure-api-key>-p10-m1-i1002-TMETRO-w20-c30Theaboveexamplewillcheckthesite1002(T-Centralen)forallMETROdeparturesinthecoming10minutes.Itwillwarnifthepercentageofdeparturesthataremorethan1minutelateis20%ormoreofthetotalamountofdeparturesforthetimeperiod.Itwillcritifthesamepercentageis30%ormore.

Options:-a,--site-api-keyTEXTAPIkeyfor'SL Platsuppslag'(seetrafiklab.se)[required]-A,--departure-api-keyTEXTAPIkeyfor'SL Realtidsinformation 4'(seetrafiklab.se)[required]-w,--warningINTEGERRANGEWarningthreshold(0-100),warningifthepercentageofdepartureshavingdelaysabove--minutesisgreaterorequalthanthisoption.Mustbelessthan--critical.-c,--criticalINTEGERRANGECriticalthreshold(0-100),criticalifthepercentageofdepartureshavingdelaysabove--minutesisgreaterorequalthanthisoption.Mustbegreaterthan--warning.-i,--site-idINTEGERRANGESite-idtocheck.[required]-m,--minutesINTEGERRANGEDelaythreshold,inminutes.[required]-p,--periodINTEGERTimeperiodtocheck,inminutes.[required]-t,--timeoutINTEGERRANGEPlugintimeout,inseconds.-T,--traffic-type[BUS|METRO|TRAIN]Traffictypetocheck.[required]-v,--verboseUse2timesforhigherverbosity.--versionShowtheversionandexit.-h,--helpShowthismessageandexit.Known LimitationsDue to a limitation inclickthe locale must be unicode and not ascii. For more informationsee this page.History0.1.3 (2020-03-27)Added options for API key and removed personal key from dev files.0.1.2 (2020-03-24)Minor fixes.0.1.1 (2020-03-23)Added short help option (-h).0.1.0 (2020-03-23)First stable release on PyPI.
Package: checksome
ChecksomeChecksomeis a Python package and command line tool for generating and comparing file checksums.Supported algorithmsChecksome can be extended to support any algorithm, and supports the following natively:AlgorithmCommand line valueSHA256sha256InstallationChecksome requires Python 3.9 or later and can be installed fromPyPI.pipinstallchecksomeCommand line usagePass the file path and algorithm tochecksometo get its checksum.For example:$checksomeclowns.jpgsha256b807b7c00e6052f2f5b23a4fc0716357e309cf6425a7ea93b766e7f127f64be0Python usageOne-off checksumsTo generate a single checksum for a file, callchecksum()with the path and type of algorithm to use.If an offset is passed then the checksum will be calculated only for bytes from that offset. If the offset is omitted then the file will be read from the start.If a length is passed then the checksum will be calculated only for that given length of bytes. If the length is omitted then the file will be read to the end.fromchecksomeimportchecksum,SHA256cs=checksum("clowns.jpg",SHA256)# SHA256 checksum of "clowns.jpg"cs=checksum("clowns.jpg",SHA256,offset=100,length=2000)# SHA256 checksum of the 2,000 bytes following the 100th# byte of "clowns.jpg"To check if a file has a given checksum, callhas_checksum().fromchecksomeimporthas_checksum,SHA256has_checksum("clowns.jpg",SHA256,"b90...")# True or Falsehas_checksum("clowns.jpg",SHA256,"b90...",offset=100,length=2000)# True or FalseThe expected checksum can be passed as either bytes or a hexadecimal string.has_checksum()isn't any more efficient than callingchecksum()and comparing the checksums yourself, buthas_checksum()does provide some debug logging that might be useful.Multiple checksumsIf you need to generate multiple checksums for a file -- for example, to query multiple byte ranges -- then creating aChecksumReaderis the most efficient approach.Rather than create aChecksumReaderdirectly, use thechecksum_readercontext manager instead:fromchecksomeimportchecksum_reader,SHA256withchecksum_reader("clowns.jpg",SHA256)asr:a=r.checksum(length=1024)# SHA256 checksum of the first 1,024 bytesb=r.checksum(offset=1024,length=1024)# SHA256 checksum of the second 1,024 bytesc=r.checksum(offset=2048)# SHA256 checksum of all remaining bytesAdding your own algorithmTo use a hashing algorithm that isn't supported natively by Checksome, implement theAlgorithmabstract class then pass that new class into any function that requires an algorithm.See theSHA256class for an example.SupportPlease submit all your questions, feature requests and bug reports atgithub.com/cariad/checksome/issues. Thank you!LicenceChecksome isopen-sourceand released under theMIT License.You don't have to give attribution in your project, but -- as a freelance developer with rent to pay -- I appreciate it!AuthorHello! 👋 I'mCariad Eccleston, and I'm a freelance Amazon Web Services architect, DevOps evangelist, CI/CD pipeline engineer and backend developer.You can find me atcariad.earth,github/cariad,linkedin/cariadand on Mastodon at@cariad@tech.lgbt.
Package: checkspot
A simple CLI tool to check the spot prices of AWS instances. Available
for Python3 onlyInstallationTo install, use pip such thatpip3install--usercheckspotSetupSincecheckspotuses boto3, you’ll have to setup the same way. You
can view thedocs
hereUsageTo use, runcheckspotand a series of questions will be prompted.Repeatable UsageIf you don’t want to enter the CLI every time, you can run the CLI with
the optionscheckspot --InstanceType=t2.micro --ProductDescription=Linux/UNIX --StartTime=$(date -d "3 days ago" +"%Y-%m-%d") --EndTime=$(date +"%Y-%m-%d")Version1.0.0First publish
Package: checkstyle-cli
A command-line tool forcheckstyle.RequirementsSeerequirements documentation.The minimumJREversion required depends on runtime of checkstyle.Getting StartedSeequickstart documentation.cli$pipinstallcheckstyle-clipre-commitAdd this to your.pre-commit-config.yamlrepos:
  - repo:https://github.com/junghoon-vans/checkstyle-clirev: v0.7.0
    hooks:
    - id: checkstyleLicenseMIT
License
Package: checksum16
# Checksum only python native module
I tried to find a quick python native implemenation of ip checksum to achieve a
better performance - I Didn’t find any, so I created my own module.Calculate IP checksum-16 (Host endianess for compatability with other pure
python implementations:#### How to use`python from checksum import checksum res = checksum(b'BEST DATA') `The module also supports partial checksums:`python from checksum import checksum res = checksum(b'BEST DATA') res = checksum(b'ANOTHER BULK OF GREAT DATA', res) `
Package: checksum-cli
# INTRODUCTIONA command line interface program use for generate the checksum of file.# INSTALL```bash$ pip install checksum-cli```or (It's not recommended unless you need to change code.)```bash$ git clone https://github.com/cupen/checksum-cli.git --depth=1$ cd checksum-cli$ python setup.py install```# USAGE```bash$ checksum /a/file/path/to/foobar --hash md5$ checksum /a/file/path/to/foobar --hash sha1$ checksum /a/file/path/to/foobar --hash sha256```# LICENCE```DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSEVersion 2, December 2004Copyright (C) 2017 cupen <cupen@foxmail.com>Everyone is permitted to copy and distribute verbatim or modifiedcopies of this license document, and changing it is allowed as longas the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSETERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT THE FUCK YOU WANT TO.```
Package: checksumdir
A simple module for creating a single hash for a directory of files, with file contents;
ignoring any metadata such as file name.  Options exist to also exclude specific files
or files with specific extensions.Usagefromchecksumdirimportdirhashdirectory='/path/to/directory/'md5hash=dirhash(directory,'md5')sha1hash=dirhash(directory,'sha1',excluded_files=['package.json'])sha256hash=dirhash(directory,'sha256',excluded_extensions=['pyc'])Or to use the CLI:# Defaults to md5.$checksumdir/path/to/directory# Create sha1 hash:$checksumdir-asha1/path/to/directory# Exclude files:$checksumdir-e<files>/path/to/directory# Exclude files with specific extensions:$checksumdir-x<extensions>/path/to/directory# Follow soft links:$checksumdir--follow-links/path/to/directory
Package: checksum-Pmk1
ChecksumInstallationsudo apt install python3
chmod +x main.pyUsing DEBwget https://github.com/pmk456/checksum/releases/download/checksum_amd64/checksum_amd64.deb
sudo dpkg -i checksum_amd64.debUsageusage: checksum [-h] [--hash HASH] [-a A] path

* Copyright of Patan Musthakheem, 2021 * Supports Checksum For SHA256, SHA1, MD5

positional arguments:
  path         Path of The File

optional arguments:
  -h, --help   show this help message and exit
  --hash HASH  Hash To Compare With
  -a A         Algorithm Of Hashing
Package: checksum-Pmk456
ChecksumInstallationsudo apt install python3
sudo apt install python3-pip
pip3 install checksum-Pmk456Using DEB Packagewget https://github.com/pmk456/checksum/releases/download/checksum_amd64/checksum_amd64.deb
sudo dpkg -i checksum_amd64.debUsageusage: checksum [-h] [--hash HASH] [-a A] path

* Copyright of Patan Musthakheem, 2021 * Supports Checksum For SHA256, SHA1, MD5

positional arguments:
  path         Path of The File

optional arguments:
  -h, --help   show this help message and exit
  --hash HASH  Hash To Compare With
  -a A         Algorithm Of Hashing
Package: checksums
checksumsA command line tool that show/verify checksums for a file. Works on Windows, macOS and Linux.Installationpip install checksumsUsagesShow checksums of a file:$ checksums ./file.txtVerify the MD5 checksum of a file:$ checksums check-md5 [MD5-checksum here] ./file.txtVerify the SHA-1 checksum of a file:$ checksums check-sha1 [SHA-1-checksum here] ./file.txtVerify the SHA-256 checksum of a file:$ checksums check-sha256 [SHA-256-checksum here] ./file.txtVerify the SHA-512 checksum of a file:$ checksums check-sha512 [SHA-512-checksum here] ./file.txt