Saravanan666/pypi-org huggingface dataset:
Package: pysendsms
PySendSMSpysendsms is a quick and simple way to use python to send SMS via Gmail or any other SMTP servers to known a cell carrier.InstallationUse the package managerpipto install pysendsms.pipinstallpysendsmsRequiresA Gmail account with app specific password enabled for use.Manage Google AppsNote: Other SMTP servers can be used, however configuration varies by providers. Gmail is setup to work by default just requiring email and password.Knowledge of which cell carrier provider the receiving party uses.UsageImport the library and create an SMS Object utilizing your gmail account and an application password created within your Google account.importpysendsmssms=pysendsms.SMS('<username>@gmail.com','<app-password>')SMS object has various parameters allowing you to use some other SMTP providers of your choice.sms=pysendsms.SMS(self,username='<username>@gmail.com',password='<app-password>',from_email=None,server='smtp.gmail.com',port=587,tls=True)Note: If using an SMTP API and you are given a username that is not an email address, you must provide the a verified from_email parameter otherwise outgoing mail with fail.Create an Contact object using the persons phone number and select a carrier from the available options.CARRIERS is a dictionary loaded from a json file in the project that can be checked for available carriers that can be used for messaging.>>>pysendsms.Contact('2715552343','AT&T')<Contact('2715552343','@mms.att.net')>A Contact can also be created with a known address using the by_address class method.>>>pysendsms.Contact.by_address('2715552343@mms.att.com')<Contact('2715552343@mms.att.com')>Note: Given the nature of this capability, you are able to just add any email address here and not one linked to a phone number for standard SMTP emailing functionality.Use the SMS.send() method of your SMS object, passing the Contact and the message you would like to send as a string. This can also accept a list of contacts for sending out group messages.contact1=pysendsms.Contact('311-555-2368','AT&T')sms.send(contact1,'Hello, World!')contact2=pysendsms.Contact.by_address('3115552368@mms.att.net')group=[contact1,contact2]sms.send(group,'Everyone gets a message!')LicenseMIT
Package: pysendy
Pysendy=======Pysendy is a Python wrapper for Sendy's API.Read the LICENSE file before use it.Installation------------pip install pysendyUsage-----```pythonfrom pysendy import Sendys = Sendy(base_url='http://your_sendy_url')# subscription (name is optional)s.subscribe(name='John Doe', email='email@to.subscribe', list_id='the_list_id',custom_field1='custom_value1', custom_value2='custom_value2')# unsubscriptions.unsubscribe(email='email@to.unsubscribe', list_id='the_list_id')```
Package: pysendyit
Unofficial Sendy python API WrapperThe wrapper provides convenient access to theSendy Logistics APIfrom applications written in server-side python.InstallationpipinstallpysendyitUsageIn order to run the demo, export the the following values to your environment. They can be found/generated at the API Dashboard.exportAPI_USERNAME="{your-api-username}"exportAPI_KEY="{your-api-key}"exportBASE_URL="{your-base-url}"frompysendyit.pysendyitimportSendyimportos# Creating an instance of the Sendy Classsendy=Sendy(api_username=os.getenv('API_USERNAME'),api_key=os.getenv('API_KEY'),base_url=os.getenv('BASE_URL'))# Printing responseprint(sendy.track_or_cancel_delivery(command="track",order_no="AA2395374",request_token_id="request_token_id"))ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsSendy Logistics
Package: pysenechome
pysenechome librarySENEC Webconnect library for Python 3. The library was originally created
to integrate a SENEC.Home Hybrid battery with HomeAssistantSeehttps://senec.comfor more information about the SENEC home
battery storage solutions.Currently tested on SENEC.Home V3 hybrid, but should work for the whole product line.
If you can access your SENEC via your browser, this might work for you.Example usageSeeexample.pyfor a basic usage and testsHomeAssistantThe HomeAssistant SENEC sensor documentation can be foundhereDaily or monthly usage is not available from the API.
It is possible to get around this by using an additionalutility meter
Package: py-senertec
py-senertecDescriptionThepy-senerteclibrary provides a way to communicate with Senertec Dachsportal2 to monitor your energy unit.
This library supports read-only communication. Sochangingvalues for your energy unit isn't implemented and not planned yet.RequirementsPython 3.9+Account for Senertec Dachsportal2/Remeha KWKTested with this devicesI could test with this devices but others should also work:Senertec Dachs 0.8Senertec Dachs InnoGenSenertec Dachs Gen2 F5.5Remeha eLecta 300 (technically same as Senertec Dachs 0.8)Installation$pipinstallpy-senertecUsageLogin and initializationfromsenertec.clientimportsenertecfromsenertec.canipValueimportcanipValueimportjsonimportos#this example uses no filtering, read below how to use a filter instead of None as first parameter.senertec=senertec(None)#set your callback function for messagessenertec.messagecallback=self.outputsenertec.login("username","password")senertec.init()Requesting dataunits=senertec.getUnits()senertec.connectUnit(units[0].serial)# request all available data from all boardsforpointsinsenertec.boards:ids=points.getFullDataPointIds()# result will be received through callback function which was set abovesenertec.request(ids)senertec.logout()Using callback functionOnce the websocket has been started, data will be transmitted through the websocket.
To get the websocket data, you need to add a callback which was done above.
The callback function could look like this:defoutput(self,value:canipValue):print(value.friendlyDataName+": "+value.dataValue.__str__()+value.dataUnit)Errors of energy unitErrors can also be read out with a simple function.
The errors are read out on the connect function and will only be refreshed on a reconnect.# values are returned directly from functionerrors=senertec.getErrors()A full example can be foundhereFiltering (recommended)If you specify a json string in the senertec contructor you can limit what datapoints should be received.
This is pretty usefull if you know what data you want from your heating system e.g. power, temperature.
By default all datapoints are included which are more than 400 in most cases and receiving them takes some time.
This json string should look likethis.
The json string contains the productGroup at the top and below the datapoints which should be included.
You get the productGroup from the getUnits() function.What are these datapoints?Take a look at this manual fromRemeha(Page 39).
There is already a good explanation of how these datapoints are composed.
Package: pyseneye
A module for working with the Seneye range of aquarium and pond sensors.
Support is provided for the HID/USB driver for the device although it is
intended to add support for their API later.When using this, readings will not be synced to the Seneye.me cloud
service. This module is in no way endorsed by Seneye and you use it at
your own risk.Generated documentation can be foundhereQuickstartInstall pyseneye usingpip:$ pip install pyseneye. Once that is
complete you can import the SUDevice class and connect to your device.>>>frompyseneye.sudimportSUDDevice,Action>>>d=SUDevice()Once the class is initialised you can put the Seneye into interactive
mode and then retrieve sensor readings.>>>d.action(Action.ENTER_INTERACTIVE_MODE)>>>s=d.action(Action.SENSOR_READING)>>>s.ph8.16>>>s.nh30.007>>>s.temperature25.125>>>d.action(Action.LEAVE_INTERACTIVE_MODE)>>>d.close()You need access to the USB device, so these calls may require elevated
privileges.Issues & QuestionsIf you have any issues, or questions, please feel free to contact me, or
open an issue on GitHub
Package: pyseneye-windows
A module for working with the Seneye range of aquarium and pond sensors.
Support is provided for the HID/USB driver for the device although it is
intended to add support for their API later.When using this, readings will not be synced to the Seneye.me cloud
service. This module is in no way endorsed by Seneye and you use it at
your own risk.Generated documentation can be foundhereQuickstartInstall pyseneye usingpip:$ pip install pyseneye. Once that is
complete you can import the SUDevice class and connect to your device.>>>frompyseneye.sudimportSUDDevice,Action>>>d=SUDevice()Once the class is initialised you can put the Seneye into interactive
mode and then retrieve sensor readings.>>>d.action(Action.ENTER_INTERACTIVE_MODE)>>>s=d.action(Action.SENSOR_READING)>>>s.ph8.16>>>s.nh30.007>>>s.temperature25.125>>>d.action(Action.LEAVE_INTERACTIVE_MODE)>>>d.close()You need access to the USB device, so these calls may require elevated
privileges.Issues & QuestionsIf you have any issues, or questions, please feel free to contact me, or
open an issue on GitHub
Package: pysen-ls
pysen-ls: A language server implementation for pysenpysen-ls is a language server implementation forpysen.$pipinstallpysen-lsSupported FeaturesDiagnosticsTriggerspysen run linton saveCode actionSupports incremental document updatesEditor setupsVSCodepysen-vscodeProvided Custom Commandspysen.callLintDocumentpysen.callFormatDocumentpysen.callLintWorkspacepysen.callFormatWorkspacepysen.reloadServerConfiguration
Package: pysen-plugins
pysen-pluginsInstallationpipinstallpysen-pluginsUsageAddtool.pysen.pluginsection to yourpyproject.toml.[tool.pysen]version="0.10"[tool.pysen.plugin.clang_format]function="pysen_plugins::clang_format"Note: You need to install the underlying commands (e.g.clang-format) manually.pluginsC++clang_format(lint, format)CMakecmake_format(lint, format)Gogolint(lint)goreturns(lint, format)HTMLprettier(lint, format)tidy(lint, format)JavaScriptprettier(lint, format)JSONjq(lint, format)prettier(lint, format)Pythonmypy_init_check (lint)mypy_simple (lint)pylint(lint)ruff(lint, format)customizable_builtins (lint, format)blackisortflake8mypyShell scriptshellcheck(lint)shfmt(lint, format)TypeScriptprettier(lint, format)XMLtidy(lint, format)YAMLprettier(lint, format)ruamel_yaml(lint, format)
Package: pysensu-ng
This is a client to interact with the Sensu APIFeaturesIncludes methods for some entrypoints (clients, events, checks, stashes) of the Sensu API (0.24)IMPORTANT: from 0.6.0 release we are supporting Sensu API 0.24+ .. backward
compatibility with previous versions of Sensu API might be broken.Includes methods for handle subscriptions info (nodes subscribed to a
specific channel)Trivial Examplefrom pysensu.api import SensuAPI

