Saravanan666/pypi-org huggingface dataset:
Package: alarm
Table of Contents:CLI Alarm ClockHow worksRequirementsInstallationCommand Line Tool UsageCLI Alarm ClockAlarm is command line alarm clock utility written in Python language.How worksWhen the date and time coincides with the current date and time,
the alarm starts playing the sound is selected for five consecutive times.You can pause the alarm by pressing ‘p’ or ‘space’ is an attempt to cancel the
‘q’ or ‘ESC’. Change the volume of the alarm by pressing ‘*’ or ‘/’.You can create a list and use it as an alarm sound:$cat*.mp3>playlist.m3u$alarm-s1707:05~/Music/playlist.m3uYou will find some sounds in folder alarm/sounds in the GitLab tar archive.
Some will make you laugh, have fun !!!Requirements-Python3-MplayerInstallationUsingpip:$pipinstallalarm--upgradeuninstall:$pipuninstallalarmGet the source ‘git clonehttps://gitlab.com/dslackw/alarm.git’$python3setup.pyinstallCommand Line Tool Usageusage:alarm[-h][-v][-s]<day><alarmtime><song>optionalarguments-h,--helpshowthishelpmessageandexit-v,--versionprintversionandexit-s,--setsetalarmday,timeandsound--configuseconfigfileexample:alarm-s2106:00/path/to/song.mp3Example:$alarm-s1822:05~/alarm/sounds/wake_up.mp3+==============================================================================+|CLIAlarmClock|+==============================================================================+|Alarmsetat:Wednesday22:05||Soundfile:~/alarm/sounds/wake_up.mp3||Time:21:06:41|+==============================================================================+Press'Ctrl + c'tocancelalarm...+==============================================================================+|CLIAlarmClock|+==============================================================================+|Alarmsetat:Wednesday22:05||Soundfile:~/alarm/sounds/wake_up.mp3||Time:22:05WakeUp!|+==============================================================================+Press'Ctrl + c'tocancelalarm...________\ \//__||_____||||___||\ \/\//_`||//_\||||'_ \  | |
  \ V  V / (_| |   <  __/ | |_| | |_) | |_|
   \_/\_/ \__,_|_|\_\___|  \___/| .__/  (_)
                                |_|

Press 'SPACE'topausealarm...Attempt1Attempt2Use config file in $HOME/.alarm/config:$alarm--config+==============================================================================+|CLIAlarmClock|+==============================================================================+|Alarmsetat:Wednesday07:00||Soundfile:/home/user/alarm/sounds/funny.mp3||Time:00:09:22|+==============================================================================+Press'Ctrl + c'tocancelalarm...
Package: alarm-craft
alarm-craftfor AWS CloudWatch AlarmsWith modern architectures such as serverless and microservices, the number of resources managed in the cloud tends to increase, making monitoring a challenging task.alarm-craftis a tool designed to address this problem.FeaturesBulk Generation: Generates the necessary monitoring alarms in bulk with a single command.Flexible Alarm Definition: Allows flexible definition of alarm conditions, including metrics and thresholds.Declarative Config: Providesdeclarative configurationsfor monitoring targets using resource name or tag.Integration with Your Deployment Pipeline: A CLI tool written in Python that can be seamlesslyintegratedinto the deployment pipeline.DevOps: By leveraging declarative configurations based on the tag strategy and integratingalarm-craftwith the deployment pipeline, DevOps teams can automatically monitor newly deployed resources.Quick StartInstall python (>= 3.9), and installalarm-craft.pipinstallalarm-craftCreate a json file like below and save it asalarm-config.yamlresources:lambda:target_resource_type:"lambda:function"alarm:metrics:-ErrorsExecute the tool.alarm-craftBy this execution, thealarm-craftcreates Cloudwatch Alarms to detectErrorsin all Lambda functions.DocumentationFor detailed instructions and information on configuring the tool, refer to theWiki.
Package: alarmdealerscrape
# alarmdealerscrapeScrape info from [http://alarmdealer.com](http://alarmdealer.com)## Setupmkvirtualenv alarmdealerscrapepip install -r requirements.txtPut your alarmdealer.com username and password in~/.netrclike this:machine alarmdealer.com login myusername account mycode password mypassword## Get Alarm Eventspython getevents.py## Test Arm/Disarmpython test_arm_disarm.py
Package: alarmdecoder
SummaryThis Python library aims to provide a consistent interface for theAlarmDecoderproduct line. (AD2USB, AD2SERIAL and AD2PI).
This also includes devices that have been exposed viaser2sock, which
supports encryption via SSL/TLS.InstallationAlarmDecoder can be installed throughpip:pip install alarmdecoderor from source:python setup.py installNote:python-setuptoolsis required for installation.RequirementsRequired:AnAlarmDecoderdevicePython 2.7pyserial>= 2.7Optional:pyftdi>= 0.9.0pyusb>= 1.0.0b1pyopensslDocumentationAPI documentation can be found atreadthedocs.ExamplesA basic example is included below. Please see theexamplesdirectory for
more.:import time
from alarmdecoder import AlarmDecoder
from alarmdecoder.devices import SerialDevice

