Saravanan666/pypi-org huggingface dataset:
Package: checkalive
checkaliveCheck the status of the service by checking whether the IP exists whether the PROCESS exists or whether the LISTENING PORT exists.Installpip install checkaliveCommand line tools installedcheckalivecheckipcheckportcheckprocUsageC:\Code>checkalive--help
Usage:checkalive[OPTIONS]COMMAND[ARGS]...CheckthestatusoftheservicebycheckingwhethertheIPexistswhetherthePROCESSexistsorwhethertheLISTENINGPORTexists.

Options:--helpShowthismessageandexit.

Commands:checkipChecktheIPaddressexistsornot.checkportCheckthelisteningportexistsornot.checkprocCheckprocessisstillrunningornot.

C:\Code>checkip--help
Usage:checkip[OPTIONS]IPChecktheIPaddressexistsornot.

Options:-i,--nicTEXT--helpShowthismessageandexit.

C:\Code>checkport--help
Usage:checkport[OPTIONS]PORTCheckthelisteningportexistsornot.

Options:-i,--nicTEXT-p,--proto[tcp|tcp4|udp|udp4|inet|inet4|inet6|tcp6|udp6]Defaulttotcp.--helpShowthismessageandexit.

C:\Code>checkproc--help
Usage:checkproc[OPTIONS]Checkprocessisstillrunningornot.Notice:parametercanbeoneandonlyoneofpid、pidfile、command.