url = 'http://localhost:4567'
my_sensu = SensuAPI(url, username=username, password=password)
print(my_sensu.get_info())DEBUGTo enable debug import logging module and set the debug levelimport logging
logging.getLogger('pysensu.api').setLevel(logging.DEBUG)ExceptionsYou can handle an exception using a code like this.
Note: Sensu API give you a 404 code if a client does not exists.import pysensu.api

url = 'http://localhost:4567'
my_sensu = pysensu.api.SensuAPI(url)
client = "testclient"

try:
    print(my_sensu.get_client_data(client))
except pysensu.api.SensuAPIException as e:
    if "404" in str(e):
        print("{} does not exists on sensu api".format(client))
    else:
        raise eDocumentationThe full documentation is athttp://pysensu.rtfd.org.History0.13.0 (2019-07-23)0.10.0 (2017-05-17)Add support for results API0.9.0 (2017-03-13)Add support for silenced API0.8.0 (2016-11-28)Added operations for Aggregates and Status (Health/Info)Added support for optional limit/offset parameters to get_clientsModified post_check_request to work properly with subscribers.0.7.0 (2016-08-17)Fix adding stashes0.6.0 (2016-08-02)Fix calls to Sensu API entrypoints in order to make them compatible
with lastest version of Sensu API (0.24) previous versions of Sensu API
might not behave as expected.0.1.0 (2015-12-15)First release on PyPI.
Package: pysent3
pysentimentOverviewThis is a library for sentiment analysis in dictionary framework.
Two dictionaries are provided in the library, namely, Harvard IV-4 and
Loughran and McDonald Financial Sentiment Dictionaries, which are sentiment
dictionaries for general and financial sentiment analysis.See alsohttp://www.wjh.harvard.edu/~inquirer/andhttps://www3.nd.edu/~mcdonald/Word_Lists.html.IntroductionPositiveandNegativeare word counts for the words in positive and negative sets.PolarityandSubjectivityare calculated in the same way of Lydia system.
See alsohttp://www.cs.sunysb.edu/~skiena/lydia/Getting Startedpip install pysent3importpysent3UsageTo use the Harvard IV-4 dictionary, create an instance of theHIV4classimportpysent3aspshiv4=ps.HIV4()tokens=hiv4.tokenize(text)# text can be tokenized by other ways# however, dict in HIV4 is preprocessed# by the default tokenizer in the libraryscore=hiv4.get_score(tokens)HIV4is a subclass forpysentiment3.base.BaseDict.BaseDictcan be inherited by
implmentinginit_dictto initialize_possetand_negsetfor the dictionary
to calculate 'positive' or 'negative' scores for terms.Similarly, to use the Loughran and McDonald dictionary:importpysent3aspslm=ps.LM()tokens=lm.tokenize(text)score=lm.get_score(tokens)Largely based onpysentiment2created by Nick DeRobertis and based onpysentimentby Zhichao Han. GNU GPL License.
Package: pysenteishon
pysenteishonControl your presentations with the swipe of your finger!InstallRequirementsMake sure you have python3-dev installedFrom PyPipip install pysenteishon
pysenteishonFrom GitHubgit clone https://github.com/edvm/pysenteishon
cd pysenteishon
python3 -m venv env
source env/bin/activate  # (or env\Scripts\activate.bat for Windows)
pip install -r requirements.txt  # (or requirements.darwing.txt for MacOS)
python setup.py develop
python pysenteishon/app.pyUsing Fadeshttps://github.com/PyAr/fadesfades -d pysenteishon -x pysenteishonWindowsYou also need to installpywin32to make it works
properly.pysenteishon 1.0.0b was tested on Python 3.4.4 running Windows XP
32bits and pywin32 build 220.UsageAfter running the app:Make sure you allow access to port 5000 in your firewall settings.Open your presentation PDF on your computer and leave it open (MAKE
SURE the program that is running your presentation has FOCUS).Open a web browser with your cellphone and point it to your laptop
ip address port 5000, for example:http://192.168.0.11:5000Swipe on your touchscreen and start your talk! :DOptionsusage: pysenteishon [-h] [-p PORT] [-a user password] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Listen on port
  -a user password, --auth user password
                        Basic auth
  --version             print PySenteishon version and exit
