Saravanan666/pypi-org huggingface dataset:
Package: sirepo-bluesky
Sirepo-BlueskyThis is a Sirepo-Bluesky interface library that allows using theBluesky data
acquisition frameworkto runSireposimulations (SRW, Shadow3, etc.)Free software: BSD-3-Clause licenseDocumentationPlease check our documentation athttps://nsls-ii.github.io/sirepo-blueskyfor
installation instructions and examples using SRW, Shadow3, and MAD-X apps of
Sirepo.CitationM. Rakitin, A. Giles, K. Swartz, J. Lynch, P. Moeller, R. Nagler, D.B. Allan, T.A. Caswell, L. Wiegart, O. Chubar, and Y. Du"Introduction of the Sirepo-Bluesky interface and its application to the optimization problems", Proc. SPIE 11493, Advances in Computational Methods for X-Ray Optics V, 1149311 (21 August 2020);https://doi.org/10.1117/12.2569000BibTeX:@InProceedings{Sirepo-Bluesky:2020,author={Rakitin, Maksim S. and Giles, Abigail and Swartz, Kaleb and Lynch, Joshua and Moeller, Paul and Nagler, Robert and Allan, Daniel B. and Caswell, Thomas A. and Wiegart, Lutz and Chubar, Oleg and Du, Yonghua},booktitle={Advances in Computational Methods for X-Ray Optics V},title={{Introduction of the Sirepo-Bluesky interface and its application to the optimization problems}},year={2020},editor={Oleg Chubar and Kawal Sawhney},month=aug,organization={International Society for Optics and Photonics},pages={209--226},publisher={SPIE},volume={11493},doi={10.1117/12.2569000},keywords={Sirepo, SRW, Bluesky, Databroker, Ophyd, optimization, simulations},url={https://doi.org/10.1117/12.2569000},}
Package: sirex
SirexSiRex - Simple Regex - A package to use regex commands on strings using simple function callsUsageSirex has many functions that help you do  regex function calls on stringsPlease see the documentation for the different functionsInstallationpip install sirexUsageimport sirex

