Saravanan666/pypi-org huggingface dataset:
Package: sbo
soft-brownian-offsetSoft Brownian Offset (SBO) defines an iterative approach to translate points by a most likely distance from a given dataset.
It can be used for generating out-of-distribution samples.InstallationThis project is hosted onPyPIand can therefore be installed easily throughpip:pip install sboDependending on your setup you may need to add--userafter theinstall.UsageFor brevity's sake here's a short introduction to the library's usage:fromsklearn.datasetsimportmake_moonsfromsboimportsoft_brownian_offsetX,_=make_moons(n_samples=60,noise=.08)X_ood=soft_brownian_offset(X,d_min=.35,d_off=.24,n_samples=120,softness=0)For more details please see thedocumentation.BackgroundThe technique allows for trivial OOD generation -- as shown above -- or more complex schemes that apply the transformation of learned representations.
For an in-depth look at the latter please refer to the paper that is availableas open access from the CVF.
For citations please seecite.DemonstrationSee the following plot to gain intuition on the approach's results:Please see thedocumentationfor the source code to recreate the plot.CitePlease cite SBO in your paper if it helps your research:@inproceedings{MBH21,author={Möller, Felix and Botache, Diego and Huseljic, Denis and Heidecker, Florian and Bieshaar, Maarten and Sick, Bernhard},booktitle={{Proc. of CVPR SAIAD Workshop}},title={{Out-of-distribution Detection and Generation using Soft Brownian Offset Sampling and Autoencoders}},year=2021}
Package: sbo-create
Aboutsbo-create, it's a tool that creates easy, fast and safe SlackBuilds files scripts.This tool is for everyone, but maintainers will be going to love it!Enjoy!FeaturesPreloaded SlackBuilds templates.Checking for already SlackBuilds in the repository and the distribution.Autocorrect the quote marks for the .info file.Auto-importing the SlackBuild script name.Auto-importing the text from the slack-desc file into the README.Auto-importing the maintainer data to the .SlackBuild script.Auto-importing the version to the .SlackBuild script.Auto-importing and checking the checksum signature to the .info file.Auto-create all the necessary files for your SlackBuild package.Documentationhttps://dslackw.gitlab.io/sbo-create
Package: sbom
sbomTree shaking for the minimal viable software bill of materials (SBOM).License: MITThird party dependencies are documented in the folderthird-party.DocumentationUser and developerdocumentation of sbom.Bug TrackerAny feature requests or bug reports shall go to thetodos of sbom.Primary Source repositoryThe main source ofsbomis on a mountain in central Switzerland.
We use distributed version control (git).
There is no central hub.
Every clone can become a new source for the benefit of all.
The preferred public clones ofsbomare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.ContributionsPlease do not submit "pull requests" (I found no way to disable that "feature" on GitHub).
If you like to share small changes under the repositories license please kindly do so by sending a patchset.
You can either send such a patchset per email usinggit send-emailor
if you are a sourcehut user by selecting "Prepare a patchset" on the summary page of your fork atsourcehut.StatusExperimental.Terminologybaseline- mandatory elementsconsume- an SBOMcrypto- hashing, signing, and signature validationextension- sets of elements mandatory in addition to baselinefuzz- generate surrogate and poisoned SBOMsmerge- an SBOM with other SBOMs or additional informationmock- provide optimal testabilitypolicy- to applyproduce- an SBOMreport- anything from produce, transform, and consumerule- executing policiestransform- one SBOM into another SBOMSafety, Security, and Data Protection ConsiderationsThe current implementationSHALLonly digest trustworthy data.Schema validation of JSON and XML formats requires specific measures tominimize vulnerabilities.For example: The python xml parser implementation (etree) inuse is presumably vulnerable against some attacks likebillion laughsandquadratic blowup.Plans are to move towards a safer implementation likedefusedxmlor any other hardened implementation.The situation is similar for the JSON formats.In summary and repeating the obvious:The current implementationSHALLonly digest trustworthy data.Note: The default branch isdefault.
Package: sbom2csv
sbom2csvsbom2csv is a tool for converting Software Bill of Materials (SBOM) from JSON to CSV format.InstallationDescribe how to install your tool. If it's available via PyPI, you can simply use:pipinstallsbom2csvUsageHere's how you can use sbom2csv:sbom2csv-iinput.json-fcsv-ooutput.csvContributingContributions are welcome! Please read our contributing guidelines for details.LicenseThis project is licensed under the Yuan Zhou - see the LICENSE file for details.
Package: sbommerge
SBOMMergeSBOMMerge merges two Software Bill of Materials (SBOMs) documents together. It supports SBOMs created in bothSPDXandCycloneDXformats.InstallationTo install use the following command:pip install sbommergeAlternatively, just clone the repo and install dependencies using the following command:pip install -U -r requirements.txtThe tool requires Python 3 (3.7+). It is recommended to use a virtual python environment especially
if you are using different versions of python.virtualenvis a tool for setting up virtual python environments which
allows you to have all the dependencies for the tool set up in a single environment, or have different environments set
up for testing using different versions of Python.Usageusage:sbommerge[-h][--sbom{auto,spdx,cyclonedx}][-d][--format{tag,json,yaml}][-oOUTPUT_FILE][-V]FILE1FILE2

