Saravanan666/pypi-org huggingface dataset:
Package: check-cmake
check-cmakeA simple linter for CMake.Installationcheck-cmakerequires Python 3.8 or higher.pip3 install check-cmakeUsagecheck-cmakeis a command-line applicationusage: check-cmake [-h] [-v] [--version] [--recurse | --no-recurse] [--limit LIMIT] [root]

CMake checker for C and C++ projects.

positional arguments:
  root                  path to the project root (default: .)

options:
  -h, --help            show this help message and exit
  -v, --verbose         enable verbose output
  --version             print the version and exit
  --recurse, --no-recurse
                        recurse into subfolders (default: True)
  --limit LIMIT         maximum errors to emit (default: 0)

v0.3.0 - github.com/marzer/check_cmakeExit codesValueMeaning0No issues were foundN, whereNis a positive integerNissues were found in total-1A fatal error occurredExample outputerror: /my_lib/CMakeLists.txt:29:9: language standard level should be set on a per-target basis using target_compile_features()
  Context:
    29 | set_target_properties(
    30 |     my_lib
    31 |     PROPERTIES
    32 |         CXX_STANDARD 14
    33 |         CXX_STANDARD_REQUIRED ON
    34 |         CXX_EXTENSIONS OFF
    35 | )
  Replace with:
    target_compile_features(): https://cmake.org/cmake/help/latest/command/target_compile_features.html
  More information:
    CMAKE_CXX_KNOWN_FEATURES: https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
    CMAKE_C_KNOWN_FEATURES: https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_C_KNOWN_FEATURES.html

