Saravanan666/pypi-org huggingface dataset:
Package: pysidetap
Python Simple decision table procesorInstallpysidetap is available on PyPIpypi-pysidetapand you can install it using pip:`sh pip install pysidetap `SummarySimple Decision Table Processorhttps://en.wikipedia.org/wiki/Decision_tableThis function find and return field ‘return’ from Decision Table,when all operands in row by ‘fields’ are True.Example:This example show use case off Traffic lights decisions.https://en.wikipedia.org/wiki/Traffic_light#Meanings_of_signalsDecision Table:redyellowgreenreturn==on==off==offstop==on==on==offready==off==off==ongo==off==on==offbreak==off==off==offofffrompysidetap.processorimportDTProcessorDTableTL=[{'fields':{'red':{'op':'==','value':'on'},'yellow':{'op':'==','value':'off'},'green':{'op':'==','value':'off'},},# Traffic may not proceed beyond the stop line or# otherwise enter the intersection'return':{'stop'}},{'fields':{'red':{'op':'==','value':'on'},'yellow':{'op':'==','value':'on'},'green':{'op':'==','value':'off'},},# The signal is about to change, but the red light rules do apply'return':{'ready'}},{'fields':{'red':{'op':'==','value':'off'},'yellow':{'op':'==','value':'off'},'green':{'op':'==','value':'on'},},# Traffic may not pass the stop line or enter the intersection# unless it cannot safely stop when the light shows'return':{'go'}},{'fields':{'red':{'op':'==','value':'off'},'yellow':{'op':'==','value':'on'},'green':{'op':'==','value':'off'},},# Traffic may proceed unless it would not clear the intersection# before the next change of phase'return':{'break'}},{'fields':{'red':{'op':'==','value':'off'},'yellow':{'op':'==','value':'off'},'green':{'op':'==','value':'off'},},# Traffic lights is off'return':{'off'}},]p=DTProcessor(DTableTL)forredin['on','off']:foryellowin['on','off']:forgreenin['on','off']:result=p.process({'red':red,'yellow':yellow,'green':green})print(f'red:{red}, yellow:{yellow}, green:{green}, result:{result}')Issues and DiscussionsAs usual for any GitHub-based project, raise anissueif you find any bug or
want to suggest an improvement, or open adiscussionif you want to discuss
or chat :wink:Versionv0.0.10Changelogv0.0.10 (2023-12-22)v0.0.9 (2023-12-22)v0.0.8 (2023-12-22)v0.0.7 (2023-12-22)v0.0.6 (2023-12-22)v0.0.5 (2023-12-22)v0.0.4 (2023-01-08)documentation updateadded traffic lights examplev0.0.3 (2023-01-05)documentation updatev0.0.2 (2023-01-05)First release on PyPI.v0.1.0 (2023-01-05)
Package: pyside-tooltip
Custom Tooltips for PySide--------To use you will need to subclass Tooltip or TooltipWithArrow and implement the getWidget function::>>> class MyTooltip(Tooltip):>>>   def getWidget(self):>>>	    return MyQWidget()getWidget should return the widget that you wish to be displayed as a tooltip.Your tooltip will need a few parameters to initialize::>>> my_tooltip = MyTooltip(hoverable_widget, list_of_positionings, main_window, gap=7)**hoverable_widget** is the widget that will trigger the tooltip.**list_of_positionings** is a list of tuples: (TooltipPositioning, TooltipAlignment).**TooltipPositioning** can be one of Tooltips Macros: Tooltip.LEFT_POSITIONING, Tooltip.TOP_POSITIONING, Tooltip.RIGHT_POSITIONING or Tooltip.BOTTOM_POSITIONINGPositionings should be TooltipWithArrow.*_POSITIONING if you chose to subclass TooltipWithArrow.**TooltipAlignment** should be one of the functions included in TooltipAlignment.Therefore, a **list_of_positioning** could be: [(TooltipWithArrow.RIGHT_POSITIONING, alignToTop), (TooltipWithArrow.LEFT_POSITIONING, alignToTop)].A Tooltip will always try to use the Positioning you chose in order and will not display at all if there is no room in the screen for it.**main_window** is the window in which your tooltip will display. It is used to calculate the positioning and alignment.**gap** is the space in pixels between the **hoverable_widget** and the **Tooltip**.
Package: pyside-ui-backpack
ps-ui-backpackPySide UI UtilitiesSome shared PySide2 UI utilities for Maya/Houdini/Nuke Qt ToolsInstallationpipinstallpyside-ui-backpackUsageWidgetsfromps_uiimportwidgets,Colorswidgets.PushButton(parent,'qt_name','Click Me',(120,21),Colors.BLUE)Dialogsfromps_uiimportdialogsdialogs.inform_dialog(parent,'message','title')dialog.inform_dialog_small(parent,'message','title')dialogs.warning_dialog(parent,'error_message','title')dialogs.warning_dialog(parent,'error_message','title')CSSfromps_uiimportstyle_push_button,Colors# style a button widgetbutton=QPushButton(main_window)style_push_button(main_window,button,Colors.BLUE)ColorsColors.py contains a list of colorsfromps_uiimportColorsColors.DISABLEDColors.BLUE,Colors.RED,Colors.GREEN,Colors.YELLOW,Colors.ORANGE,Colors.GREY,Colors.WHITEColors.DARK_BLUE,Colors.DARK_RED,Colors.DARK_GREEN,Colors.DARK_YELLOW,Colors.DARK_ORANGE,Colors.DARK_GREY,Colors.DARK_WHITEUtilsWait Cursor decoratorfromps_uiimportwait_cursor@wait_cursordeflong_running_function():pass
Package: pysidian
pysidianA CLI tool written in Python intended for managing obsidian plugin deployments and developmentInstallationto install a safer versionpipinstallpysidianSecurity ConsiderationsDo not use PluginWorkplace.createFromSample() in productionExample usageimportshutilimportosfrompysidianimportPlugin,Vaultfrompysidian.core.indeximportcurrent_plugin_indexp=Plugin.sample("testing","pluginSrc")p._clearStagingFolder()p.stage()try:p.commit()exceptExceptionase:print(e.args[0])shutil.rmtree(os.path.join("testing","sampleVault"),ignore_errors=True)v=Vault.init("testing/sampleVault")try:p.addVault(v)exceptExceptionase:print(e.args[0])assertv.idincurrent_plugin_index.get(p.cwd).get("installed")p.push()v.open()p.openWorkDir()
Package: py-sidif
py-sidifSiDIF (Simple Data Interchange Format) parserWhat it isParser for Simple Data Interchange FormatSiDIFInstallationpipinstallpy-sidifGet Sourcesgitclonehttps://github.com/WolfgangFahl/py-sidifcdpy-sidif
scripts/installTestingscripts/testUsageseetest casesDocumentationWikiAuthorsWolfgang Fahl
Package: pysidocast
Pygame 6DoF Ray CasterPySiDoCast is a Python module that allows you to render 3D scenes using Pygame images.WarningThere is no GPU support for the moment: The rendering is made on the CPU only.InstallationTo install PySiDoCast, simply use pip:pip install pysidocastUsageHere is a basic example of how to use PySiDoCast to render a 3D scene:importpygamefrompysidocastimportScene# Initialize Pygamepygame.init()screen=pygame.display.set_mode((480,480))# Load an image using pygameimage=pygame.image.load(".\\img.png").convert_alpha()# using ".convert_alpha()" is MANDATORY# Create a new Scenescene=Scene()# Add the image into the scenescene.add_wall(image,(-1,2,3),(1,0,1))# Main LoopwhileTrue:# Render the scenescene.render(screen,(0,1,0),0,90,fov=60)# Update the screenpygame.display.update()foreventinpygame.event.get():ifevent.type==pygame.QUIT:exit()FeaturesCreate 3D objects with basic shapesMultiples Scenes supportRender to Pygame SurfaceSimple Camera movementCustomizable lightingTransparency using DitheringContributionAny contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.LicensePySiDoCast is licensed under the MIT license.
Package: pySiesta
pySiesta provides a tool to work with siesta package within a Python script. You might find
it most useful for tasks involving input generation. Typical usage
often looks like this:#!/usr/bin/env python