SBOMMergemergestwoSoftwareBillofMaterials(SBOMs)documentstogether.

positionalarguments:FILE1firstSBOMfileFILE2secondSBOMfile

options:-h,--helpshowthishelpmessageandexit-V,--versionshowprogram'sversionnumberandexitInput:--sbom{auto,spdx,cyclonedx}specifytypeofsbomtomerge(default:auto)Output:-d,--debugshowdebuginformation--format{tag,json,yaml}specifyformatofgeneratedsbom(default:tag)-oOUTPUT_FILE,--output-fileOUTPUT_FILEoutputfilename(default:outputtostdout)OperationThe--sbomoption is used to specify the format of the SBOM files. The default is for the type and format of the SBOM to be
automatically detected based on the extension of the file name.SBOM TypeVersionExtensionFormatSPDX2.3.spdxTagValueSPDX2.3.spdx.jsonJSONSPDX2.3.spdx.ymlYAMLSPDX2.3.spdx.yamlYAMLCycloneDX1.4.jsonJSONCycloneDX1.5.jsonJSONDetails of the formats for each of the supported SBOM formats are available forSPDXandCycloneDX.For SPDX SBOM files, it is assumed that the name of a Package precedes the version information for the package.
Only modules with a package name and associated version information shall be processed.The--output-fileoption is used to control the destination of the output generated by the tool. The
default is to report to the console but can be stored in a file (specified using--output-fileoption).Implementation NotesThe following design decisions have been made in processing the SBOM files:Package data is merged if the package version matches. Otherwise separate packages will be created.It is assumed that the SBOM is valid and contains syntactically valid data. Invalid files will be silently ignored.A non-zero return value indicates that differences were detected.LicenseLicensed under the Apache 2.0 Licence.LimitationsThis tool is meant to support software development and security audit functions. However the usefulness of the tool is dependent on the SBOM data
which is provided to the tool. Unfortunately, the tool is unable to determine the validity or completeness of such a SBOM file; users of the tool
are therefore reminded that they should assert the quality of any data which is provided to the tool.Feedback and ContributionsBugs and feature requests can be made via GitHub Issues.
Package: sb-opentelemetry-extension-exporter-otlp-proto-http
This library allows to export data to the OpenTelemetry Collector using the OpenTelemetry Protocol using HTTP.Installationpip install sb-opentelemetry-extension-exporter-otlp-proto-httpfromopentelemetryimportmetricsfromopentelemetry.sdk.resourcesimportSERVICE_NAME,Resourcefromopentelemetry.sdk.metricsimportMeterProviderfromopentelemetry.sdk.metrics.exportimportPeriodicExportingMetricReaderfromopentelemetry.extension.exporter.otlp.proto.http.metric_exporterimportOTLPMetricExporterresource=Resource(attributes={SERVICE_NAME:"service",})metric_reader=PeriodicExportingMetricReader(OTLPMetricExporter())provider=MeterProvider(resource=resource,metric_readers=[metric_reader])# Sets the global default meter providermetrics.set_meter_provider(provider)ReferencesOpenTelemetry Collector ExporterOpenTelemetry CollectorOpenTelemetryOpenTelemetry Protocol Specification
Package: sb-opentelemetry-sdk-extension-statsd
This library provides components necessary to send OpenTelemetry
metrics to a StatsD backend.Installationpip install sb-opentelemetry-sdk-extension-statsdUsageInstall the OpenTelemetry SDK package.pip install opentelemetry-sdkNext, use the providedStatsdMeterProviderinstead of the defaultMeterProvider.fromstatsdimportStatsdClientfromopentelemetryimportmetricsfromopentelemetry.sdk.resourcesimportResourcefromopentelemetry.sdk.extension.statsd.metricsimportStatsdMeterProviderstatsd=StatsdClient(max_buffer_size=0)provider=StatsdMeterProvider(statsd=statsd,resource=Resource(attributes={"service.name":"service-Name",}))metrics.set_meter_provider(provider)ReferencesOpenTelemetry ProjectOpenTelemetry Specification for Resource Attributes
Package: sborl
sborl - Schema-based Operator Relation LibrariesThis library provides a base for creating relation endpoint libraries for use
withcharmed operators and Juju. It tries to make creating Pythonic
implementations of a relation interface protocol straightforward and
approachable, while encouraging good patterns such as using schema-based
interface protocol validation, providing helpers for testing charms using
your library, and surfacing problems with relations in a clean way.ExampleAn example endpoint class and usage might look like:classRandomURLRequirer(sborl.relation.EndpointWrapper):INTERFACE="random-url"ROLE="requires"SCHEMA=Path(__file__)/"schema.yaml"LIMIT=1@propertydefurl(self):ifnotself.is_ready():returnNonerelation=self.relations[0]returnself.unwrap(relation)[relation.app]["url"]classMyCharm(ops.charm.CharmBase):def__init__(self,*args):super().__init__(*args)self.random_url=RandomURLRequirer(charm=self,endpoint="random-url-provider")self.framework.observe(self.random_url.on.ready,self._log_url)def_log_url(self,event):log.info(f"Got random URL:{self.random_url.url}")
Package: sbot
sbotsbot- SourceBots Robot APIThis is the API for SourceBots, library for writing Robotics APIs.
It will first be deployed at Smallpeice 2023.InstallationIf you wish to install openCV from your package manager, you can install the base package with:pipinstallsbotTo install the full package, including openCV, you can install with:pipinstallsbot[vision]UsageThe main entry point for the API is theRobotclass.
Intantiating this class will automatically detect and connect to any SR v4 boards connected to the device.
By default, theRobotclass will wait for the start button on the power board to be pressed before continuing.fromsbotimportRobotr=Robot()To disable the waiting for the start button, you can passwait_for_start=Falseto the constructor.
Thewait_for_startmethod needs to be called before the metadata is available.fromsbotimportRobotr=Robot(wait_for_start=False)# Setup in herer.wait_start()Developer NotesThere are a number of considerations that have been made in the design of this API.
Some of these may not be immediately obvious, so they are documented below.The API is designed to raise exceptions for incorrect actions, such as trying to modify the output dictionary or assign a value directly to the motor object.MappingProxyTypeis used to prevent the user from adding, removing or overwriting keys in any parts of the API that return a dictionary.tupleis used to prevent the user from adding, removing or overwriting items in any parts of the API that would return a list.__slots__is used to prevent the user from adding, removing or overwriting attributes in any parts of the API.sbot.serial_wrapper.SerialWrapperhandles automatic reconnection to the serial port if the connection is lost and impleents 3 retries on any serial operation before raising aBoardDisconnectionError.
Package: sbovqaopt
sbovqaopt: Surrogate-based optimizer for variational quantum algorithmsThesbovqaoptpackage provides a surrogate-based optimizer for variational quantum algorithms as introduced inarXiv:2204.05451.InstallationThesbovqaoptpackage distribution is hosted on PyPI and can be installed viapip:pip install sbovqaoptUsageFor examples of usingsbovqaopt, see theexample notebooksandunit tests.DevelopmentFor development purposes, the package and its requirements can be installed by cloning the repository locally:git clone https://github.com/sandialabs/sbovqaopt
cd sbovqaopt
pip install -r requirements.txt
pip install -e .CitationIf you use or refer to this project in any publication, please cite the corresponding paper:Ryan Shaffer, Lucas Kocia, Mohan Sarovar.Surrogate-based optimization for variational quantum algorithms.arXiv:2204.05451(2022).
Package: sbp
Python client for Swift Binary Protocol (SBP).Since v2.5 libsbp is compatible with Python 2.7, 3.5 to 3.9. For new projects,
Python 3.7 or newer is recommended.SetupYou must havepythonandpipinstalled.Install dependencies only:$ pip install -r requirements.txtInstall from source:$ pip install ./pythonInstall package from PyPI (usesudo ...to install globally):$ pip install sbpSetup using a virtual environmentSetup and activate thevirtualenv:$ virtualenv .env && source .env/bin/activateInstallpy.testin the virtualenv:$ pip install pytest-virtualenvInstall thept.testcoverage tools:$ pip install pytest-covFinally, proceed to the standard setup instructions.Usage ExamplesSimple exampleReceives SBP messages over a serial port, decodes MSG_BASELINE
messages and prints them out. Seesimple.py.Run this example with:$ python -m sbp.client.examples.simple -p /path/to/serial/portSending SBP messages over UDPReceives SBP messages over a serial port and sends all incoming
messages to a UDP socket. Seeudp.py.Run this example with:$ python -m sbp.client.examples.udp -s /path/to/serial/portTestingTo run the tests and check for coverage:$  py.test -v --cov sbp tests/To run the tests without suppressing stdout output:$  py.test -v -s –cov sbp tests/LicenseCopyright © 2015-2021 Swift NavigationDistributed under MIT.
Package: sbpars
sbpars - simply bank ordering parserЧто это?Это простой парсер в форматы .csv и .xlsx для данных, выгружаемых из истории операций по карте одного банка. Написано и предназначено для личного использования: я веду учёт личных финансов в таблице и устал забивать руками каждый платёж по карте.Программа не производит никаких взаимодействий с сайтом банка и личным кабинетом клиента по сети, не использует чужие данные и вообще не даёт доступа ни к чему такому, к чему изначально нет доступа у пользователя. Функционал программы ограничен предоставлением данных, изначально доступных пользователю, в удобной форме таблицы.Как использовать?Заходим в личный кабинет в историю операций по карте. Кликаем на кнопку "Отчёт по карте". Настраиваем период, за который нужна выгрузка. Сохраняем страницу средствами браузера.Открываем консоль, заходим в папку сохраненной страницы с окончанием "_files". Приложению для работы нужен файл index.html, он находится в данной папке.Далее два варианта: можно установить утилиту через pip, можно работать с исходным кодом.Вариант 1Устанавливаем и запускаем в папке, где находится index.html:pip install sbpars
sbparsВариант 2Копируем index.html в папку со скриптом и запускаемpip install poetry
make startЕсли всё прошло успешно, то в этой же папке появятся файлы transactions с расширениями .csv и .xlsx со списком транзакций
Package: sbpipe
SBpipe allows mathematical modellers to automatically repeat the tasks of model simulation and parameter estimation, and extract robustness information from these repeat sequences in a solid and consistent manner, facilitating model development and analysis. SBpipe can run models implemented in COPASI, Python or coded in any other programming language using Python as a wrapper module. Pipelines can run on multicore computers, Sun Grid Engine (SGE), Load Sharing Facility (LSF) clusters, or via Snakemake.
Package: sbpl
SBPLSBPL module for remote printingSummaryThis provides the function of remote printing directly
to the printer existing on your LAN by using SBPL
(SATO Barcode Printer Language) provided by SATO Corp.This enables arbitrary label cutting which can not be controlled
by a normal Windows printer.This module has a function to print TrueType fonts using Freetype. Execute method ttf_write().This module is a prototype and may not satisfy your work,
but since it is Pure Python, you can add and change features yourself.Install$pipinstallsbplUsagefromsbplimport*comm=SG412R_Status5()withcomm.open("192.168.0.251",1024):comm.prepare()# generate label...gen=LabelGenerator()withgen.packet_for_with():withgen.page_for_with():gen.set_label_size((1000,3000))gen.rotate_270()gen.pos((260,930))gen.codebar(("0004693003005000",3,100))gen.pos((160,1000))gen.expansion((1,1))gen.bold_text("0004693003005000")gen.print()comm.send(gen.to_bytes())comm.finish()You can describe print contents in JSON format and can specify them all together.JSON:[{"host":"192.168.0.251","port":1024,"communication":"SG412R_Status5"},[{"set_label_size":[1000,3000]},{"shift_jis":0},{"rotate_270":0},{"comment":"==ticket main=="},{"pos":[710,130],"expansion":[6000],"ttf_write":"TEST CONSERT","font":"mplus-1p-medium.ttf"},{"pos":[530,1040],"expansion":[2700],"ttf_write":"Organizer: Python High School","font":"mplus-1p-medium.ttf"},{"pos":[370,50],"expansion":[3700],"ttf_write":"Friday, February 14, 2014 14:00","font":"mplus-1p-medium.ttf"},{"pos":[300,80],"expansion":[2800],"ttf_write":"Indoor playground","font":"mplus-1p-medium.ttf"},{"pos":[230,30],"expansion":[3500],"ttf_write":"Free seat $5.00","font":"mplus-1p-medium.ttf"},{"pos":[180,50],"expansion":[1800],"ttf_write":"Drinks can be brought in but alcohol is prohibited.","font":"mplus-1p-medium.ttf"},{"comment":"==barcode=="},{"pos":[260,930],"codebar":["0004693003005000",3,100]},{"pos":[160,1000],"expansion":[1,1],"bold_text":"0004693003005000"},{"comment":"==ticket parted=="},{"pos":[780,1610],"expansion":[2500],"ttf_write":"TEST","font":"mplus-1p-medium.ttf"},{"pos":[670,1610],"expansion":[2500],"ttf_write":"CONSERT","font":"mplus-1p-medium.ttf"},{"pos":[620,1630],"expansion":[2000],"ttf_write":"Friday, February 14, 2014 14:00","font":"mplus-1p-medium.ttf"},{"pos":[580,1630],"expansion":[2000],"ttf_write":"14:00","font":"mplus-1p-medium.ttf"},{"pos":[420,1610],"expansion":[2000],"ttf_write":"Free seat","font":"mplus-1p-medium.ttf"},{"pos":[330,1600],"expansion":[2000],"ttf_write":"$5.00","font":"mplus-1p-medium.ttf"},{"print":1}]]Python:fromsbplimport*json_str="(defined adobe)"comm=SG412R_Status5()gen=LabelGenerator()parser=JsonParser(gen)parser.parse(json_str)parser.post(comm)LicenseMITAuthorCopyright 2018 KATO Kanryu(k.kanryu@gmail.com)
Package: sb-pubsub-kafka
My Kafka PubSub LibraryWraps kafka into nice little simple classesOne for publishingpuband one for both publish and subscribepubsubThe system transfers messages wrapped in an independent json format.This is the structure of a sample envelope:class TestEnvelope(Envelope):
    Identifier = "TestEnvelope"
    msg: str

    def __init__(self, msg: str = "", correlation_id: uuid.UUID = uuid.uuid4()):
        super().__init__(correlation_id)
        self.msg = msg

    def __str__(self):
        return f"msg:{self.msg}"The envelope then needs to be registered withEnvelopeMapper.register(TestEnvelope.Identifier, TestEnvelope)This allows the subscriber to correctly identify and deserialize the envelopeThecorrelation_idis passed through automatically with each message, but it is up to you to use correctly -
