Saravanan666/pypi-org huggingface dataset:
Package: sarif-om
sarif-python-omPython classes for the SARIF 2.1.0 object modelUsagepip install sarif-python-om

import sarif_omDescriptionThis module contains classes for the object model defined by theStatic Analysis Results Interchange Format (SARIF) Version 2.1.0file format,
anOASISCommittee Specification.To learn more about SARIF and find resources for working with it, you can visit theSARIF Home Page.The source code is available athttps://github.com/microsoft/sarif-python-om.GenerationThe classes in this module were generated from theSARIF JSON schemaby thejschema-to-pythoncode generator,
using the JSON schema filesarif-2.1.0-rtm.4.jsonand the code generation hints filecode-gen-hints.jsonat the root of the GitHub repo, with the following command line:pip install jschema-to-python

py -m jschema_to_python
    --schema-path sarif-2.1.0-rtm.4.json
    --module-name sarif_om
    --output-directory sarif_om
    --root-class-name SarifLog
    --hints-file-path code-gen-hints.json
    --force
    -vvContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.
Package: sari-sparql-parser
SARI Sparql ParserA parser for SPARQL queries and updates.Note: This parser is very experimental and may not function very reliably.Installationinstall using pippipinstallsari-sparql-parserUsageParse a SPARQL query:fromsariSparqlParserimportparserquery="""PREFIX crm: <http://www.cidoc-crm.org/cidoc/crm>SELECT ?subject ?identifier WHERE {?subject crm:P1_is_identified_by ?identifier .?identifier a ?type .VALUES (?type) {(crm:E41_Appellation)(crm:E42_Identifier)}}"""p=parser()p.parseQuery(query)This will output:{'prefixes':{'crm':'http://www.cidoc-crm.org/cidoc/crm'},'select':['subject','identifier'],'where':[{'s':{'type':rdflib.term.Variable,'value':'subject'},'p':{'type':rdflib.term.URIRef,'value':'http://www.cidoc-crm.org/cidoc/crmP1_is_identified_by'},'o':{'type':rdflib.term.Variable,'value':'identifier'}},{'s':{'type':rdflib.term.Variable,'value':'identifier'},'p':{'type':rdflib.term.URIRef,'value':'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'},'o':{'type':rdflib.term.Variable,'value':'type'}}],'values':[{'type':{'type':rdflib.term.URIRef,'value':'http://www.cidoc-crm.org/cidoc/crmE41_Appellation'}},{'type':{'type':rdflib.term.URIRef,'value':'http://www.cidoc-crm.org/cidoc/crmE42_Identifier'}}]}
Package: sark
GeneralIDA Plugins & IDAPython Scripting Library.For documentation, seesark.rtfd.io.Installation (Python 3 & IDA 7.4)For latest version (IDA7.4 & Python3):pip3install-Ugit+https://github.com/tmr232/Sark.git#egg=SarkOr from PyPI:pip3installsarkFor more info seehere.Python 2 & IDA < 7.4As of the release of IDA 7.4, Sark is only actively developed for IDA7.4 or
newer, and Python 3.Python2 and older IDA is still supported for bugfixes & community contributions and
is maintained on theIDA-6.x branch.To install Sark for older IDA use:pip2install-Ugit+https://github.com/tmr232/Sark.git@IDA-6.x#egg=SarkOr from PyPI:pip2install"sark<7.4"DependenciesNetworkXwraptPluginsPlugindocumentationandinstallation instructions.
Package: sark0y-tam
Project TAM.GOAL:The very reason of this project is to make Your life easy at least for a little bit thanks to efficient automation of daily routine.FUNCTIONS:For now, TAM makes possible to find files in whatever directory and run them with chosen viewers. hmmm.. yea, looks rather boring ain't it??? :)) well, let's look on some examples & details will show You how this "boring" feature can make Your life better.Examples:So, actually we have hella number of files & we (in many cases) need to use regex to make searching through that endless damn heap efficient, but the most of us have no time to learn such stuff + regex software have some differences. 2nd moment, we need not just run files, but run them with different options. So, let's deal w/ example..python3 ./tam.py -path0 "/tst"  -find_files -tmp_file "/tmp/tst02" -in_name ".mp4" -view_w "vlc --sout-x264-b-bias=-15" -view_w "smplayer"  -cols 2 -rows 15 -col_w 100 -in_name "some"-path0 sets folder to search stuff.-find_files activates function to search.-tmp_file sets tmp files (actually, the're two tmp files: in our case, /tmp/norm_tst02 & /tmp/err_tst02).-in_name sets keyword.-view_w sets viewer w/ options.-cols sets number of columns.-rows sets number of rows.-col_w sets width of column.+++++++++++++This command forms table of found files, each file gets a number + we see list of viewers (each viewer has own key number too)..To run file, we write "<key number of viewer> <key number of file>", then press Enter. for instance, "0 2" runs file (key number "2") w/ viewer (key number "0").Command "np" shows next page/table."pp" - previous page."go2 <number of page/table>""0p" - 1st page."lp" - last one."fp " shows full path to chosen file.ctrl + c to exit.Short guide how to use TAM.How to switch TAM's Konsoles.Supported Platforms:So far, TAM has been tested only for Linux. However, theoretically this variant must work on FreeBSD, NetBSD & MacOS quite smoothly (but i don't guarantee it).my the Best Wishes to You 🙃
Package: sarkas
SarkasA Pure Python Molecular Dynamics package for Non-Ideal PlasmasSarkas aims at lowering the entry barrier for computational plasma physics by providing a comprehensive MD suite complete with pre- and post-processing tools commonly found in plasma physics.Sarkas is entirely written in Python without calls to C/Fortran hence avoiding a two-language problem. It relies on the most common Python scientific packages, e.g. NumPy, Numba, SciPy, and Pandas, which provide a solid foundation built, optimized, and well documented by one of the largest community of developers. Furthermore, Sarkas is developed using an object-oriented approach allowing users to add new features in a straight-forward way.Sarkas targets a broad user base: from experimentalists to computational physicists, from students approaching plasma physics for the first time to seasoned researchers. Therefore Sarkas’ design revolves around two primary requirements: ease-of-use and extensibility.Documentationhttps://murillo-group.github.io/sarkas/InstallationSarkas can be installed by running the commandpip install sarkasin a terminal or command prompt window.
Package: sarltdtgore
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: sarp-codecs
Codecs for SARPCodecs is a package containing message schema for all networked SARP systems. It will help establish a consistent encoding scheme for all SARP related network communication.Installationpip install sarp_codecsExample Usagefrom sarp_codecs.template_codec import TemplateCodectelem_item = {"timestamp": 12345, "example_channel_1": 1, "example_channel_2": 2, "example_channel_3": 3}fill_codec = TemplateCodec()fill_codec.encode(telem_item)Expected OutputThe expected output will be the encoded version of telem_item
Package: sarpoka
SarpokaSarpoka is a rapidly development Python micro framework designed for serverless applicationsInstallationpipinstallsarpokaAn example of usagefromsarpokaimportSarpokaapp=Sarpoka()@app.route('/')defhome(request,response,**kwargs):return'Welcome Home!!'@app.route('/api/me',methods=['GET','POST'])defget_me(request,response,**kwargs):response.content_type='application/json'response.status_code=200return{'name':'Mohammad Ashraful Islam'}@app.route('/about')defabout(request,response,**kwargs):return'''<h1>Mohammad Ashraful Islam</h1><div>Senior Software Engineer at Field Buzz<br/></div>'''FeaturesBasic RoutingHTTP Method defining during routeQuery string supportView function support onlyServing html as string (File not supported yet.)Upcoming FeaturesDatabase and ORM supportClass based view supportHTML/Markdown file renderingTemplate engine support... will be added many more.
Package: sarp-utils
Codecs for SARPsarp-utils is a package containing message schema for all networked SARP systems as well as various utilities for SARP software. It will help establish a consistent encoding scheme for all SARP related network communication.Installationpip install sarp-utilsExample Usage of Codec Softwarefrom sarp_utils.template_codec import TemplateCodectelem_item = {"timestamp": 12345, "example_channel_1": 1, "example_channel_2": 2, "example_channel_3": 3}fill_codec = TemplateCodec()fill_codec.encode(telem_item)Expected OutputThe expected output will be the encoded version of telem_item
Package: sarpy-apps
SarPy_AppsThis provides a set of GUI tools based on tkinter for visualizing and interacting
with SAR imagery and related data.OriginsThis was developed to enable simple prototyping of graphical user interfaces useful
in conjunction with SarPy project, and was based on and motivated by the set of MATLAB
tools developed by NGA/NRL referred to as TASER. This effort was developed at the
National Geospatial-Intelligence Agency (NGA). The software use, modification, and
distribution rights are stipulated within the MIT license.DependenciesThe core library functionality depends on thesarpyandtk_builderprojects.
Package: sarracen
SarracenA Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.AboutSarracen is built upon the pandas, Matplotlib and NumPy libraries. It can load SPH particle data into a pandas DataFrame object that has been extended to allow for rendering of particle data and interpolation of particles to fixed grids. Additionally, this allows for access to the rich landscape of Python scientific and statistical libraries. All SPH functions offer multi-threaded CPU and CUDA implementations. Our intended application is for astrophysical SPH data.InstallationThe latest stable release and associated dependencies can be installed from PyPi:pip install sarracenThis is the recommended way to install Sarracen.To install the latest development snapshot, install using this GitHub repository. Either clone the repository and add it to your path so that it can be imported, or install directly through pip:pip install git+https://github.com/ttricco/sarracen.gitDocumentationSarracen's documentation is hosted online athttps://sarracen.readthedocs.io.ContributingContributions are welcomed and appreciated. Here are some ways to get involved:Submitting bug reports.Feature requests or suggestions.Improving the documentation or providing examples.Writing code to add optimizations or new features.Please use theGitHub issue trackerto raise any bugs or to submit feature
requests. If something does not work as you might expect, please let us know. If there are features that you feel are
missing, please let us know.Code submissions should be submitted as a pull request. Make sure that all existing unit tests successfully pass, and
please add any new unit tests that are relevant. Documentation changes should also be submitted as a pull request.If you are stuck or need help,raising an issueis a good place to start.
This helps us keep common issues in public view. Feel free to alsoemailwith questions.Please note that we adhere to acode of conduct.CitationPlease cite the paper if you use Sarracen within your work (DOI:10.21105/joss.05263).Sarracen: a Python package for analysis and visualization of smoothed particle hydrodynamics data.Journal of Open Source Software, 8(86), 5263, 2023.
Package: sarscov2
sarscov2Add to anEDC, for example themeta_edcfor the META Trial.Add toINSTALLED_APPS:INSTALLED_APPS=[..."sarscov2.apps.AppConfig",...]Add the CRF to the visit schedule as a PRN, for example:crfs_prn=FormsCollection(...Crf(show_order=70,model="meta_subject.coronakap"),name="prn",)pythonmanage.pymakemigrationspythonmanage.pymigrateTo include in a screening or subject listboard:{% if perms.sarscov2 %}
    {% if result.coronavirus_kap %}<aclass="btn btn-sm btn-success"title="Edit Coronavirus KAP"href="{% url 'sarscov2_admin:sarscov2_coronaviruskap_change' result.coronavirus_kap.id %}?next=meta_dashboard:screening_listboard_url">Edit</a>{% else %}<aclass="btn btn-sm btn-warning"title="Add Coronavirus KAP"href="{% url 'sarscov2_admin:sarscov2_coronaviruskap_add' %}?screening_identifier={{result.screening_identifier}}&next=meta_dashboard:screening_listboard_url">Add</a>{% endif %}
{% endif %}
Package: sarscov2x
sarscov2xThis is a sampleDjangoapplication for use in a talk for our python meetup onlinemeetingon how to configure your python project to use TravisCI. The production Django app for this simple Coronavirus KAP tool (Knowledge, Attitudes, and Practice) is available atsarscov2. The tool is currently being administered in Tanzania.There are a number of variations on how this can be done … this is what works for me.Installing the sampleDjangoapplicationIf you want, you can install the Django app. When installed you can easily inspect the.travis.ymlandtox.iniand perhaps run the tests locally.To do so, follow the steps below to create a python environment, install the dependencies, prepare the Django apps DB, create a user account, and loads a local test web server.First, set up a python environment.I useminicondato build and manage my python environments. You will need to installminicondaso go to the theminicondadocs and select the installer for your OS.After the installingminiconda, open a terminal and create a new python environment using thecondacommand:conda create -n edc python=3.8Your new python env is named “edc” and runs python 3.8.Next, activate your new environment:conda activate edcNext, clone the repo into a folder, for example,projects:mkdir ~/projects
cd  ~/projects
git clone https://github.com/erikvw/sarscov2x.gitNavigate into the repo and install the requirements:cd ~/projects/sarscov2x
pip install -U -r requirements.txtThis is a simple Django application that usessqliteas the DB. To create the database:python manage.py migrateNext, create your user account:# run and follow the prompts
python manage.py createsuperuserNext, start up the test webserver:python manage.py runserverLastly, open your browser and navigate to:http://localhost:8000PEP8, tests, tox and TravisCI, code coverageTravisCI is just part of what can be used to simplify checking your code (flake8), running all your tests against multiple environments (tox and travis) while finally checking that your test coverage is still where you want it to be.Together with TravisCItox(pip install tox)flake8 (pip install flake8)others (black,gitflow,coverage,codecov)Integration with GitHubhttps://docs.travis-ci.com/user/tutorial/#to-get-started-with-travis-ci-using-githubConfigurationThe config files involved:.travis.yml: read by TravisCI. Sets up OS, environment, pre-test commands, tests, post-test commandstox.ini: easy way to run your tests in a fresh environment locally and to run a matrix of environments remotely on TravisCIsetup.cfg: specifyflake8config.Flake8(PEP8 rules) is good to run before your tests. Less important if you use a formatter likeblack.The flow is:–>git pushto GitHub repo–> repo change triggers TravisCI–> on TravisCI all tests pass (you hope)–> TravisCI hands over to CodeCovAnd if all goes well, your badges turn green!References:https://docs.travis-ci.com/user/tutorial/https://docs.travis-ci.com/user/tutorial/#to-get-started-with-travis-ci-using-githubhttps://docs.travis-ci.com/user/job-lifecycle/https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
Package: sar-tool
Descriptionsaris a simple search and replace script that outputs a validdifffile for review and later apply withpatch.Installation$ pip installsar-toolUsage$ sar unified_diff megasuper_diff sar.pySearching for 'unified_diff' and replacing to 'megasuper_diff'