from pySiesta import location
from towelstuff import utils

if utils.has_towel():
    print "Your towel is located:", location.where_is_my_towel()(Note the double-colon and 4-space indent formatting above.)Paragraphs are separated by blank lines.Italics,bold,
andmonospacelook like this.A SectionLists look like this:FirstSecond. Can be multiple lines
but must be indented properly.A Sub-SectionNumbered lists look like you’d expect:hi theremust be goingUrls arehttp://like.thisand links can be
writtenlike this.ContributorsIs there any?
Package: pysig
Welcome to pysigpysigis a library intended to provide an extensible framework for managing events dispatching inside a complex application or over a network.Feature setTo make avery shortsummary of whatpysigcan do, we could list the followings:it enables subscription mechanisms that are able toregister for aspecific eventtriggered by aspecific senderregister forbroadcast eventstriggered byanyevent of aspecific senderregister forbroadcast eventstriggered byanyevent ofany senderregister forchannel eventstriggered byspecificevents from anysenderregister listeners without depending on the sender registrationsupports firingrequeststo connected senders, for accessing data instantlystateful sender connection, automatically firingconnectanddiconnecteventsdistribute events intra-process, inter-process or over a given networkbuilt-in server and client implementationbuilt-in TCP carrier for TCP/IP networkspermits custom transport carrier implementation for dispatching events over different communication mediums (like serial connections) or for transporting them under a different formatpermits custom data encoding (default is JSON encoding)DocumentationFor the latest documentation and tutorials please visit:http://pysig.readthedocs.org
Package: pysigep
PySIGEPInterface python para uso dos serviços fornecidos pelo SIGEPWeb dos Correios.SobreO SIGEP WEB é um sistema com o propósito de preparar e gerenciar
as postagens de Clientes dos Correios. Seus principais atributos técnicos são:
facilidade e rapidez na preparação das postagens e gestão das informações sobre os objetos postados.FeaturesVerificarstatusde um Cartão de PostagemObter dados do endereço a partir de seu respectivo CEP.Verificar disponibilidade de um dado serviço.Gerar etiquetas para postagem de mercadoria.DocumentaçãoPara mais detalhes sobre a PyCEPCorreios, por gentileza, consulte a documentação oficial (também disponível em Inglẽs):Documentação online:https://pysigep.readthedocs.io.Documentação PDF:downloadInstalaçãoA versão atualainda esta em fase de desenvolvimento, sendo que os recursos
disponiveis podem ser removidos sem aviso prévio. Portanto, não é recomendável
seu uso em ambiente de produção.pipinstallpysigepAviso debugs, dúvidas e sugestõesPara dúvidas, sugestões e relatórios debugs, por gentileza, crie umaissue:Issue Tracker:https://github.com/mstuttgart/pysigep/issuesComo contribuirDeseja participar do desenvolvimento da PyCepCorreios? Torne-se um contribuidor do PyCEPCorreios!
visite a documentação para verificar aguidelinede contribuição:Vejaaqui.ContribuidoresAgradecimentos aos seguintes contribuidores pelo esforço de fazer a PyCEPCorreios
melhor:Lista de contribuidores:https://github.com/mstuttgart/pysigep/graphs/contributorsCréditosCopyright (C) 2016-2018 por Michell StuttgartHistorico0.0.1 (2018-05-06)Versão inicial de desenvolvimento.
Package: pysigfig
pysigfigA package for creating and manipulating floating point numbers accounting for significant figuresQuickstartimport math

