Saravanan666/pypi-org huggingface dataset:
Package: pythonsl
pythonslA python client for running tests in sauce labsAboutThis package aims to provide a straighforward python client to interact with sauce labsPre-requisitespythonbs requiresPython3to runselenium installed  if notpip3 install seleniumInstallationThis client is hosted at PyPi under the name pythonsl, to install it, simply runpip install pythonslExamplesimport pythonsl as sl
from selenium import webdriver

def test_sl():
    try :
        capabilities = {
            'browserName': 'chrome',
            'browserVersion': '70.0',
            'platformName': 'Windows 10'
        }
        username = ''
        accesskey = ''
        driver = sl.get_webdriver(username,accesskey,capabilities)
        driver.get("http://www.google.com")
        if not "Google" in driver.title:
            raise Exception("Unable to load google page!")
        elem = driver.find_element_by_name("q")
        elem.send_keys("BrowserStack")
        elem.submit()
        print(driver.title)
        driver.quit()
    except:
        driver.close()
        driver.quit()


if __name__ == "__main__":
    test_sl()Obtain your username and accesskey values from sauce labs user settings and Update the values of variable names username & accesskey
Run your file and you will see your script run in sauce labsYou can change the desired capabilities by referring to -https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
Package: python-slack-print
# python_slack_print## Aboutpython_slack_print is a simple printer for both stdout and slack channel## Examples```pythonfrom slack_print import SlackPrintsp = SlackPrint('<your-slack-access-token>', '#general')# Printsp.print('hello world')# Upload a filesp.upload('hello.txt')```## Installation```$ pip install python_slack_print```## Tip### Replace your print() with sp.print()You can replace your print() with sp.print() with UNIX command.Below is one of the simplest ways. (There must be a better way.)```sed -i -e "s/print(/sp.print(/g" <file-to-be-replaced>```
Package: python-sld
python-sldA python library for reading, writing, and manipulating SLD files.RequirementsThe lxml library is required for XML parsing and XML Schema validation. This
requirement is listed in requirements.txt, and may be installed using pip with
this command:> sudo pip install -r requirements.txtInstallation> easy_install python-sldOR> pip install python-sldUsageUsing python-sld to create SLD documents is as easy as instantiating a
StyledLayerDescriptor class object.from sld import StyledLayerDescriptor
mysld = StyledLayerDescriptor()You may also read an existing SLD document in by passing it as a parameter:from sld import StyledLayerDescriptor
mysld = StyledLayerDescriptor(‘mysld.sld’)Addition of most elements are performed on the parent element, since they are
related to parent nodes in order to preserve compliance:nl = mysld.create_namedlayer()
ustyle = nl.create_style()A couple class objects represent collections of nodes, such as Rules and
CssParameters. They are properties of their parent classes (FeatureTypeStyle
and Fill/Stroke/Font respectively). They behave as python lists, and you
can access any of their items using a python list pattern:fts = ustyle.create_featuretypestyle()
rule1 = fts.Rules[0]
print len(fts.Rules)
fts.Rules[0] = rule1Filter objects are pythonic, and when combined with the ‘+’ operator, they
become ogc:And filters.  When combined with the ‘|’ operator, they become
ogc:Or filters.from sld import Filterfilter_1 = Filter(rule)
# set filter 1 propertiesfilter_2 = Filter(rule)
# set filter 2 propertiesrule.Filter = filter_1 + filter_2You may also construct a filter from an expression when using the create_filter
method on the Rule object:filter = rule.create_filter(‘population’, ‘>’, ‘100’)ImplementationAt the current time, python-sld does ‘’not’’ support the full SLD
specification. The current implementation supports the following SLD elements:StyledLayerDescriptorNamedLayerName (of NamedLayer)UserStyleTitle (of UserStyle and Rule)AbstractFeatureTypeStyleRuleogc:Filterogc:Andogc:Orogc:PropertyIsNotEqualToogc:PropertyIsLessThanogc:PropertyIsLessThanOrEqualToogc:PropertyIsEqualToogc:PropertyIsGreaterThanOrEqualToogc:PropertyIsGreaterThanogc:PropertyIsLikeogc:PropertyNameogc:LiteralMinScaleDenominatorMaxScaleDenominatorPointSymbolizerLineSymbolizerPolygonSymbolizerTextSymbolizerMarkGraphicFillStrokeFontCssParameterSupportIf you have any problems or questions, please visit the python-sld project on
github:https://github.com/azavea/python-sld/Contributors@[ewsterrenburg](https://github.com/ewsterrenburg)
Package: python-slimta
API Documentation and ManualAboutThepython-slimtaproject is a Python library offering the building blocks
necessary to create a full-featuredMTA. Most MTAs must be configured, but
an MTA built withpython-slimtais coded. An MTA built withpython-slimtacan incorporate any protocol or policy, custom or built-in. An MTA built withpython-slimtacan integrate with other Python libraries and take advantage of
Python's great community.Thepython-slimtaproject is released under theMIT License. It is
tested for Python 3.6+.Getting StartedUse avirtualenvto get started developing againstpython-slimta:$ cd python-slimta/
$ python3 -m venv .venv
$ source .venv/bin/activate
(.venv)$ pip install -U pip wheel setuptoolsTo run the suite of unit tests included withslimta:(.venv)$ pip install -r requirements-dev.txt
(.venv)$ py.testRunning the ExampleThe example inexamples/slimta-mail.pyprovides a
fully functional mail server for inbound and outbound email. To avoid needing
to run as superuser, the example uses ports1025,1465and1587instead.It needs several things to run:An activatedvirtualenvas created above inGetting Started.A TLS certificate and key file. The easiest way to generate one:openssl req -x509 -nodes -subj '/CN=localhost' -newkey rsa:1024 -keyout cert.pem -out cert.pemA populatedexamples/site_data.pyconfig file.Check out the in-line documentation with--help, and then run:(.venv)$ ./slimta-mail.pyManually or with a mail client, you should now be able to deliver messages. On
port1025, messages will go to unique files in the current directory. On port1587, messages will be delivered to others using MX records! To try out a TLS
connection:$ openssl s_client -host localhost -port 1587 -starttls smtpContributingIf you want to fix a bug or make a change, follow thefork pull requestmodel. We've had quite a fewawesome contributorsover the years, and are
always open to more.Special thanks toJocelynDelalandefor extensive work bringing Python 3
compatibility to the project!The MIT License (MIT)Copyright (c) 2021 Ian GoodPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: python-slippery
Python SlipperyA python library for interacting with the burner email website slippery.email.ByCarter YagemannIntroductionThis library provides a pure Python abstraction for the burner email websiteSlippery. It works with Python 2.x.Slippery is a website that allows users to create temporary burner email addresses
to receive emails. This is useful for testing email services or for filling out forms
that force you to provide an email address.Since the site has no API, I decided to create this library. The library supports
creating new burner email addresses, checking for emails, and fetching their
contents. In the spirit of burners, the library also supports SOCKS5 proxies should
you want to interact with Slippery via a SSH tunnel, tor, or other proxy.InstallingThe module is on PyPI, install using pip:$ pip install python-slipperyDevelopmentYou will need to install python-slippery’s dependencies:$ pip install -Ur requirements.txtand then you can import the module.UsageGetting StartedThe core of the library is theBurnerEmailobject. Here are some
examples on how to use it:from slippery.burner_email import BurnerEmail

