Saravanan666/pypi-org huggingface dataset:
Package: launchkit
LaunchKitLaunchKit is an open-source library that enables developers to create and manage Python-basedtoolswhich enhance GPT chatbots' capabilities. It turns your Python code into a format that large language models (LLMs) like OpenAI's GPT can understand and use, thanks to the generation of JSON schemas driven by your code's type annotations.Using Pydantic, LaunchKit reads your code's structure and details, ensuring that bots can interact with your tools correctly. This process provides clear, enforceable contracts between your functions and chatbots, making your bots more robust and easier to maintain.With Launchkit, you can:Create Python-based tools that your bot can use.Talk with your bot and test functions locally.Deploy the upgraded bot to channels like Discord, Slack, and Telegram. (via MissionControl)Toy ExamplefromlaunchkitimportLaunchKitdefadd(a:int,b:int):"""Adds two numbers together."""returna+b# async functions are also supportedasyncdeffetch_today_weather():"""Gets today's weather."""awaitsome_async_function()return{"temperature":20,"humidity":50}tools=LaunchKit([add,fetch_today_weather])tools.openai_tools()# list of tools in OpenAI format - ready to be sent to the API.Talk with your bot locally in the terminal:launchkitmodule_name:toolsGetting startedInstallPDMCreate a new projectmkdirmy_projectcdmy_project
pdminit--copiergh:missioncontrolai/template
pdminstallTest it outpdmtest# run testspdmdev# talk with your botDeploy it (with MissionControl)gitinit
gitadd.
gitcommit-m"Initial commit"Create a new repo on github and push to it.Create a Discord bot and save the token.Go tohttps://www.missioncontrolbot.com/and add your repo.First StepsCreate functionsdefadd(a:int,b:int):# use a descriptive name and type annotations"""Adds two numbers together."""# add a docstringreturna+b[!NOTE]The function's name will be used as the tool's name. The docstring will be used as the tool's description.Use type annotations(More on types) to help the bot understand what kind of data to send to your function.Async functions are also supported:asyncdeffetch_today_weather():"""Gets today's weather."""awaitsome_async_function()return{"temperature":20,"humidity":50}[!NOTE]Return type should be serializable to JSON.When returning a dictionary, make sure that the fiels names are descriptive. The bot will use them to generate better summaries to function execution results.Exposing your functions to the botfromlaunchkitimportLaunchKittools=LaunchKit([add,fetch_today_weather])TestingTalk with your bot locally in the terminal:launchkitmodule_name:toolsWritetestsfor your functions:deftest_add():assertadd(1,2)==3SummaryUse descriptive namesAdd docstringsUse type annotationsReturn type should be serializable to JSONReturn dictionaries with descriptive field names
Package: launchlab-django-utils
Useful bits and pieces for Django projects.DocumentationThe full documentation is athttps://launchlab-django-utils.readthedocs.org.QuickstartInstall LaunchLab Django Utils:pip install launchlab-django-utilsThen use it in a project:import launchlab_django_utilsFeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.pyCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.9.0 (2018-05-03)Remove storage.StaticRootS3BotoStorageRemove storage.MediaRootS3BotoStorage0.8.0 (2018-05-03)Add storage.StaticRootS3Boto3StorageAdd storage.MediaRootS3Boto3Storage0.7.0 (2018-05-03)Add context_processors.debug0.6.0 (2017-05-23)Add formatters.currency.currency_display0.1.1 (2016-08-19)Fix typo in0.1.0 (2016-08-19)First release on PyPI.create_superuser_and_email_password management command.
Package: launch-on-workspace
Launch-on-workspaceLaunch applications on a specified workspace in Linux.The modulelauncherimplements several useful functions that can launch (in a scriptable manner) applications on designated workspaces on X in Linux. Relies onwmctrlto manipulate windows on workspaces.The moduledisplaysmoves windows to displays in similar manner. Right now it relies onxrandrto get mapping of displays to workspace coordinates. You can use it even withoutxrandrby supplying the right coordinates forwmctrlby yourself.The modulecustom_launchersuses the functionality oflauncherto provide functions that launch specific programs. They serve as an easy abstraction from some implementation details for non-standard situations. The motivation for these is threefold:Some programs need carefull treatment as they (a) use some temporary window at startup and we actually want to move the second one (texstudio), or (b) you usually have some other instances running in the system and no new process is created (firefox,Pycharm)It simplifies supplying arguments (terminal)Some applications need 2 or more windows to be moved (jupyter-lab)
Currently, we have functions for launching:gnome-terminalfirefoxjupyter_labtexstudiopycharmAll these functions return the IDs of windows they create so they can be further positioned on monitors using the functions fromdisplays.InstallationRequirementsPython 3.6+wmctrlxrandrand compatible window managertested with Gnome 3.34.1 on Ubuntu 19.10python3 -m pip install launch_on_workspaceUsage examplesThe following command launches a new window of Firefox that opens YouTube on workspace 2 (in wmctrl) which is a workspace 3 in Gnome. It is then moved to display connected to DisplayPort#1 (name "DP-1" inxrandr) and switched to fullscreen mode.importlaunch_on_workspaceaslowwid=low.firefox(2,"youtube.com")low.move_win_to_display(wid,"DP-1","full")The following command opens a gedit on workspace 4 in Gnomelow.launch_and_move(['gedit'],3)
Package: launchpad-cli
CLI tools for Launchpad and PPALicenseMIT LicenseCopyright (c) 2018 Norio KimuraPermission 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: launchpad-rgb
Launchpad_rgbThe Launchpad MK2 by Novation has 80 24 bit RGB LEDs, but the normal MIDI message protocol only allows for 127 total colors.How do you access the full power of 63*63*63 colors? System exclusive messages of course!MIDI System Exclusive messages are messages that are exclusive to a specific device type. The purpose is so that device manufacturers can implement features outside of the MIDI specification while staying in-band.Awesome! Now what?System exclusive messages are more complicated than normal messages. They need a header that includes the device-id, which specifies what device the messages are for, and two sub-ids, which specify what feature to invoke.This library is a convenient way to create system exclusive messages that can access the full 24 bit RGB color available on the Launchpad MK2.A Message object stores all the notes that will change and what their new color will be. The instance methods of Message modify that data and return the Message, so you can chain calls. To get the actual sysex data (not including the 0xF0 to start and 0xF7 to end the message), call the object like a function. The returned data is ready to be put into any MIDI message library, such as mido.Example:msg = Message().row(0, 1, 0.5, 0.25)
msg.note(1, 1, 1, 0.5, 0.25).note(8, 1, 1, 0.5, 0.25)
data = msg()
print(data) -> [0, 32, 41, 2, 24, 11, 11, 63, 31.5, 15.75, 12, 63, 31.5, 15.75,
               13, 63, 31.5, 15.75, 14, 63, 31.5, 15.75, 15, 63, 31.5, 15.75,
               16, 63, 31.5, 15.75, 17, 63, 31.5, 15.75, 18, 63, 31.5, 15.75,
               22, 63, 31.5, 15.75, 29, 63, 31.5, 15.75]
