Saravanan666/pypi-org huggingface dataset:
Package: claimer
librAIry ClaimerIntroductionClaimer is our cutting-edge tool designed to revolutionize the process of analyzing textual paragraphs and extracting verifiable claims. By leveraging state-of-the-art techniques, we have created a method that breaks down complex text into individual statements that can be fact-checked and validated.This powerful tool aims to enhance information comprehension, promote critical thinking, and support researchers, journalists, and fact-checkers in their pursuit of accurate and reliable information. With its advanced capabilities, our tool opens new avenues for assessing claims and fostering transparency in an ever-expanding digital landscape.InstallationTo install the package, run:pipinstallclaimerAfterwards, some resources must be downloaded. This can be either be done by manually callingpython-mspacydownloaden_core_web_md
python-mspacy_entity_linker"download_knowledge_base"Usefromclaimerimportparagraph# version 3.5# prepare a paragraphtext="Face masks don’t work. Science in this area has evolved during the outbreak, the body of scientific evidence that has built up shows that the risk of transmission is made lower by wearing a face covering.  The more we learn about COVID-19 the clearer it is that face coverings are an absolute vital tool in our fight against the virus. They effectively capture droplets, which is the main way the virus travels from person to person. According to the British Medical Association, if you don't wear it and have COVID-19, the risk of spreading it to others can be as high as 70%. If you do wear it, the risk drops to 5%. Make sure you wear it in all public indoor spaces and whenever you can't keep a 2m distance from others. Use a face covering is simple and easy way we can all stop the spread of the virus.",# retrieve the claimsclaims=paragraph.get_claims(text)# iterates over claimsfori,claiminenumerate(claims):print(f"{i}){claim}")# OUTPUT:# 0) Face masks don’t work.# 1) Science in this area has evolved during the outbreak, the body of scientific evidence that has built up shows that the risk of transmission is made lower by wearing a face covering.# 2)  The more we learn about COVID-19 the clearer it is that face coverings are an absolute vital tool in our fight against COVID-19 .# 3) face coverings effectively capture droplets, which is the main way COVID-19 travels from person to person.# 4) According to the British Medical Association, if you don't wear face coverings and have COVID-19 , the risk of spreading it to others can be as high as 70%.# 5) If you do wear face coverings , the risk of spreading it to others drops to 5%.# 6) Make sure you wear face coverings in all public indoor spaces and whenever you can't keep a 2m distance from others.# 7) Use a face covering is simple and easy way we can all stop the spread of COVID-19NoteThe Claimer at the current state is still experimental and should not be used in production mode.
Package: claims
ClaimsPort ofclaims.tsUsageAbility:ability = build_ability(permitted=["read:*", "admin:something"], prohibited=["admin:bad"])ability.can("read:stuff"):boolability.cannot("admin:others"):boolability.is_explicitly_prohibited("admin:bad.inside"):boolability.access_to_resources("read:clients")returns aKeySetClaimSetclaim_set = build_claim_set(["read:*", "admin:something"])claim_set.check("read:stuff"):boolclaim_set.direct_children_of("read:stuff"):List[str]claim_set.direct_descendants_of("read:stuff"):List[str]claim_set.add_if_not_checked("read:stuff"):ClaimSet(same instance ifclaim_set.check("read:stuff")is True, a new one with the claim added otherwise).Claimclaim = build_claim("read:*")claim.is_global():boolclaim.has_verb("read"):boolclaim.has_resource("*"):boolclaim.is_exact("read:*"):boolclaim.check("read:stuff"):boolclaim.direct_child_of("read:stuff"):Optional[str]claim.direct_descendant_of("read:stuff"):Optional[str]claim.is_direct_child_of("read:stuff"):boolclaim.is_direct_descendant_of("read:stuff"):boolValid verbs"admin", "read", "delete", "create", "update", "manage"
Package: clair
# ClairClair is an open source project for the static analysis of vulnerabilities in appc and docker containers (https://github.com/coreos/clair).This Python package provides methods to analyse a local Docker image and injects image layers to a Clair server.# LicenseAll code is under Apache 2.0 or more.Copyright 2015 Olivier Sallou <olivier.sallou@irisa.fr>.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at.http://www.apache.org/licenses/LICENSE-2.0.Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.# Examplecfg = {'clair.host': 'http://127.0.0.1:6060','docker.connect': 'tcp://127.0.0.1:2375'}log = logging.getLogger(__name__)test = Clair(cfg)layers = test.analyse('docker-registry.genouest.org/osallou/testgit')layer_ids = []for layer in layers:layer_ids.append(layer['id'])vulnerabilities = test.get_layers_vulnerabilities(layer_ids)log.warn(str(vulnerabilities))0.2: Fix packaging0.1: First release
Package: clairvoyance
ClairvoyanceObtain GraphQL API schema even if the introspection is disabled.IntroductionSome GraphQL APIs have disabled introspection. For example,Apollo Server disables introspection automatically if theNODE_ENVenvironment variable is set toproduction.Clairvoyance helps to obtain GraphQL API schema even if the introspection is disabled. It produces schema in JSON format suitable for other tools likeGraphQL Voyager,InQLorgraphql-path-enum.ContributorsThanks to the contributors for their work.nikitastupinEscapeteamiCarossioSwanQuentinN42Nohehfi-tsaturovEONRaidernorajbelaneGetting Startedpippipinstallclairvoyance
clairvoyancehttps://rickandmortyapi.com/graphql-oschema.json# should take about 2 minutesdockerdockerrun--rmnikitastupin/clairvoyance--helpAdvanced UsageWhich wordlist should I use?There are at least two approaches:Use general English words (e.g.google-10000-english).Create target specific wordlist by extracting all valid GraphQL names from application HTTP traffic, from mobile application static files, etc. Regex for GraphQL name is[_A-Za-z][_0-9A-Za-z]*.Environment variablesLOG_FMT=`%(asctime)s\t%(levelname)s\t|%(message)s`# A string format for logging.LOG_DATEFMT=`%Y-%m-%d%H:%M:%S`# A string format for logging date.LOG_LEVEL=`INFO`# A string level for logging.SupportDue to time constraints @nikitastupin won't be able to answer all the issues for some time but he'll do his best to review & merge PRsIn case of questions or issues with Clairvoyance please refer towikiorissues. If this doesn't solve your problem feel free to open anew issue.ContributingPull requests are welcome! For major changes, please open an issue first to discuss what you would like to change. For more information about tests, internal project structure and so on refer toDevelopmentwiki page.DocumentationYou may find more details on how the tool works in the second half of theGraphQL APIs from bug hunter's perspective by Nikita Stupintalk.
Package: clairvoyance2
clairvoyance2❗ This library has been superseded bytemporaiand is being sunset, please usetemporaiinstead.Installationpip install clairvoyance2ModelsModelStatusPrediction (Forecasting)RNN✅Seq2Seq✅Imputation{f,b}fill & Mean✅Individualized Treatment EffectsCRN✅SyncTwin✅Tutorials📔 Basic Usage📔 Example: CRN📔 Example: SyncTwin
Package: clairvoyancenext
ClairvoyanceObtain GraphQL API Schema even if the introspection is disabled.IntroductionSome GraphQL APIs have disabled introspection. For example,Apollo Server disables introspection automatically if theNODE_ENVenvironment variable is set toproduction.Clairvoyance allows us to get GraphQL API schema when introspection is disabled. It produces schema in JSON format suitable for other tools likeGraphQL Voyager,InQLorgraphql-path-enum.ContributorsThanks to thecontributersfor their work.nikitastupinEscapeteam :iCarossioSwanQuentinN42Nohehfi-tsaturovEONRaidernorajbelaneGetting startedpipinstallclairvoyance
clairvoyancehttps://rickandmortyapi.com/graphql-oschema.json# should take about 2 minuteDocker Imagedockerrun--rmnikitastupin/clairvoyance--helpAdvanced UsageWhich wordlist should I use?There are at least two approaches:Use general English words (e.g.google-10000-english).Create target specific wordlist by extracting all valid GraphQL names from application HTTP traffic, from mobile application static files, etc. Regex for GraphQL name is[_A-Za-z][_0-9A-Za-z]*.Environment VariablesLOG_FMT=`%(asctime)s\t%(levelname)s\t|%(message)s`# A string format for logging.LOG_DATEFMT=`%Y-%m-%d%H:%M:%S`# A string format for logging date.LOG_LEVEL=`INFO`# A string level for logging.SupportDue to time constraints @nikitastupin won't be able to answer all the issues for some time but he'll do his best to review & merge PRsIn case of question or issue with clairvoyance please refer towikiorissues. If this doesn't solve your problem feel free to open anew issue.ContributingPull requests are welcome! For major changes, please open an issue first to discuss what you would like to change. For more information about tests, internal project structure and so on refer toDevelopmentwiki page.DocumentationYou may find more details on how the tool works in the second half of theGraphQL APIs from bug hunter's perspective by Nikita Stupintalk.
Package: clait
A tool to generate nicely formatted and LaTeX generated invoices.How to install?just run:python3 setup.py installHow to develop?pip3 install zc.buildout
buildoutyou’ll find the tool in:bin/claitExternal dependencyyou need to make sure you have installed the texlive suite, along with
thepdflatextool. No special LaTeX library is needed.How to use?create a directory such aspaperwork, within it create two files:invoices_config.yaml:that will contain the name of the template (formatkey) the path to
the pdflatex tool, and insourceall the custom information for your
billing.format: french
source:
    name: Ford Prefect
    address:
        - Hyperspace bypass
        - Earth
    telephone: +44 777 7777 7777
    website: http://mostly.harmless.com
    email: ford.prefect@mostly.harmless.com
    siren: 111 222 333
    ape: 9602A
    bank:
        rib:
            - 00001
            - 00002
            - 00000000001
            - 42
        iban: FR42 0000 1000 0200 0000 0000 142
        bics: FOOBARFUBAR