import pysigfig as pysf


# a number with 4 singificant digits
x = pysf.Float("1.234")
# a number with 3 significant digits
y = pysf.Float("31.1")

z1 = x + y
z2 = x * y

# z1 should have tenths digit as the least significant
print(z1)
# z2 should have 3 significant digits
print(z2)

area = pysf.Const(math.pi) * pysf.Float("2.0")**2
# area should have 2 significant digits
print(area)ReferencesFor a simple overview of arithmetic with significant figures, see theWikipedia Page.Methods of Entry# Enter a floating point number and specify the number of significant digits
pysf.Float(1.2345, 2)
pysf.Float(1.2, 8)

# Enter the string representation
pysf.Float("1.23") # 3 sig figs
pysf.Float("1.230000") # 7 sig figs
pysf.Float("0.0045") # 2 sig figs
pysf.Float("100000") # 6 sig figs
pysf.Float("1.0E+06") # 2 sig figs

# Enter a constant
pysf.Const(2)
pysf.Const(math.pi)Limitationspysigfigcannot accept a string like "100000" and assign only one significant digit to it.  However, this can be entered in scientific notation or as a float.# Enter 100000 with 1 significant figure
pysf.Float("1E+05")
pysf.Float(100000, 1)
Package: pysigfox-client
pysigfoxpysigfoxis an unofficial client for the V2sigfox API.Inspired frompython-sigfox-backend-api.ResourcesOfficial sigfox API documentationDocumentationHistory0.1.0First version0.1.1Fix cast to integer for datetime.datetime to timestamps in milliseconds0.1.2Add constants for device end points0.1.3Add api user end point0.1.4Add global timeout
Package: pysight
PySight is an application aimed at generating multidimensional imagesfrom photon lists. The main use case is to parse.lstfiles whichwere generated by FAST ComTec’s multiscaler, but other photon listscan also be parsed.PySight was featured in`this <https://www.osapublishing.org/optica/abstract.cfm?uri=optica-5-9-1104>`_Opticaarticle, and was created in Pablo Blinder’s Lab at Tel Aviv University.
Package: pySigma-backend-elasticsearch
pySigma Elasticsearch BackendThis is the Elasticsearch backend for pySigma. It provides the packagesigma.backends.elasticsearchwith theLuceneBackendclass.It supports the following output formats:default: Lucene queries.dsl_lucene: DSL with embedded Lucene queries.eql: Elastic Event Query Language queries.kibana_ndjson: Kibana NDJSON with Lucene queries.Further, it contains the following processing pipelines insigma.pipelines.elasticsearch:ecs_windows in windows submodule: ECS mapping for Windows event logs ingested with Winlogbeat.ecs_windows_old in windows submodule: ECS mapping for Windows event logs ingested with Winlogbeat <= 6.x.ecs_zeek_beats in zeek submodule: Zeek ECS mapping from Elastic.ecs_zeek_corelight in zeek submodule: Zeek ECS mapping from Corelight.zeek_raw in zeek submodule: Zeek raw JSON log field naming.This backend is currently maintained by:Thomas PatzkeHendrik BäckerFurther maintainers required! Send a message toThomasif you want to co-maintain this
backend.
Package: pysigma-backend-splunk
pySigma Splunk BackendThis is the Splunk backend for pySigma. It provides the packagesigma.backends.splunkwith theSplunkBackendclass.
Further, it contains the following processing pipelines insigma.pipelines.splunk:splunk_windows_pipeline: Splunk Windows log supportsplunk_windows_sysmon_acceleration_keywords: Adds fiels name keyword search terms to generated query to accelerate search.It supports the following output formats:default: plain Splunk queriessavedsearches: Splunk savedsearches.conf format.This backend is currently maintained by:Thomas Patzke
Package: pySigma-backend-sqlite
pySigma SQLite BackendThis is the SQLite backend for pySigma. It provides the packagesigma.backends.sqlitewith thesqliteBackendclass.This backend also aims to be compatible withZircolitewhich usespure SQLite queriesto perform SIGMA-based detection on EVTX, Auditd, Sysmon for linux, XML or JSONL/NDJSON Logs.It supports the following output formats:default: plain SQLite querieszircolite: SQLite queries in JSON format for ZircoliteThis backend is currently maintained by:waggaKnown issues/limitationsFull text search support will need some work and is not a priority since it needs virtual tables on SQLite sideIn a future update, changing table name will be handled by a backend optionAggregation is not supported since it is deprecated by the sigma specification and there are nearly no rule using it in the official repositoryQuick StartExample script (default output) with sysmon pipelineAdd pipelinespoetryaddpysigma-pipeline-sysmon
poetryaddpysigma-pipeline-windowsConvert a rulefromsigma.collectionimportSigmaCollectionfromsigma.backends.sqliteimportsqlitefromsigma.pipelines.sysmonimportsysmon_pipelinefromsigma.pipelines.windowsimportwindows_logsource_pipelinefromsigma.processing.resolverimportProcessingPipelineResolver# Create the pipeline resolverpiperesolver=ProcessingPipelineResolver()# Add pipelinespiperesolver.add_pipeline_class(sysmon_pipeline())# Syssmonpiperesolver.add_pipeline_class(windows_logsource_pipeline())# Windows# Create a combined pipelinecombined_pipeline=piperesolver.resolve(piperesolver.pipelines)# Instantiate backend using the combined pipelinesqlite_backend=sqlite.sqliteBackend(combined_pipeline)rule=SigmaCollection.from_yaml(r"""title: Teststatus: testlogsource:category: test_categoryproduct: test_productdetection:sel:fieldA: valueAfieldB: valueBcondition: sel""")print(sqlite_backend.convert(rule)[0])Runningpoetryrunpython3example.py
Package: pysigmap
Open-source application software developed in Python3 to determine
the preconsolidation pressure of soils in incremental loading (IL) oedometer
testing.pySigmaPincludes nine methods such as the method of Casagrande,
Pacheco Silva, Butterfield, Oikawa, Becker et al., Morin, Onitsuka et al.,
Wang and Frost, and Boone.FeaturesDocumentationPyPIGitHubOpen source and free software:BSD-2-Clause License.CitationTo citepySigmaPin publications, use:Montoya-Araque, E. A., Aparicio-Ortube, A. J., Zapata-Medina, D. G., & Arboleda-Monsalve, L. G. (2022).
An open-source application software to determine the preconsolidation pressure of soils in incremental
loading oedometer testing: pySigmaP. SoftwareX, 17, 100990.https://doi.org/10.1016/j.softx.2022.100990A BibTeX entry for LaTeX users is:@article{MontoyaAraque_etal_2022_art,author={Montoya-Araque, Exneyder A. and Aparicio-Ortube, A.J. and Zapata-Medina, David G. and Arboleda-Monsalve, Luis G.},doi={10.1016/j.softx.2022.100990},issn={23527110},journal={SoftwareX},keywords={Oedometer testing,Open-source application software,Preconsolidation pressure,Python 3,Soil},month={jan},pages={100990},publisher={Elsevier B.V.},title={{An open-source application software to determine the preconsolidation pressure of soils in incremental loading oedometer testing: pySigmaP}},volume={17},year={2022}}
Package: pysigma-pipeline-crowdstrike
pySigma CrowdStrike Processing PipelineThis package provides a processing pipeline for CrowdStrike events. It was mainly written for Falcon Data Replicator data but Splunk queries should also work in the CrowdStrike Splunk.It provides the packagesigma.pipeline.crowdstrikewith thecrowdstrike_fdr_pipelinefunction that returns a ProcessingPipeline object.Currently the pipeline adds support for the following event types (Sigma logsource category to event_simpleName mapping):process_creation: ProcessRollup2Only rules with references to the file name of the parent image are supported because CrowdStrike ProcessRollup2 events only contain the file name.network_connection: NetworkConnectionIP4 or NetworkReceiveAcceptIP4 (depending on Initiated field value)events that refer to process image names are not supported because this information is not available in CrowdStrike network connection events, just a process id reference.Not supported because the FDR events lack information required by Sigma rules:create_remote_thread: event lack information required by most rules. No process details, only reference.This backend is currently maintained by:Thomas Patzke
Package: pysigma-pipeline-sysmon
pySigma Sysmon Processing PipelineThis is the Sysmon processing pipeline for pySigma. It provides the packagesigma.pipeline.sysmonwith thesysmon_pipelinefunction that returns a ProcessingPipeline object.Currently the pipeline adds support for the following event types (Sigma logsource category to EventID mapping):process_creation: 1file_change: 2network_connection: 3process_termination: 5sysmon_status: 4,16driver_load: 6image_load: 7create_remote_thread: 8raw_access_thread: 9process_access: 10file_event: 11registry_add: 12registry_delete: 12registry_set: 13registry_rename: 14registry_event: 12,13,14create_stream_hash: 15pipe_created: 17,18wmi_event: 19,20,21dns_query: 22file_delete: 23,26clipboard_capture: 24process_tampering: 25sysmon_error: 255This backend is currently maintained by:Thomas Patzke
Package: pysigma-pipeline-windows
pySigma Windows Processing PipelineThis is the windows service processing pipeline for pySigma. It provides the packagesigma.pipeline.windowswith thewindows_pipelinefunction that returns a ProcessingPipeline object.Currently the pipeline adds support for the following event types (Sigma logsource service and category to Channel mapping):builtin categoryps_moduleps_scriptps_classic_startps_classic_provider_startps_classic_scriptThis pipelines is currently maintained by:Thomas Patzkefrack113
Package: pysignalclijsonrpc
pysignalclijsonrpc - Python API client for signal-cli JSON-RPCPython client forsignal-cli 0.11.5+native HTTP endpoint for JSON-RPC methods.DocumentationSeehttps://pysignalclijsonrpc.readthedocs.io/SupportIf you like what i'm doing, you can support me viaPaypal,Ko-FiorPatreon.
Package: pysignalfd
pysignalfdA pure Python wrapper ofsignalfd(2).InstallationpipinstallpysigalfdUsageimportsignalimportpysignalfdsigs=[signal.SIGTERM,signal.SIGHUP]signal.pthread_sigmask(signal.SIG_BLOCK,sigs)fd=pysignalfd.signalfd(sigs,CLOEXEC=True,NONBLOCK=False)forsignuminpysignalfd.parse_siginfo(fd):print(signum)Similar Toolspython-signalfdsignalfdBoth module relies on "Python.h" to extend, by which there is a concern that installation might fail on the disparate Linux environments.
Package: pysignalr
pysignalrpysignalris a modern, reliable, and async-ready client forSignalR protocol. This project started as an asyncio fork of mandrewcito'ssignalrcorelibrary and ended up as a complete rewrite.UsageLet's connect toTzKT, an API and block explorer of Tezos blockchain, and subscribe to all operations:importasynciofromcontextlibimportsuppressfromtypingimportAnyfromtypingimportDictfromtypingimportListfrompysignalr.clientimportSignalRClientfrompysignalr.messagesimportCompletionMessageasyncdefon_open()->None:print('Connected to the server')asyncdefon_close()->None:print('Disconnected from the server')asyncdefon_message(message:List[Dict[str,Any]])->None:print(f'Received message:{message}')asyncdefon_error(message:CompletionMessage)->None:print(f'Received error:{message.error}')asyncdefmain()->None:client=SignalRClient('https://api.tzkt.io/v1/ws')client.on_open(on_open)client.on_close(on_close)client.on_error(on_error)client.on('operations',on_message)awaitasyncio.gather(client.run(),client.send('SubscribeToOperations',[{}]),)withsuppress(KeyboardInterrupt,asyncio.CancelledError):asyncio.run(main())Roadmap to the stable releaseMore documentation, both internal and user.Integration tests with containerized ASP hello-world server.Ensure that authentication works correctly.
Package: pysignals
Info:PySignals is a signal dispatcher for Python, extracted from the Django framework.AboutPySignals is a signal dispatcher for Python, extracted from “django.dispatch”
in the Django framework so it can be used in applications without requiring
the entire Django framework to be installed.InstallationIf you havesetuptoolsyou can useeasy_install-Upysignals. Otherwise, you can download the
source fromGitHuband runpython setup.py install.DocumentationPySignals is directly extracted from the Django framework, therefore the best
place to get documentation is from theDjango Signals Documentation.The only difference is that all occurrences ofdjango.dispatchshould be
replaced bypysignals.