def main():
    """
    Example application that prints messages from the panel to the terminal.
    """
    try:
        # Retrieve the first USB device
        device = AlarmDecoder(SerialDevice(interface='/dev/ttyUSB0'))

        # Set up an event handler and open the device
        device.on_message += handle_message
        with device.open(baudrate=115200):
            while True:
                time.sleep(1)

    except Exception as ex:
        print ('Exception:', ex)

def handle_message(sender, message):
    """
    Handles message events from the AlarmDecoder.
    """
    print sender, message.raw

if __name__ == '__main__':
    main()
Package: alarmer
alarmerAlarmeris a tool focus on error reporting for your application, likesentrybut lightweight.InstallationpipinstallalarmerUsageIt's simple to integratealarmerin your application, just callAlarmer.initon startup of your application.importosfromalarmerimportAlarmerfromalarmer.provider.feishuimportFeiShuProviderdefmain():Alarmer.init(providers=[FeiShuProvider(webhook_url=os.getenv("FEI_SHU_WEBHOOK_URL"))])raiseException("test")if__name__=="__main__":main()Intercept Error LoggingIf you want to intercept the logging, you can useLoggingHandler.importloggingimportosfromalarmerimportAlarmerfromalarmer.logimportLoggingHandlerfromalarmer.provider.feishuimportFeiShuProviderdefmain():Alarmer.init(providers=[FeiShuProvider(webhook_url=os.getenv("FEI_SHU_WEBHOOK_URL"))])logging.basicConfig(level=logging.INFO,)logger=logging.getLogger()logger.addHandler(LoggingHandler(level=logging.ERROR))# only error and above should be sendlogging.error("test logging")if__name__=="__main__":main()Now when you run the script, you will receive the errors in your provider.ProviderYou can set number of providers for error reporting. All kinds of providers can be found
inproviders.Thanks toApprise, you can use lots of providers out of box.AppriseFeiShuWeComCustom ProviderYou can write your own custom provider by inheriting theProviderclass.fromtypingimportOptionalfromalarmer.providerimportProviderclassCustomProvider(Provider):defsend(self,message:str,exc:Optional[BaseException]=None,context:Optional[dict]=None):# Send to your custom provider herepassIn addition to this, you can just write a callable function which takesmessageandexcarguments.fromtypingimportOptionaldefcustom_provider(message:str,exc:Optional[BaseException]=None,context:Optional[dict]=None):# Send to your custom provider herepassThen add it toAlarmer.init.fromalarmerimportAlarmerAlarmer.init(providers=[CustomProvider(),custom_provider])ThrottlingThrottlingis used to throttling error messages if there are too many errors.fromalarmerimportAlarmerfromalarmer.throttlingimportThrottlingAlarmer.init(global_throttling=Throttling(),providers=[...])Custom ThrottlingYou can write your own throttling by inheriting theThrottlingclass.importtypingfromalarmer.throttlingimportThrottlingiftyping.TYPE_CHECKING:fromalarmer.providerimportProviderclassMyThrottling(Throttling):def__call__(self,provider:"typing.Union[Provider,typing.Callable]",message:str,exc:typing.Optional[BaseException]=None,context:typing.Optional[dict]=None)->bool:# check whether the error message should be sendreturnTrueManual SendIf you want to manually send messages to the providers, just callAlarmer.send.fromalarmerimportAlarmerAlarmer.send("message")LicenseThis project is licensed under theApache-2.0License.
Package: alarmix
Installationpython-mpipinstallalarmix⚠️MPVmust be installed and accessible ⚠️At first, you need to start alarmd daemon:# Run alarmd-server as a daemonalarmd-s"path/to/sound/to/play"-d# To kill it you need to runalarmdkill# Of course you can see helpalarmd-hThen you can manage your alarms withalarmccommand.alarmc# Show scheduled alarms for todayalarmc-f# Show all scheduled alarmsalarmcstop# Stop buzzing alarmalarmcadd20:0019:3014:00# Add alarmsalarmcadd+30+2:40# Add alarms with relative timealarmcdelete20:00# Remove alarm from schedulealarmcalarmc-h# Show helpAlso alarmc can display information about your schedule in different formats:➜  ~ alarmc # Default schedule information
+------------+----------------+
| alarm time | remaining time |
+------------+----------------+
|  09:30:00  |    9:01:28     |
+------------+----------------+

