Saravanan666/pypi-org huggingface dataset:
Package: servicenow-test-runner-scheduler
Trigger ATF Test / Suite from another instanceServiceNow - Start and Schedule Multiple ATF test runners in browserTrigger ATF Test / Suite from another instanceWhat doesservicenow-test-runner-schedulerdo?InstallationpipxpipConfigureUsageDemoWhat doesservicenow-test-runner-schedulerdo?StartNUM_INSTANCE(default: 6) instances of the client test runner concurrentlyAfterRESTART_INTERVAL // NUM_INSTANCE(default:7200 // 6 = 1200) seconds, the first runner will be restarted, and after another 1200 seconds, the seconds runner will be restarted, and so on.After all the runner have been restarted once, all the 6 runners will be scheduled to restarted everyRESTART_INTERVAL(default:7200) seconds.InstallationInstallpython3andchromedriverfirst.pipxThis is the recommended installation method.$ pipx install servicenow-test-runner-schedulerpip$ pip install servicenow-test-runner-schedulerConfigureCreate a.envfile and put it in the same directory as thetrigger_test_zipapp.pyzfile.Edit the.envfiles, so it looks like this:# required fieldsinstance=https://dev105825.service-now.comuserid=adminpassword=admin_pw# optional fields, the value shown here are the default valuesRESTART_INTERVAL=7200TOLERANCE=300NUM_INSTANCE=6CHECKING_INTERVAL=300Usage$ snowtrs --help # or servicenow-test-runner-scheduler --help

Loading settings for: 
usage: servicenow-test-runner-scheduler [-h] [-V] [-n] [-s]

ServiceNow - Start ATF test runner in browser

options:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -n, --dry-run         Dry run (default: False)
  -s, --scheduled-runner
                        Start a scheduled runner (default: Client test runner) (default: False)
  --headless            Run browser instances in headless mode (default: False)DemoConfiguration of this demo:# .envRESTART_INTERVAL=6TOLERANCE=1NUM_INSTANCE=6CHECKING_INTERVAL=1Runservicenow-test-runner-scheduler --dryrun.
