Saravanan666/pypi-org huggingface dataset:
Package: service-identity
Service Identity Verification for pyOpenSSL &cryptographyUse this package if:you want toverifythat aPyCAcryptographycertificate is valid for a certain hostname or IP address,or if you usepyOpenSSLand don’t want to beMITMed,or if you want toinspectcertificates from either for service IDs.service-identityaspires to give you all the tools you need for verifying whether a certificate is valid for the intended purposes.
In the simplest case, this meanshost name verification.
However,service-identityimplementsRFC 6125fully.Also check outpemthat makes loading certificates from all kinds of PEM-encoded files a breeze!Project Informationservice-identityis released under theMITlicense, its documentation lives atRead the Docs, the code onGitHub, and the latest release onPyPI.Creditsservice-identityis written and maintained byHynek Schlawack.The development is kindly supported by my employerVariomedia AG,service-identity'sTidelift subscribers, and all my amazingGitHub Sponsors.service-identityfor EnterpriseAvailable as part of the Tidelift Subscription.The maintainers ofservice-identityand thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open-source packages you use to build your applications.
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.Learn more.Release InformationChangedIf a certificate doesn't contain anysubjectAltNames, we now raiseservice_identity.CertificateErrorinstead ofservice_identity.VerificationErrorto make the problem easier to debug.#67Complete Changelog →
Package: serviceinstaller
ServiceinstallerA simple Python module to automate the installation of system services, currently compatible with Systemd services on Linux.
Used by theBrokkrandSindripackages as part ofProject Mjolnir.See theinstall_service()docstring inserviceinstaller.pyfor more details on usage.LicenseCopyright (c) 2019-2022 C.A.M. Gerlach and contributorsThis project is distributed under the terms of the MIT (Expat) License; see theLICENSE.txtfor more details.Installation and SetupCompatible and tested with Python 3.6-3.10, and should work with 3.11.
Currently, the actual service installation itself only supports Linux, but it can generate and write the service file (e.g. for testing, bundling or cross-compilation) on any platform.
No dependencies required.
Package: serviceit
Service-itTurn any Python function into a service that receives JSON payloads on some port.Here’s a trivial example:importserviceitdefreceiver(payload):print(payload)server=serviceit.server(1533,receiver)# Now it will receive JSON on 1533. For convenience:server.client().send(dict(message="hi"))print(server.bytes_processed)More complex example: isolate codeYou can use this to isolate a component of you code.
For example, rdkit can be installed through Conda but not Pip (or Poetry).
So, create a service and import it in an Anaconda environment to create a server,
and in your pip-installed client code.In a Conda environment, create a service that listens on port 1533:importserviceitdef_receiver(payload):# noinspection PyUnresolvedReferencesfromrdkit.Chem.inchiimportInchiToInchiKeyinchikey=InchiToInchiKey(payload["inchi"])print(inchikey)server=serviceit.server(1533,_receiver)On your pip-install client side:importserviceitclient=serviceit.client(1533)client.send(dict(inchi="InChI=1S/H2O/h1H2"))New issuesand pull requests are welcome.
Please refer to thecontributing guide.Generated withTyrannosaurus.
Package: servicelayer
servicelayerComponents of the aleph data toolkit needed to interact with networked services,
such as a storage archive, job queueing, cache, and structured logging. This
package contains some common configuration components for all of these services
using environment variables.archive mechanismThis library provides a configurable method for file storage used by aleph and
memorious. It will store files based on their content hash (SHA1) and allows for
later retrieval of the content.Release proceduregit pull --rebase
make build-docker test
bump2version --no-commit --dry-run --verbose {patch,minor,major} # to test if this looks good
bump2version --verbose {patch,minor,major}
git push --atomic origin main $(git describe --tags --abbrev=0)
Package: servicelib
<!–
SPDX-FileCopyrightText: 2019-2021 Freemelt AB <opensource@freemelt.com>SPDX-License-Identifier: LGPL-3.0-only
–># ServicelibPython package containing common helpers used by the service-layer of the freemelt machine software.# License
Copyright © 2019-2021 Freemelt AB <opensource@freemelt.com>
The Servicelib is under [GNU Lesser General Public License, Version 3](https://www.gnu.org/licenses/lgpl-3.0.en.html)
Package: service-locator
The service locator pattern is a very simple but useful pattern that helps you remove glue code from application code.Decoupling the wiring of dependencies (glue code) can reduce your lines of code significantly and encourages loose coupling.This allows you to depend on abstractions rather than on concretions, it makes adding additional
functionality to your application much easier.Configuration xml files are not pythonic and are often overcomplicated, class decorators are used instead.Concrete service implementations should be placed in a services folder. All services subfolders will be discovered using
discover_services function and all containing modules will be auto-loaded.All services will be instantiated by the service locator as a singleton.UsagePlease see test/integration/test.py for a sample project. Suppose you have an abstract service class that looks like this:#mime_recognizer_service.pyclassMIMERecognizerService(object):defrecognizes_extension(self,extension):passdefget_MIME_type(self):passRegister a service like this:#pdf_recognizer.pyfromservicelocator.service_discovererimportdiscover_services@service_provider(MIMERecognizerService)classPDFRecognizer(MIMERecognizerService):defrecognizes_extension(self,extension):returnextension==".pdf"defget_MIME_type(self):return"application/pdf"You can register as many services and service providers as you like. When you retrieve all MIMERecognizerServices using the
lookup_all function, one of the results in the list will be a PDFRecognizer() instance.In order for the service discovery process to find the PDFRecognizer, you need to place it in a services folder. Your
directory structure might look something like this (__init__.py’s removed for demo purposes):-root/
    -main.py
    -mime_recognizers/
       -mime_recognizer_service.py
       -services/
           -pdf_recognizer.py
    -file_openers/
       -file_opener_service.py
       -services/
           -pdf_opener.pyYou discover services like this:fromservicelocator.service_discovererimportdiscover_servicesdiscover_services()And that’s it. The discover_services will walk the project directory tree and import all python modules inside services folders.To retrieve service providers for a service, use the lookup functions like this:fromservicelocator.lookupimportglobal_lookupMIMERecognizers=global_lookup.lookup_all(MIMERecognizerService)This will get all concrete implementations of the MIMERecognizerService but the we do not need to know about the
existence of any of these concrete implementations. Adding extra functionality is as simple as dropping a file inside a
services directory, no additional code is necessary. This makes adding new service providers in a loosely coupled way very easy .And if you know there is only one implementation of the service:fromservicelocator.lookupimportglobal_lookupMIMERecognizer=global_lookup.lookup(MIMERecognizerService)
Package: service-logging
TL;DR:logging.basicConfig()is very often not enough, leading to DRY
violations.  Useservice-loggingto log to syslog or the Windows event
log when running in the background, and log to stderr when running in the
foreground, both with well formatted messages.Using logging correctly is often both usage and OS specific.  For a usage
specific example, when developing or troubleshooting a daemon and/or service
it is often useful to use one logging configuration when running in the
foreground in a shell and another when running in the background.  For an OS
specific example, when running in the background a daemon and/or service
should use the appropriate logging service for that system so that logging
metadata is correct (severity, facility, etc.), but the right way to do that
is OS specific.  Furthermore, deciding between these configurations requires
logic that cannot be done through the simple configuration mechanisms provided
by Python’slogging.config.Given these realities, logging is often not done “The Right Way”, and/or is
difficult to adjust for debugging/testing vs background.service-loggingaims to address this by providing the logic to choose between correct logging
configurations for different usages and OSes.  It also provides several ways
to use these configurations, making the depth of commitment opt-in.InstallationInstall using any tool for installing standard Python 3 distributions such aspip:$ sudo pip3 install service-loggingUsageUseservicelogging.basicConfig()to add an OS and usage specific root
logging hander:>>> import servicelogging
>>> servicelogging.basicConfig()The command-line script also supports wrapping another Python script with logging
configured:$ python -m servicelogging foreground_demo.py
$ service-logging foreground_demo.pySee the command-ling help for details on options and arguments:$ service-logging --help
usage: service-logging [-h] [--level LEVEL] script

python logging configurations done The Right Way, top-level package.

positional arguments:
  script         The Python script to run after configuring logging

optional arguments:
  -h, --help     show this help message and exit
  --level LEVEL  The level of messages to log at or above (default: 20)Or if you just want the appropriate handler and formatter to use as you’d like
in your code, you can useservicelogging.choose_handler():>>> import servicelogging
>>> handler = servicelogging.choose_handler()TODOFeatures for future releasesSupport alternate logging configuration options:Make sure that the approach is compatible with the various Pythonlogging.configoptions.Anything else you find youself doing over and over:Submit a PR and make an argument for why a change would be useful in the
vast majority of cases.
Package: servicemapper
PIPSC Service Mapper is a framework for connecting external services
and sharing data using the PIPSC Data Steward service.PrerequisitesPython 3VirtualenvnpmEnvironment SetupNote:  If using zsh, you’ll need to use ‘noglob’ to prevent zsh from using the square brackets for pattern matching.
A useful alias is
.. code-block:: bash$ alias pip=’noglob pip3’Setup the virutalenv and install the dev dependencies:
.. code-block:: bash$ npm run venv
$ source .venv/bin/activate
$ pip install -e .[dev]Creating a Manifest$check-manifest--create$gitaddMANIFEST.iniPackage Testing with tox$toxBuild the Package$python3setup.pybdist_wheelsdistPublish the Package$twineuploaddist/*Using the PackageTo use the servicemapper package in another project you must
configure the package repository, then import servicemapper$pipinstallservicemapperRelevant Infohttps://godatadriven.com/blog/a-practical-guide-to-using-setup-py/https://www.youtube.com/watch?v=GIF3LaRqgXoHistory0.0.1 [2020-03-04]
* Initial commit
Package: service-markets
service.marketsSoftware-as-a-Service (SaaS) Marketplace with cryptocurrency paymentsService.markets runs onFastAPIand usesAleph.imfor decentralized hosting.Initial setupInstall the FastAPI library and Uvicorn:poetryinstallActivate the virtual environment, if not already done:poetryshellRun on localRunning the APIUvicorn is used to run ASGI compatible web applications, such as theappweb application from the example above. You need to specify it the name of the
Python module to use and the name of the app:python-muvicornsrc.service_markets.api.main:app--reloadThen open the app in a web browser onhttp://localhost:8000Tip: With--reload, Uvicorn will automatically reload your code upon changesTestingTo run the tests, you need toinstall the dev dependencies.In order to avoid indexing all the messages and starting out with an empty database, you need to set theTEST_CHANNELenvironment variable totrue:exportTEST_CHANNEL=trueThen, you can run the API tests with:poetryrunpytestsrc/service_markets/api/test.pyNote: The tests run sequentially and if one fails, the following ones will also fail due to the event loop being closed.Environment variablesNameDescriptionTypeDefaultTEST_CACHEWhether to use the test cachebooltrueTEST_CHANNELWhether to use a fresh test channelboolfalseALEPH_CHANNELThe Aleph channel to use, is superseded byTEST_CHANNELstringNone
Package: servicemock
ServicemockUnittest exampleimport unittest
import servicemock as sm


class TestService(sm.ServiceMockTestCase):

    def test(self):
        # If the expected request is not made the test will fail
        sm.expect('http://service.com').to_receive(sm.Request('GET', '/v1/users')).and_responds(sm.HTTP200Ok(sm.JSON({'status': 'ok'})))
Package: servicemon
Measure/monitor VO service performanceMeasure/monitor performance of a list of VO services over multiple points.LicenseThis project is Copyright (c) Tom Donaldson and licensed under
the terms of the BSD 3-Clause license. This package is based upon
theAstropy package templatewhich is licensed under the BSD 3-clause licence. See the licenses folder for
more information.ContributingWe love contributions! servicemon is open source,
built on open source, and we’d love to have you hang out in our community.Imposter syndrome disclaimer: We want your help. No, really.There may be a little voice inside your head that is telling you that you’re not
ready to be an open source contributor; that your skills aren’t nearly good
enough to contribute. What could you possibly offer a project like this one?We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one’s coding skills. Writing perfect code
isn’t the measure of a good developer (that would disqualify all of us!); it’s
trying to create something, making mistakes, and learning from those
mistakes. That’s how we all improve, and we are happy to help others learn.Being an open source contributor doesn’t just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you’re coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.Note: This disclaimer was originally written byAdrienne Lowefor aPyCon talk, and was adapted by
servicemon based on its use in the README file for theMetPy project.
Package: servicenow
Python ServiceNow=================This is a Python Library to interact and manage the ServiceNow database via[JSON web service](http://wiki.servicenow.com/index.php?title=JSONv2_Web_Service).Installation:------### Using dpkg$ dpkg-buildpackage -us -uc -rfakeroot$ dpkg -i python-servicenow-<version>.deb### Using setup.py$ python setup.py build$ python setup.py install### Using pip$ pip install servicenowUsage:------### Example#!/usr/bin/pythonfrom servicenow import ServiceNowfrom servicenow import Connection# Connect using default api method (JSON)conn = Connection.Auth(username='edsu', password='bele', instance='servicenowsubdomain')# For Dublin+ instances, connect using JSONv2# http://wiki.servicenow.com/index.php?title=Dublin_Release_Notes# conn = Connection.Auth(username='edsu', password='bele', instance='servicenowsubdomain', api='JSONv2')# For SOAP connection## from servicenow.drivers import SOAP# conn = SOAP.Auth(username='edsu', password='bele', instance='servicenowsubdomain')## SOAP support more than 250 results, example# Get the changes updated on the last 30 minutes, Display values instead of sys_ids and change response limit to 10k# http://wiki.servicenow.com/index.php?title=Direct_Web_Services#Extended_Query_Parameters## chg.last_updated(minutes=30, params={'displayvalue': 'true'}, extended={'__limit': 10000}):inc = ServiceNow.Incident(conn)srv = ServiceNow.Server(conn)grp = ServiceNow.Group(conn)chg = ServiceNow.Change(conn)tkt = ServiceNow.Ticket(conn)# Custom tablecustom = ServiceNow.Base(conn)custom.__table__ = "custom_table.do"machine = srv.fetch_one({'name': 'machine0001'})print machineinc = inc.fetch_one({'number': 'INC123456'})print incgroup = grp.fetch_one({'name': 'MY-Team'})print groupchanges = chg.fetch_all({'cmdb_ci': machine['sys_id'], 'review_status': 3})print changes# Fetch changes updated on the last 60 minuteschanges = chg.last_updated(minutes=60)print changes# list only sys_idschanges = chg.list({'cmdb_ci': machine['sys_id'], 'review_status': 3})print changesticket = tkt.fetch_one({'number': 'TICKET0185412'})print ticket# Creating a new ticket based on another onedel ticket["number"]new_ticket = tkt.create(ticket)print ticketDependencies:------- python-requests- python-redisContributors:------- Juliano Martinez ([ncode](https://github.com/ncode))- James Stewart ([amorphic](https://github.com/amorphic))- Willian Molinari ([Pothix](https://github.com/PotHix))- Francisco Wagner Cunha Freire ([wgrcunha](https://github.com/wgrcunha))
Package: servicenow-api
ServiceNow APIVersion: 0.20.2ServiceNow API Python WrapperThis repository is actively maintained and will continue adding more API callsContributions are welcome!AI Skill Ready (PEP8Documented) - Assimilate the following package into your agent and begin using it!API Calls:TableChange ManagementCI/CDImport SetsIncidentCMDBApplication ServiceUsage:#!/usr/bin/python# coding: utf-8importservicenow_apiusername="<SERVICENOW USERNAME>"password="<SERVICENOW PASSWORD>"servicenow_api_url="<SERVICENOW_URL>"client=servicenow_api.Api(url=servicenow_api_url,username=username,password=password)table=client.get_table(table="<TABLE NAME>")print(f"Table:{table}")Installation Instructions:Install Python Packagepython-mpipinstallservicenow-apiRepository Owners:
Package: servicenow-api-client
A python client to Service Now API. This project is a fork of Parul Neeraj
project (https://pypi.org/project/servicenow-client/).Examples of usage:Init clientParams:String instance: if your instance is test.service-now.com use testString user: user nameString password: passwordE.g.:service_now_client = ServiceNowClient(instance, user, password)
Package: servicenow-client
Installation------------pip install servicenow_clientUsage examples::--------------import servicenow_client# Create object# if empty_error is True, exception will be raised if query result is emptyobj = servicenow_client.servNow(instance='myinstance', user='myuser', password='mypassword', empty_error=True)# Create a new recordobj.create(table='incident', data={'short_description':'My Incident Ticket'})# Update record(s) based on search condition# searchList=['field', 'operator', 'value']obj.update(table='incident', searchList=[['short_description','is','My Incident Ticket'], ['number','is not','INC0010022']], data={'state': '1'})# Search for record(s) and display only 'number' and 'sys_id' from the results# if fields is not defined it will return all fiels in responseobj.search(table='incident', searchList=['short_description','is not empty'], fields='number,sys_id')# Delete record(s) based on search conditionobj.delete(table='problem', searchList=['short_description','is','Problem Ticket'])# Change state of record(s) based on search conditionobj.changeState(table='incident', searchList=['short_description','is','ISAN Problem 2'], state='In progress')# Download a specific attachement or particular type of attachement related to record(s) based on search conditionobj.getFile(table='incident', searchList=['short_description','is','test123'], type='.jpg')# Upload an attachement to record(s) that satisfy the search conditionobj.uploadFile(table='incident', searchList=['short_description', 'is', 'test'], filename='D:\Tulips.jpg')# Delete an attachement from record(s) that satisfy the search conditionobj.deleteFile(table='incident', searchList=['short_description', 'is', 'Upload 4'], filename='Riddles Treasure Hunt.pdf')# Send email related to a particular record# To send email not related to any specific record skip 'table' and 'sysId' fieldsobj.sendEmail(table='incident', subject='Hello', message='hi', to='abc@example.com, xyz@example.com', sysId='33434f713200e1e0b5e18110c75b')# Read email, where sysId is sysId of emailobj.readEmail(sysId='33434f713200e1e0b5e18110c75b')Compatibility-------------Python 2 Tested: Python 2.6+ServiceNow Tested: Istanbul, GenevaAuthor------Created by Parul Neeraj <parulneeraj007@gmail.com> in 2017
Package: servicenowpy
servicenowpyA library that helps you to get data from ServiceNow's Table API.InstallationpipinstallservicenowpySimple usageHow to retrieve records from incident table with this lib:>>>fromservicenowpyimportClient>>>sn_client=Client('<instance>.service-now.com','<user>','<pwd>')>>>inc_table=sn_client.table('incident')>>>records=inc_table.get(sysparm_fields='number,short_description')>>>forrecordinrecords:...print(record){'number':'INC0000060','short_description':'Unable to connect to email'}{'number':'INC0000009','short_description':'Reset my password'}{'number':'INC0009005','short_description':'Need access to the common drive'}Further Documentation|Github Repository|Contributing
Package: servicenow-selenium
ServiceNow Selenium WrapperA simple selenium wrapper designed for interaction with ServiceNow. This package simplifies logging in, managing alerts, and interacting with shadow elements within the ServiceNow environment.InstallationTo install the package, use pip:pipinstallservicenow-seleniumUsageInitialize the ServiceNowSelenium class by providing the URL, username, and password:fromservicenow_seleniumimportServiceNowSeleniumselenium_wrapper=ServiceNowSelenium(url="YOUR_SERVICENOW_URL",username="YOUR_USERNAME",password="YOUR_PASSWORD")Key Features:Login:
Easily log into ServiceNow:selenium_wrapper.login()Logout:
Log out and quit the driver:selenium_wrapper.logout(user_menu_path="JS_PATH_HERE",logout_path="JS_PATH_HERE")Interact with Shadow DOM Elements:
Click shadow elements using JS path:selenium_wrapper.click_shadow_element(errorName="element name for error reference",js_path="JS_PATH_HERE")Note: The provided JS path must contain "return" to correctly fetch the element. For instance,return document.querySelector(...)Check for Element Presence:
Determine if an element is present using its JS path:is_present=selenium_wrapper.is_element_present(js_path="JS_PATH_HERE")