ie.  Assign the same id to a response message, etc.Thepubsubclass is the most complex, it has an internal thread that polls for messages and invokes the correct
callback based on the envelope type.The bindings are done as follows:pubsub.bind(TestEnvelope, callback)Where the callback is a static function that looks like this:callback(pubsub, obj, context)pubsubis the instance that raised the callback,objis the deserialized envelope, andcontextis whatever you passed
into thecontextparameter in__init__()This allows you to create specific bindings for each envelope type.There is a catch-all bindingpubsub.bind_everything(callback)that maps to everything that doesn't have a specific binding.Notethat all messages need to follow the envelope pattern, or they won't work at all.The message pattern is so that it can be used language-agnostically - the same library exists in C#, and coexists with the python libraries.Buildingpython -m buildDeployingpython -m twine upload --repository testpypi dist/*
Package: sbpy
sbpy is anAstropyaffiliated package for small-body
planetary astronomy.OverviewFor an overview of the sbpy project please visit theproject
overview pageand
theofficial sbpy website.InstallationThe current stable version of sbpy can be installed with pip:$pipinstallsbpyFor details on the installation process, please refer to thedetailed installation guide.DocumentationThe officialdocumentation and API referenceis avilable.Statussbpy is still under development, with v1.0 scheduled for delivery in 2024. For an overview on the status of individual features see theStatus Page.Acknowledgementssbpysupport provided by NASA PDART Grant Nos. 80NSSC18K0987 and 80NSSC22K0143.If you usesbpyin your work, please acknowledge it by citingMommert, Kelley, de-Val Borro, Li et al., (2019). sbpy: A Python module for small-body planetary astronomy. Journal of Open Source Software, 4(38), 1426
Package: sbrscrape
sbrscrapePython script to scrape sports betting odds data from sbrodds.fromsbrscrapeimportScoreboardgames=Scoreboard(sport="NFL").gamesgames[0]{"date":"2023-01-08T18:00:00+00:00","status":"13:00 ET","home_team":"Atlanta Falcons","home_team_loc":"Atlanta","home_team_abbr":"ATL","home_team_rank":-1,"away_team":"Tampa Bay Buccaneers","away_team_loc":"Tampa Bay","away_team_abbr":"TB","away_team_rank":-1,"home_score":0,"away_score":0,"home_spread":{"betmgm":-4,"draftkings":-4,"fanduel":-4.5,"caesars":-4,"pointsbet":-4,"wynn":-4,"bet_rivers_ny":-4},"home_spread_odds":{"betmgm":-110,"draftkings":-110,"fanduel":-104,"caesars":-110,"pointsbet":-110,"wynn":-110,"bet_rivers_ny":-113},"away_spread":{"betmgm":4,"draftkings":4,"fanduel":4.5,"caesars":4,"pointsbet":4,"wynn":4,"bet_rivers_ny":4},"away_spread_odds":{"betmgm":-110,"draftkings":-110,"fanduel":-118,"caesars":-110,"pointsbet":-110,"wynn":-110,"bet_rivers_ny":-110},"under_odds":{"betmgm":-110,"draftkings":-110,"fanduel":-110,"caesars":-110,"pointsbet":-110,"wynn":-110,"bet_rivers_ny":-112},"over_odds":{"betmgm":-110,"draftkings":-110,"fanduel":-110,"caesars":-110,"pointsbet":-110,"wynn":-110,"bet_rivers_ny":-112},"total":{"betmgm":40.5,"draftkings":40.5,"fanduel":40.5,"caesars":40,"pointsbet":40.5,"wynn":40.5,"bet_rivers_ny":40.5},"home_ml":{"betmgm":-200,"draftkings":-195,"fanduel":-194,"caesars":-196,"pointsbet":-210,"wynn":-204,"bet_rivers_ny":-200},"away_ml":{"betmgm":165,"draftkings":165,"fanduel":164,"caesars":162,"pointsbet":175,"wynn":170,"bet_rivers_ny":175}}