found 1 error in 1 file.Suppressing checksChecks can be suppressed using comment-based 'pragmas' at the end of the source line:set_target_properties(my_libPROPERTIESCXX_STANDARD14# nocheckCXX_STANDARD_REQUIREDONCXX_EXTENSIONSOFF)For compatibility with other tools, any the following will also work:# nolint# check-cmake ignore# lint-cmake ignore# cmake-check ignore# cmake-lint ignore# check-cmake disable# lint-cmake disable# cmake-check disable# cmake-lint disable# check-cmake: ignore# lint-cmake: ignore# cmake-check: ignore# cmake-lint: ignore# check-cmake: disable# lint-cmake: disable# cmake-check: disable# cmake-lint: disableChangelogv0.4.0Fixed line numbers sometimes being wrong in context snippetsAdded check for incorrectly-placedSYSTEMintarget_include_directories()Added check for extraneous space inExternalProject_Add()CMAKE_ARGSv0.3.0Fixed#nocheckv0.2.0Added pragmas for ignoring checks on a lineAdded check forcmake_minimum_required()whenproject()is presentFixed minor formatting issuesv0.1.0First public release 🎉️
Package: check-config
Check ConfigIt can be cumbersome when you have multiple projects and environments with configuration files which need to be
upgraded and keep in sync regularly. Check-config will help you with i.e. making sure that the configuration
file have the (upgraded) settings.Check-config works with checker files in which you define checks, ie# check that .venv is included in the .gitignore
[".gitignore".lines_present]
__lines__ = ".venv"Withcheck-configyou can check (for example in a build pipeline) whether your files passed the checks.Most checks can also be automatically fixed withcheck-config --fix, so in this case a missing line will
be added to the.gitignore.A large number offile typesandchecksare supported or will
be supported in the nearfuture.DocumentationCheck out thedocumentation
Package: checkcorruptedimages
checkcorruptedimagesPython3 module to check for corrupted images using "identify" from ImageMagick as underlying mechanism.InstallationInstall with pippip3 install -U checkcorruptedimagesUsageIn [1]: import checkcorruptedimages

In [2]: from pathlib import Path

In [3]: m = checkcorruptedimages.CheckCorruptedImages()

In [4]: m.verbose = True

In [5]: m.get_corrupted_images(
    folder_to_check=Path("/home/user/Pictures"),
    file_extensions_list=["jpg"]
    )

Path: /home/user/Pictures/notcorruptedimage.jpg, corrupted: False
Path: /home/user/Pictures/corruptedimage.jpg, corrupted: True
Out[5]: [PosixPath('/home/user/Pictures/corruptedimage.jpg'),
    PosixPath('/home/user/Pictures/corruptedimage2.jpg'
    ]
Package: checkdeps
checkdepsIt's really easy to accidentally use your transitive deps by accident.  This
project allows you to check (given a working venv) that everything you import
actually comes from either relative imports, your explicit first-order deps, or
stdlib.Usage:# Run within a working venv
# For CI
$ python -m checkdeps checkdeps

# If you use non-relative imports for your own project's code, also add
$ python -m checkdeps checkdeps --allow-names checkdeps

# For humans, pass -v
$ python -m checkdeps -v checkdeps/cli.py
checkdeps/cli.py:
  click available from ['click']
  pathlib.Path stdlib
  stdlibs.stdlib_module_names available from ['stdlibs']
  sys stdlib
  trailrunner available from ['trailrunner']
  typing.Dict stdlib
  typing.List stdlib
  typing.Optional stdlib
  typing.Set stdlibExits nonzero if there are any issues.But what if I don't want to run it from the same venvMake sure you specify--installed-pathto the site-packages dir and run from the same
python version.  A parent of yourtarget_dirshould be obviously the root of your
project (pyproject.toml,.git, etc), which is what therequirementsare relative to.But aren't there projects that do this already?I've looked at them, and I don't like the assumptions they make about top-level
names, stdlib, or namespace packages.  I think this project is more correct and
more self-contained.Future workRead project metadata instead of requirementsEnsure metadata and requirements matchOffer to add missing depsBetter handling of version-dependent deps in anifortry/exceptLicensecheckdeps is copyrightTim Hatch, and licensed under
the MIT license.  I am providing code in this repository to you under an open
source license.  This is my personal repository; the license you receive to
my code is from me and not from my employer. See theLICENSEfile for details.
Package: check-dep-updates
Check Dependency UpdatesThis is a tool used for checking dependency versions inrequirements.txtstyle files.
Inspired by tools such asnpm-check-updates.Note this is a very simple and targeted tool. It will look at a requirements.txt file, and print which dependencies with a version are out of date, with the current latest version. This is in contrast to tools likepurorpip-upgraderetc, as this is trying to only do a single thing.If you have pip and installed, this does not require any other dependencies, as it uses pip's native vendored dependencies in order to keep footprint down.
This also allows this tool to be 'portable' in the sense where you can just take thesingle python fileand use it on any machine with pip installed.InstallYou can install this with pip:pipinstallcheck-dep-updatesIf you do this, it should automatically get installed and be available with thecducommandAlternatively, you can copy and use the single python file __init__.py directly on any system with pip installed.UsageOnce installed, thecducommand should be the aliased commmand.Within A Project Directory$ls
my_app/
requirements.txt
$cdu
Newerversionofrequests:2.24.0
DoneWith a Specific requirements File$cdu-fdev_requirements.txt
Newerversionofblack:19.10b0
Done
Package: check-device-code
check-device-code校验手机设备码介绍本库用于校验手机IMEI设备码的最后一位是否正确，如没有最后一位则自动补齐。使用方法importcheck_device_codeascdc# 输入imei = 14位print(cdc.check_device_doce('imei',str(86379103507858)))# 校验失败，自动补齐{'check':False,'imei':'863791035078583'}# 输入imei < 14位print(cdc.check_device_code('imei',str(8637910350785)))# 输入imei > 15位print(cdc.check_device_code('imei',str(8637910350785836)))# 输入imei != 全数字print(cdc.check_device_code('imei',str('A63791035078583')))# 校验失败，返回None{'check':False,'imei':None}# 输入错误的imeiprint(cdc.check_device_code('imei',str(863791035078587)))# 校验失败，返回正确值{'check':False,'imei':'863791035078583'}# 输入正确的imeiprint(cdc.check_device_code('imei',str(863791035078583)))# 校验成功，返回原值{'check':True,'imei':'863791035078583'}
Package: check-dht
check-dhtNagios plugin to monitor humidity and temperature data from a Raspberry Pi Pico$check_dhtDHT OK - temperature is 23°C | humidity=48%;60;65;0;100 onboard=23°C;30;40 temperature=23°C;30;40FormatNotice:This plugin works in conjuction with thepico-dhtproject! It expects a device to be available which periodically prints JSON data to a serial port:{"humidity":48,"temperature":23,"onboard":23,"error":0}humidityandtemperatureare measurements taken directly from a DHT22/DHT11 sensorThe RP2040s built-in temperature sensor is reported in theonboardfield.In case of an Issue (e.g. I/O), a POSIX errno is set in theerrorfield.InstallThe recommended installation is viapip install check-dht.ManuallyAlternatively, the source module can be executed after installing needed dependencies:pySerialnagiospluginUsage$poetryruncheck_dht--helpusage: check_dht [-h] [-p PORT] [-b BAUD] [-w TEMP] [-c TEMP][--humidity-warning PERCENT] [--humidity-critical PERCENT]Nagios plugin to monitor humidity and temperature dataoptions:-h, --help            show this help message and exit-p PORT, --port PORT  the serial file to read from-b BAUD, --baud BAUD  baudrate of the serial port-w TEMP, --warning TEMPreturn warning if air temperature is beyond TEMP-c TEMP, --critical TEMPreturn critical if air temperature is beyond TEMP--humidity-warning PERCENTreturn warning if humidity is beyond PERCENT--humidity-critical PERCENTreturn critical if humidity is beyond PERCENT(c)Johannes Arnold 2023. This software is published under the terms of theGNU GPLv3. For the companion project to this plugin, seehttps://github.com/j0hax/pico-dht
Package: checkdigit
checkdigitis a pure Python library built for identification numbers.
You want to validate a credit card number, or maybe even calculate a missing digit on an ISBN code?
We’ve got you covered 😎.Want to know more? Check out theAPI Reference and documentation!InstallationMacPorts🍎sudo port install py-checkdigitPyPi🐍pip install checkdigit✨ Features📦 Works out of the box with allsupported Python versions(3.7-3.11).⌨️PEP 561 compatible, with built in support for type checking.🏃 Zero runtime dependencies. What you see is what you get.🧮 Capable of calculating missing digits or validating a block of data.📝 Extensive in-code comments and docstrings to explain how it works behind the scenes.✅ Supported FormatsEven/Odd binary parityCRCGS1 StandardsEAN-8/13GDTIGLNSSCCUPC-A/Eetc.(all fixed length numeric GS1 data structures with a check digit)ISBN-10/13LuhnVerhoeffFor each of these formats, we provide functions to validate them and calculate missing digits.Do you have any formats that you’d like to see supported? 🤔 Feel free to raise an issue,
or even to send a pull request!🔨 ContributingContributing Page:https://checkdigit.rtfd.io/en/latest/contributing.htmlIssue Tracker:https://github.com/harens/checkdigit/issuesSource Code:https://github.com/harens/checkdigitAny change, big or small, that you think can help improve this project is more than welcome 🎉.As well as this, feel free to open an issue with any new suggestions or bug reports. Every contribution is appreciated.To find out more, please read ourcontributing page. Thank you!📙 LicenseThis project is licensed underGPL-3.0-or-later.
Package: check-digit-EAN13
Get  check digit number of your EAN-13 Barcode.Here I’m presenting  a package to find check digit (system generated digit) of 12 digit number which is used
to create EAN-13 Barcode. When we used to create a barcode, the last digit always generated by our machine.In most
of the cases, barcode number want to be unique and it is difficult to find if our new barcode number is already existing in our
database without knowing this system generated digit and unfortunately I didn’t find any package to find this.
That’s why I came accross to build a package to fing this crazy digit.Installingpip install check-digit-EAN13Usagefrom check_digit_EAN13.check_digit import get_check_digitbarcode_number = 123456565456actual_barcode_number = get_check_digit(barcode_number)print(actual_barcode_number)output1234565654562exceptionscase 1:
You can’t use less than 12 digit herebarcode_number = 123456565actual_barcode_number = get_check_digit(barcode_number)outputsorry, please enter 12 digitscase 2:
You can’t enter any character other than digits herebarcode_number = “123uu45656898895”actual_barcode_number = get_check_digit(barcode_number)outputsorry, please enter 12 digit numberscase 3:
If you enter more than 12 digits, package only read 12 digitsbarcode_number = 65623546325436473757847549875948actual_barcode_number = get_check_digit(barcode_number)output6562354632541
Package: check-docking
check-docking.介绍:此子项目仅为总结前项目的经验, 在后续项目上, 接口文档的定义入库, 结合入库的数据生成配置文件.根据生成的配置文件, 当客户端与服务端对接时, 让程序能够自动检查客户端的传入, 并将问题返回给客户端.该模块的目的在于减少客户端开发过程中, 在琐屑问题上对服务端的干扰. 如请求类型错误, 多参, 少参, 重参, 数据类型错误, 是否必填项等等.使用:配置settings.py修改：# check-docking配置项
IS_DATA_INSPECT = True  # 仅 DEBUG 为 True 时有效
INSPECT_PROFILE = "project.check_config"  # 检测依赖配置文件模块

# INSTALLED_APPS 增加:
'check_docking',
'check_docking.stored.django',下面两项非必须, 需要完成使用流程节点, 生成依赖的配置文件后启用其一.MIDDLEWARE_CLASSES 增加:
    'check_docking.middleware.InspectMiddleware'

除了MiddleWare形式, 你也可以使用装饰器形式：
    from check_docking.inspect import debug_request
    ＠debug_request你还可以使用工具, 从源代码中搜集数据并入库, 具体可以参看project_demo/demo/demo.py中代码.流程：$ python manage.py syncdb
$ python manage.py runserver

http://127.0.0.0:8000/admin 录入数据.

$ python manage.py inspectprofileChangelog1.2 - 25-Jan-2015First release
Package: check-docstring
BD RD Docstring CheckerUsagecheck_docstringPATHwherePATHcan be a file or a directory. All Python scripts will be collected and checked.Docstring ConventionGoogle style docstringref1ref2ref3defexample_function(param1,param2):"""This is an example of a function docstring.More descriptions go here.Args:param1 (int): The first parameter.Second line has to be indented.param2 (str): The second parameter.Returns:bool: True if successful, False otherwise.Raises:AttributeError: The ``Raises`` section is a list of all exceptionsthat are relevant to the interface.ValueError: If `param2` is equal to `param1`."""ifparam1==param2:raiseValueError('param1 may not be equal to param2')returnTrueLast updated: 2021/11/19
Package: checkedid
CheckedID Python API clientFeaturesTyped API client for api.checkedid.euRequirementsBuild with Pydantic and httpx, does currently not support async.InstallationYou can installCheckedID Python API clientviapipfromPyPI:$pipinstallcheckedidUsagefromcheckedidimporterrors,models,Clienttry:client=Client('1001')dossier:models.ReportResponse=client.dossier('123456789')excepterrors.CheckedIDNotFoundErrorase:print("Dossier does not exists")ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,CheckedID Python API clientis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: check_email_status
check_email_statusThis package exists to help poll smtp servers to see if a mailbox address is valid.
It doesn’t return true or false, but a set of status codes, extended status codes,
and full messages from the responding server.UsageHere is an example using pyDNS as the MX resolver:from check_email_status import check_email_status
from check_email_status.resolvers import PyDNSMXResolver

status = check_email_status(PyDNSMXResolver, 'recipient@domain.com', 'sender@domain.com')

# This is the SMTP status code returned by the server. (e.g.) 550
print status['status']

# This is the extended status code, for instance 5.1.1 would mean the account doesn't exist.
# If an extended code is not sent, this is not set.
print status['extended_status']

# This is the message returned from the mail server describing the results of the query.
print status['messsage']
Package: checkeml
checkemlIt is a useful library for developers as it checks the email if it is on social networking sites or notInstallation :pip install checkemlTSM are available⌯ instagram⌯ facebook⌯ twitterchecker email facebookfromcheckemlimportcheckemlemail="<your email>"Logan=checkeml.facebook(str(email))ifLogan==True:print("Email facebook is available")elifLogan==False:print("Email facebook is not available")checker email twitterfromcheckemlimportcheckemlemail="<your email>"Logan=checkeml.twitter(str(email))ifLogan==True:print("Email twitter is available")elifLogan==False:print("Email twitter is not available")Follow us on social media
Package: checkerboard
CheckerboardI could not find any libraries to find checkerboards robustly in Python, except for OpenCV.
However, OpenCV's checkerboard tends to fail when the checkerboard is somewhat blurred or rotated.Hence, this library was born. It may be slightly slower than OpenCV, but it willfindthat checkerboard.Comparison of OpenCV vs this library (OpenCV on the left, checkerboard on the right):QuickstartYou can install checkerboard easily through pip:pipinstallcheckerboardThen you can go ahead and detect checkerboards like so:fromcheckerboardimportdetect_checkerboardsize=(9,6)# size of checkerboardimage=...# obtain checkerboardcorners,score=detect_checkerboard(image,size)Thecornersreturned are in the same format as thefindChessboardCornersfunction from OpenCV, and are already computed
to subpixel precision.Thescorereturned is a metric of the quality of the checkerboard
detection. A perfectly detected checkerboard would have a score of 0,
whereas a bad detection would have a score of 1.ReferencesThe implementation of checkerboard detection is mainly based onlibcbdetectand accompanying paper:@INPROCEEDINGS{Geiger2012ICRA,
  author = {Andreas Geiger and Frank Moosmann and Oemer Car and Bernhard Schuster},
  title = {Automatic Calibration of Range and Camera Sensors using a single Shot},
  booktitle = {International Conference on Robotics and Automation (ICRA)},
  year = {2012}
}
Package: checkers-bot
GitHub:Usage ExamplefromcheckersimportField,Botgame=Field(turn='white')#could be white and blackbot=Bot()#init botprint(game).b.b.b.b
b.b.b.b.
.b.b.b.b
........
........
w.w.w.w.
.w.w.w.w
w.w.w.w.print(game.turn)whiteprint(game.posible_moves)[[[5, 0], [4, 1]], [[5, 2], [4, 1]], [[5, 2], [4, 3]], [[5, 4], [4, 3]], [[5, 4], [4, 5]], [[5, 6], [4, 5]], [[5, 6], [4, 7]]]print(game.move(game.posible_moves[0]))#make move returns False, draw, white or black  (who wins)Falseprint(game).b.b.b.b
b.b.b.b.
.b.b.b.b
........
.w......
..w.w.w.
.w.w.w.w
w.w.w.w.print(game.check_winer())#returns False, draw, white or black  (who wins)Falseprint(bot.move(game,depth=3))#depth - intFalse
Package: check-execution-order
check-execution-orderA tool and pre-commit hook to automatically check execution order in Jupyter Notebooks.Installation$pipinstallcheck-execution-orderUsage as a pre-commit hook (recommended)Seepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/MarcoGorelli/check-execution-orderrev:v0.1.1hooks:-id:check-execution-orderCommand-line example$check-execution-orderbad.ipynbCell 1 comes after 2 in file 'bad.ipynb'ConfigurationNone yet. Got any requests? Please let me know!
Package: checkexpect
checkexpect is a simple unit testing framework for python developmenthttps://pypi.python.org/pypi/checkexpectin a python library. checkexpect is a mature, viable way to make your test-driven development drive the design of your data,
and your data drive the design of your functions.  It’s also a simple tool that allows you to execute unit tests inline
with your code, in a systematic way.This is a fork of the originalcheckexpect, hosted on GitHub and
last updated in 2016.Features[x] Support for inline unit tests. checkExpect will support tests created in another directory as well.[x] Support for TDD and DDD development.[x] Support for Systematic Program Design methods using HtDD and HtDF recipes.[x] Support for color coded terminal (console) output.TODO[ ] Python 3.5 support.InstallationInstall checkexpect.pipinstallcheckexpectNow you can now add a reference to the checkexpect package like so.#!/usr/bin/env python# import packagefromcheckexpect.coreimportcheckExpectWrite some code and test it using checkexpect inline with your code.#!/usr/bin/env python# import packagesfromcheckexpect.coreimportcheckExpectimportmath# Usage: checkExpect(function|object|type, param, expected value, "a description of the test")# define a functiondefsquare(a):returna*a# could replace return statement with (lambda a: math.pow(a, 2))# from code_statement_B below.# examplesnum_to_square=12code_statement_A=12*12# used in the function body# check the algor1thm design of our square function, and unit test it at the same timecheckExpect(square,12,144,"Square of a number")# Or just pass our examplescheckExpect(square,num_to_square,code_statement_A,"Square of a number")# Or use lambda expressionscode_statement_B=lambdaa:math.pow(a,2)checkExpect(square,num_to_square,code_statement_B(12),"Square of a number")# add up a list of numbers# examplesparam1=[1,2,9]defadd(args):total=0foriinargs:total=i+totalreturntotalcheckExpect(add,param1,12,"Add two numbers")# Create a string from an arbitrary list of strings# examplesparam3=["Darel","Johnson"]defstring_together(los):newStr=[str.strip()forstrinlos]return" ".join(newStr)checkExpect(string_together,param3,"Darel Johnson")Execute your python script from the command line (terminal) to see the unit test results. Most tests usually fail (RED) in the beginning.Refactor your code and execute your script until all functions under test, turn GREEN.That’s it! You’re done.UpgradesUpgrade checkexpect.pipinstallcheckexpect-UThat command will upgrade an existing installation of checkexpect.ConfigurationNone - No configuration needed.SupportFor checkexpect support contact me atmailto:dareljohnson@yahoo.comLicenseThis project originally started life as javascript unit test project. This project was
abandoned in 2013 and was brought back to life as checkexpect by our team in
2016. In the process, most of the project was refactored and brought up to speed
with modern python best practices. The work done prior to the 2013 rewrite is
licensed under MIT. Improvements since then are licensed under MIT.
SeeLICENSEfor more details.SemVerThis project implementsSemantic Versioning.CreditsDarel Johnson
Package: check-external-net
Check domains, IPs, and hosts to ensure they are “external”This is intended to be used to check user-entered host names to ensure that
they only contain IP addresses, or domain names that are considered to be
external to your system. No IP addresses that are reserved (eg127.0.0.0/8,192.168.0.0/16,fc00::/7) and no domains that aren’t
children of a public suffix (eg*.comis okay,*.localis not).Internal IP addresses (is_external_address)If we are able to discern anIPv4 mappedaddress, that is passed through
as the address to check rather than the original.From there, allIPv4 reserved networks, andIPv6 reserved networksare
considered “internal” (seeis_global)Internal domains (is_external_domain)A domain is considered internal if it is not external.A domain is considered external if the last suffix (the final part of a domain
after the last.character) exists in theMozilla public suffix registry.Internal hosts (is_external_host)Hosts are parsed as IP addresses via theipaddress.ip_addressfunction. If
this succeeds, it’s treated to the rules of an internal IP address. Otherwise,
it’s treated as a domain.Usage>>> check_external_net.is_external_host('127.0.0.1')
False
>>> check_external_net.is_external_host('::0')
False
>>> check_external_net.is_external_host('8.8.8.8')
True
>>> check_external_net.is_external_host('::ffff:8.8.8.8')
True
>>> check_external_net.is_external_host('localhost')
False
>>> check_external_net.is_external_host('cluster.local')
False
>>> check_external_net.is_external_host('google.com')
True
>>> check_external_net.is_external_host('dutyof.care')
True