sirex.count_numbers("Hell123ow 123")Detailed DocumentationDetailed documentation can be found here :sirex.readthedocs.io
Package: sir-hiss
Sir HissAutomatically run the relevant tool (pylint, mypy, pytest, ...) for the current repository.Tools are detected by peeking at configuration files (pyproject.toml, .pylintrc, ...).UsageFrom the root of a python project:hisswill run the toolshiss --checkprevent the files to be modified by formattershiss --fastwill skip slowest tools (mostly tests)hiss --previewwill print the list of tools found in the repositoryWhy this (stupid) nameSir Hiss is the name of the snake in "Robin Hood" animated movie.
He has a lot of interesting advice to give to the king but he is never listened to ...
I hope you don't treat your linter like that ^^Supported toolsblackflakeisortmypynosetestpylintpytestPlease suggest more tools :-)TODORead requirements.txtDecide if we should try to read tox.ini. Tox also allow to launch several tools in diferrent environments and there is some overlap with hiss.Add installation instructionsTo considerDisplay diff on failureShare some options
Package: siri
A library for dealing with Service Interface for Real-time Information (SIRI) dataContains:Auto-generated python classes for dealing with SIRI data.A method to parse SIRI XML.A method to serialize objects into SIRI XMLThis library leans heavily on the output and functions ofxsdataNo warranty is provided with this library. This library does not defend against XML attacks.Installation$pipinstallsiriUsageParse a file>>>fromsiriimportparse>>>parse('my_siri_file.xml')Parse an XML string>>>fromsiriimportparse>>>xml_string="""
    <?xml version="1.0" encoding="UTF-8"?>
        <ns0:Siri xmlns:ns0="http://www.siri.org.uk/siri" version="2.0">
            <ns0:SubscriptionResponse>
                <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
                <ns0:ResponderRef>Responder Ref</ns0:ResponderRef>
                <ns0:ResponseStatus>
                    <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
                    <ns0:SubscriberRef>Subscriber Ref</ns0:SubscriberRef>
                    <ns0:SubscriptionRef>1</ns0:SubscriptionRef>
                    <ns0:Status>true</ns0:Status>
                </ns0:ResponseStatus>
            </ns0:SubscriptionResponse>
        </ns0:Siri>
    """>>>siri_object=parse(xml_string)>>print(siri_object.subscription_response.response_status.subscription_ref)1Build and serialize a SIRI object>>>fromsiriimportSiri,SubscriptionResponse,ResponseStatus>>>>>>obj=Siri(>>>subscription_response=SubscriptionResponse(>>>response_timestamp=datetime.datetime(2021,1,1).isoformat(),>>>responder_ref="Responder Ref",>>>response_status=ResponseStatus(>>>response_timestamp=datetime.datetime(2021,1,1).isoformat(),>>>subscriber_ref="Subscriber Ref",>>>subscription_ref="1",>>>status=True,>>>)>>>)>>>>>>serialize(obj)"""<?xml version="1.0" encoding="UTF-8"?>
<ns0:Siri xmlns:ns0="http://www.siri.org.uk/siri" version="2.0">
    <ns0:SubscriptionResponse>
        <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
        <ns0:ResponderRef>Responder Ref</ns0:ResponderRef>
        <ns0:ResponseStatus>
            <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
            <ns0:SubscriberRef>Subscriber Ref</ns0:SubscriberRef>
            <ns0:SubscriptionRef>1</ns0:SubscriptionRef>
            <ns0:Status>true</ns0:Status>
        </ns0:ResponseStatus>
    </ns0:SubscriptionResponse>
</ns0:Siri>"""
Package: siricoin
Siriously, F**K YOU siricoin. Why? Well here it goes.SiriCoin is censoring the hella outta you. One word against the devs: BAN. One word about a concurent: BAN. One word about previous devs? BANBANBAN!SIriCoin devs cant code. SiriCoin started out as an 1:1 token of duinocoin, and the main founder, Sanjay simply invited every duinocoin contrib via github into the siricoin repo.
The Code is all written by yanis, an early contributor of siricoin.Me and some other guys ended up in SiriCoin, we developed alot, I hosted everything and did all the shit Shreyas couldnt, Sanjay was never onlineQuick forward: A few weeks later.We have an fight, about important stuff, and I decide to shut the only (one node) down. Decentralisation? Hell no. I post an message regarding this to announcements? ITS GET DELETED.The original siricoin devs all banned us, dont wanna talk about the event, all tho we tried to cooperate, even stole some of our source code (Proof?here. Per the original License, its defently not allowed to change to a MIT license.)And what about Shreyas and Sanjay? THEY DIDN'T EVEN KEEP A BLOCKCHAIN COPY!Come joinsirious, where you, won't get censored. We are Sirious.(Also you can see from all the trolling we did to siricoin how vulnerable they are)
Package: siris-scraper
This is a non-official scraper for statistical data from the Skolverket’s (https://www.skolverket.se/skolutveckling/statistik/)[SIRISdatabase]  built on top of theStatscraper package <https://github.com/jplusplus/statscraper>. It lets you interact with the stat export interface in a pythonic way.Installpip install siris_scraperExample usagefromsiris.scraperimportSirisScraper# Init scraperscraper=SirisScraper()# List all schooltypesskolformer=scraper.items# Select a datasetdataset=skolformer.get_by_label(u"Grundskolan")\.items.get_by_label("Kommunnivå")\.items.get_by_label("Personal")\.items.get_by_label("Personalstatistik")# Make a queryres=dataset.fetch()# Get latest available data#res = dataset.fetch({"period": "2015"})  # Get data for a given period#res = dataset.fetch({"period": "*"})  # Get data all periods# List all avilable periodsprint(dataset.periods)# Use the result# ...in Python Pandas for exampledataframe=res.pandasDevelopSet up:pip install -r requirements.txtRun tests:make testsDeployTo pypi:python3 deploy_to_pypi.pyTodoHandle filtering in export (“Begränsa träfflista”)
Package: siriuscommon
Common module for Sirius applicationsCommon features for Sirius scripts.Available atPyPihttps://pypi.org/project/siriuscommon/library for:EPICS Archiver ApplianceFluig (WIP)TaigaZabbixutility-apiEPICS Archiver ApplianceFluigTaigaThe followwing scripts are installed by this module:scriptdescriptiontaiga-initialize-projectInitialise a Taiga project, creating custom attributestaiga-export-xlsxExport a Taiga project into a spreadsheet using the ENG formatZabbixutility-api03/08/2021Include initial Zabbix and Archiver library
Package: siriushlacon
Sirius HLA CONS - GUIThis repo contains various PyDM OPIs in use.DevelopIn order to contribute with this repository the developer must havepre-commitinstalled and enabled.pip install pre-commit
pre-commit installInstallWindows instructions.Available atPyPihttps://pypi.org/project/siriushlacon/, can be installed using pip but specific versions of QT are needed.CondaInstall (Linux)# Install Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh

# Remove the install script
rm Miniconda3-latest-Linux-x86_64.shInstall (Windows)Download athttps://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exeImportantLocal installation (single user only).Add to the PATHThe user should check if conda is enabled. The powershell prompt should look like:(base)...In order to setup conda correctly on powershell use the command below then restart the shell application:condainitpowershellSet the powershell execution policy so external scripts are availblehttps://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.1Set-ExecutionPolicyRemoteSignedEnvironment setupCreate a conda environment using a tested python versionconda create --name py36 python=3.6Environment dependencies:# Activate the environment "py36", the shell prompt should start with "(py36) ..."
conda activate py36

# Enable conda-forge channel
conda config --add channels conda-forge
conda config --set channel_priority strict

# Install EPICS base
conda install -c conda-forge/label/cf202003 epics-base

# Install dependencies
conda install -c conda-forge bottleneck
conda install -c conda-forge pyqt==5.12.3
conda install -c conda-forge qt==5.12.9
conda install -c conda-forge pydm==1.10.4

# Install interfaces
pip install --upgrade siriushlaconDesktop shortcutWindows:This assumes a conda environment namedpy36. The.lnkcontent must be updated in case of a different name.iex((New-ObjectSystem.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lnls-sirius/pydm-opi/master/miscellaneous/windows/Create-Shortcut.ps1'));RunTo launch the main window use the script:sirius-hla-as-ap-conlauncher.py.On Windows make sure that the correctpython.exeorpythonw.exeis the default program for*.pyfiles.pythonw.exe(Get-Commandsirius-hla-as-ap-conlauncher.py).Pathpythonw.exe(Get-Commandsirius-hla-as-va-vbc.py).Path2.4.1 - Sprint 15UPDATE: Merge PR beaglebonesFIX: Check Python version before usingdataclasses(required 3.7+)2.4.0 - Sprint 15FIX: agilent4uhv details table crash.FIX: regatron alarm tree view with broken PV names.NEW: Central logging modulelogging.py.NEW: Include CODEOWNERS file.NEW: Includesiriushlacon_launcher; usage of setup entrypoints.UPDATE: Center MKS ans Agilent table labels.UPDATE: Custom PyDMAppliacation instance usingsirius-hla-as-ap-generic-launcherentrypoint instead ofpydm.UPDATE: Widgets and generic components intowidgets/.UPDATE: launcher img layout.
Package: siriusmail
siriusmailFor all those mails✨ Highlight✔️ Email parser for both outlook .msg files and regular .eml files✔️ Use our built in rtf regex parser to remove rtf tags or use your own📦️ Installationpipinstallsiriusmail📝 Examplesfromsiriusmail.parserimportParseEmailfromsiriusmail.rtf_extractorimportremove_rtfFILE=r"INPUT_FILEPATH"OUT=r"OUTPUT_FILEPATH"ENCODING="encoding"# optional, you may specify if you are aware of the encoding being used, else chardet will try to guess# 3 retrieval options here - body, text or attachmentsmsg=ParseEmail(FILE).process_streams("body",encoding=ENCODING)msg=ParseEmail(FILE).process_streams("text")msg=ParseEmail(FILE).process_streams("attachments",filepath=OUT)# use our simple regex extractor to remove rtf tagsADDITIONAL_TAGS=[r"(\\+pard)",r"(\\+pard1)",]# optional, we are definitely missing rtf tags since this is a "hardcoded" solution, add more tags or raise an issue!msg=remove_rtf(msg,extra_tags=ADDITIONAL_TAGS)🚀 Releases and To-DosMake RTF deencapsulation more robustAdd test for specific emails [not available at the moment due to personal emails]
Package: siriuspy
INSTALL - siriuspyThis package can be installed using setuptools (>=16.0).
There is no automatic dependency checking, so read the list below and ensure necessary dependencies are available.
Developed and tested with Python 3 (3.4).REQUIREMENTSTESTSTo run the unittest suite:cd siriuspy
  ./setup.py testTo run a specific unittest subpacke:cd siriuspy
   ./setup.py test -s tests.searchINSTALLATIONTo install to a default Python directory, run<python> setup.py installUse the appropriate command in . Depending on permissions, it may be
necessary to run the command with sudo or as superuser.To install a development version, with a link to the local package files in the
default Python directory, run<python> setup.py developDetails and further options can be found in setuptools documentation.
Package: sirius-sdk
Sirius Smart-Contract isdistributed state-machinedriven byEdge-Chain protocolthat approved by participants. Sirius SDK is entry point to develop distributed machines that acts as whole smart-contract.Key FeaturesDevelop state-machines overprotocolsin blocking develoment style avoidingCallback Hell.SupportsAries conceptsandfeatures.Make it easy to solve identity problem, tune complex identity task for your demand:SetupIndy Agentin Cloud (Sirius Hub) or deploy self developed oneConfigure private keys management system on your side: database,HSM,Indy Wallet, etc.Configure Trust environment with your contragents viaMicroledgers,Sovrin Network, otherIndy Ledgers,Triple Signed Receips,Merkle-Proofsout of the box.Define specific consensus procedures through state-machines that progress states of participants inTransport-Agnosticenvironment - save money on IT-infrastructure.Installationpip install sirius-sdk
Package: sirms
SiRMSSimplex representation of molecular structure - a chemoinformatic tool for calculation of simplex (fragment) descriptorsBackgroundSimplex - tetraatomic fragment with fixed topology and stereo configuration.
Simplex descriptor - number of identical simplexes in a molecule.
From the version 1.0.0 fragments of any size are supported (not only simplexes).FeaturesCalculate descriptors for single compounds, mixtures, quasi-mixtures and reactions (all-in-one tool).Support incorporation of user-defined atomic properties (e.g. partial charges, H-bond donor/acceptor, etc) in generated descriptors.Work well in QSAR/QSPR modeling tasks.LimitationsThis version calculates only 2D descriptors.Installationpip install sirmsUsageReturns 2D simplex descriptors with vertexes labeled by element for single compoundssirms -in input.sdf -o output.txtReturns 2D simplex descriptors with vertexes labeled by element for reactionssirms -in input.rdf -o output.txtHelpsirms -hWikiSee wiki pages for more information and examples -https://github.com/DrrDom/sirms/wiki.NotesStandardize structures before descriptors calculation.LicenseBSD 3-clauseReferenceKuz’min, V. E.; Artemenko, A. G.; Polischuk, P. G.; Muratov, E. N.; Khromov, A. I.; Liahovskiy, A. V.; Andronati, S. A.; Makan, S. Y. Hierarchic System of QSAR Models (1D-4D) on the Base of Simplex Representation of Molecular Structure - Journal of Molecular Modelling, 2005, 11, 457-467. (one of the first descriptions of single compounds representation)Kuz’min, V. E.; Artemenko, A. G.; Muratov, E. N. Hierarchical QSAR technology based on the Simplex representation of molecular structure - Journal of Computer-Aided Molecular Design, 2008, Volume 22, Issue 6-7, 403-421. (single compounds representation)Oprisiu, I.; Varlamova, E.; Muratov, E.; Artemenko, A.; Marcou, G.; Polishchuk, P.; Kuz'min, V.; Varnek, A. QSPR Approach to Predict Nonadditive Properties of Mixtures. Application to Bubble Point Temperatures of Binary Mixtures of Liquids. Molecular Informatics 2012, 31, 491-502. (old approach of mixtures representation)Mokshyna, E.; Nedostup, V. I.; Polischuk, P. G.; Kuzmin, V. E. ‘Quasi-Mixture’ Descriptors for QSPR Analysis of Molecular Macroscopic Properties. The Critical Properties of Organic Compounds. Molecular Informatics 2014, 33, 647-654. (quasi-mixture representation)Polishchuk, P.; Madzhidov, T.; Gimadiev, T.; Bodrov, A.; Nugmanov, R.; Varnek, A. Structure–reactivity modeling using mixture-based representation of chemical reactions. J Comput Aided Mol Des 2017, 31 (9), 829-839 (reaction representation & new mixture representation).Changesversion 1.1.0 (26.07.2016)New canonicalization algorithm was implemented that changed descriptors names (break compatibility with older versions)version 1.1.1 (20.02.2017)multiprocessing calculation of descriptors was implemented for single molecules and svm output format only (sparse format)per atom fragmentation was addedversion 1.2.0 (06.02.2021)reorganized as a Python packageversion 1.2.1 (08.02.2021)fix README formattingversion 1.2.2 (12.04.2023)fix examples in READMEversion 1.2.4 (13.04.2023)fix import calc_atomic_properties_chemaxon
Package: sirqle
SirqleSurreal DB with Python wrapper forsurrealdb.pywhich makes it easy to write SurrealQL queries in Python.Install with:pipinstallsirqleUsage:fromsirqle.queryimportConfig,Queryconfig=Config(url="localhost:8000",namespace="test",database="test",username="test",password="test",)my_query=Query(config=config)table_name="person"cont={"name":"Tobie","company":"SurrealDB","skills":["Rust","Go","JavaScript"],}my_query.create(table_name).content(cont)response=awaitmy_query.execute()# the resultresponse=[{'company':'SurrealDB','id':'person:it2e579rij23zu0iswk4','name':'Tobie','skills':['Rust','Go','JavaScript']}]Config ModuleTheConfigclass is used to configure the connection the database. It uses theSurrealHTTPclient and requires the following arguments depending on the desired method:Manually enter the parametersurl: URL of the databasenamespace: The namespace of the databasedatabase: The name of the databaseusername: The access usernamepassword: The access passwordPass a previous defined clientclient: anSurrealHTTPclient fromsurrealdb.pyLoad the parameters from a fileenv_file: the name of the env file. Defaults to.db_conf.Query ModuleThe Query module aims to extend the standard SurrealQL and make it more Python friendly. Internally it constructs a SurrealQL string from method chaining and sends the query to the database.Initialize the queryquery=Query(config)Create examplesCreate a new entry:CREATEpersonCONTENT{name:'Tobie',company:'SurrealDB',skills:['Rust','Go','JavaScript']};becomestable_name="person"cont={"name":"Tobie","company":"SurrealDB","skills":["Rust","Go","JavaScript"],}create_query.create(table_name).content(cont)Insert exampleINSERTINTOperson(name,company,founded)VALUES('John','SurrealDB','2021-09-10');becomestable_name="person (name, company, founded)"data=tuple(["John","SurrealDB","2021-09-10"])insert_query.insert(table_name,values=data)Select exampleSELECT*FROMperson;becomesquery.select("*").from_("person")ExecutionTo execute the query runres = await query.execute(), whereresis the result of the query.Custom query exampleIf you need something more complex than the basic operations, you can directly pass an SurrealQL query as a string:This query creates a temporary entry in the tableTopicwhere we hash the values oftopic_labelandtopic_source, returns the hash value and then delete the table.table_name="Topic"topic_label="SurrealDB is awesome"topic_source="My personal knowledge"my_query.custom(f"create{table_name}content"+f"{{words:{topic_label}, source:{topic_source}}}"+f" return crypto::md5(string::concat($this.words, $this.source));"+f" delete from{table_name};")response=awaitmy_query.execute()response={"crypto::md5":"8f23a9630e18d525946740e5498798be"}
Package: sirtalkalot
SirTalkAlot is a Slack (RTM) based bot which provides a simple service based slack bot.Project StructureThe project is split into 3 different modules.botserviceswebsocketbotTBDservicesTBDwebsocketThis module contains a websocket client which is necessary to use
the RTM. SirTalkAlot currently does not provide it’s own implementation, he
just uses a small wrapper around the ws4py web socket client.
Seews4py.
Package: siru
SIRUSIRU is a tool to run automated tests on hardware, designed to be used in the development of embedded systems.Table of ContentsInstallationLicenseInstallationpip install siruArquitectura Ruwaq@startuml
skinparam componentStyle uml1frame "Microkernel" {
[Despachador] -l-> Ejecutar : usa
Ejecutar <.l. [Servidor PREAT] : usaport Registrar
[Despachador] -r-> Registrar

[Servidor PREAT] ..> Enviar : usa
[Servidor PREAT] ..> Recibido : usa

Recibido <-- [Transporte]
Enviar <-- [Transporte]}Registrar <.. [GPIO]: usa
[Despachador] --> [GPIO]
@endumlArquitectura Siru@startuml
skinparam componentStyle uml1[DUT] -right-> [ATE][ATE] -right-> [GPIO][ATE] ..> Ejecutar: usa
[ATE] ..> Esperar: usa
[GPIO] ..> Ejecutar: usaEjecutar <-- [PREAT]
Esperar <-- [PREAT]
@enduml
siruLicenseSIRUis distributed under the terms of theMITlicense.
Package: sirup
sirup: simple IP rotation using pythonA wrapper around the openvpn CLI to connect to VPN servers and rotate the IP address in python programs.What is requiredAn account with a VPN service that supports openvpn (for instance ProtonVPN or surfshark).A linux OS with superuser rights.openvpnfor linux. Seeherefor installation instructions.How to installTo install from pip, do:python -m pip install sirupTo install sirup from GitHub repository, do:python -m pip install 'sirup @ git+https://github.com/ivory-tower-private-power/sirup'How to use sirupThe package has two functionalities: connecting to a VPN server, and rotating the IP address.1. Start upThis step is necessary for both functionalities.importosimportgetpassimporttimeseed=123mypass="/path/to/credentials.txt"# the user name and password credentials from your user account with the VPN serviceconfig_path="/path/to/config/files/"# the .opvn configuration files from your VPN serviceFunctionality 1: Connecting to a single VPN serverThesirup.VPNConnector.VPNConnectorclass has two methods:connectanddisconnect. They are used as follows.fromsirup.VPNConnectorimportVPNConnectorconfig_file=os.path.join(config_path,"name-of-one-config-file.ovpn")pwd=getpass.getpass()connector=VPNConnector(auth_file=mypass,config_file=config_file)connector.connect(pwd=pwd)time.sleep(10)connector.disconnect(pwd=pwd)Functionality 2: Using the IP rotation featureThesirup.IPRotator.IPRotatorclass has three methods:connect(),rotate(),disconnect(). They are used as follows.fromsirup.IPRotatorimportIPRotatorrotator=IPRotator(auth_file=mypass,config_location=config_path,seed=seed)# will ask for the sudo passwordrotator.connect()print(rotator.connector.current_ip)rotator.rotate()print(rotator.connector.current_ip)rotator.disconnect()NoteBefore using the package, have a look at"Making sure the VPN connection works correctly"to make sure the VPN service works properly.DocumentationThe documentation of sirup can be found onRead the Docs.ContributingIf you want to contribute to the development of sirup,
have a look at thecontribution guidelines.CreditsThis package was created withCookiecutterand theNLeSC/python-template.