Saravanan666/pypi-org huggingface dataset:
Package: insteon-hub
# insteon-hub
An initial concept for a Python library for interfacing with the Insteon Hub2 Restful APIhttp://docs.insteon.apiary.io/This is mostly based offhttps://github.com/krkeegan/insteon-hub-python-libwhich seems to be abandoned.In order to use this, you’ll need to register for an Insteon [API key](http://www.insteon.com/become-an-insteon-developer).## Installation
Install instructions can be found herehttps://pypi.python.org/pypi/insteon_hub## Usage### Initialize the object`python >>> import insteon >>> i =insteon.Insteon("insteon_userid","insteon_password", "insteon_api_key") `### Examine devices`python >>> i.devices >>> i.devices[0] >>>i.devices[0].DeviceName`see [Devices](http://docs.insteon.apiary.io/#reference/devices) for other properties### Send a command`python >>>i.devices[0].send_command('on')`see [Commands](http://docs.insteon.apiary.io/#reference/commands/commands-collection)### Streaming Data`python >>>i.houses[0].stream(auto_reconnect=True,devices_to_watch=i.devices) `This will auto update a cached status on each device from the insteon streaming endpoint.
It will auto reconnect every 60 seconds or so, Insteon has informed me they are
looking to increase the timeout on that endpoint. This willNOTreport information
sent via API’s you should either do a hard ‘get_status’ command every so often. It will
cache commands sent via THIS API.see [Streaming](http://docs.insteon.apiary.io/#reference/houses/house-device-activation-stream/retrieve-a-house-device-activation-stream)You can also add callbacks for a stream to get instant results.`python >>>i.houses[0].add_stream_callback(device,callback_method) >>>i.houses[0].stream(auto_reconnect=True,devices_to_watch=i.devices) `This will send the parsed status to thecallback_methodas an argument.
Package: instiz
instizA Python3-only library for iChart K-Pop chart scores.Installationpip install instizGetting StartedGetting started is easy. The following example is to get the top 10 at the realtime chart of iChart.frominstizimportiChartichart=iChart()top_10=ichart.realtime_top_10()Type hintingIf you're using Python 3.7+'s type hinting feature, the type used for the return type of the chart can be imported from theinstiz.modelsmodule.frominstiz.modelsimportEntrydefget_name(entry:Entry)->str:returnentry.titleArtist nameIt's now possible to get the Korean name and the English name of an artist easily, alongside with the raw artist name provided from iChart's site. Nice title property will always return the English name, unless unavailable. If one of the names are unavailable, the property will return an empty string.frominstizimportiChartichart=iChart()first_place=ichart.get_next_entry()nice_title=first_place.nice_title# JENNIE - SOLOraw_artist_name=first_place.artist.raw_name# 제니 (JENNIE)english_artist_name=first_place.artist.english_name# JENNIEkorean_artist_name=first_place.artist.korean_name# 제니ContributingFork the repoMake your changesWrite your tests so I don't accidentally remove it when updatingRun the tests.Make a pull request.TODODocument the APIWeekly chart
Package: instructions
All developers are doing the same thing everyday - they’re searching for some values inside
iterable data structures, trying to filter them somehow or count elements inside which satisfy
some requirements. We keep writing the same code over and over again from project to project.
There’s no more need to do this, Instructions to the rescue. Instructions is a library, written
in Python to simplify lives of Python developers. This is how we could write some code using
Instructions which searches for a string with a length of 3 inside a list of values:>>>instructions.findstring__len(3).inside(['foo','bar','blah',1,2])Instructions does all the hard work for you, just tell it what do you want to do in plain english
and it will magically execute your instruction.FeaturesSupports Python 2.6 - 3.4, PyPy and PyPy3Supports all built-in Python data typesEasily extendableExtensively documentedComes with more than 100 filtersInstallationTo install Instructions, simply:$pipinstallinstructionsor:$easy_installinstructionsDocumentationDocumentation is available athttps://instructions.readthedocs.org.Contacts and SupportI will be glad to get yourfeedback,pull requests,issues,
whatever. Feel free to contact me for any questions.Donations and SponsorshipIf you like this project and want to support it you have 3 options:Just give this project a star at the top of the page.You can express your gratitude viaGratipay.Become a sponsor. Contact me viatepkeev at gmail dot comif you are interested in becoming a sponsor
and we will discuss the terms and conditions.Copyright and LicenseInstructions is licensed under Apache 2.0 license. Check theLICENSEfor details.Changelog0.1.0 (2015-02-24)Initial release
Package: instruction-test
Instruction TestThis is a test package for following my Python package instructionsFree software: MIT licenseDocumentation:https://instruction-test.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-15)First release on PyPI.
Package: instructprompt
InstructPrompt 📝🔍⚡ A Python package for storing, retrieving, and dynamically creating prompts for GPT models ⚡Our goal with InstructPrompt is to make it easier to tame large language models and make improving your LLM in production simpler to do. This package allows users to store instructions, which can be retrieved to dynamically create prompts giving gpt instructions on how to respond to a specific user's query.Getting StartedTo get started with InstructPrompt, you will need to first install the library by running the following command:pip install instructpromptOnce installed, you can import it into your python project by running the following:import instructpromptUsing InstructPromptInstructPrompt provides 3 main functions:add(),list(), andquery().add()Theadd()function takes in an instruction as a string and adds it to the collection. It uses ChromaDB to store the instruction and assigns it a unique id. It returns a confirmation message once the instruction is successfully added.import instructprompt

instruction = "Please provide the customer's name and order number."

instructprompt.add(instruction)list()Thelist()function returns a list of all the stored instructions in the collection.import instructprompt

instructions = instructprompt.list()
print(instructions) # Outputs a list of all the stored instructionsquery()Thequery()function takes in a query as a string and returns a list of instructions that match the query. It uses ChromaDB to perform the query and returns up to 5 matching instructions.import instructprompt

query = "How do I reset my password?"

instructions = instructprompt.query(query)
print(instructions) # Outputs a list of instructions that match the queryVersionThe current version of InstructPrompt is0.1.0.ContributingWe welcome contributions to InstructPrompt! Feel free to create issues/PR's/or DM us (👋 Hi I'm Krrish - +17708783106)LicenseInstructPrompt is released under theMIT License.
Package: instructure-scraper
TitleInstructure ScraperDescrptionWith instructure Scraper you can scrape search results and extract the contents produced by the search result.In instructure scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.It gives the every detail present inside website in the form of json data such as the text, links, menu links etc .JSON sample data{"Scraper_Main_Australia":[{"canvas_link":"/en-au/canvas/k-12","column_8":"K-12","menu_item_expanded_accordion_parent_has_toggle":[{"link":"/en-au/canvas/k-12/online-blended-learning","text":"\nSolutions by Need\n\n\nOnline & Blended Learning \n\n\nImprove Student Outcomes\n\n\nIntegrations with Other Tools\n\n\n"},{"link":"/en-au/canvas/k-12/administrators","text":"\nSolutions by Role\n\n\nFor Administrators\n\n\nFor IT/Technologists\n\n\nFor Educators\n\n\nFor Students & Parents\n\n\n"}]}Download full sample dataRun Scraperfrominstructure_scraperimport*link="https://www.instructure.com/en-au/product/canvas/k-12/studio"data=run_instructure_scraper(link)How it works?It takes URL of instructure page with a search keyword to scrape the data.It generates the json data which contains the information of the instructure search result.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: instrulink
instrulinkThis python package provides built-in classes to interface diverse laboratory instruments, including:waveform generators:Rigol DG 1022Z(RigolDG1022Z)oscilloscopes:B&K Precision 2555(BK2555),Rigol DS 1054Z(RigolDS1054Z)micro-manipulators:Sutter Instruments MP-285A(SutterMP285A)infrared cameras: FLIR cameras (Camera)acquisition systems:NI DAQmxfor pulse triggersSoftware dependenciesTo interface VISA instruments (i.e., waveforms generators and oscilloscopes), you will need to:Download and installIVI Compliance Package 21.0When installing, opt to include .NET Adapters and COM adapters as well (these are not selected by default)Download and install theNI Package Manager. Through the NI package manager, also install the NI-VISA Driver.To interface Rigol instruments specifically, you will also need to download and install the associatedRigol driverTo interface FLIR cameras, you will need to download and install theFlyCapture SDKYou will also need to installPython 3.6(for compliance with FlyCapture SDK), preferably as part of an environment manager such asAnaconda.InstallationThis package can be directly installed from PyPI:pip install instrulinkHowever, if you wish to amend the package code, you can also clone this repo and install it locally as an editable package:git clone https://github.com/tjjlemaire/instrulink.git
cd instrulink
pip install -e .UsageConnecting to instrumentsInstruments can be easily connected to via genericgrab_camera,grab_generator,grab_oscilloscopeandgrab_manipulatorfunctions. By default, these functions will automatically detect the first available instrument connected to the PC. Optionally, you can also provide an instrumentkeyto connect to a specific model type (e.g.grab_osciloscope(key='bk')to specifically connect to a B&K Precision oscilloscope).Using instrumentsExample scripts are located in the/scriptssubfolder.
Package: instrument
instrumentprovides instrumentation primitives for metrics and benchmarking. It can be used to:monitor runtime behavior in production systemsconduct performance benchmarkseasily generate plots/graphs and statisticsGet it from PyPI today:pip install instrumentPythonInstrumentwas formerly known asMeasure It.author:Pete Fein <pete@wearpants.org>license:BSDversions:Python 3.4+source:https://github.com/wearpants/instrumenthomepage:https://instrument.readthedocs.org/en/latest/video:https://www.youtube.com/watch?v=A_C4Z4RDDgI
Package: instrumental
Instrumental automatically instruments your code to add function calls that
reveal execution characteristics. Instrumental can then monitor
execution of your code and report back to you on how your source was executed.When you run a script with Instrumental, it will tell you which decisions and
conditions haven’t been fully exercised. So for a decision in an if statement,
it will tell you if the decision only ever evaluated True or False. Instrumental
will also tell you if the conditions in boolean decisions (and, or) were ever
executed both True and False.As an example: if you usually saypython setup.py nosetestsyou can sayinstrumental -rS -t <packagename> setup.py nosetestswhere packagename is the name of your project’s top-level package.For more information visitthe Instrumental documentation.Announcements and discussion about instrumental can be found on the
“python-instrumental-discuss” google group.Please file bug reports and enhancement requestson bitbucket.
Package: instrumental-dl
Instrumental-DownloaderA command line tool to download a song's instrumental from Youtube.InstallationIf you don't have pip, install it here:https://pip.pypa.io/en/stable/installing/First, you need to install ffprobe/ ffmpeg:https://ffmpeg.org/download.htmlDownload the build for your OSExtract the program folder from the downloadAdd the program folder to the system PATH:WindowsMacLinuxThen, use pip3 to install:pip3 install instrumental-dlDescriptionInstrumental-downloaderwas created as a command-line tool used to download a list of instrumentals based on just the song name.(and sometimes the artist is needed to identify the song) This tool is based off ofyoutube-dl, a tool used to download youtube videos from their url. The Python interpreter version 3.6+ is needed for this program. FFprobe/ ffmpeg needs to be installed in the PATH, as that is the program used to download instrumentals as mp3 files.instrumental-dl -f FILE_NAME
instrumental-dl -s "SONG_NAMES" ["SONG_NAMES"...]
  (with -s the song name needs to be in quotations
  if it contains any spaces)OptionsINFO
---------------------
-h, --help              Print the help text and exit
--version               Print the current version and exit

ONE REQUIRED
---------------------
-f, --file             Open this file and download each song
                        name in the file as an instrumental
                        (each song name should be on a seperate line)
-s, --songs            Download each song name as an instrumental
                        (can be multiple song names)

OPTIONS
---------------------
-v, --verbose           Verbose: Print out each download and conversion.
                        Also gives detailed time elapsed description.
-o, --output            Change the directory where the songs are
                        downloaded to.TODO- Download album cover for song to use as file icon
- Check for wrong instrumental downloads
- New file renaming system

- GUI Application
    - Add gui interaction for Windows, MacOS, and Linux
Package: instrumentino
Instrumentino is an open-source modular graphical user interface framework for controlling Arduino based experimental instruments.
It expands the control capability of Arduino by allowing instruments builders to easily create a custom user interface program running on an attached personal computer.It enables the definition of operation sequences and their automated running without user intervention.Acquired experimental data and a usage log are automatically saved on the computer for further processing.Complex devices, which are difficult to control using an Arduino, may be integrated as well by incorporating third party application programming interfaces (APIs) into the Instrumentino framework.It consists of two separate programs:instrumentino: which is run on a PC and provides the graphical user interface.controlino:    which is the program running on the Arduino controller itself, and is used to communicate with instrumentino.Get it at:https://github.com/yoelk/Instrumentino/blob/master/controlino/controlino.cppOn the top of the controlino sketch, there are define statements to adjust it to different Arduino boards.Please make sure you set them correctly.The official Instrumentino website is:http://www.chemie.unibas.ch/~hauser/open-source-lab/instrumentino/index.htmlGet the code at:https://github.com/yoelk/instrumentinoWe are looking forward for contributors.
There is lots of potential for Instrumentino to grow!Please contact me if you want to add features and make Instrumentino better. The best is to open an issue in GitHub, where the code is maintained:https://github.com/yoelk/InstrumentinoWhen using Instrumentino for a scientific publication, please cite the release article:http://www.sciencedirect.com/science/article/pii/S0010465514002112
Package: instruqt-xblock
[![Python CI](<https://github.com/edly-io/instruqt-xblock/actions/workflows/ci.yml/badge.svg>)](<https://github.com/edly-io/instruqt-xblock/actions/workflows/ci.yml>)XBlock to embed Instruqt track in Open edXAbout InstruqtInstruqt is a hands-on virtual IT Lab Platform for interactive learning.
Virtual IT labs provide learners with hands-on sandbox environments.
Learners can use the platform to learn about products and technology.About Instruqt XBlockInstruqt XBlock allows Open edX users to embed Instruqt tracks inside an
Open edX course. It provides ability to track learner progress and
reflects track completion in Open edX. Using this block instructor can
compute score of a track using this formula:$ SCORE = NUMBER OF COMPLETED CHALLENGES / TOTAL CHALLENGES IN TRACKHow to use Instruqt XBlockInstruqt XBlock can be installed using pip:$ pip install instruqt-xblockOnce installed addinstruqtxblockin advanced module list of course
advanced settings. It should availabe in Advanced component list of
course unit afterwards.Change LogUnreleased[0.1.0] - 2022-09-06AddedFirst release on PyPI.
Package: instruwav
InstruwavThis library lets you to form notes of different instruments from just one base note and play themRunPianoputer only works in python3 so make sure you are using python3. You can download it fromhttps://pypi.orgAfter a few minutes finished downloading, you can install it using pipcd(Downloadpath)pipinstall(Downloadfilename)HelpsChanging the sound fileYou can provide your own sound file by moving or copy your file into the .\instruwav\audio_files, then configure in python.For example:importinstruwavgenerator=instruwav.instrusound.engine()# Replace filename with your file's namegenerator.config("add","filename.wav")# Add the file to the listgenerator.config("audio_file","filename.wav")# switch to filename.wav as the default fileAll changes are only made in this single program. If you want to permanetly change to all programs, adjust the _config.json file.It looks like this:{"DISABLE_OUTPUT":false,"DEFAULT_INSTRUMENTS":["violin_c4.wav","piano_c4.wav","bowl_c6.wav"],"BASESOUND_FOLDER":".\\audio_files\\","_PATH":{"violin":"violin_c4.wav","piano":"piano_c4.wav","bell":"bowl_c6.wav"},"VERSION":"2.0.2"}Add your filename to it{"DISABLE_OUTPUT":false,"DEFAULT_INSTRUMENTS":["violin_c4.wav","piano_c4.wav","bowl_c6.wav","filename.wav"],"BASESOUND_FOLDER":".\\audio_files\\","_PATH":{"violin":"violin_c4.wav","piano":"piano_c4.wav","bell":"bowl_c6.wav","nickname":"filename.wav"},"VERSION":"2.0.2"}The file will permanetly be added in the list of available audios, and run the python program:importinstruwavgenerator=instruwav.instrusound.engine()generator.config("audio_file","filename.wav")Changing the keyboard layoutNote that the default keyboard configuration (stored in filekeyboards/qwerty_piano.txt) is for the most commonly used QWERTY keyboards. You can change the configuration so that it matches your keyboard, for instance using the alternativekeyboards/azerty_typewriter.txt:Disable outputTo stop the "Thank you..." change the config.json:DIABLE_OUTPUT:trueChangelogSee changelog in the folder
Package: insult-error
Intentionally Insulting Exceptions for PythonThis package provides a set of insulting exceptions you can use to make your
future self laugh, bother your collaborators, or both.The core feature is theInsultErrorexception class, which behaves just like
a normal exception with a few differences:The raised error is a given a randomly-selected insulting nameIf no message is provided, the error will use a random insulting messageA special keyword argumentratingprovides some control over how offensive
you want the error and message to be (1 being tamest and 10 being meanest)To start the abuse, you can either explicitly raiseInsultErrors in your code,
or you can callalways_insult_meto convert all unhandled exceptions to insults.
This works by wrappingsys.excepthooksuch that the error is changed, but your
+stack trace is not.Please contribute! This package will be much more fun if not limited to the
measly initial set of options. Obviously, racist, sexist, or other bullshit
jokes are not welcome.InsultErrorExample Usagefrominsult_errorimportInsultError# raise a random insult with a random message (defaults to rating=5)raiseInsultError# >>> NotThisAgain: Don't believe everything you think.# raise a random insult with a user-specified messageraiseInsultError('This is my message')# >>> NotThisAgain: This is my message# raise a random insult with <= 2 ratingraiseInsultError(rating=2)# >>> ForGodsSake: I don’t have the time or the crayons to explain this to you.# raise a random insult with <= 6 ratingraiseInsultError(rating=6)# >>> FuckYouBuddy: I envy people who have never met you.# handle InsultError exceptions (just like normal, non-insulting errors)try:raiseInsultErrorexceptInsultError:print('Better luck next time!')# >>> Better luck next time!always_insult_meExample Usagefrominsult_errorimportalways_insult_me,dont_always_insult_me# turn on ubiquitous insults, uncaught exceptions will be converted to InsultErrors and messages replaced tooalways_insult_me()raiseValueError('a normal message')# >>># Traceback (most recent call last):#   File "<stdin>", line 1, in <module># FuckYouBuddy: I don't have the time or the crayons to explain this to you# turn off insults, things go back to normaldont_always_insult_me()raiseValueError('another normal message')# >>># Traceback (most recent call last):#   File "<stdin>", line 1, in <module># ValueError: another normal message# turn insults back on, but this time preserve error messagesalways_insult_me(preserve_msg=True)raiseValueError('a normal message')# >>># Traceback (most recent call last):#   File "<stdin>", line 1, in <module># FuckYouBuddy: a normal message
Package: insultgenerator
insult_generatorRandom insult generator, written in PythonUsage>>> from insultgenerator import phrases
>>> phrases.get_so_insult_with_action_and_target("Your Mom", "she")
"Your Mom's so ill-defined, she resituated the Tallula"
>>> phrases.get_so_insult_with_action_and_target("Your Mom", "she")
"Your Mom's so acerbic, she cold-chiselled the departmentalism"
>>> phrases.get_so_insult_with_action_and_target("Your Mom", "she")
"Your Mom's so bantam, she Indianized the tranquilizer"
>>> phrases.get_so_insult_with_action_and_target("Your Mom", "she")
"Your Mom's so fresh, she prussianised the Guesde"DisclaimerNo guarantees are made to the clarity or nonsensical nature of the insults created by this software.
Package: insults
Insults-----TLDR: This project is very similar in functionality and purpose to Google's recent `Perspective API <https://www.perspectiveapi.com/>`_ projectUsage````````````Save in a hello.py:.. code:: pythonfrom insults import Insultscomment = "You are a disgusting maggot of a person."Insults.load_model()Insults.rate_comment(comment)> 0.89Install`````````````````And run it:.. code:: bash$ pip install insultsLinks`````* `Perspective API website <https://www.perspectiveapi.com/>`_* `Github Repo:<https://github.com/thundergolfer/Insults>`_Credit``````* `cbrew` <https://github.com/cbrew>`_ for their original data-science work in`Imperium's Kaggle Competition` <https://www.kaggle.com/c/detecting-insults-in-social-commentary>`_. Code in `cbrew/Insults <https://github.com/cbrew/Insults`_