➜  ~ alarmc -r # Raw data without table formatting (separated by '\t' character)
alarm time      remaining time
09:30:00        9:00:43

➜  ~ alarmc -w # Show "When" column
+------------+----------------+----------+
| alarm time | remaining time |   when   |
+------------+----------------+----------+
|  09:30:00  |    8:58:58     | weekdays |
+------------+----------------+----------+

➜  ~ alarmc -c # Show "Cancelled" column
+------------+----------------+-----------+
| alarm time | remaining time | cancelled |
+------------+----------------+-----------+
|  09:30:00  |    8:57:35     |   False   |
+------------+----------------+-----------+

# All options can be combined
➜  ~ alarmc -rwc
alarm time      remaining time  when            cancelled
09:30:00        8:58:15         weekdays        False
Package: alarmserver
This package provides an AlarmServer class which is able to handle
alarms. It is intended for HMI software where alarm handling is often
necessary.The following features are provided:defining alarms with numbers and alarm textsalarms are handled and identified by their alarm numberalarms can come and leavealarms can be acknowledged and cleared by the userIn addition to the basic AlarmServer class there is an AlarmServerModel
class which implements the model/view pattern used by the Qt framework.
So this class can be used as a model for QTableView or QListView.
Package: alart
alart is a pseudo-random art generator.Example art can be found athttp://metanohi.name/projects/alart/images/Licensealart is free software under the terms of the GNU General Public License
version 3 (or any later version). This is version 0.1.1 (codename: “Fox”) of
the program.InstallationWay #1Get the newest version of alart athttp://metanohi.name/projects/alart/or athttp://pypi.python.org/pypi/alartExtract the downloaded file and run this in a terminal:# python setup.py installExamples can then be found in theexamplesdirectory.Way #1Just run this:# pip install alartor:# easy_install alartNote that this will not make the examples available.DependenciesPython 2.5 is required, though newer versions might be needed for Encapsulated
PostScript support.alart depends on cairo and cairo’s Python bindings for generating
images. Version 1.6 is needed for best output support, but earlier versions
(e.g. 1.4) works ok. To install it, do one of these things:For DEB-based distros (Debian etc.): typeapt-getinstallpython-cairoFor RPM-based distros (Fedora etc.): typeyum install pycairoFor other distros: do something similar or get it athttp://cairographics.org/download/alart depends on PyGame 1.8.0+ (perhaps earlier versions are also supported)
for showing generated images. If you only want to generate images and not show
them in an interactive window, you do not need PyGame graphics and sound. To
install it, do one of these things:For DEB-based distros (Debian etc.): typeapt-getinstallpython-pygameFor RPM-based distros (Fedora etc.): typeyum install pygameFor other distros: do something similar or get it athttp://pygame.org/download.shtmlUseTo use alart, just runalart. This will display a generated image with
default options. To generate a new image while in the window, press R.To see a list of alart’s command-line options with explanations, runalart--help. To see alart’s module help, runpydoc alart.Developmentalart uses Git for code management. To get the newest code, run:$ git clone git://gitorious.org/alart/alart.gitBugs can be reported tons@metanohi.name(address of sole developer).This documentCopyright (C) 2010, 2011  Niels SerupCopying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without any warranty.
Package: alas-ce0-openpyxl
openpyxlopenpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.It was born from lack of existing library to read/write natively from Python
the Office Open XML format.All kudos to the PHPExcel team as openpyxl was initially based onPHPExcelMailing ListOfficial user list can be found onhttp://groups.google.com/group/openpyxl-usersSample code:from openpyxl import Workbook
wb = Workbook()

# grab the active worksheet
ws = wb.active

# Data can be assigned directly to cells
ws['A1'] = 42

# Rows can also be appended
ws.append([1, 2, 3])

# Python types will automatically be converted
import datetime
ws['A2'] = datetime.datetime.now()