email = BurnerEmail.generate()              # create a new email address
print email.getmailto()                     # send emails here!
email.setinbox('aaaaa', 'aaaaaaaaaaaaaaaa') # use this instead of generate if you
                                            # already have an email
msgs = email.fetch_emails()                 # see what's in the inbox
print email.fetch_email('12345')            # get the contents of an email
email.delete_email('12345')                 # delete an emailWhen you use the methodfetch_emails()it returns an array of dictionaries with
the following form:{'id':int, 'sender':str, 'subject':str, 'date':str}idis what should be passed tofetch_email()anddelete_email().The library also includes a useful method for setting a SOCKS5 proxy:from slippery import proxy
proxy.set_proxy('localhost', '9050')And that’s it! Super simple. There’s also an example of a very simple console
program in the examples directory of the repo.DocumentationDocumentation is available via pydoc:$ pydoc slippery.[model]LicenseCopyright 2016 Carter YagemannThis file is part of python-slippery.python-slippery is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.python-slippery is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with python-slippery.  If not, see <http://www.gnu.org/licenses/>.Carter Yagemann
Package: pythonSmallToolsByHanXu
Contentrename_filesby orderbyfilename extensionresult:normalize_mdresult:BriefThis is a repo of some smallTools created by python.rename_filesThis tool could rename all the files in a directory decided by you. You have2choices to rename them.by orderIf you don't mind thefilename extension, you could rename all of them at one time.Given New name and order key, the code will add the order automatically.importpythonSmallToolsByHanXu.rename_filesasrenameif__name__=='__main__':# replace the directory you want to renameex=rename.renamer(r"D:\Desktop\C & C++")ex(new_name="demo",order_key=lambdax:int(x[x.rfind(".")-1:x.rfind(".")+1]))byfilename extensionFor example, if you want to rename all the images, you may type injpgorpngas followed.importpythonSmallToolsByHanXu.rename_filesasrenameif__name__=='__main__':# replace the directory you want to renameex=rename.renamer(r"D:\Desktop\C & C++")ex(new_name="demo",target_type="jpg")result:normalize_mdUsually, when we write the md file, the images in the md file are bundled with the internet. If you want to view the images offline, you should download the images at advanced and modify the image-urls in the md file,which is awful and takes much time!This tool allow you to download the internal images in the md file automatically so that you could view the md file without the internet anymore!The algorithm is in-place!You'd better copy the md dir in advance.importpythonSmallToolsByHanXu.normalize_mdasnormalif__name__=='__main__':# replace the directory you want to renametarget_directory=r"D:\Desktop\demo"normal.normalizer(current_dir=target_directory)()result:before:after:
Package: python-smartgadget
Sensirion-SmartGadgetPython library for reading temperature, humidity, and battery level from
a SHT31 Smart Gadget Development Kit by Sensirion.Supported featuresDirect reading of SHT31 sensor values and device battery level.Subscription to notifications on value changes.Output of manufacturer, model name, and firmware version.Currently not supportedDownloading data from the integrated data logger.Setup of data logger interval.Installationpipinstallsensirion-smartgadgetUsagefromsensirionbtimportSmartGadgetsensor=SmartGadget('CA:FE:12:34:56:78')print(sensor.get_values(init_static=True))# 'init_static' is optional; it fetches following values immediately.print("Manufacturer:",sensor.manufacturer)print("Model:",sensor.model)print("Firmware:",sensor.firmware_version)NotesThe device only allows one connection at a time. If the connection
keeps failing, make sure you have disconnected other services, e.g.
the smartphone app.On a connection failure, transmission will be re-attempted, depending
on the ‘retries’ argument or property. The default is to retry twice.The first connection and value readings take a few seconds. The
reason for this is that characteristics are discovered by UUID, then
handles are cached and reused for subsequent calls.
Package: python-smartthings
Python SmartThingsVersionStage1.0.0ReleaseThis purpose for the creation of this package is twofold. The main reason I
created this package is to be able to issue commands to my Z-Wave devices via
my SmartThings Hub from a RaspberryPi running Falcon Player software. The other
reason for the creation of this package is to further my knowledge of the Python
programming language.DependenciesPython >=3.7PackagesrequestsInstallationpip3 install python-smartthingsHow to UseImport package to project.importSmartThingsCreate an instance of a SmartThings account using your Personal Access Token.Visthttps://account.smartthings.com/tokensto create or revoke Personal Access Tokens.ST=SmartThings.Account(PERSONAL_ACCESS_TOKEN)After creating an instance of the Account class, three dictionaries will be
created from API requests.ST.locations# {LOCATION_NAME:LOCATION_ID}ST.devices# {LOCATION_NAME:{DEVICE_NAME:DEVICE_ID}}ST.scenes# {LOCATION_NAME:{SCENE_NAME:SCENE_ID}}These dictionaries can be used with the included methods to execute actions on
devices and scenes.ST.control_device(ST.devices[LOCATION_NAME][DEVICE_NAME],capability=None,command=None,arguments=None)# Reference the SmartThings API documentation for information regarding the# format of capabilities, commands, and argumentsST.execute_scene(ST.scenes[LOCATION_NAME][DEVICE_NAME])
Package: python-smarttub
python-smarttubThis package provides an API for querying and controlling hot tubs using the SmartTub system.Installationpip3 install python-smarttubCLIpython3 -m smarttub --help
python3 -m smarttub -u SMARTTUB_EMAIL -p SMARTTUB_PASSWORD info --statusAPIfrom smarttub import SmartTub