Package: pysentel
pysentelA python script for fetching 1-wire sensor-data and ingesting in InfluxDB.Python script fetching sensor-data from e.g. DS18B20-sensors via the 1-wire protocol and ingest these datapoints into a specified InfluxDB-bucket.Installation and setupInstall viapip3 install pysentelSetupWIPUsage exampleWork-in-progress.Development setupWork-in-progress.Release Historyno releases yet.MetaDanni Randeris -danni@danniranderis.dkDistributed under the MIT license. SeeLICENSEfor more information.https://github.com/danniranderisContributingFork it (https://github.com/yourname/yourproject/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull Request
Package: pysentiment2
pysentimentOverviewThis is a library for sentiment analysis in dictionary framework.
Two dictionaries are provided in the library, namely, Harvard IV-4 and
Loughran and McDonald Financial Sentiment Dictionaries, which are sentiment
dictionaries for general and financial sentiment analysis.See alsohttp://www.wjh.harvard.edu/~inquirer/andhttps://www3.nd.edu/~mcdonald/Word_Lists.html.IntroductionPositiveandNegativeare word counts for the words in positive and negative sets.PolarityandSubjectivityare calculated in the same way of Lydia system.
See alsohttp://www.cs.sunysb.edu/~skiena/lydia/Getting StartedInstallpysentiment2:pip install pysentiment2A simple example:importpysentiment2# Do something with pysentiment2UsageTo use the Harvard IV-4 dictionary, create an instance of theHIV4classimportpysentiment2aspshiv4=ps.HIV4()tokens=hiv4.tokenize(text)# text can be tokenized by other ways# however, dict in HIV4 is preprocessed# by the default tokenizer in the libraryscore=hiv4.get_score(tokens)HIV4is a subclass forpysentiment2.base.BaseDict.BaseDictcan be inherited by
implmentinginit_dictto initialize_possetand_negsetfor the dictionary
to calculate 'positive' or 'negative' scores for terms.Similarly, to use the Loughran and McDonald dictionary:importpysentiment2aspslm=ps.LM()tokens=lm.tokenize(text)score=lm.get_score(tokens)LinksSee thedocumentation here.Authorpysentiment2created by Nick DeRobertis but based onpysentimentby Zhichao Han. GNU GPL License.
Package: pysentio
pysentioLibrary for Sentio Pro sauna controllerDesigned for use with Homeassistant. Provides the api to a Sentio Pro Sauna controller with RS-485 serial interface.Example for test and debugfrompysentioimportSentioPross=SentioPro('/dev/ttyUSB0',57600)ri=ss._write_read('get info\n')print(ri)print(ss._type)print(ss._version)
Package: pysentipers
pySentiPersPython API for SentiPers Dataset - رابط برنامه‌نویسی کاربردی پایتون مجموعه داده‌ی سنتی‌پرسمقدمهپروژه‌ای که مشاهده می‌کنید یک API برای استفاده‌ی راحت‌تر از دیتاست سنتی‌پرس(SentiPers) به زبان پایتون می‌باشد. این مجموعه دادگان در گروه پردازش زبان‌های طبیعی دانشگاه گیلان به کوشش پدرام حسینی و همکاران تهیه شده است و دراینجااطلاعات بیشتری قابل مشاهده است.توضیحاتبرای تهیه‌ی مجموعه به لینک بالا مراجعه کنید، این پروژه صرفا API پایتون برای کار با مجموعه دادگان می‌باشد.
پروژه‌ی حاضر توسط جواد زارع‌زاده نوشته شده است. چنانچه هم‌فکری و یا درخواستی برای اصلاح کد داشتید خوشحال خواهم شد با ایمیل زیر با من در ارتباط باشید.jvd.zarezadeh@gmail.comنحوه‌ی نصباین پروژه بر روی PyPI قرار گرفته و می‌توانید آن را با استفاده از ابزار pip نصب کنید.pipinstallpysentipers
Package: pysentosa
pysentosa - Python API for sentosa trading systempysentosa is the Python API for sentosa trading system written by Wu FuhengWebSite:http://www.quant365.com(Quant365 - Trading with Science and Technology)OS: Linux Ubuntu 15.10 64bitInstallation:GITURL=https://raw.githubusercontent.com/henrywoo/pysentosa/masterwget$GITURL/install_nanomsg.sh-Oinstall_nanomsg.shchmodu+xinstall_nanomsg.sh./install_nanomsg.shwget$GITURL/install_yaml_cpp.sh-Oinstall_yaml_cpp.shchmodu+xinstall_yaml_cpp.sh./install_yaml_cpp.shsudoapt-getinstall-ypython-piplibboost-all-devsudopipinstall-Upysentosapyyamlnetifaceswebsocket-clientnanomsg\setproctitlepsutilLaunch your IB TWS.Run your strategy to tradeRun demo:frompysentosa.demoimportrun_demorun_demo()Sample code:frompysentosaimportMerlionfromticktypeimport*m=Merlion()target='SPY'm.track_symbol([target,'BITA'])bounds={target:[220,250]}whileTrue:symbol,ticktype,value=m.get_mkdata()ifsymbol==target:ifticktype==ASK_PRICEandvalue<bounds[symbol][0]:oid=m.buy(symbol,5)whileTrue:ord_st=m.get_order_status(oid)printORDSTATUS[ord_st]iford_st==FILLED:bounds[symbol][0]-=20breaksleep(2)elifticktype==BID_PRICEandvalue>bounds[symbol][1]:oid=m.sell(symbol,100)bounds[symbol][1]+=20
Package: py-sentry
py-sentrycontains the python package that provides a foundation for a micro-service that can either be run once or at a regular interval.This document outlines how this project can be used. The purpose of this project is describedelsewhere, as are thedetailsFoundational ElementsTheIntervalServiceA standardpy_sentryexecutable take the following as demonstrated by thecommand_service.pyexample:"""
This shows how to create an executeable to run a Task using the
sentry.service module.
"""