tools:
    pdflatex: /usr/local/texlive/2014/bin/universal-darwin/pdflatexinvoices_list.yaml:that will contain a list of!invoiceobjects. Theiidwill be
the unique reference of the invoice. Then all the elements are as
defined by the template.- !invoice
  iid: 201410-001
  date: 2014-10-02
  kind: paid
  customer: !customer
    address: [Alpha du centaure]
    name: Zaphod Beeblebrox
  subject: Voyage en dauphin
  desc: "Pr\xE9paration et embarquation sur un dauphin \xE0 travers les mers"
  place: Babylon
  products:
  - !product
    descr: Soutien psychologique du dauphin
    price: 430
    qty: 1
  - !offer
    descr: Discount because I'm nice
    price: 20
    qty: 1How to run?To generate all your invoices, in thepaperworkdirectory:clait -d paperwork generateIf you want your tax calculation:clait -d paperwork results quarterly
clait -d paperwork results yearlyAnd finally, to launch the webapp, useclait -d paperwork apiIf you’ve made a change to an invoice and need to regenerate, just
remove the pdf file!How will it look like?here’s a shot of one of the example invoices:IV201410-001.pdfLicenseThis code is licensed under the GPLv3.
Package: claix
claix: Command Line AI eXpertTransforming user instructions into CLI commands with the power of GPT-4, right in your terminal.Key FeaturesAI-Powered Command Generation: Uses GPT-4 for interpreting and translating natural language instructions into CLI commands.Integrated Terminal Workflow: Directly operates in the terminal for enhanced efficiency.Automated Error Handling: Processes command execution errors and suggests alternative commands.User Convenience: Eliminates the need for copy-pasting from web browsers.Adaptive Solutions: Generates alternative commands based on the context of encountered errors.PrerequisitesPython 3.6+ and an active internet connection.OPENAI_API_KEYenvironment variable set up.Access to thegpt-4-1106-previewmodel.Installationpipinstall--upgradeclaixUsage ExamplesTaskInstructionOutputChange file extensionsclaix change the extension of all files under images/ from .jpeg to .jpgfind images/ -type f -name "*.jpeg" -exec sh -c 'x="{}"; mv "$x" "${x%.jpeg}.jpg"' \;List Git branchesclaix list all git branches in order of creationgit for-each-ref --sort=creatordate --format '%(refname:short)' refs/heads/Find large filesclaix find all files larger than 10MB in this directoryfind . -type f -size +10MContributingWe welcome contributions to claix! Here's how you can contribute:Fork the project.Create a feature branch.Commit your changes.Push to the branch.Open a pull request.Licenseclaix is released under the MIT License.ContactFor queries or contributions, contact via email atfacundogoiriz@gmail.comor on GitHub atfakamoto.Future PlansEnhanced UI.Function calling capabilities.Integration of external commands.Adaptation of commands based on environmental data.FAQsQ: How accurate are the commands generated by claix?A: claix uses a GPT-4 powered assistant specialized in CLIs for high accuracy.Q: Can it handle complex instructions?A: Currently optimized for single-step commands, with plans to handle multi-step instructions in the future.Q: What if claix doesn't understand my instruction?A: Try rephrasing or simplifying. claix is continually improving in understanding various instructions.Q: What are the limitations of claix's commands?A: Best suited for Linux CLI commands; may not handle highly specialized or context-specific commands well.Q: How does claix handle errors from executed commands?A: It suggests alternative commands by analyzing the error context, reducing the need for manual intervention.
Package: clalogger
clalogger - Python logging from class point of view with easy configurationSee doc/index.rstThis project provides a python ClaLogger class which have to be inherited and
provides logging which uses loggers based on the class name.It also provides easy configuration features, via aconfigfilefile.Installation and requirementsThis requirespython >= 3.7. It can be simply installed viapip install clalogger.Development also needspipenv. You have tocdto the package directory and
runpipenv shell, followed bypipenv install -d. Development environment
can then easily be setup usingpython setup.py develop.Building the documentation also requiressphinx. It is automatically
installed viapipenv install d-.Contacts, issues and copyrightThe author can be contacted on: michael_AT_hooreman_DOT_beIssues can be described on the github project:https://github.com/mhooreman/claloggerCopyright (C) 2019 Michaël Hooreman
Released under the terms of the MIT license, see LICENSE.
Package: clamav
ClamAV for Python lets you use the libclamav scanning engine from Python.Why?pyClamAV was abandoned in favor of pyClamd, which never worked for me well under Windows. As a result, I decided to roll my own bindings.RequirementsCFFIlibclamavDocumentationThere isn’t any documentation right now, but the source shouldn’t be difficult to read. Also check out ex.py, a simple example of how to use the engine.LinksPyPIGitHubIssue tracker
Package: clamavmirror
WhyThe existingclamdownloader.plscript does not have any error correction it simply bails out if a
downloaded file is not valid and is unable to retry different mirrors if
one fails.This script will retry if a download fails with an http code that is not
404, it will connect to another mirror if retries fail or file not found
or if the downloaded file is invalid.It has options to set the locations for the working and mirror directory
as well as user/group ownership for the downloaded files. It uses
locking to prevent multiple instances from running at the same time.RequirementsUrllib3 module -https://urllib3.readthedocs.orgDNS-Python module -http://www.dnspython.org/Usage$ clamavmirror -hUsage: clamavmirror [options]Options:-h,--helpshowthishelpmessageandexit-aHOSTNAME,--hostname=HOSTNAMEClamAVsourceserverhostname-rTXTRECORD,--text-record=TXTRECORDClamAVUpdatesTXTrecord-wWORKDIR,--work-directory=WORKDIRWorkingdirectory-dMIRRORDIR,--mirror-directory=MIRRORDIRThemirrordirectory-uUSER,--user=USERChangefileownertothisuser-gGROUP,--group=GROUPChangefilegrouptothisgroup-lLOCKDIR,--locks-directory=LOCKDIRLockfilesdirectoryExample Usage$ clamavmirror -w ~/tmp/clamavtmp/ \
-d ~/tmp/clamavmirror/ -u andrew -g staff -a db.za.clamav.net \
-l ~/Downloads/InstallationInstall from PyPipip install clamavmirrorInstall from Githibgit clone https://github.com/akissa/clamavmirror.git
cd clamavmirror
python setup.py installContributingFork it (https://github.com/akissa/clamavmirror/fork)Create your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create new Pull RequestLicenseAll code is licensed under theMPLv2
License.
Package: clamav-unofficial-updates
ClamAV third party signature updates libraryThis package provides a simple way to create, download, test, and update
ClamAV third-party signature databasesInstallationInstall from PyPipip install clamav-unofficial-updatesInstall from Githibgit clone https://github.com/akissa/clamav-unofficial-updates.git
cd clamav-unofficial-updates
python setup.py installContributingFork it (https://github.com/akissa/clamav-unofficial-updates/fork)Create your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create new Pull RequestLicenseAll code is licensed under theAGPLv3+
License.
Package: clamd
clamdAboutclamdis a portable Python module to use the ClamAV anti-virus engine on
Windows, Linux, MacOSX and other platforms. It requires a running instance of
theclamddaemon.This is a fork of pyClamd v0.2.0 created by Philippe Lagadec and published on his website:http://www.decalage.info/en/python/pyclamdwhich in turn is a slightly improved version of pyClamd v0.1.1 created by Alexandre Norman and published on his website:http://xael.org/norman/python/pyclamd/UsageTo use with a unix socket:>>> import clamd
>>> cd = clamd.ClamdUnixSocket()
>>> cd.ping()
'PONG'
>>> cd.version()                             # doctest: +ELLIPSIS
'ClamAV ...
>>> cd.reload()
'RELOADING'To scan a file:>>> open('/tmp/EICAR','wb').write(clamd.EICAR)
>>> cd.scan('/tmp/EICAR')
{'/tmp/EICAR': ('FOUND', 'Eicar-Test-Signature')}To scan a stream:>>> from six import BytesIO
>>> cd.instream(BytesIO(clamd.EICAR))
{'stream': ('FOUND', 'Eicar-Test-Signature')}Licenseclamdis released as open-source software under the LGPL license.clamd InstallHow to install the ClamAV daemonclamdunder Ubuntu:sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs
sudo freshclam
sudo service clamav-daemon startChanges1.0.2 (2014-08-21)Remove all dependencies. clamd is now standalone!Use plain setuptools no d2to1.Create universal wheel.1.0.1 (2013-03-06)Updated d2to1 dependency1.0.0 (2013-02-08)Change public interface, including exceptionsSupport Python 3.3, withdraw 2.5 support0.3.4 (2013-02-01)Use regex to parse file status reponse instead of complicated string split/join0.3.3 (2013-01-28)First version of clamd that can be installed from PyPI
Package: clamdpy
clamdpyA Python wrapper aroundclamd, theClamAVdaemon.This is a maintained and updated fork ofhttps://github.com/graingert/python-clamd/, credit goes to the original developer(s).InstallationUsingpip:pipinstallclamdpyUsagefromioimportBytesIOfromclamdpyimportClamdNetworkSocketclamd=ClamdNetworkSocket(host="127.0.0.1",port=3310,timeout=15,)clamd.ping()#> 'PONG'clamd.version()#> VersionInfo(version='ClamAV 0.103.9', signature=27065, signature_date=datetime(2023, 10, 18, 9, 49, 14))# Raw response can be fetched as well:clamd.version(raw=True)#> 'ClamAV 0.103.9/27065/Wed Oct 18 09:49:14 2023'clamd.instream(BytesIO(b"data"))#> ScanResult(path='stream', reason=None, status='OK')Most of theclamd commandsare implemented (a couple ones are missing and should be implemented sooner or later).It is possible to useUNIX socketsas well:fromclamdpyimportClamdUnixSocketclamd=ClamdUnixSocket(path="/var/run/clamav/clamd.ctl")Line delimitationsBy default,\nwill be used to terminate lines. Clamd also supportsNULLcharacters:fromclamdpyimportClamdNetworkSocketclamd=ClamdNetworkSocket(line_terminator="z")[!WARNING]Support for theNULLcharacter isn't tested and may not work as it doesn't play well with Python. Use with caution.
Package: clamfig
ClamfigFeatures:Serialization and deserialization of dataclass objectsCompatible with JSON/YAML formatsSupports nested dataclassesSerializes the following additional types:bytesDecimaldatetimeConfiguration file management using JSON or YAML formatFuture WorkAdd validation for deserialization from unreliable sourcesExpand beyond dataclasses to handle other frameworks that include runtime validation.Atom (https://github.com/nucleic/atom)Pydantic (https://github.com/samuelcolvin/pydantic)AcknowledgementsSome code inspired byhttps://github.com/codelv/atom-db
Package: clamg
CLassAttributeModelGeneratorGiven a nested dict create a hierarchical object model.Optionally provide models inYAMLorJSONformat.Some would say this is just a dict-wrapper.Example: Loading a nested dict>>>data=dict(obj=dict(foo="bar",spam="eggs",a_list=[1,2,3]))>>>data{'obj':{'foo':'bar','spam':'eggs','a_list':[1,2,3]}}>>>x=clamg.unpack(data)>>>x<clamg(obj=<obj(foo=bar,spam=eggs,a_list=[1,2,3])>)>>>>x.obj.foo'bar'Example: Loading YAML>>>SAMPLE_YAML="""\... obj:...   yaml: yes...   foo: bar...   spam: eggs...   a_list:...     - 1...     - 2...     - 3... """>>>clamg.loads(SAMPLE_YAML)<clamg(obj=<obj(yaml=True,foo=bar,spam=eggs,a_list=[1,2,3])>)>Example: Loading JSON>>>SAMPLE_JSON='{"obj": {"json": "yes", "foo": "bar", "spam": "eggs", "a_list": [1,2,3]}}'>>>clamg.loads(SAMPLE_JSON)<clamg(obj=<obj(json=yes,foo=bar,spam=eggs,a_list=[1,2,3])>)>It has occasionally proven useful when working with deeply nested structures.