Options:-i,--pidINTEGER-f,--pidfileTEXT-c,--commandTEXT--helpShowthismessageandexit.Releasev0.2.2 2019/12/13Fix setup.py, add ipaddress dependence in python2.v0.2.1 2019/12/13Fix ip parse problem in centos7. In centos7, the ip address may has %eth0 suffix.v0.2.0 2019/12/13Change the language of help information from chinese to english.Fix setup keywords.v0.1.9 2019/06/24Add ip check.Add proc check.Add port check.
Package: checkarg
Guard clause library for Python projects, to validate arguments on every python function/method.InstallationYou can install the latest version of this software from the Python package index (PyPI) as follows:pipinstall--upgradecheckargUsageUsing CheckArg to validate numbersIn the following example we want to guarantee the first argument is a negative number and the second argument has a positive value or zero:importcheckarg.numberasNumberdefdoSomethingValid(negative_number:int,positive_number:int):Number.is_lower(negative_number,0)Number.is_greater_or_equals(positive_number,0)returnnegative_number,positive_numberUsing CheckArg to validate textThe following example requires the string of the first argument has some content, if it is None or empty or whith whitespaces, it will rise an exception. The second argument only requires to not be None or an empty message:importcheckarg.textasTextdefdoSomethingValid(title:str,body:str):Text.is_not_whitespace(title)Text.is_not_empty(body)returntitle,bodyControlling the flow with the exceptionsWhenever the CheckArg detects something wrong it will raise different exceptions by the context. This is an example controling the flow execution:importcheckarg.none_typeasNoneTypeimportcheckarg.numberasNumberimportcheckarg.textasTextfromcheckarg.exceptionsimportArgumentNoneError,ArgumentError,ArgumentOutOfRangeErrordeflookup_name(mapping,key:str,default:int):try:Number.is_greater(default,0)exceptArgumentOutOfRangeError:returnNonetry:NoneType.is_not_none(mapping)exceptArgumentNoneError:returndefaulttry:Text.is_not_empty(key)except(ArgumentError,ArgumentNoneError)ase:returndefaultreturnmapping[key]ContributingRead theContributing guidelinesDisclaimerBy sending us your contributions, you are agreeing that your contribution is made subject to the terms of ourContributor Ownership StatementMaintainersList ofMaintainersLicenseMIT
Package: check_arg
source:https://github.com/jul/check_argticketing:https://github.com/jul/check_arg/issuesUsageChecking optional/positional arguments and auto documenting at the same timeWarningThe documentation relies on your talent for naming your functions, and having sensible names.Example by using some currying, the purpose is to achieve auto documentation
and validation so that:>>> @set_default_kw_value(port=1026,nawak=123)
>>> @must_have_key("name")
>>> @min_positional(2)
>>> @validate(name = naming_convention(), port = in_range(1024,1030 ))
>>> def toto(*a,**kw):
...    """useless fonction"""
...    print a
...    print kw
...    print "done"
...        return 1gives this results:>>> help(toto)
... Help on function toto in module __main__:
...
... toto(*a, **kw)
...     useless fonction
...
...     **kewords must validate the following rules**:
...
...     * key: <port> must belong to [ 1024, 1030 [,
...     * key: <name> must begin with underscore
...
...     **at_least_n_positional** :2
...
...
...     **keyword_must_contain_key** :name
...
...
...     **default_kw_value** :
...
...     * params: port is 1026,
...     * params: nawak is 123UseTo create a decorator that will be calledbeforethe called functions and which
names and arguments will enhance the documentation as in the following example just do:>>> set_default_kw_value = valid_and_doc(default_kw_value)
>>> min_positional = valid_and_doc(at_least_n_positional)You can provide a default template for the documention as a second argument::>>> def in_range(low,high):
...      def _in_range(_int):
...          return high >= _int > low
...      _in_range.__doc__ = """belong to [ %s, %s [""" % (low, high)
...      return _in_range>>> def _validate(**validator):
...      def wrap(**validator):
...          def rewrapped(*a,**kw):
...              for key,valid in validator.items():
...                  if key in kw and not valid(kw[key]):
...                      raise Exception(
...                          "Key <%s> does not match rule %s" % (
...                              key,default_doc_maker(
...                                  valid,**{ key: kw[key]}
...                      ) ) )
...          return rewrapped
...
>>>      def validate_doc(_validate,  **validator):
...         return """
...
...  **kewords must validate the following rules**:
...
...  %s
...  """ % ( ",\n".join(
...          "* key: <%s> must %s" % (
...                  key, valid.__doc__ is not None and valid.__doc__ or valid.__name__
...                  ) for key, valid in validator.items()
...              ) )
...      return [ wrap, validate_doc ]
...
>>> validate = valid_and_doc(*_validate())Changelog0.1.0 initial release0.1.(1|2|3) trying to have README.txt being seen as Rst
Package: checkatlas
CheckAtlas is a one liner tool to check the quality of your single-cell atlases. For every atlas, it produces the
quality control tables and figures which can be then processed by multiqc. CheckAtlas is able to check the quality of Scanpy, Seurat,
and CellRanger files.More information on theread the doc pageSummaryPowered by nextflow, checkatlas can be ran in one command line:nextflowrunnf-core-checkatlas-rdev--pathsearch_folder/The checkatlas workflow start with a fast crawl through your working directory. It detects Seurat (.rds), Scanpy (.h5ad) or cellranger (.h5) atlas files.Then, it goes through all atlas files and produce summary information:All basic QC (nRNA, nFeature, ratio_mito)General information (nbcells, nbgenes, nblayers)All elements in atlas files (obs, obsm, uns, var, varm)Reductions (pca, umap, tsne)All metrics (clustering, annotation, dimreduction, specificity)All tables and figs are saved in thecheckatlas_filesfolder in your search folder.A single html report is produced, using MultiQC, incheckatlas_files/Checkatlas-MultiQC.html.ExamplesEvaluate and compare different scanpy atlases:Example 1Evaluate different version of one atlas:Example 2Evaluate Scanpy, Seurat and CellRanger objects in your folder:Example 3Evaluate an integrated Scanpy atlas with the corresponding raw CellRanger atlases:Example 4Evaluate different Cellranger atlases with multiple chemistry version and cellranger version:Example 5InstallationCheckAtlas is in two parts. The checkatlas pythn module which can be downloaded with PyPi, and the checkatlas workflow which can be downloaded with nextflow.pipinstallcheckatlasnextflowpullbecavin-lab/nf-core-checkatlasYou need also to install a version of MultiQC with checkatlas capability (for the moment). This version of MultiQC is available at checkatlas branch of github.com:becavin-lab/MultiQC.gitclonegit@github.com:becavin-lab/MultiQC.gitcdMultiQC/
gitcheckoutcheckatlas
pipinstall.Finally, checkatlas comes with rpy2 to perform the interface between python and R. But, it does not automatically install Seurat. So if you want to screen Seurat atlases you need to perfrom this last installation%R
>install.packages('Seurat')>library(Seurat)DevelopmentThis project is in a very early development phase. All helpers are welcome. Please contact us or submit an issue.Read theCONTRIBUTING.mdfile.Project developed thanks to the project template : (https://github.com/rochacbruno/python-project-template/)
Package: check-availability
check-availabilityInstallation$ pip install check_availabilityUsage$ check-availability <service> <name> [options]Example$ check-availability pypi check_availability
GET https://pypi.org/project/check_availability
Got status code 200
The name check_availability is not available on pypiOptionsShorthandOptionDescriptionDefault value-h--helpShow the help.N/A-v--verbose=LEVELSet verbosity. 0 for quiet, 4 for debug.0Status codesCodeMeaning0The name is available1An error occured2The name is not available
Package: checkbed
DescriptionThis is a package for checking plink .bed files (shifted / unshifted):Basic info (number of individual, number of SNPs, etc)Quality control (check whether the shifting is correct)RequirementsPython 3pip3 for installationInstallUsingsetup.pygit clone https://github.com/kindlychung/checkbed.git
cd checkbed
python3 setup.py installUsing pip:From github:pip3 install --upgrade https://github.com/kindlychung/checkbed.gitor from PyPI:pip3 install --upgrade checkbedUsageYou need put your gmail account and password in ~/.pygmailrc, for example:# suppose the main bed file is xxx.bed
checkcoll xxx
bedinfo xxxChange logCorrected the collapsed genotype matrix
Package: checkbox-ng
Checkbox-ngCheckbox-ngis a hardware testing tool useful for certifying laptops,
desktops, servers and IOT devices with Ubuntu.Installation$ sudo add-apt-repository ppa:checkbox-dev/ppa
$ sudo apt-get update
$ sudo apt-get install checkbox-ngDocumentationUsing CheckboxKnown Issueshttps://bugs.launchpad.net/checkbox-project
Package: checkbox-parser
checkbox-parserA python module that takes a list object and transforms it to a HTML fieldsets with a question and its answers as checkboxs that can be rendered in flask. The purpose is that the list that is consumed could reside in a noSQL database as a document(MongoDB, Firestore, DynamoDB)How it works?first, you need a list in this structured way[
    {
        'id_question': 'first', 
        'question': 'What is the most important reason for choosing a gym?', 
        'answers': ['The price', 'That it has personalized attention', 'That it has the best facilities', 'That it has a very long schedule'], 
        'position': 1
    }, 
    
    {
        'id_question': 'third', 
        'question': 'What pay period is the best for you to go to a gym?', 
        'answers': ['Annual', 'Bimonthly', 'Monthly'], 
        'position': 3
    }, 
    
    {
        'id_question': 'second', 
        'question': 'What motivates you the most to join a gym?', 
        'answers': ['Physical appearance', 'Physical condition', 'Know another social circle'], 
        'position': 2
    }
        
]Note:make sure that the id_question value does not repeat itself, this is was intended to map the question with the respectives anwsersThen you just create a html_parser object. This object just needs the list for work
In order to get the html you can use the get_html method, this will return the html as stringfrom checkbox_parser import html_parser


...


parser = html_parser(data)
parser.get_html()Use with flaskThis is a little snippet of how you can use it with flaskfrom flask import Flask, render_template
from checkbox_parser import html_parser


app=Flask(__name__)

@app.route("/")
def survey():

    data = [
    {
        'id_question': 'first', 
        'question': 'What is the most important reason for choosing a gym?', 
        'answers': ['The price', 'That it has personalized attention', 'That it has the best facilities', 'That it has a very long schedule'], 
        'position': 1
    }, 
    
    {
        'id_question': 'third', 
        'question': 'What pay period is the best for you to go to a gym?', 
        'answers': ['Annual', 'Bimonthly', 'Monthly'], 
        'position': 3
    }, 
    
    {
        'id_question': 'second', 
        'question': 'What motivates you the most to join a gym?', 
        'answers': ['Physical appearance', 'Physical condition', 'Know another social circle'], 
        'position': 2
    }
        
    ]

    parser = html_parser(data)
    html = parser.get_html()

    return render_template("your_html_template.html", html=html)

if __name__ == "__main__":
    app.run()Note:I recommend that in your ninja template use the decode method for the html object, in case this prevents bad characters to be rendered.<form action="/endpoint_get" method="GET" name="myForm">

        {{ html.decode('utf-8') | safe }}

    <div class="container">
      <div class="center">
        <button id="submit">submit</button>
      </div>
    </div>

    </form>
Package: checkboxtable
Like a CheckboxList, this widget allows the user to display mutliple checkboxes with associated data.  Unlike a CheckboxList, it allows you to use mutliple data elements to describe each item.  Most of the CSS is stolen verbatim from the DataGrid widget, I just changed the class to checkboxtable so people could use both data grids and checkboxtables without conflicts.Long term I would like to add Javascript to allow some of the cool mutliselect goodness that the GMail inbox shows.  :)
Package: check-build
check-build -- check whether example programs can be builtThecheck-buildtool can be used to build and test different
programs in a temporary build directory. The programs are listed in
a TOML configuration file, along with the commands to build and
test them.Configuration file structureThe file describing the subdirectories with the programs to be built has
the following structure:The "format" sectionTheformatsection contains a single table namedversionwith two
keys,majorandminor, both integers. Themajor.minorpair
specifies the version of the format specification for theprograms.tomlfile itself.The only valid combination of values ismajor = 0andminor = 1.The "program" sectionThis table contains the definitions for the programs thatcheck-buildshould try to build and run. It may have one or more entries with
names corresponding to the names of the subdirectories where the files for
each program may be found.The "program.NAME.prerequisites" sectionThis table currently only has a single valid key,programs: a list of
program names that will be looked for in the current execution search path.If any of these prerequisites are not met,check-buildwill not
attempt to build the program, but it will report it as skipped, not failed.
This may be overridden by the--forcecommand-line option
(or thecheck_build.defs.Config.forceboolean variable): if it is
specified, thencheck-buildwill attempt to build and run the program
even if some of its prerequisites are not met.The "program.NAME.commands" sectionThis table contains the lists of commands to be executed in order to
build and test the program. Each value is a list of commands to be
executed, and each command in its turn is a list of strings:
a program name and arguments to pass to it.There are currently three valid keys in this table:clean: not used yet, sincecheck-buildalways copies the program
files to a newly-created temporary directory, so there should be no
previously-existing build artifactsbuild: one or more commands to execute to build the programtest: one or more commands to execute to make sure that the program
that was just built is operational and correctThecheck-buildcommand-line toolThe most common way to usecheck-buildis through the command-line tool:
runcheck-build, specify the path to the TOML configuration file using
the-coption, optionally pass the-v/--verboseflag. By default,
thecheck-buildtool will try to build and test all the programs
defined in the configuration file; pass one or more program names on
the command line to only build and test those.ExamplesGiven the following contents of theztest/programs.tomlconfiguration file:[format.version]
major = 0
minor = 1

[program.pkg-make]
executable = "ztest"

[program.pkg-make.commands]
clean = [["make", "clean"]]
build = [["make"]]
test = [["make", "test"]]

[program.cmake]
executable = "ztest"

[program.cmake.commands]
clean = [["make", "clean"]]
build = [["cmake", "."], ["make"]]
test = [["./ztest"]]Build and test both programs:check-build -c ztest/programs.tomlOnly build and test the CMake version with somecheck-builddiagnostic messages:check-build -c ztest/programs.toml -v cmake
Package: checkcert
checkcertThis utility was based off ofthis
gist.checkcert has the logic of that gist wrapped in a click-based CLI and added command-line options
(checkcert --help to see them)Full documentation is available athttps://checkcert.readthedocs.ioInstallationfrom PyPipip install checkertUsageWhen you runpip install checkcert, you will get acheckcertcommand.  To
show all the options, simply runcheckcert --helpto get the most-current list
of commands and options.Basic UsageThe basic usage ischeckcert example.comCheck cert with an alternate portAnywhere you specify the host, you may use the formathost:portto specify an
alternate port.  If no port is specified, 443 will be used.  To check something
running on port 8081 for example, executecheckcert example.com:8081Multiple domainscheckcert will take all domains specified on the command line.  Multiple values
may be specified ascheckcert example.com www.example.com alt.example.com:444Domain list from a filecheckcert can be instructed to pull the list of domains from a file instead with
the --filename option.  The file contents will just be a domain per line
(specified in host:port format, or just host to default to port 443)create a file named domains.txt with contents like the followingexample.com
www.example.com
alt.example.com:444Then executecheckcert --filename domains.txt
Package: check-certs
check_certsCheck TLS certificates of sites for their expiration dates. Send notifications if configured to do so.PluginsThe script uses plugins to send out notifications. The file name of a notification plugin should be<plugin_name>_notifier.py, and should be put in theplugins/directory.Configuration FileThe script looks for a certs.yaml file as its configuration in the following locations,current work directory, i.e../~/.check_certs/directory/etc/check_certs/directoryThe configuration file has two main sections,defaultsandsites.Thedefaultssection lists the default values of known settings to the script and its plugins. In thedefaults[notifiers]section, each key should be a plugin name, which should match the prefix of the file name of the actual plugin module.Thesitessection lists all the sites the script checks and their individual configurations if needed. Every default configuration can be overridden in this section.There isan example configuration filein the examples directory.
Package: check-changelog
check-changelogThe project's aims are:validateCHANGELOG.md. Check that it conforms toKeep A ChangelogandCommon Changelogstyles.ensure git tags are documented inCHANGELOG.mdblock pushing tags without changelog. Seegit pre-pushsectionThe supported changelog style isKeep A Changelogstyle with these
additions:allow changelog notes# ChangelogChangelog notes## [Unreleased]allow release notes
(Common Changelogaddition)## [1.0.0] - 2023-05-05Release notes### Added-add feature ...allow custom footer to separate tech stuff from changelog content.
Useful for legal notes, text used by other scripts, HTML comments, etc-----
Linter will ignore this section.
<!--- message for some script -->
[my site]:http://mysite.comInstallationpipinstallcheck-changelogUsageFrom command lineCheck changelog stylecheck-changelog--check-style=yesEnsure git tags are documented in a changelogcheck-changelog--check-tags=historyAddUnreleasedsection to a changelog, create a new changelog if neededcheck-changelog--release=newCreate release3.3.3from currentUnreleasedsectioncheck-changelog--release="3.3.3"--- CHANGELOG.md+++ CHANGELOG.md@@ -2,6 +2,8 @@## [Unreleased]+## [3.3.3] - 2023-07-17+### Changed- some change@@ -20,6 +22,7 @@## [0.1.0] - 2023-07-11[Unreleased]: https://github.com/aanatoly/check-changelog+[3.3.3]: https://github.com/aanatoly/check-changelog/releases/tag/3.3.3[0.3.0]: https://github.com/aanatoly/check-changelog/releases/tag/0.3.0[0.2.1]: https://github.com/aanatoly/check-changelog/releases/tag/0.2.1pre-commit hookAs apre-commithook.
Add this section to your.pre-commit-config.yaml- repo: https://github.com/aanatoly/check-changelog
  rev: '0.4.1'
  hooks:
    - id: check-changeloggit pre-push hookAs a gitpre-pushhook,check-changelogcan blockgitfrom pushing
tags without changelog. To install it that way, run the following commmands# backup existing hookmv.git/hooks/pre-push.git/hooks/pre-push.bak# install new hookcheck-changelog--install-hookand let's test itgittag-a-m"abc.7.7""abc.7.7"gittag-a-m"abc.7.8""abc.7.8"gitpush--tags--dry-run# check-changelog :: INFO  :: file CHANGELOG.md: starting# check-changelog :: INFO  :: task check tags documentation: starting# check-changelog :: INFO  :: scan 2 tags from 'hook' source# check-changelog :: ERROR :: tag 'abc.7.7' not found# check-changelog :: ERROR :: tag 'abc.7.8' not found# check-changelog :: ERROR :: task check tags documentation: fail# check-changelog :: ERROR :: file CHANGELOG.md: failgittag-d"abc.7.7"gittag-d"abc.7.8"AlternativesCheckpython-kacl. It is a feature-rich tool
capable of linting, fixing errors, and automating Changelog maintenance.DevelopmentSeedevelopmentdoc
Package: check-chromedriver
한국어, englishCheck_ChromedriverIt is always annoying to know that your Chromedriver is expired especially when you want to use Selenium.I found that this happends because chrome browser updates itself automatically for its security's sake.Rather than making it not to update by itself, I made a module that checks and updatesChromedirver's version.※ It only works on WindowsInstallInstall$pipinstallcheck-chromderiverSimply import the modulefromCheck_ChromedriverimportCheck_ChromedriverSample UsageCheck and DownloadThis will automatically check not only whether your Chromedriver exists in your directory but also whether it is good to use. It downloads latest stable version of Chromedriver in your root directory. (./chromedriver/chromedriver.exe)Check_Chromedriver.main()if you want to make your own directory, you can say...Check_Chromedriver.driver_mother_path="./your own path"Check_Chromedriver.main()Check_Chromedriver셀레니움을 사용하려고 할 때 기존에 받아 놓은 크롬 드라이버 버전이 만료되어있다면, 새로 다운받는 것이 여간 귀찮은 일이 아니다.이는 크롬 브라우저가 보안 등의 이유로 자동으로 브라우저 업데이트를 진행하기 때문인데, 필자는 이 보안 업데이트를 막음으로써 위 문제를 해결하기보다는, 간단한 모듈을 통해크롬드라이버를 자동으로 다운받게 함으로써 항상 최신 버전을 유지할 수 있도록 했다.※ 윈도우에서만 작동 가능설치설치$pipinstallcheck-chromedriver모듈 importfromCheck_ChromedriverimportCheck_Chromedriver사용 예버전 체크 및 자동 다운로드현재 루트에 크롬드라이버가 존재하는지 또는 존재한다면 사용가능한지 체크한 후 안정적인 최신 버전의 크롬드라이버를 다음 루트에 다운로드한다.(./chromedriver/chromedriver.exe)Check_Chromedriver.main()./chromedriver/chromedriver.exe 루트가 아닌 자신만의 루트를 만들고싶다면 아래와 같이 작성...Check_Chromedriver.driver_mother_path="./your own path"Check_Chromedriver.main()