Processing file sar.py ... MATCH FOUND
Index: sar.py
================================================================================
--- sar.py (original)
+++ sar.py (modified)
@@ -88,7 +88,7 @@
             debug("MATCH FOUND\n")
             print "Index:", filename
             print "=" * 80
-            diff = ''.join(list(difflib.unified_diff(orig.splitlines(1),
+            diff = ''.join(list(difflib.megasuper_diff(orig.splitlines(1),
                                                      res.splitlines(1),
                                                      filename + " (original)",
                                                      filename + " (modified)")))LicenceThis script is released under the MIT licence
Package: sartorius
sartoriusAsynchronous python ethernet interface and command-line tool for Sartorius and
Minebea Intec scales.CompatibilityThis driver should work for any ethernet scale that uses the standardized communications
protocol of the Scale Manufacturers Association. However, it has only been tested
on the following models:Minebea Intec SignumSartorius EntrisSartorius MirasInstallationpip install sartoriusScale SetupFor Minebea scale setup, navigate toSETUP-UNICOM-DATAPROT-ETHER.Make sureSRC.IPis set to a valid LAN addressEnsureMODE-SBI-SRV-6.1.1is set (manual says this should be default but it is not)All other defaults are goodThis driver is intended to be stable to disconnects, so operators should be
able to unplug and reposition the device without affecting any long polling.Command Line$ sartorius scale-ip.local
{
    "mass": 0.0,
    "units": "kg",
    "stable": true,
    "info": {
        "model": "SIWADCP-1-",
        "serial": "37454321",
        "software": "00-37-09"
    }
}If using a port other than the default of 49155 e.g. for a MODBUS gateway, use--portor a colon between the IP address and port.sartorius 192.168.1.1 --port 10000orsartorius 192.168.1.1:12345You can tare and zero with--zeroand remove the info field with--no-info.
Seesartorius --helpfor more.To use in shell scripts, parse the json output with something likejq. For example,sartorius scale-ip.local | jq .masswill return the mass.PythonIf you'd like to link this to more complex behavior, consider using a Python
script. This driver exclusively supports asynchronous Python ≥3.7.importasyncioimportsartoriusasyncdefget():asyncwithsartorius.Scale('scale-ip.local')asscale:awaitscale.zero()# Zero and tare the scaleprint(awaitscale.get())# Get mass, units, stabilityprint(awaitscale.get_info())# Get model, serial, software versionasyncio.run(get())
Package: saruman
SarumanA simply  logic, configuration based, distributable and reliable extended-firewall.Saruman is a extended firewall (meaning firewall + dns + dhcp +intruision detection + reverse proxy)
build by a formerIresam.
It targets I-Resam need’s first but should be enough flexible to be used elsewhere.It still unstable and yet brings not that much.
Try at your own risks.Most important UrlsThe full documentation is atsaruman.readthedocs.orgWe areon Pypiso we’re only
anpip install sarumanaway from installation on your computer.The code is atgithub.com/tychota/saruman.And… we’re automatically being tested by Scrutinizer !Technologies usedSarumandoes requirePython 3, and if possible the newest version (Python3.5for now)Itdoes requirean Celery broker : takeRabbitMQ, it is good, fast and reliable.Itdoes only workson a recent linux machine : it requiresnftablesandiproute2so a linux 4+ kernel
would be a necessity.Available commandsSaruman gives you three commands to manage the worker and one to run your firewall.
Worker’s commands must be run in root since they manage main parts of your system.
Firewall’s one doesn’t need this.
The commands are:saruman workers enable: start the celery workers on the machine.saruman workers disable: start the celery workers on the machine.saruman workers reload: restart the celery workers on the machine.saruman firewall start: start the firewallAMQP json-rpc apiStill infantCreditsTycho Tatitscheff(Nelen & Schuurmans) is the
originator and main author.Zest softwarefor their releases manager and also for inspiration (copy paste of most docs).Changelog for Saruman0.3.0 (2016-01-03)big modifications of the documentation structure0.2.3 (2016-01-03)fixing badges and coverage in testing0.2.2 (2016-01-03)testing works0.2.1 (2016-01-03)fixing a lot of nasty issues0.2.0 (2016-01-03)adding sphinx documentationadding CI coveragefixing nasty unpack in modprobe.py0.1.2 (2016-01-03)fixing some typo.0.1.1 (2016-01-03)remove download urls as we use sdist0.1.0 (2016-01-03)add zest.release to perform check on release an better automationadd some yaml config files
Package: sarunasncalculator
Calculator with running memoryFunctions:.add.subtract.multiply.n_root.get_current_result.get_action_seq - returns action sequence as a string Example: 4 + 2 + 3 - 2 = 7.reset_memory - resets running memory and action sequenceInstallationpip install sarunasncalculatorUsageYou can initialize calculator with any starting point you want.fromsarunasncalculator.calculatorimportCalculatorcallc=Calculator(2)callc.add(2)# running memory would be 4callc.subtract(1)# running memory would be 3print(callc.get_action_seq)# would return 2 + 2 - 1 = 3
Package: sarus
Sarus===Python client for the Sarus Gateway. It provides simple connectors to leverage confidential data while ensuring data privacy. Users can explore & train AI models on sensitive data, via synthetic data browsing, remote training and differential privacy.InstallationPIPTo install locally the latest available version :pip install sarusUsageClientUse this class to connect toSarus Gateway.fromsarusimportClientclient=Client(url="http://admin.sarus.tech:5000")available=client.available_datasets()print(f'Datasets available on the server:{available}')
Package: sarw-spheres
sarw_spheresPython wrapper on C++ self avoiding random walk (SARW) generator.Installationpython3-mpipinstallsarw_spheresUsageimportnumpyasnpimportsarw_spheressarw_spheres.generateChain(np.array([1.,1.,1.,1.]))LicenseThis software is licensed under MIT licenseCopyright (c) Radost Waszkiewicz (2022).
Package: sarxarray
SarXarraySARXarray is an open-source Xarray extension for Synthetic Aperture Radar (SAR) data. It is especially designed to work with large volume complex data, e.g. Single Look Complex (SLC) data, as well as derived products such as interferogram stacks.InstallationSARXarray can be installed from PyPI:pipinstallsarxarrayor from the source:gitclonegit@github.com:TUDelftGeodesy/sarxarray.gitcdsarxarray
pipinstall.Note that Python version>=3.10is required for SARXarray.DocumentationFor more information on usage and examples of SARXarray, please refer to thedocumentation.