Package: servicenow-utils
ServiceNow Incident Retrieval ModuleThis module provides utilities to retrieve incidents from ServiceNow within a specified date range.FeaturesFetch incidents from ServiceNow based on a date range.Breaks down the retrieval into intervals for efficient fetching.Converts incident data into a Pandas DataFrame for easy data manipulation.Installationpipinstallservicenow-utilsUsageFirst, ensure you have the necessary dependencies:pipinstallpandasrequestsThen, use the module as follows:fromservicenow_utilsimportget_incidents# Define your ServiceNow connection detailsurl="YOUR_SERVICE_NOW_URL"endpoint="YOUR_ENDPOINT"user_name="YOUR_USERNAME"password="YOUR_PASSWORD"df=get_incidents(current_day='2023-04-01',end_day='2023-04-30',url=url,endpoint=endpoint,user_name=user_name,password=password)Functionsday_plus_one(day: str) -> strIncrements the given day by one.day_string_to_dt(day: str) -> datetimeConverts a string representation of a day into a datetime object.get_incidents(current_day, end_day, url, endpoint, user_name, password, start_hour=0, hour_interval=8, count_limit=2000) -> pd.DataFrameFetches incidents from ServiceNow within the given date range and returns them as a Pandas DataFrame.ContributingIf you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: servicepytan
servicepytanPython Library to make it easier to interact with the ServiceTitan API v2Free software: MIT licenseDocumentation:https://servicepytan.readthedocs.io.FeaturesSimple Syntax for getting data from standard RESTful endpoints from ServiceTitanAbility to extract custom report data and automatically make calls for additional dataCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-03-27)First release on PyPI.
Package: service-rabbit
[![Build Status](https://travis-ci.org/puntonim/service-rabbit.svg?branch=master)](https://travis-ci.org/puntonim/service-rabbit)# Rabbit service clientThis package is service client for Rabbit API.## Client usage```python# Configure settings.import service_rabbit.confd = dict(BASE_URL='http://inspire-prod-broker1.cern.ch:15672/api',REQUEST_TIMEOUT=30,HTTP_AUTH_USERNAME='user',HTTP_AUTH_PASSWORD='pass',)service_rabbit.conf.settings.configure(**d)# Use the client.from service_rabbit.client import RabbitClientclient = RabbitClient()response = client.get_queue('inspire', 'orcid_push')response.raise_for_result()consumers = response.get_consumers_count()messages = response.get_messages_count()```## Development```bash# Create a venv and install the requirements:$ make venv# Run isort and lint:$ make isort$ make lint# Run all the tests:$ make test  # tox against Python27 and Python36.$ tox -e py27  # tox against a specific Python version.$ pytest  # pytest against the active venv.# Run a specific test:$ make test/tests/test_client.py  # tox against Python27 and Python36.$ tox -e py27 -- tests/test_client.py  # tox against a specific Python version.$ pytest tests/test_client.py  # pytest against the active venv.```To publish on PyPi, first set the PyPi credentials:```bash# Edit .pypirc:$ cat $HOME/.pypirc[pypi]username: myuserpassword: mypass``````bash# Edit the version in `setup_gen.py`.# ... version=pep440_version('1.1.1'),# Then generate setup.py with:$ make setup.py# Commit, tag, push:$ git commit -m '1.1.1 release'$ git tag 1.1.1$ git push origin master --tags# Finally publish:$ make publish```
Package: service-Rabbit-thread
Biblioteca para trabalhar com o RabbitAo instanciar a classe do Rabbit jÃ¡ deve ser passado os parametros de conexÃ£o e de reconexÃ£o se assim desejar.Nesta biblioteca pode ser encontrado os metodos:getMessagesPegar as mensagens de uma fila e passa a mesma para a funÃ§Ã£o de callback passada para a funÃ§Ã£o getMessages, exemplo:class example():
        def process_message(self, channel, method, properties, body):
            pass
        def example(self):
            self.queue.getMessages('name_queue', 'name_exchange', self.process_message, 1)Parametros:queue: strNome da fila que ficarÃ¡ escutando para ler as mensagens.exchange: strNome da exchange que a fila estÃ¡ vinculada.message_handler: typing.CallableFunÃ§Ã£o de processamento da mensagem recebida, serve para fazer o processamento da mensagem que estÃ¡ entrando na fila.limit_get_messages: intQuantidade de mensagens que deseja pegar por vez do rabbit, por padrÃ£o se nao informada serÃ¡ atribuido 1.postMessageEnviar uma mensagem para uma fila do rabbit.Parametros:queue: strNome da fila que serÃ¡ colocado a mensagem.exchange: strNome da exchange que a fila estÃ¡ vinculada.message: strConteÃºdo da mensagem que serÃ¡ colocado na fila.close_connectionRealizar o fechamento da conexÃ£o com o rabbit.Requerimentos(DEV):Para poder iniciar Ã© preciso ter instalado as dependÃªncias abaixo:PythonPipPoetryGitpoethepoetComo montar a biblioteca e fazer uploud para o pypi.orgVideo de auxlilio pode ser encontradoaquiO arquivo de LICENCE Ã© necessÃ¡rio para dizer de quem Ã© esta biblioteca, alterar de acordo com as regras e necessidade.NecessÃ¡rio instalar o setuptools, jÃ¡ estÃ¡ sendo instalado pelo poetrypip install setuptoolsCriar/editar o arquivo setup.py e configura-lo de acordo com a necessidadeRodar o comando abaixo para ele realizar o empacotamento da nossa biblioteca de acordo com o que estÃ¡ configurado no setup.py:python3 setup.py sdistNecessÃ¡rio instalar o twine para  poder fazer uploud desta biblioteca para fazer uploud para o pypi:pip install twineNecessÃ¡rio ter uma conta no pypi criado para poder fazer uploudRodar o comando abaixo para fazer o uploud de tudo que tem na pasta dist que foi criada pelo processo de geraÃ§Ã£o da nossa biblioteca:twine upload dist/*TestesTodos os testes foram desenvolvidos com o pytest, para executar os mesmos pode ser executado o comandopoetry run coverage run -m pytestou se caso tenha instalado opoethepoetpode ser executadopoe cove_tests
Package: service-registry
# Python Rackspace Service Registry clientA Python client for Rackspace Service Registry.# LicenseThis library is distributed under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0.html).# Usage```Pythonfrom service_registry import ClientRACKSPACE_USERNAME = 'username'RACKSPACE_KEY = 'api key'client = Client(RACKSPACE_USERNAME, RACKSPACE_KEY)```## ServicesCreate a service with a heartbeat timeout of 10:```Pythonservice_id = 'my-service-1'payload = {'metadata': {'key': 'value'}}heartbeat_timeout = 10client.services.create(service_id, heartbeat_timeout, payload)```Heartbeat a service:```Pythonservice_id = 'my-service-1'token = 'returned-heartbeat-token'client.services.heartbeat(service_id, token)```
Package: service-registry-cli
# Rackspace Service Registry CLICommand line client for Rackspace Service Registry. The client currently allowsusers to:* view account limits* vite active services* view events* view, set and remove configuration values## Installation`pip install --upgrade service-registry-cli`## Settings CredentialsCredentials can be set (in order of precedence) as environment variables (RAXSR_USERNAME,RAXSR_API_KEY, RAXSR_API_URL, RAXSR_AUTH_URL), in a configuration file or you can passthem manually to each command.Default configuration file path is `~/.raxrc` but you can overrride it bysetting the `RAXSR_RAXRC` environment variable. For example:`RAXSR_RAXRC=~/.raxrc.uk raxsr services list`### Example Configuration File```[credentials]username=fooapi_key=bar[api]url=https://dfw.registry.api.rackspacecloud.com/v1.0[auth_api]url=https://identity.api.rackspacecloud.com/v2.0[ssl]verify=true```## Usage`raxsr <resource> <action> [options]`For example:`raxsr services list`### Viewing Command Options`raxsr help services list`### Custom Output FormatterTo specify a custom formatter, use `-f` option. For example:`raxsr services list -f json`#### Available Formatters* table* csv* json* yaml* html# LicenseLibrary is distributed under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0.html).
Package: services
servicesA Python package for helpful tooling.Free software: MIT licenseDocumentation:https://dshurick-services.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2019-04-21)Fix broken link to ReadTheDocs.0.1.0 (2019-04-20)First release on PyPI.
Package: services-communicator
Communicator for internal servicesDocumentationThe full documentation is athttps://services_communicator.readthedocs.io.QuickstartInstall Services-Communicator:pip install services_communicatorAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'services_communicator.apps.services_communicator',...)Make migrate to database:python manage.py migrateAdd CREDENTIALS on settings.py file:CREDENTIALS = { <service id>: {"username": <username>, "password": <password>},
                <service id>: {"username": <username>, "password": <password>},
                ..........................................................
                }
or,
CREDENTIALS = { "<service slug>": {"username": <username>, "password": <password>},
                "<service slug>": {"username": <username>, "password": <password>},
                ..........................................................
                }
or,
CREDENTIALS = { "<service guid>": {"username": <username>, "password": <password>},
                "<service guid>": {"username": <username>, "password": <password>},
                ..........................................................
                }Now make your own Communicator:fromservices_communicator.communicatorimportCommunicatorclassCustomCommunicator(Communicator):""" Create your custom method here like this by inheriting Communicator"""defget_roles(self,*args,**kwargs):"""
            - To get other service roles
        :return:
        """path=self.service.get_full_url+"/users/get_role/"# service url extension to do this taskresponse=self._get_action(path=path,headers=self._token())returnresponse.json()defpost_roles(self,*args,**kwargs):"""
            - To create other service roles
        :return:
        """data=datapath=self.service.get_full_url+"/users/create_role/"# service url extension to do this taskresponse=self._post_action(path=path,data=data,headers=self._token())returnresponse.json()defpatch_roles(self,*args,**kwargs):"""
            - To create other service roles
        :return:
        """data=datapath=self.service.get_full_url+"/users/update_role/"# service url extension to do this taskresponse=self._patch_action(path=path,data=data,headers=self._token())returnresponse.json()To perform action, initialize your CustomCommunicator and call your required methods:service_communicator=CustomCommunicator(**{"service_id":<id>})or,service_communicator=CustomCommunicator(**{"service_slug":"<service slug>"})or,service_communicator=CustomCommunicator(**{"service_guid":"<service guid>"})Nowyoucancallyourmethodstoperformspecifictask:response=service_communicator.get_roles()PrecautionThis module is designed only for the personal development purpose.History0.1.0 (2020-01-13)First release on PyPI.
Package: services-registry
A registry to manage services in a Python application.DescriptionRegistry keeps track of all initialized services and returns corresponding services handlers to caller.Registry initializes a service if it has not been initialized before being requested.Registry makes sure that at any point of time, at most one service registry handler exists.UsageServices must inherit from theservices_registry.services_registry.Serviceclass. For example:from services_registry.services_registry import Service


class MyService(Service):
    passServices registry can be used in code in thr following way:from services_registry.services_registry import services_registry


my_service = services_registry.get_service(MyService)LicenseDistributed under the terms of theMITlicense.
Package: service-stats
Service StatsService serves savvy server stats.Service Stats is completely configurable, allowing you to request data about boot time, CPU usage, disk usage, memory usage, network usage, and system information. You can send all this right to Slack. Great for a daily/weekly server snapshot of what's going on. Build custom logic to warn you about high CPU/memory usage or low available disk space.Install# Install Service Statspip3installservice-stats# Install locallymakeinstall# Setup Slack ENV variables (optional)cp.env.example.env# Get Makefile helpmakehelpUsageGrab all server data and send it to Slack.Usage:
    service-stats --boot --cpu --disk --memory --network --system --slack

Options:
    -h, --help     show this help message and exit
    -b, --boot     Show boot time stats.
    -c, --cpu      Show CPU stats.
    -d, --disk     Show disk stats.
    -m, --memory   Show memory stats.
    -n, --network  Show network stats.
    -s, --system   Show system stats.
    -sl, --slack   Send Service report to Slack.

Environment Variables (optional):
    SLACK_BOT_TOKEN     The Slackbot token to use for authentication
    SLACK_CHANNEL       The channel to post a message toDevelopment# Lint the projectmakelint# Run testsmaketest# Run test coveragemakecoverage# Run the scripts locallyvenv/bin/pythonservice_stats/app.py--helpAttributionBased onthis article.
Package: service-updater
Service Update HelperThis is a collection of scripts that help update and install services on linux machines which are autodiscovered by Home Assistant. It can be easily expanded for other platforms and supports configuration for each of them.Currently supported:AgentDVRZigbee2mqttPlexHomeassistantPiHoleBazarrRadarrSonarrSetupThe configuration is done by theconfig.yamlfile which contains the provider name as the file name on the providers folder. Some services need configuration so it can be written there. If the service is not in this config, then it will be ignored.This is an example:mqtt:identifier:service_updaterserver:192.168.1.1port:1883auth:user:userpass:passupdate_interval:21600providers:plex:pihole:zigbee2mqtt:install_dir:"/opt/zigbee2mqtt"homeassistant:config_path:"/etc/homeassistant"agentdvr:install_dir:"/opt/agentdvr"bazarr:url:"http://localhost:6767"api:<key>sonarr:url:"http://localhost:8989"api:<key>radarr:url:"http://localhost:7878"api:<key>Some prerequirements are required which can be installed using the pip command:sudopip3installservice-updaterRunOnce the setup is done, run the script as super usersudo service_updater.DevelopmentThe contribution to this repository is really easy. Create a new file on the providers folder with the name of the service and follow this template:classUpdater():service='NewService'image="https://example.com/icon.png"def__init__(self,config=None):self.config=configself.latest_version=Noneself.current_version=Noneasyncdefget_current_version(self):returnself.current_versionasyncdefget_latest_version(self):returnself.latest_versiondefinstall(self):passMost services are based on web scrapping, so it is very likely that they will stop working, so please create an issue. Any help is more than welcome.
Package: service_utils
# service_utilsA simple python package for quick and easy microservices logging and configuration.[![Codacy Badge](https://api.codacy.com/project/badge/Grade/819d6be760c04433a00dace98c674058)](https://app.codacy.com/app/Sid1057/service_utils?utm_source=github.com&utm_medium=referral&utm_content=Sid1057/service_utils&utm_campaign=Badge_Grade_Dashboard)[![Build Status](https://travis-ci.com/Sid1057/service_utils.svg?branch=master)](https://travis-ci.com/Sid1057/service_utils)[![Version](https://img.shields.io/pypi/v/service_utils.svg)](https://pypi.org/project/service_utils/)[![LICENSE](https://img.shields.io/github/license/sid1057/service_utils.svg)](https://github.com/Sid1057/service_utils/blob/master/LICENSE)## OverviewThis package was created for fast and easy import in your application functional which important as part of any service but not so fun for developing each time.The most important thing for working with this library is a configuration file. I especially use .ini format because it is human-readable, simple to parse in python and disallow using large multi-level configuration.## How to use it### How to use it in your repository1. Simple and good: `pip3 install service_utils`2. Simple and not so good: just copy service_utils.py in your repository3. Not so simple, but it allows you to have the last stable version of the library (if you really need): use .gitmodules file in your repository like this:.gitmodules:```bash[submodule "service_utils"]path = modules/service_utilsurl = https://github.com/Sid1057/service_utils.gitbranch = release```### How to use it in your code#### Short answer```pythonfrom service_utils import Service_utilsservice_utils = Service_utils('--config-key',configuration_required=True)# done```#### Real answerUsing your program as service mean that you will run it in some operation system with some (maybe empty) arguments like:```bashpython3 my_app.py -config config.ini --use-something --print-anything```Using this package mean that you agree with my thinks about configuration in applications and about part of a code which do this stuff:1. Configuration should be simple as possible.2. Configuration should be single in service.3. Configuration package should do maximum routine of posiible, but no more.4. Configuration package should have some default sections in the configuration file.5. Configuration package should allow a user (programmer) to do anything with configuration.6. Your application should have only one loggerUse```pythonservice_utils = Service_utils('--config-key',  # this keyword would be expected when you run your applicationconfiguration_required=True,  # if True - you have to run your application only with config-keyconfiguration_default_path='path_to_default_config.ini',  # if configuration is not required but default configuration exist - this path configuration to configuration file will be useddescription='This is description of application. It would be show in `python3 app.py --help`')```### AlsoREADME is a little bit crap, but I work on it.
Package: servicex-cli
ServiceX Command Line ToolThis is a tool for setting up the ServiceX cluster.Currently, its only function is to automatically create a
KubernetesSecretto securely store your grid certs and passphrase, and to clear this Secret.InstallationThe tool is available on pypi:pipinstallservicex-cliUsageTo list the version of the servicex cli installed:servicexversionInitializationThe ServiceX CLI can be used to initialize ServiceX as follows:servicex[--namespace<namespace>]init[certs|all][--cert-dir<certdir>]Runservicex initto set up everything, or specify one or more components
for partial setup (e.g.servicex init certs).
Certs are the only component currently supported.Grid CertsBy default, the CLI will find certs in.globusin your home directory. You can
override this by providing a--cert-dircommand line option.By default the secret will be created in thedefaultnamespace. You can
override this by providing a--namespacecommand line option
(this must precede theinitcommand).You will be prompted for your grid cert passphrase. This
will not be echoed to the screen, but will be stored in the Kubernetes Secret.RemovalIf you want to remove the installed Secrets from the cluster then
you can use:servicex[--namespace<namespace>]clear[certs|all]Runservicex clearto clear all Secrets, or specify one or more components
(e.g.servicex clear certs).
Specify a--namespaceargument which precedes theclearcommand to remove the
Secrets from that namespace.
Package: servicex-coffea
#ServiceX Coffea
A library to allow users to analyze ServiceX Data using Coffea ToolsAcknowledgementsServiceX is a component of theIRIS-HEPIntelligent Data Delivery Service, and is supported by National Science Foundation underCooperative
Agreement OAC-1836650. Any opinions, findings, conclusions or recommendations
expressed in this material are those of the authors and do not necessarily
reflect the views of the National Science Foundation.