Saravanan666/pypi-org huggingface dataset:
Package: interloper
interloperTool to run ecs execute command in Python and in AWS Lambda. Of course, locally you can do this via the session manager plugin, but it you want to do it in lambda, it is a bit more complex.FeaturesRun simple commands or full scripts.Pass arguments into those scripts.Get output back in python.LimitationsHere are some of the current limitations.Script output is truncated if very long.Testing shell is present, but still must be completed.Still needs started really.Need to mock away the websocket bits.This documentation.Installationpip install interloperUsageFor starters, one mustenable ECS exec.Locally./interloper.py [event]LambdaYou can import and use the provided handlers for simple operations.cmd_handlerfrominterloperimportcmd_handler... Actually, that should be sufficient. Just set the handler tomain.cmd_handleror whatever your module is called in place of main.script_handlerfrominterloperimportscript_handlerThen create an interloper.sh that suits your needs.Custom Handler and ScriptConsider needing to generate heap dumps and thread dumps from java containers. You could do so with the following.dumper.sh#!/usr/bin/env shcleanup(){rm-rf/tmp/dumpsmkdir-p/tmp/dumps}verify_awscli(){ifwhichaws>/dev/nullthenecho"awscli found; proceeding"return0elseecho"awscli not found; can't proceed"return1fi}verify_jattach(){ifwhichjattach>/dev/nullthenecho"jattach found; proceeding"return0elseecho"jattach not installed; installing"ifwhichapk>/dev/nullthenapkadd--no-cachejattach--repositoryhttp://dl-cdn.alpinelinux.org/alpine/edge/community/return0elseecho"apk not found; can't proceed"return1fifi}cleanupcase"$1"inheap)ifverify_jattach;thenjattach$(pgrepjava)dumpheap/tmp/dumps/heap.hprof;fiifverify_awscli;thenawss3cp/tmp/dumps/heap.hprofs3://"$2";fi;;threads)ifverify_jattach;thenjattach$(pgrepjava)threaddump>/tmp/dumps/threads;fiifverify_awscli;thenawss3cp/tmp/dumps/threadss3://"$2";fi;;*)echo"usage:$0{heap|threads} {key}"esachandlerimportloggingimporttimeimportinterloperLOG=logging.getLogger()LOG.setLevel(logging.INFO)deflambda_handler(event:dict,context)->None:LOG.debug("event received:%s",event)input=interloper.Input(**event)key="{}/{}/{}-{}".format(input.cluster,input.task,input.cmd,int(time.time()))ifinput.cmd=="heap":key+=".hprof"output=interloper.Interloper(input.task,cluster=input.cluster,container=input.container).script("dumper.sh",[input.cmd,key])LOG.info(output)
Package: interlude
Interlude - Interactive DoctestsProvides an interactive shell aka console inside your doctest case.The console looks exact like in a doctest-case and you can copy and paste
code from the shell into your doctest. It feels as you are in the test case
itself. Its not pdb, it’s a python shell.In your doctest you can invoke the shell at any point by calling:>>> interact(locals())To make your testrunner interlude aware, passinteractas a global to theDocFileSuiteas shown here:...
import interlude
...
suite = DocFileSuite( ..., globs=dict(interact=interlude.interact), ...)
...IfIPythonis available it opens an IPython prompt.
The prompt is modified and looks like in a doctest. To surpress the
prompt modifications callinteractwith additional kwargdoctest_prompt=False.Licenseinterludeis copyright 2006-2014 by BlueDynamics Alliance, Klein & Partner KG,
Austria. It is under theGNU Lesser General Public License (LGPLv3).code repository atgithub collectivewritten byJens KleinIPython support contributed byAlan JustinoUpgrade/Bugfixes contributed bySune Broendum WoellerChanges1.3.1refactoring introduced bug: classic promptuse_ipython=Falsefails if
IPython available
[jensens, 2014-02-09]1.3needs IPython 1.1.0 or better. Skipped support for older versions.
[jensens, 2014-02-09]added extra require, so when ipython is wanted just depend in buildout,
pip-requirements, setup, (name it) on``interlude[ipython]``
[jensens, 2014-02-09]start IPython shell with a custom doctest prompt, thus it is easier to
copy-paste from the shell to the doctest (save a typing a%doctest_modeeach time. Added also optiondoctest_prompt=Falseto disable this.
[jensens, 2014-02-09]1.2make the ipython support work with newer ipython versions. [sunew]1.1.1fix broken release, include*.rstwith MANIFEST.in1.1IPython support - alanjds, 2010-12-191.0initial release
Package: intermake
Automated application frontend.example/__init__.py:from intermake import Application

app = Application( "Example" )

@app.command()
def say_hello(n : int):
    """says hello n times"""
    print("hello " * n)example/__main__.py:import example
example.app.start()Usage:example say_hello 2
⇝ hello hello

  example help say_hello
⇝ says hello n times

  example gui
⇝ welcome to Example's graphical user interface
  *click say hello*
  *set n = 2*
⇝ *message box: hello hello*
  *click x*

  example pyi
⇝ welcome to Example's python interactive shell
  say_hello(2)
⇝ hello hello
  exit()

  example cli
⇝ welcome to Example's command line interactive
  say_hello 2
⇝ hello hello
  exit

  python
  import example
  example.say_hello(2)
⇝ hello hello
  exit()Attention!Full documentation can be found `here<http://software.rusilowicz.com/intermake>`_.ContentsWhat is Intermake?RationaleExample usageLicenseWhat is Intermake?Intermakeis a library that automatically provides multiple front-ends aPythonapplication.
Once an application is registered withIntermake, the following interfaces are provided:Command line argumentsCommand line interface (CLI)Python interactive shellGraphical user interface (GUI)Python library interface (DLL)Interactive Jupyter notebook*Custom*front-ends are also supportedRationaleIntermake aims to avoid repetition by being*reflective*, pulling data-types fromPEP484annotations and documentation from doc-strings. However, it also aims to be*architecturally
simple*, avoiding guesswork, behind the scenes magic and duck-typing where at all possible.Intermake permits:all frontends to share a common command seta global application state to persist between commandsminimal setup (by automatically inferring datatypes and documentation)standard Python functions to be used (such asprint)original information to be retained (i.e. functions exposed through Intermake remain unchanged)applications to derive from one anotherExample usage[Bio42](https://bitbucket.org/mjr129/bio42)[Neocommand](https://bitbucket.org/mjr129/neocommand)[Groot](https://bitbucket.org/mjr129/groot)[Faketree](https://bitbucket.org/mjr129/faketree)LicenseIntermakeis licensed under the [GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html).
Package: intermittent-forecast
Forecasting Intermittent Time SeriesThis package contains tools for forecasting intermittent time series. The outputs will be similar to those obtained from using the R package,tsintermittent.InstallationThe intermittent-forecast package is hosted on PyPI and can be installed using pip.pip install intermittent-forecastAlternatively, you can clone the repogit clone git@github.com:pmrgn/intermittent-forecast.gitDocumentationView thedocumentation.
Package: inter-morse
Just a quick side projectinter-morse.pyThis script has 2 feature, one is a decoder, the other one is an unnecessary one, noise reduction feature, that usessox*nix utility.Usageusage:python-minter_morse[-h][-lLEVEL]{clean,decode}...file

positionalarguments:{clean,decode}CommandsforthedecodercleanCleanuptheaudiodecodeDecodemorsecodefileInputfilename

optionalarguments:-h,--helpshowthishelpmessageandexit-lLEVEL,--levelLEVELVerbositylevelMorse Audio DecoderThis feature takes in a.wavfile and does the following.Withpydubtransforms it into an audio segmentCoverts all the values that are above themax - (max * max_threshhold)to 1 and others to 0Iterated through all the binary values, when the value switches to a different one:Length is calculated in milliseconds and then based on the length, the morse code symbol is determined.DIH=100# On default and the same length for symbol spaceDAH=DIH*3# The same length is assigned for letter spacing spaceSPACE=DIH*7# The space between wordsReads thecodes.csvfile and assigns it to a dictionary.Finally the characters separated by the Character space are compared against the dictionary and translatedUnknown characters are assigned?Word spaces are translated to a space and letter space is assigned to an empty stringOptions-d | --dih- The length of DIH symbol in ms (will implement a detection for this) \100ms is good enough for 15 WPM (tested for PARIS)50-60ms - 20 WPM25ms can do 50 WPM-l | --level- The verbosity of the output, haven't done much thinking with this, but 0 is for all output.Audio De-noiserI thought I needed this feature, but will maybe improve it later, haven't tested it much, but all it does isTakes a.wavfileFinds all 'silence' segments what are passed a given threshold ('-33 dBFS' on default)Runssoxon every segment to create a noise profilePasses the input file through all of the generated profilesExports a cleaned version of the audio file inexportdirectoryTo Do[	] Improve the code for better detection[	] Add an encoder from text to sound[	] Add comparison option for testingAdd Dynamic WPM detection (so you don't have to change-dmanually)ResourcesGood online decoderalso explains how it works.Morse code generatorthat I used for generating some samples.In depth about Morse code
Package: intern
internintern(Integrated Toolkit for Extensible and Reproducible Neuroscience) is a Python 3 module that enables big-data neuroscience. Currently, it provides an interface to common big-data neuroimaging databases such asBossDB, CloudVolume, DVID, and other standard formats.Getting StartedTo quickly get started with intern, check out the wiki:https://github.com/jhuapl-boss/intern/wikiDocumentationFull detailed documentation can be found here:https://jhuapl-boss.github.io/intern/InstallationIt's always a good idea to use virtualenv to isolate your work from your system Python installation:Usingvirtualenv:virtualenvintern
.intern/bin/activateUsingvirtualenvwrapper:mkvirtualenvintern(Preferred) Install via pypipipinstallinternInstall via gitClone the repository fromhttps://github.com/jhuapl-boss/internand runpip install -r requirements.txtfrom the repository's location on your
system.Add<repository location>to yourPYTHONPATH.For example, on a *nix system, if intern was cloned to ~/intern:export PYTHONPATH=$PYTHONPATH:~/internFor Python 2 support, you will need to install intern v0.10.0 or earlier.Optional DependenciesTo install depedencies required to use thecloud-volumeremote, run the command:pipinstallintern[cloudvolume]ContributingPlease submit bug reports, or get in touch using GitHub Issues.CitationIf you find this library useful to your work, please consider citing the following:https://www.biorxiv.org/content/10.1101/2020.05.15.098707v1@article{intern,
	doi = {10.1101/2020.05.15.098707},
	url = {https://www.biorxiv.org/content/10.1101/2020.05.15.098707v1},
	year = 2020,
	month = {may},
	publisher = {BiorXiv},
	author = {Matelsky, Jordan K and Rodriguez, Luis and Xenes, Daniel and Gion, Timothy and Hider Jr., Robert and Wester, Brock and Gray-Roncal, William},
	title = {{intern: Integrated Toolkit for Extensible and Reproducible Neuroscience}},
	journal = {BiorXiv}
}The Boss Legal NotesUse or redistribution of the Boss system in source and/or binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code or binary forms must adhere to the terms and conditions of any applicable software licenses.End-user documentation or notices, whether included as part of a redistribution or disseminated as part of a legal or scientific disclosure (e.g. publication) or advertisement, must include the following acknowledgement: The Boss software system was designed and developed by the Johns Hopkins University Applied Physics Laboratory (JHU/APL).The names "The Boss", "JHU/APL", "Johns Hopkins University", "Applied Physics Laboratory", "MICrONS", or "IARPA" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contactBossAdmin@jhuapl.edu.This source code and library is distributed in the hope that it will be useful, but is provided without any warranty of any kind.
Package: internal-fileupload-django
=====
Icelabz File UploadThis is a basic file upload using Google DocsDetailed documentation is in the "docs" directory.Quick startAdd "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'fileupload',
]Include the polls URLconf in your project urls.py like this::path('fileupload/', include('fileupload.urls')),Runpython manage.py migrateto create the polls models.Use the following linkhttp://127.0.0.1:8000/fileupload/to uploadTo build the package you need to runpython setup.py sdistBuildingFor some reason we cannot test this on circleCI so we have to manually run the testthe build instruction goes like this after updatin the setup.py verionspythonruntest.py
pythonsetup.pysdistTODO- @todo: make sure we add a google credential setup guide
- @TODO: Add a cron job that can be checked for expiry
Package: internal_links
internal_linksSEO tool for adding links to text contained in Django apps databases.Renamed old package: https://pypi.python.org/pypi/permalink_adderInstallationInstall with pip:pip install internal_linksUsageYou need to specify where and what to look for in your Django app’s
settings in this manner:INTERNAL_LINKS_SETTINGS = [{'app': 'your_app_name',
                            'model_name': 'your_model_name',
                            'fields': ['list', 'of', 'fields', 'in', 'which', 'script', 'should', 'search'],
                            'words': ['list', 'of', 'words', 'to', 'search'],
                            'url': 'url_that_should_be_wrapped_around_found_text',
                            'target': False, # optional, setting it to e.g. '_blank' will add target="_blank" tag to link
                            'ocurrence': 1}] # optional, set max occurrences of word you want to wrap, wraps all by defaultSetting ‘fields’ to empty list will cause script to look up for fields
in model (TextField and CharField). You’ll have to manually accept each
found field.Starting script with option--startwill actually apply changes to
database, instead of printing them out.You can run the script either usingadd_linksmanagement command or
calllink_adderfunction fromadder.pymodule.OutputNo output if there are no occurrences of words or when they’re already
wrapped.Without--startoption, script will only print out proposed changes.Changelog0.1.6.6 - 21.08.2014[fix]unicode handling fixes0.1.6.5 - 21.08.2014[new]some tests[new]set max occurrences to replace[update]refactoring0.1.6 - 14.08.2014[new]fields lookup if none given0.1.5 - 14.08.2014[new]custom target as an option in settings0.1.4.6 - 14.08.2014[new]package renamed from permalink_adder[update]improved readability0.1.4.5 - 12.08.2014[new]dry_run as a command option0.1.4.2 - 8.08.2014[fix]further description fixes0.1.4.1 - 8.08.2014[fix]setup fix in order to display description0.1.4 - 8.08.2014[new]introduced readability to output0.1.3 - 8.08.2014[fix]bugfix for empty word string case, refactored adder.py0.1.2 - 8.08.2014[fix]setup.py fix0.1.1 - 8.08.2014[new]updated with manage.py command0.1 - 8.08.2014Initial release
Package: internalmonologue
internal-monologueAll developers work on difficult projects that need focus.
All developers get numerous random thoughts in the middle of it.
All developers always have their terminal open.Internal Monologue is a single-command cli tool that enables developers to swiftly log their random unrelated thoughts via their terminal with minimum cognitive diversion. They can then later check these thoughts in a Trello Board when they have the time.How to set up internal monologueYou can use internal monologue by 3 easy steps.Install the pip package for internalmonologuepip install internalmonologueGenerate yourTrello API KeyandTrello Temporary Token.
(You have to be logged into your trello account to see below linked accounts)You can use the temporary trello token since this app works completely on your local and its only for your own personal use. There is no server. The source code is also available in the repo if you would like to check how it works under the hoodexport your credentials in your bash_profile in the following wayOpen your bash_profile with the following commandsudo vi ~/.bash_profileThen add the following commands to itexport TRELLO_API_KEY="<YOUR_TRELLO_API_KEY_HERE>"

	export TEMPORARY_TRELLO_TOKEN="<YOU_TEMPORARY_TRELLO_TOKEN>"How to useSimply go to your terminal window and typelogue reminder to pay electricity billand "reminder to pay electricity bill" will appear in a trello board calledInternal MonologueROADMAPAdding labels to your logues so they are automatically sorted when you open your trello board at the end of the dayCreating a similar tool which uses google docs instead of trello.Inspired by an idea by Srihari Radhakrishna(n?)
Package: internationalization-py
Internationalization.pyProvides simple and powerful i18n realizationInstallationWith pippipinstallinternationalization.pyVia Gitgitclonehttps://github.com/cortelf/internationalization.pycdinternationalization.py
pythonsetup.pyinstallUsageCreate directory for yaml filesmkdiryourdirectoryWrite your yaml filesYou can use .yml or .yaml file extensionsen.ymlhello_world:Hello World!it.ymlhello_world:Ciao mondo!In root of your app initialize singletonfrominternationalizationimportInternationalizationfrominternationalization.loadersimportYAMLLoaderi18n=Internationalization()i18n.initialize(YAMLLoader("yourdirectory"))It's ready to use in any placefrominternationalizationimportInternationalizationi18n=Internationalization()english=i18n.get_language("en")italian=i18n.get_language("it")print("English:",english.hello_world)print("Italian:",italian.hello_world)
Package: internetarchive
This package installs a command-line tool namediafor using Archive.org from the command-line.
It also installs theinternetarchivePython module for programmatic access to archive.org.
Please report all bugs and issues onGithub.InstallationYou can install this module via pip:$python3-mpipinstallinternetarchiveBinaries of the command-line tool are also available:$curl-LOhttps://archive.org/download/ia-pex/ia$chmod+xia$./iahelpDocumentationDocumentation is available athttps://archive.org/services/docs/api/internetarchive.ContributingAll contributions are welcome and appreciated. Please seehttps://archive.org/services/docs/api/internetarchive/contributing.htmlfor more details.
Package: internetdownloadmanager
Internet Download ManagerPython Internet Download Manager LibraryInstallingInstall and update usingpip3:$ pip3 install internetdownloadmanagerPython 3 and newer.ExamplefrominternetdownloadmanagerimportDownloaderdownloader=Downloader(worker=25,part_size=1000000,resumable=True)downloader.download(url="http://example.com/file",path='not_required.extension')Output:INFO:internetdownloadmanager.utils:FilePath:filename.extensionFileSize:377277402Worker:25CalculatedPart:378WARNING:internetdownloadmanager.utils:DownloadStartingStatus:%3.17|TransferRate=27274Kb/s|TimeLeft:108sn|Time:8sn|AVGSpeed=15169Kb/sworker: Set how many threads work (default=25)part_size: Set piece size downloaded byte (default=1000000)resumable: Setting the download to be resumable (default=False)If something goes wrong and the process is interrupteddownloader.resume('example.file_extention.resumable')SupportPython 3.xSupports all operating systemsLinksLicense:Apache LicenseCode:https://github.com/dinceraslancom/internetdownloadmanager
Package: internet-monitor-webthing
internet_monitor_webthingA web connected local internet speed and connectivity monitorThis project implements an internet monitor agent providing a speed monitorwebthing APIas well as a connectivity monitorwebthing API.The internet_monitor_webthing package exposes an http webthing endpoint which supports reading the internet speed results
as well as an endpoint to read the internet connectivity results via http
E.g.# webthing has been started on host 192.168.0.23

# internet speed
curl http://192.168.0.23:8433/0/properties
{
   "test_period": 900,
   "downloadspeed": 215.2,
   "uploadspeed": 11,
   "ping": 17.763,
   "testdate": "2020-10-11T13:44:51.346706",
   "speedtest_server": "Mobile Breitbandnetze GmbH/Freisbach",
   "speedtest_report_uri": "http://www.speedtest.net/result/10231336474.png"
}

# connectivity 
curl http://192.168.0.23:8433/1/properties
{
   "test_url": "http://google.com",
   "test_period": 5,
   "connected": true,
   "ip_address": "95.88.57.72"
}To run this software you may use Docker orPIPpackage manager such as shown belowDocker approachsudo docker run -p 8433:8433 grro/internet-monitorPIP approachsudo pip install internet_monitor_webthingAfter this installation you may start the webthing http endpoint inside your python code or via command line usingsudo netmonitor --command listen --port 8433 --speedtest_period 900 --connecttest_period 10Here, the webthing API will be bind to on port 8433. The internet speed monitor as well as the connectivity monitor will be started by performing thelistencommand above.
The speed test will be executed each 15 min (900 sec), the connectivity test will be executed each 10 sec. THe WebThing server providesmDNSto enable clients discovering the WebThing interfaces.By running asystemd-based Linux distributionyou may use theregistercommand to register and start the webthing service as systemd unit.
By doing this the webthing service will be started automatically on boot. Starting the server manually using thelistencommand is no longer necessary.sudo netmonitor --command register --port 8433 --speedtest_period 900 --connecttest_period 10To start the speedtest monitor only just omit the --connecttest_period parametersudo netmonitor --command listen --port 8433 --speedtest_period 900
Package: internetofutils
Internet of UtilitiesInternet of Utilities (which will be shortented to IoU from now on) is a tool for a variety of utilities, including
Roundbottom (orRndb), a WIP flask extension and IDL, a very simple tool similar towget.Using RoundbottomTo make a simple roundbottom program, run the following code:rndb = Rndb()
Rndb().run_app(torun=Rndb.helloworld)

# or, for all the arguments

rndb = Rndb()

rndb.run_app(host="localhost", port=8000, route="/")compared to the longerfrom flask import Flask

app = Flask(__name__)



@app.route('/')

def hello_world():

    return 'Hello, World!'TheRndb.helloworldis an example program ran if no function to run was given, and is defined as:def helloworld():

    return 'Hello, World!'If you want to use a custom function thatyoudefined, use the following:def test123():

    return 'Hello, other world!'
	

rndb = Rndb()

rndb.run_app(host="localhost", port=8000, torun=test123, route="/")Let's step through the program.rndb = Rndb()
rndb.run_app(host="localhost", port=8000, torun=Rndb.helloworld, route="/")rndb = Rndb()instantiates Roundbottom, for the use ofrun_apprndb.run_appruns an application with the following arguments:host="localhost"is used to define the host. For a local webserver, uselocalhost. For a repl-like website, (e.g.repl.it)
use something like0.0.0.0port=8000defines the port. You can have 8080, 8000, 6000, etc.torun=Rndb.helloworlddefines which function to run. In this case, it runs the example programRndb.helloworld, which just
doesreturn "Hello, World".route="/"simply puts @app.route(route) before the function you provided withtorun.Using IDLIDL is a simple function with one argument using one library;urllib.
The function is likeidl(url).
Replaceurlwith a URL, and you will get the text content for the URL's page.
Package: internet-sabotage2
Python package to simulate internet failures for testing purposes.This fork fix error in original repository.Installation$pipinstallinternet-sabotage2Usagefrominternet_sabotageimportno_connectionwithno_connection():response=requests.get('http://httpbin.org/ip')orfrominternet_sabotageimportno_connection@no_connectiondeftest_something():passLicenseMIT