from sentry import IntervalService


def main() -> int:
    """
    Runs the command_task as a sentry.
    """
    service = IntervalService("command_task")
    return service.run()


if __name__ == "__main__":
    main()TheIntervalServiceis designed to execute a named Task. The task itself is declared as aPython entry point. When using apyproject.tomlfilefor packaging the task can be declared as follows:[project.entry-points.sentry]
command_task = "sentry.command_task:CommandTask"ATaskATaskis a python class that provide the implementation the behaviour of a micro-service as managed by anIntervalService. The complete information about how aTaskdoes this is providedelsewhereThe main concept is that a minimal task must implement the following function:def __init__(self) -> None:
    """
    Creates an instance of this class.
    """and in most other cases, also implement  this other function:def execute(self) -> None:
    """
    Executes the responsibilities of this executable
    """
Package: pyseoanalyzer
Python SEO AnalyzerAn SEO tool that analyzes the structure of a site, crawls the site, counts words in the body of the site and warns of any technical SEO issues.Requires Python 3.6+, BeautifulSoup4 and urllib3.InstallationPIPpip3 install pyseoanalyzerDockerdocker run sethblack/python-seo-analyzer [ARGS ...]Command-line UsageIf you run without a sitemap it will start crawling at the homepage.seoanalyzehttp://www.domain.com/Or you can specify the path to a sitmap to seed the urls to scan list.seoanalyzehttp://www.domain.com/--sitemappath/to/sitemap.xmlHTML output can be generated from the analysis instead of json.seoanalyzehttp://www.domain.com/--output-formathtmlAPITheanalyzefunction returns a dictionary with the results of the crawl.fromseoanalyzerimportanalyzeoutput=analyze(site,sitemap)print(output)In order to analyze heading tags (h1-h6) and other extra additional tags as well, the following options can be passed to theanalyzefunctionfromseoanalyzerimportanalyzeoutput=analyze(site,sitemap,analyze_headings=True,analyze_extra_tags=True)print(output)By default, theanalyzefunction analyzes all the existing inner links as well, which might be time consuming.
This default behaviour can be changed to analyze only the provided URL by passing the following option to theanalyzefunctionfromseoanalyzerimportanalyzeoutput=analyze(site,sitemap,follow_links=False)print(output)Alternatively, you can run the analysis as a script from the seoanalyzer folder.pythonanalyzer.pyhttps://www.sethserver.com/-fhtml>results.htmlNotesIf you getrequests.exceptions.SSLErrorat either the command-line or via the python-API, try using:http://www.foo.barinsteadof..https://www.foo.bar
Package: pysep-adjtomo
Python Seismogram Extraction and ProcessingPySEPuses ObsPy routines to request and standardize seismic data and metadata, returning uniform, consistent, and minimally processed waveforms for use in moment tensor and waveform inversions.The package also contains core classesRecSecarecordsection plotter for rapid visualization of
waveform data, andDeclust, for earthquake catalog declustering and geographical source-receiver weighting for waveform inversions.Documentation can found ReadTheDocs:https://pysep.readthedocs.io/en/latestFound a bug, requesting a new feature, or wanting to know how to usePySEP?Feel free to open a GitHub issue.As part of theSCOPED toolkit,PySEPhas beencontainerizedusing Docker.