# Save the file
wb.save("sample.xlsx")Official documentationThe documentation is at:https://openpyxl.readthedocs.ioinstallation methodscode examplesinstructions for contributingRelease notes:https://openpyxl.readthedocs.io/en/latest/changes.html
Package: alaska
alaska: The las file aliaseralaska is a Python package that reads mnemonics from LAS files and outputs an aliased dictionary of mnemonics and its aliases, as well as a list of mnemonics that cannot be found. It uses three different methods to find aliases to mnemonics: locates exact matches of a mnemonic in an alias dictionary, identifies keywords in mnemonics' description then returns alias from the keyword extractor, and predicts alias using all attributes of the curves.Sample UsagefromalaskaimportAliasfromwellyimportProjectimportlasiopath="testcase.las"a=Alias()parsed,not_found=a.parse(path)In this case, parsed is the aliased dictionary that contains mnemonics and its aliases, and not_found is the list of mnemonics that the aliaser did not find. Users can manually alias mnemonics in the not_found list and add them to the dictionary of aliased mnemonicsParameters of the Alias class can be changed, and the defaults are the followinga=Alias(dictionary=True,keyword_extractor=True,model=True,prob_cutoff=.5)Users can choose which parser to use/not to use by setting the parsers to True/False. The prob_cutoff is the confidence the user wants the predictions made by model parser to have.Then, the aliased mnemonics can be inputted into welly as demonstrated below.fromwellyimportProjectp=Project.from_las(path)data=p.df(keys=list(parsed.keys()),alias=parsed)print(data)
Package: alaspo
ALASPOAn (adaptive) LNS framework for the for ASP systems. Currently, the system only supports solvers based onclingo.InstallationIt should work out-of-the-box in a conda env after running the following commands:conda create -n alaspo python=3.9
conda activate alaspo
conda install -c potassco clingo clingo-dl clingcon
python -m pip install alaspoThe command-line options of the problem-independent LNS can be shown as follows:alaspo -hExamples for portfolio config files can be found in thegit repository.
Package: alastria-auth
Alastria ID authenticationDescripción: Librería para poder autenticarse con alastria IDURL:https://pypi.org/project/alastria-auth/Requisitos: DjangoInstalar: alastria-auth==0.0.9Cómo usar:Añadir en settings.py:INSTALLED_APPS=[...."alastria_auth.apps.AlastriaAuthConfig"]# ALASTRIA AUTH VARSBACKEND_DOMAIN=os.environ.get("BACKEND_DOMAIN","http://localhost:8000")NETWORK_SERVICE_HOST=os.environ.get("NETWORK_SERVICE_HOST","http://host.docker.internal:8001")ISSUER_PRIVATE_KEY=os.environ.get("ISSUER_PRIVATE_KEY","")ISSUER_PUBLIC_KEY=os.environ.get("ISSUER_PUBLIC_KEY","",)ISSUER_ADDRESS=os.environ.get("ISSUER_ADDRESS","")ALASTRIA_T_NETWORK_ID=os.environ.get("ALASTRIA_T_NETWORK_ID","redT")ALASTRIA_AUTH_SECRET=os.environ.get("ALASTRIA_AUTH_SECRET","")ALASTRIA_SERVICE_HOST=os.environ.get("ALASTRIA_SERVICE_HOST","http://host.docker.internal:5000")#####################Añadir enurl.pylas urls:fromalastria_auth.viewsimportAlastriaAuthView....urlpatterns=[path("alastria/",include("alastria_auth.urls")),....]
Package: alastria-identity
alastria-identity-lib-pyPython version of the Alastria Identity libInstallingpipinstallalastria-identityor you could use Poetrypoetryaddalastria-identityTestingExecute testsdocker-composerun--rmidentitypoetryrunpython-mcoveragerun-mpytestalastria_identity-v.Create and check test coveragedocker-composerun--rmidentitypoetryruncoveragehtml
python-mhttp.server8000Openhttp://localhost:8000in your browserTODOThis READMEAdd more code examplesCreate the PyPI package and push it to pypi.orgTest the connection with the identity Alastria network nodeDelegate calls is still a WIP, we need to finish that
Package: alastria-service-client
alastria-service-clientalastria-service-client is a Python http client for dealing with communication with the wealize alastria service.InstallationUse the package managerpipto install alastria-service-client.pipinstallalastria-service-clientUsagefromalastria_service_client.clientimportAClient,Clientfromdjango.core.exceptionsimportPermissionDeniedfromalastria_service_client.validatorsimport(NetworkValidator,OnlyNetworkValidator,Address,)# returns 'identity_keys'alastria_service_client:AClient=Client(service_host=settings.ALASTRIA_SERVICE_HOST)returnalastria_service_client.identity_keys(address=Address(address),body=OnlyNetworkValidator(network=network_body)).responseContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: alat
ALAT: Advanced Linear Algebra ToolkitALAT project was developed for calculating linear algebratic
problems automatically. Especially, in engineering and science,
linear algebratic problems are so hot topic. So, I've decided to
write this project.Of course, I may have made mistake in some methods. Please,
contact the with me over my e-mail address.Resource: Elementary Linear Algebra, Sixth Edition by Ron LARSON,
David C. FALVOStarting date: 04-07-2022FeaturesI've seperated this project into 4 parts  mainly. First isMatricesclass which contain the methods related to matrix operations. Second isVectorsclass which contain the methods about vector operations. Third
isAppsclass which contain the common applications related with linear
algebra. Fourth isCryptswhich provide the cryptography
operations in 4 step.Installitionpip intall alatLicenseMIT License
Package: alauda-pytest
Thepytestframework makes it easy to write small tests, yet
scales to support complex functional testing for applications and libraries.An example of a simple test:# content of test_sample.pydefinc(x):returnx+1deftest_answer():assertinc(3)==5To execute it:$ pytest
============================= test session starts =============================
collected 1 items