Package: launchpadtools
Launchpad toolsSome tools for easy submission to launchpad.UsageAll options are documented underlaunchpad-submit -h.Sometimes, you may want to submit a source package with a Debian configuration that is
available somewhere else. This may help setting up a nightly submission process. As an
example, take the nightly submission script for aMixxx
PPA.#!/bin/sh -ue

TMP_DIR=$(mktemp -d)
cleanup() { rm -rf "$TMP_DIR"; }
trap cleanup EXIT

CACHE="$HOME/.cache/repo/mixxx"
git -C "$CACHE" pull || git clone "https://github.com/mixxxdj/mixxx.git" "$CACHE"
git clone --shared "$CACHE" "$TMP_DIR"

VERSION=$(grep "define MIXXX_VERSION" "$TMP_DIR/src/defs_version.h" | sed "s/[^0-9]*\([0-9][\.0-9]*\).*/\1/")
FULL_VERSION="$VERSION~$(date +"%Y%m%d%H%M%S")"

CACHE="$HOME/.cache/repo/mixxx-debian"
git -C "$CACHE" pull || git clone "git://anonscm.debian.org/git/pkg-multimedia/mixxx.git" "$CACHE"
rsync -a "$CACHE/debian" "$TMP_DIR"

launchpad-submit \
  --directory "$TMP_DIR" \
  --ubuntu-releases trusty xenial yakkety zesty \
  --ppa nschloe/mixxx-nightly \
  --version-override "$FULL_VERSION" \
  --version-append-hash \
  --update-patchesInstallationThe launchpad tools areavailable from the Python Package