async with aiohttp.ClientSession() as session:
  st = SmartTub(session)
  await st.login(username, password)
  account = await st.get_account()
  spas = await account.get_spas()
  for spa in spas:
    spa.get_status()
    spa.get_pumps()
    spa.get_lights()
    ...
    # See pydoc3 smarttub.api for complete APISee alsosmarttub/__main__.pyfor example usageTroubleshootingIf this module is not working with your device, please run the following
command and include the output with your bug report:python3-msmarttub-uYOUR_SMARTTUB_EMAIL-pYOUR_SMARTTUB_PASSWORD-vvinfo-aContributingpipinstallpre-commit&&pre-commitinstall
Package: python-smaz
✨ Pysmaz ✨The python binding forsmaz安装pip install python-smazusageimportpysmazdefcompress(data:bytes,output_size:int=...)->bytes:...defdecompress(data:bytes,output_size:int=...)->bytes:...defcompress_into(data:bytes,output:bytearray)->int:...defdecompress_into(data:bytes,output:bytearray)->int:...本机编译python -m pip install setuptools wheel cython cffi
git clone https://github.com/synodriver/pysmaz
cd pysmaz
git submodule update --init --recursive
python setup.py bdist_wheel --use-cython --use-cffi后端选择默认由py实现决定，在cpython上自动选择cython后端，在pypy上自动选择cffi后端，使用SMAZ_USE_CFFI环境变量可以强制选择cffi
Package: python-smsapi
Python client library for SMSAPI.pl.Currently allows:SMS sendingUser sender (caller ID) manipulation (add, delete, check)User subaccounts managementAddress Book manipulation - adding, listing and deleting numbers and groups (suds library needed for SOAP API)AuthorGrzegorz Biały (https://github.com/grzegorzbialy/)ELCODO (http://elcodo.pl)InstallYou can do one of the following:python setup.py installcopy smsapi.py to anywhere to your PYTHONPATH (e.g. your project directory)RequirementsPython 2.6+(optional) suds library for SOAP API - AddressBook, etc.UsageInit and get points (credits) quantity:from smsapi import SmsApi

username = "<USERNAME>"
password = "<PASSWORD>"

sms = SmsApi(username, password)

total_points = sms.get_points()['points']
print "You have %s points left" % total_pointsSMS sending:# Send SMS message to +48123456789 - fill sender field "SENDER" and message with "MESSAGE"
sms = sms.send_sms(
    recipient="48123456789",
    sender_name="SENDER",
    message="MESSAGE",
    eco=False,
)

# print sms
# expected result:
# {'cost': '0.1650', 'id': <X>, 'status': "OK"}Address Book:# add group called "Test Group"
group_id = ab.add_group(u"Test Group")

# add test number
number = ab.add_number(u"48123456789", u"Test Number", group_id)

# get all groups and assign numbers to it
groups_and_numbers = {}
groups = ab.get_groups()
for g in groups:
    groups_and_numbers[g['name']] = ab.get_numbers(g['id'])

# print groups_and_numbers
# expected result:
# {u'Test Group': [{'group_id': <X>, 'name': Test Number, 'number': 48123456789}]}LicenseOSI - The BSD License (http://www.opensource.org/licenses/bsd-license.php)Copyright (c) 2012, Grzegorz Bialy, ELCODO.pl
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS “AS IS” AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: python_sms_gateway
Python SMS Gateway is module used to send text sms. Currently the module supports following sms gatewaysSMS GatewaysNexmoInstallationpipinstallpython_sms_gatewayUsageNexmofrompython_sms_gateway.nexmoimportNexmoConnectornexmo=NexmoConnector(api_key=XXXXXXX,api_secret=XXXXXXX,sender="+91xxxxxxxxxx")nexmo.send(to="+91xxxxxxxxxxx",text="hello")
Package: python-smshub
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: python-sms-hub
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: python-smshuborg
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.