test_sample.py F

================================== FAILURES ===================================
_________________________________ test_answer _________________________________

    def test_answer():
>       assert inc(3) == 5
E       assert 4 == 5
E        +  where 4 = inc(3)

test_sample.py:5: AssertionError
========================== 1 failed in 0.04 seconds ===========================Due topytest’s detailed assertion introspection, only plainassertstatements are used. Seegetting-startedfor more examples.FeaturesDetailed info on failingassert statements(no need to rememberself.assert*names);Auto-discoveryof test modules and functions;Modular fixturesfor
managing small or parametrized long-lived test resources;Can rununittest(or trial),nosetest suites out of the box;Python 3.5+ and PyPy3;Rich plugin architecture, with over 315+external pluginsand thriving community;DocumentationFor full documentation, including installation, tutorials and PDF documents, please seehttps://docs.pytest.org/en/latest/.Bugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.ChangelogConsult theChangelogpage for fixes and enhancements of each version.Support pytestOpen Collectiveis an online funding platform for open and transparent communities.
It provide tools to raise money and share your finances in full transparency.It is the platform of choice for individuals and companies that want to make one-time or
monthly donations directly to the project.See more datails in thepytest collective.pytest for enterpriseAvailable as part of the Tidelift Subscription.The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
maintenance for the open source dependencies you use to build your applications.
Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.Learn more.Securitypytest has never been associated with a security vunerability, but in any case, to report a
security vulnerability please use theTidelift security contact.
Tidelift will coordinate the fix and disclosure.LicenseCopyright Holger Krekel and others, 2004-2019.Distributed under the terms of theMITlicense, pytest is free and open source software.
Package: alba
ALBA synchrotron python meta packageThis is ALBA synchrotron python meta package.Namespaces are one honking great idea -- let's do more of those!source:The Zen of Python, by Tim PetersHow to create an alba sub-moduleLet's say a new high pressure lab has been installed at ALBA
which requires specific software. The goal is the user can type:importalba.hplab... to have access to ALBA's specific high pressure lab software.PreparationIn the future there might be a cookie cutter for this. For
now we have to bootstrap the project by hand:create a directory calledhplaband enter it.create a directory calledalbacreate aalba/__init__.pyfile with a single line:__path__=__import__('pkgutil').extend_path(__path__,__name__)It is crucial that thealba/__init__.pyhas this precise contents
and no more.create a setup.py has usual. Here is a minimal version:# setup.pyfromsetuptoolsimportsetup,find_packagessetup(name="alba-hplab",author="ALBA controls team",author_email="controls-software@cells.es",packages=find_packages(),description="ALBA controls HP Lab software",version="0.0.1")create aalba/hplabdirectory. This is where you
should put the specific code for ALBA's HP lab.By now you should have a structure like thishplab/
├── alba
│   ├── hplab
│   │   └── __init__.py
│   └── __init__.py
└── setup.pyThat's it! If you publish your package on pypi you will
be able to install your software anywere with:pip install alba-hplab