Index, so for installation/upgrading
simply dopip3 install launchpadtools --userLicenseThe launchpadtools are published under theMIT license.
Package: launchpanel
OverviewLaunchPanel is a simple interface designed to expose LaunchPad Actions
to the user in an intuitive way.LaunchActions are displayed in icon-centric list widgets, and they are
organised into tabs based on their groups. The user has the ability to
define tab orientation, icon size and plugin locations.Video demo coming soon...InstallationIf you use pip, you can simply runpip install launchpanel. That will
pull down the required dependencies (qute, scribble & factories) automatically.Alternatively, if you just want to download a file and extract everything to a
location you can downloadpackaged_launchpanel.zipand extract the contents
of that zip to somewhere where your python interpreter/application is looking
for python modules.If you want to look at some example plugins - some of which use simple static
data in their plugin whilst others dynamically generate plugins at runtime, you
can pull down theexample_pluginsfolder.RunningYou can run launchpanel by calling:importlaunchpanellaunchpanel.launch()This code will work in both standalone python as well as supported applications
such as Max, Maya and Motion Builder (see details of qute for full list of
application supporthttps://github.com/mikemalinowski/qute)If you want to easily run Launch Panel in standalone for everyday use on
windows the easiest thing to do is to create a .cmd file on your desktop with
the following in it:call c:\python27\pythonw.exe /my/path/to/launchpand/run.pyEnvironmentsIf you're using launchpanel in multiple contexts it can be useful to
differentiate one from the other. This can be done by setting the
environment_id.This is simply a string identifier which defines where it will store its
settings/preferences.importlaunchpanellaunchpanel.launch(environment_id='foo')The above instance will not cross over with the instance created below, meaning
each can have their own paths to look for actions.importlaunchpanellaunchpanel.launch(environment_id='bar')This is particulary useful if you are running multiple projects and want a
bespoke set of plugins displayed for each one.DependenciesThis module has the following dependencies:* launchpad
* qute
* scribble (pip install scribble)Credits & CollaborationThis module was inspired by some excellent collaborative projects with a
fantastic tech-artist calledToby Harrison-Banfield.I am always open to collaboration, so if you spot bugs lets me know, or if
you would like to contribute or get involved just shout!CompatibilityLaunchpad has been tested under Python 2.7 and Python 3.7 on Windows and Ubuntu.
Package: launchpy
LaunchpyPython wrapper for the Adobe Launch API.This module is named launchpy.InstallationYou can install the module by realising the following pip command:pip install launchpyYou can access the version of the module that you run via the following attribute:launchpy.__version__Content of the moduleThis module is built around 5 main parts:Helping functionsCore ComponentsAdmin instantiating functionsAdmin ClassManaging propertiesProperty ClassManaging Publishing CycleLibrary ClassTranslator functionationalityTranslator ClassSynchronizerSynchronizer ClassGet StartedAget started guidehas been created to explain the different functionality.
You can find a more detail description functionalities atdatanalyst.info.Main documentationMost of the documentation has been imported from the datanalyst websitehere.Release informationYou can find release informationhere.
Package: launchscreen
Mahin launch Screenlaunch Screen is a Python library for creating launching (loading) screen.InstallationUse the package managerpipto install launchscreen.pipinstalllaunchscreenUsagefromlaunchscreenimport*Yourscreen=screen('d.png',5000)#here 5000 is delay time in m.sec unitYourscreen.run()UpdateAdded threading . Now it won't take extra time.ContributingPlease make sure to update tests as appropriate.LicenseMITContactMy FacebookMy Github
Package: laundrify-aio
laundrify_aiolaundrify_aiois a python package to communicate with thelaundrifyAPI.It has primarily been developed for the Home Assistant integration.Usage Exampleimportasynciofromlaundrify_aioimportLaundrifyAPIasyncdefmain():# Generate a new AuthCode in the laundrify App (`Smart-Home Integration -> Home Assistant -> Integration aktivieren`)auth_code='123-456'# exchange your auth code for a long-lived access tokenaccess_token=awaitLaundrifyAPI.exchange_auth_code(auth_code)# initialize a new client with the previously obtained access tokenlaundrify_client=LaundrifyAPI(access_token)# get all machinesmachines=awaitlaundrify_client.get_machines()if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())Development/BuildTo build and publish the package, run the following:# Make a source distribution and a wheelpython3setup.pysdistbdist_wheel# Make sure the long description will render correctlytwinecheckdist/*# (optional) upload to TestPyPItwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*# upload to PyPItwineuploaddist/*
Package: laundry-unit-testing
MIT LicenseCopyright (c) 2024 Muhammad Abdiel Al HafizPermission 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: laura
laura: Local Auto-Regressive AverageThis repository contains the source code for theLocalAUto-RegressiveAverage (LAURA) inverse solution as described by de
Peralta Menendez et al. (2001, 2004). The code is based onmne-python, a powerful EEG library forpython.Personally, I think this linear inverse solution finds the neural sources
underlying M/EEG measurements with great success and is a valuable option among
other inverse solutions such asminimum norm estimatesand(e)LORETA.DependenciesmnescipynumpyThat's it!Installation from PyPiUsepipto install laura and all its
dependencies fromPyPi:pip install lauraQuick StartThe following code demonstrates how to use this package:from laura import compute_laura

stc = compute_laura(evoked, forward)
stc.plot(), where evoked is an instance ofmne.Evokedand forward is an instance ofmne.Forward. For further explanation on mne and its objects please refer to
themne website.For a more comprehensive tutorial hop over tothis notebook!FeedbackPlease leave your feedback and bug reports atlukas_hecker@web.de.ReferencesPlease cite the authors of the LAURA inverse solution appropriately:[1] Menendez, R. G. D. P., Andino, S. G., Lantz, G., Michel, C. M., &
Landis, T. (2001). Noninvasive localization of electromagnetic epileptic
activity. I. Method descriptions and simulations. Brain topography, 14(2),
131-137.[2] de Peralta Menendez, R. G., Murray, M. M., Michel, C. M., Martuzzi, R.,
& Andino, S. L. G. (2004). Electrical neuroimaging based on biophysical
constraints. Neuroimage, 21(2), 527-539.I would be happy if you would cite this package, too:LAURA was calculated using the laura python package available at https://github.com/LukeTheHecker/laura.LimitationsThe current implementation is limited to:fixed dipole orientationstime-domain EEG dataFeel free to modify the code and start a pull request!TroubleshootingHaving problems with the installation? Check thepackage requirements.
Package: lauris-real-python-reader
Real Python Feed ReaderThe Real Python Feed Reader is a basicweb feedreader that can download the latest Real Python tutorials from theReal Python feed.For more information see the tutorialHow to Publish an Open-Source Python Package to PyPIon Real Python.InstallationYou can install the Real Python Feed Reader fromPyPI:python -m pip install realpython-readerThe reader is supported on Python 3.7 and above. Older versions of Python, including Python 2.7, are supported by version 1.0.0 of the reader.How to useThe Real Python Feed Reader is a command line application, namedrealpython. To see a list of thelatest Real Python tutorials, call the program without any arguments:$ realpython
The latest tutorials from Real Python (https://realpython.com/)
 0 How to Publish an Open-Source Python Package to PyPI
 1 Python "while" Loops (Indefinite Iteration)
 2 Writing Comments in Python (Guide)
 3 Setting Up Python for Machine Learning on Windows
 4 Python Community Interview With Michael Kennedy
 5 Practical Text Classification With Python and Keras
 6 Getting Started With Testing in Python
 7 Python, Boto3, and AWS S3: Demystified
 8 Python's range() Function (Guide)
 9 Python Community Interview With Mike Grouchy
10 How to Round Numbers in Python
11 Building and Documenting Python REST APIs With Flask and Connexion – Part 2
12 Splitting, Concatenating, and Joining Strings in Python
13 Image Segmentation Using Color Spaces in OpenCV + Python
14 Python Community Interview With Mahdi Yusuf
15 Absolute vs Relative Imports in Python
16 Top 10 Must-Watch PyCon Talks
17 Logging in Python
18 The Best Python Books
19 Conditional Statements in PythonTo read one particular tutorial, call the program with the numerical ID of the tutorial as a parameter:$ realpython 0
# How to Publish an Open-Source Python Package to PyPI

Python is famous for coming with batteries included. Sophisticated
capabilities are available in the standard library. You can find modules for
working with sockets, parsing CSV, JSON, and XML files, and working with
files and file paths.

However great the packages included with Python are, there are many
fantastic projects available outside the standard library. These are most
often hosted at the Python Packaging Index (PyPI), historically known as the
Cheese Shop. At PyPI, you can find everything from Hello World to advanced
deep learning libraries.

[... The full text of the article ...]You can also call the Real Python Feed Reader in your own Python code, by importing from thereaderpackage:>>> from reader import feed
>>> feed.get_titles()
['How to Publish an Open-Source Python Package to PyPI', ...]
Package: lauterbach-trace32-pystart
lauterbach-trace32-pystartSince 2020, Python programs can control TRACE32 via the lauterbach-trace32-rcl module (pyrcl). Up to now, TRACE32 must be started using a config file, which requires familiarization with the TRACE32 configuration file syntax or the use of the configuration tool t32start.exe. Now Lauterbach offers a new
lauterbach-trace32-pystart module (pystart) which allows the configuration and start of TRACE32 directly from Python.For feedback and questions, please contactsupport@lauterbach.com(include "pystart" in the subject).Release Notesv0.1.7fix datatype oflibrary_fileparameters in some Connection classes to allowpathlib.Path's.addTCPConnectionfor Lauterbach X-Series debugger.renameEthernetConnectiontoUDPConnectionv0.1.6initial release
Package: lauterbach-trace32-rcl
PyRCLRelease Notesv1.0.9Fixed error related functions to not use dbg.fnc(), otherwise the error state is reset. Affected functions:def error_address(self) -> Address: (dropped)def error_cmdline(self) -> str:def error_fileline(self) -> int: (dropped)def error_filename(self) -> str: (dropped)def error_firstid(self) -> str:def error_id(self) -> str:def error_message(self) -> str:def error_occurred(self) -> bool:def error_position(self) -> int: (dropped)v1.0.8Fixed missing breakpoint actionsWATCH,TRACEENABLE,TRACEDATA,TRACEON,TRACEOFFandTRACETRIGGERv1.0.7Fixed missing module level export ofhexversion()v1.0.6Fixed missing module level exports ofversionand multiple exceptionsFixed breakpoint core and size parametersAddedConnectionErroras baseclass ofApiConnectionErrorv1.0.5Various bugfixesv1.0.4Various bugfixesv1.0.3Various bugfixesv1.0.2Various bugfixesv1.0.1Various bugfixesv1.0.0Initial release
Package: lauteur
lauteur ======Tools for ascribing authorship - to the
chagrin of
`Barthes <http://en.wikipedia.org/wiki/Death_of_the_Author>`__Installpip install lauteurTestRequiresnosenosetestsUsagelauteurhas two methods:from_stringandfrom_htmlfrom_stringis mostly used in RSS Feed parsing where authors are
sometimes embedded as bylines:importlauteurstring='By: Brian Abelson ,and Michael H. Keller & Dr. Stijn Debrouwere IV'authors=lauteur.from_string(string)printauthors# ['Brian Abelson', 'Michael H Keller', 'DR Stijn Debrouwere IV']from_htmlsearches through common meta tags for authors.importlauteurimportrequestsr=requests.get('http://www.nytimes.com/2013/12/20/books/michiko-kakutanis-10-favorite-books-of-2013.html')authors=lauteur.from_html(r.content)printauthors# ['Michiko Kakutani']Todo:[ ] Find more meta tags.[ ] Improve name formatting algorithm.