Saravanan666/pypi-org huggingface dataset:
Package: inorbit-edge
InOrbit Python Edge SDKTheInOrbit Edge SDKallows Python programs to communicate withInOrbitplatform on behalf of robots - providing robot data and handling robot actions. It's goal is to ease the integration betweenInOrbitand any other software that handles robot data.FeaturesRobot session handling through aRobotSessionPool.Publish key-values.Publish robot poses.Publish robot odometry.Publish robot path.Publish robot laser.Execute callbacks on Custom Action execution.Execute scripts (or any program) in response to Custom Action execution.Quick Startfrominorbit_edge.robotimportRobotSessionFactory,RobotSessionPooldefmy_command_handler(robot_id,command_name,args,options):"""Callback for processing custom command calls.Args:robot_id (str): InOrbit robot IDcommand_name (str): InOrbit command e.g. 'customCommand'args (list): Command argumentsoptions (dict): object that includes- `result_function` can be called to report command execution result. Ithas the following signature: `result_function(return_code)`.- `progress_function` can be used to report command output and has thefollowing signature: `progress_function(output, error)`.- `metadata` is reserved for the future and will contains additionalinformation about the received command request."""ifcommand_name=="customCommand":print(f"Received '{command_name}' for robot '{robot_id}'!.{args}")# Return '0' for successoptions["result_function"]("0")robot_session_factory=RobotSessionFactory(api_key="<YOUR_API_KEY>")# Register commands handlers. Note that all handlers are invoked.robot_session_factory.register_command_callback(my_command_handler)robot_session_factory.register_executable_commands("./user_scripts",r".*\.sh")robot_session_pool=RobotSessionPool(robot_session_factory)robot_session=robot_session_pool.get_session(robot_id="my_robot_id_123",robot_name="Python SDK Quick Start Robot")robot_session.publish_pose(x=0.0,y=0.0,yaw=0.0)InstallationStable Release:pip install inorbit-edgeDevelopment Head:pip install git+https://github.com/inorbit-ai/edge-sdk-python.gitDocumentationFor full package documentation please visitInOrbit Developer Portal.DevelopmentSeeCONTRIBUTING.mdfor information related to developing the code.The Three Commands You Need To Knowpip install -e .[dev]This will install your package in editable mode with all the required development
dependencies (i.e.tox).make buildThis will runtoxwhich will run all your tests in both Python 3.7
and Python 3.8 as well as linting your code.make cleanThis will clean up various Python and build generated files so that you can ensure
that you are working in a clean environment.
Package: inorgqm
inorqminorgqmis a python module for working performing quantum mechanical calculations using phenomenological spin operatorsInstallationFor convenience,inorgqmis available onPyPIand so can be installed usingpippip install inorgqmfirst import it into your python fileimport inorgqm.multielectron as meand then call them asme.function_name(arguments)To find information on any of the functions included ininorgqm, use thehelpcommand from within a python environment, e.g.help(me.function_name)
Package: inoryp
Instalar & Importarimport inorypfrom inoryp import classicoComo usar a funcao classica?inoryp.classico(0) # IPinoryp.classico(1) # Codigo (Status code)inoryp.classico(2) # Dicionario (Dictionary/JSON)Como usar o classico com Proxies?inoryp.classico(0, "localhost:9150", "socks5") # IP (using proxy)inoryp.classico(0, "localhost:9150", "socks5") # Codigo (using proxy)inoryp.classico(0, "localhost:9150", "socks5") # Dicionario (using proxy)Como usar as novas fucoes?inoryp.getIP() # IPinoryp.getCode() # Codigo (Status code)inoryp.getJSON() # Dicionario (Dictionary/JSON)inoryp.RetornarIP() # IPinoryp.RetornarCodigo() # Codigo (Status code)inoryp.RetornarJSON() # Dicionario (Dictionary/JSON)Como usar proxy com as novas funcoes?inoryp.RetornarIP("localhost:9050", "socks5") # IP (using proxy)inoryp.RetornarCodigo("localhost:9050", "socks5") # Codigo (Status code  using proxy)inoryp.RetornarJSON("localhost:9050", "socks5") # Dicionario (Dictionary/JSON using proxy)Suporte para os metodosHTTPHTTPSSOCKS4SOCKS5Exemplo sem Proxy!import inoryp

InformaIP = inoryp.classico(0)
print("Seu IP: " + InformaIP)Seu IP: 1.1.1.1Exemplo com Proxy!import inoryp

InformaIP = inoryp.classico(0, "localhost:9150", "socks5")
print(" Seu IP: " + InformaIP)Seu IP: 45.12.32.1Segundo exemplo, com proxy:import inoryp

informaIP_Proxy = inoryp.getIP("localhost:9150", "socks5")
print(" Seu IP: " + informaIP_Proxy)Seu IP: 45.12.32.1Terceiro exemplo, com proxy:import inoryp

informaIP_Proxy = inoryp.RetornarIP("localhost:9150", "socks5")
print(" Seu IP: " + informaIP_Proxy)Seu IP: 45.12.32.1Registro de Alteracoes:Adicionado: Novas funcoes como: "RetornarIP, RetornarCodigo e RetornarJSON";Adicionado: Sistema de identificacao de idiomas;Adicionado: Traducao para os idiomas Portugues(Portugueses), Russo(Russian), Ingles(English);Corrigido: Alguns bugs foram resolvido da versao anterior;Corrigido: Foi renomeado a duplicata da funcao "inoryp" e ajustado para "classico";Corrigido: A resposta de cada funcao foi refeita para melhorar o desempenho do codigo;Removido: Foi removido uma unidade da versao como 1.0.2.6 para 2.0.16Saiba mais:Discord:https://discord.gg/CHsnjZB3EcDesenvolvidor: R0htg0r
Package: inotify-lite
inotify_liteinotify_liteprovides a Python 3 wrapper around the LinuxinotifyAPI. This lets you monitor filesystem events, and execute callbacks. Seeinotify(7).homepagedocumentationissue trackerRequiresLinux >= 2.6.13 (or glibc >= 2.5)Python >= 3.6InstallationInstallinotify_liteby running:pip install inotify_liteUsageTo useinotify_lite:Create anInotifyinstance, passing the name of the files (or directories) you wish to watch;Register a handler (or many), a callable of two arguments:anInotifyinstance; andanInotifyEventinstance.callInotify.readto read once, orInotify.watchto watch until a keyboard interrupt is received.Examples:defmy_callback(_,event):print(event.name)print(event.mask)flags=INFlags.CREATE|INFlags.DELETEwatcher=Inotify("/home/",watch_flags=flags)watcher.register_handler(INFlags.ALL_FLAGS,my_callback,exclusive=False)watcher.watch()defmy_callback(_,event):print(event.name)print(event.mask)watcher=TreeWatcher("/home/",watch_flags=INFlags.OPEN,timeout=10)# Watch the home directory for OPEN events with a 10 second timeout.watcher.register_handler(INFlags.ALL_FLAGS,my_callback,exclusive=False)watcher.read_once()TheTreeWatcherclass is provided to recursively watch directories.See thedocumentationfor details and options.ContributeContributions are welcome. Open anissuefor visibility.To install the dev requirements runpython setup.py-e.[dev].To run the tests runmake test.Code should be formatted with black.Issue Tracker:https://github.com/jams2/inotify_lite/issuesSource Code:https://github.com/jams2/inotify_lite.gitSupportOpen anissue.LicenseThe project is licensed under GPLv3.
Package: inotifyrecursive
Inotify Recursive - Recursive inotify watches for PythonInotify Recursive is a Python package that offers a simple way to watch a directory-tree recursively for file changes
via the inotify functionality of the Linux kernel. It uses the inotify_simple package
to set and remove the inotify watches and also incorporates its whole functionality. The package is written in
Python and licensed as open-source under the LGPL version 3.At the moment the main purpose of Inotify Recursive is to provide the file watching functionality forSynoindex Watcher, a small tool that automatically updates the media index of Synology DiskStations.This Python package is still an alpha! Its core functionality has been tested and is working, but there could still be undiscovered bugs. Also breaking interface changes are likely to happen, so it is not recommended to use it in
production projects, yet.FeaturesSmallAbout 150 lines of code (including comments)PowerfulAll features ofinotify_simpleplus recursive watchingAgnosticPython 2 and Python 3 compatible (minimum tested version is 2.7)InstallationThe recommended installation method is via pip:python -m pip install --upgrade inotifyrecursiveYou can use the same command to upgrade Inotify Recursive from an older version.This will also install its dependency inotify_simple.DocumentationPleaseread the docs for inotify_simplefirst, since the basic usage is the
same.TheINotifyclass of Inotify Recursive provides three additional methods, which are useful, if a directory shall be
watched recursively:inotify.add_watch_recursive(path, mask, filter = None)pathThe path to watchmaskThe mask of events to watch forfilterA function to ignore certain sub-directoriesReturns the descriptor for the newly created watch of the directory where the given path points to. Unlikeadd_watch()this function also creates watches for all sub-directories below it. The descriptors of the sub-watches are not
returned.The filter function is optional. It takes the name of the file or directory and the descriptor of the watcher of the parent directory. The filter returns a boolean value, which describes whether the directory shall be watched (True) or ignored (False). If no filter is set, all files and sub-directories will be watched.inotify.rm_watch_recursive(wd)wdThe watch descriptor to removeRemoves the watch with the given descriptor and all associated sub-watches. Should be used for any watch that has been
created byadd_watch_recursive().inotify.get_path(wd)wdThe watch descriptor the path is fetched forReturns the absolute path of the directory associated to the watch with given descriptor.Copyright 2019,2020 Torben Haase <https://pixelsvsbytes.com>
Package: inotify-service
inotify_service can be used to build a Linux service similar to the outdated incron.It’s based on the (simple and efficient) python asyncinotify package.We (Majerti) use it in production with a low load. We don’t have any feedback on performance to provide.Installapt-get install python3-venv
python3 -m venv /usr/local/inotify_service_venv
source /usr/local/inotify_service_venv/bin/activate
pip install inotify_serviceSetupYou can download a suitable log.conf sample file on the github page :https://github.com/majerteam/inotify_service/mkdir -p /etc/inotify_service/conf.d
cp log.conf /etc/inotify_service/Add yaml configuration files for the directories you want to watch.Each yaml file can contain one or more configurations placed into a yaml list-script:"sleep2|echo{path}>/tmp/titi.log"directory:"/tmp"pattern:"[a-z0-9_]+\\.pdf$"events:-"CLOSE_WRITE"-"MOVED_TO"-script:"echo{path}"directory:"/home/gas/tmp/"events:-"CLOSE_WRITE"Mandatory parameters:script: The command to launch, the following parameters are passedpath : The absolute path on diskfilename: The name of the filename : The event name (CLOSE_WRITE …)directory: The directory to watchevents: List of events that should fire the scriptOptionnal parameters:pattern: A regexp pattern used to match the file names that can be managedSystemd Service SetupIf you used the same directories as here above you can just use the .service file that you can download in the github repository.https://github.com/majerteam/inotify_service/cp inotify_service.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable inotify_service.service
systemctl start inotify_service.service
systemctl status inotify_service.service  # Default configuration should print the directories that are watched
Package: inotifyx
inotifyx is a simple Python binding to the Linux inotify file system event
monitoring API.Documentation is provided in the module.  To get help, start an interactive
Python session and type:>>> import inotifyx
>>> help(inotifyx)You can also test out inotifyx easily.  The following command will print events
for /tmp:python -m inotifyx /tmpTests can be run via setup.py:./setup.py testNote that the module must be built and installed for tests to run correctly.
In the future, this requirement will be lifted.
Package: inotipy
inotipy is a high-level Python wrapper for the Linux[`inotify(7)`](http://man7.org/linux/man-pages/man7/inotify.7.html) API,that is designed to work with[`asyncio`](https://docs.python.org/3/library/asyncio.html) event loopsin Python 3.5 or later. This lets you efficiently monitor one or morefiles or directories for interesting happenings, without having tocontinually poll the filesystem. But note, however, that if events arecoming too thick and fast, the kernel is liable to start droppingthem, which will be reported to you by events with the `IN.Q_OVERFLOW`bit set.Basic Usage===========Let us say there is a directory, initially empty, called “test”.The following script monitors that for changes:import sysimport asyncioimport inotipyloop = asyncio.get_event_loop()paths_to_watch = ["test"] # edit as necessaryasync def mainline() :watcher = inotipy.Watcher.create()for path in paths_to_watch :watcher.watch(path, inotipy.IN.ALL_EVENTS)#end forwhile True :event = await watcher.get()sys.stdout.write("Got event: %s\n" % repr(event))#end while#end mainlineloop.run_until_complete(mainline())Suppose we start the script, and then in another terminal sessionperform the following series of command-line actions:$ echo hi >test/f1$ mv test/f1 test/f2$ cat test/f2$ rm test/f2$ rmdir testthen we should see the script report an event stream something likethis:Got event: Event(1, [<EVENT_BIT.CREATE: 8>], 0, 'f1')Got event: Event(1, [<EVENT_BIT.OPEN: 5>], 0, 'f1')Got event: Event(1, [<EVENT_BIT.MODIFY: 1>], 0, 'f1')Got event: Event(1, [<EVENT_BIT.CLOSE_WRITE: 3>], 0, 'f1')Got event: Event(1, [<EVENT_BIT.MOVED_FROM: 6>], 217185, 'f1')Got event: Event(1, [<EVENT_BIT.MOVED_TO: 7>], 217185, 'f2')Got event: Event(1, [<EVENT_BIT.OPEN: 5>], 0, 'f2')Got event: Event(1, [<EVENT_BIT.ACCESS: 0>], 0, 'f2')Got event: Event(1, [<EVENT_BIT.CLOSE_NOWRITE: 4>], 0, 'f2')Got event: Event(1, [<EVENT_BIT.DELETE: 9>], 0, 'f2')Got event: Event(1, [<EVENT_BIT.DELETE_SELF: 10>], 0, '')Got event: Event(1, [<EVENT_BIT.IGNORED: 15>], 0, '')That should give you the basic flavour. For more elaborate examples,see my `inotipy_examples` repo([GitLab](https://gitlab.com/ldo/inotipy_examples),[GitHub](https://github.com/ldo/inotipy_examples)).There is more functionality available: see the `inotify(7)` man pagefor more details, and of course the documentation in `inotify.py`itself.Lawrence D'Oliveiro <ldo@geek-central.gen.nz>2018 March 11
Package: inouk.recipe.odoo-cmd
Detailed Documentation######################=====================inouk.recipe.odoo_cmd=====================inouk.recipe.odoo_cmd is an anybox.recipe.odoo console script thatadds the odoo.py command to a buildout Odoo server.inouk.recipe.odoo_cmd supports up to Odoo 12.Installation============In the openerp section your buildout.cfg, add inouk.recipe.odoo_cmd egg:::[openerp]recipe = anybox.recipe.openerp:server...# ask buildout to get the packageeggs = inouk.recipe.odoo_cmd# ask the odoo recipe to create a script from inouk.recipe.odoo_cmdopenerp_scripts = odoo_cmd=odoo.pyThen buildout your server.Usage=====Once your buildout is finished, you can launch *bin/odoo.py*.By typing bin/odoo.py you will be able to follow the Odoo developer tutorial and use the scaffold command.Try bin/odoo.py scaffoldLicense=======inouk.recipe.odoo_cmd is licensed under the GNU Affero General Public License v3. See LICENCE.txtContributors############- Cyril MORISSEChange history##############=====0.2 on 2018/01/26=====- Adapt to run on latest Odoo (11 and 12)=====0.1.1 on 2016/11/17=====- Fix readme.rst lowercased name that prevented proper installation=====0.1.0=====- Initial release
Package: inouk.recipe.patch
Detailed Documentation======================History-------This recipe is a fork of yaco.recipe.patch.Supported options-----------------The recipe supports the following options:patchPath to patchRecipe supports a list of patch one by line.Eg.patch = path/sub/patch1.patch   # comments are supported toopath/sub/patch2.patch   # another one...patchlocationLocation to apply patchbinary-patchLocation of patch binary. Use patch in $PATH by default if any is specified.update_mode'apply' : patch will be re-applied at each update'reverse_then_apply': path will be reversed then reapply'do_nothing' (DEFAULT): ...Example usage-------------We'll start by creating a buildout that uses the recipe::>>> write('buildout.cfg',... """... [buildout]... parts = testpatch...... [testpatch]... recipe = inouk.recipe.patch... patch = %(patch)s... patchlocation = %(patchlocation)s... """ % { 'patch' : 'patch/example-test.patch', 'example/' : 'value2'}... update_mode = apply...)Running the buildout gives us::>>> print 'start', system(buildout)Installing testpatch.Contributors============"Cyril MORISSE", Twitter: @cmorisse"Assem BAYAHI", http://www.linkedin.com/in/bayahiassem/enChange history==============0.1.2 (2014-06-28)----------------- Add readme.txt- Add support for patches list in patch directive0.1.1 (2013-06-02)----------------- Add support for update and add update_mode parameter0.1 (2013-05-28)----------------- inouk.recipe.patch Initial version. Fork of yaco.recipe.patch
Package: inoutlogger
InOutLoggerDecorator based utility to implement Entry-Exit logs for methodsGetting StartedPrerequisitespython>=3.6InstallingpipinstallinoutloggerA Simple Examplefrominoutlogger.utilsimportInOutLogger,Loggerfrominoutlogger.decoratorsimportentry_exit_log# With Single LoggerLOGGER# Your Application Loggerlogger1=Logger(log_handler=LOGGER,name="application_logger")InOutLogger(logger1)@in_out_log()deftest():print("Demo Single log handler")test()# See Log file for output# With Multiple LoggerLOGGER1# Your Application LoggerLOGGER2# Other Loggerlogger1=Logger(log_handler=LOGGER1,name="application_logger")logger2=Logger(log_handler=LOGGER2,name="Other")InOutLogger([logger1,logger2])@in_out_log(handler_name="Other")deftest():print("Demo Multiple log handler")test()# See Log file for outputLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: inox
Stainless neural networks in JAXInox is a minimalJAXlibrary for neural networks with an intuitive PyTorch-like syntax. As withEquinox, modules are represented as PyTrees, which enables complex architectures, easy manipulations, and functional transformations.Inox aims to be a leaner version ofEquinoxby only retaining its core features: PyTrees and lifted transformations. In addition, Inox takes inspiration from other projects likeNNXandSerketto provide a versatile interface.Inox means "stainless steel" in French 🔪InstallationTheinoxpackage is available onPyPI, which means it is installable viapip.pip install inoxAlternatively, if you need the latest features, you can install it from the repository.pip install git+https://github.com/francois-rozet/inoxGetting startedModules are defined with an intuitive PyTorch-like syntax,importjaximportinox.nnasnninit_key,data_key=jax.random.split(jax.random.key(0))classMLP(nn.Module):def__init__(self,key):keys=jax.random.split(key,3)self.l1=nn.Linear(3,64,key=keys[0])self.l2=nn.Linear(64,64,key=keys[1])self.l3=nn.Linear(64,3,key=keys[2])self.relu=nn.ReLU()def__call__(self,x):x=self.l1(x)x=self.l2(self.relu(x))x=self.l3(self.relu(x))returnxmodel=MLP(init_key)and are compatible with JAX transformations.X=jax.random.normal(data_key,(1024,3))Y=jax.numpy.sort(X,axis=-1)@jax.jitdefloss_fn(model,x,y):pred=jax.vmap(model)(x)returnjax.numpy.mean((y-pred)**2)grads=jax.grad(loss_fn)(model,X,Y)However, if a tree contains strings or boolean flags, it becomes incompatible with JAX transformations. For this reason, Inox provides lifted transformations that consider all non-array leaves as static.model.name='stainless'@inox.jitdefloss_fn(model,x,y):pred=inox.vmap(model)(x)returnjax.numpy.mean((y-pred)**2)grads=inox.grad(loss_fn)(model,X,Y)For more information, check out the documentation atinox.readthedocs.io.ContributingIf you have a question, an issue or would like to contribute, please read ourcontributing guidelines.
Package: inparse
In.parse=========0.1.0Open Collaborative AI Driven Parser builder for Web Scraping, Data Extraction and Crawling,Knowledge GraphInstalling----------Install and update using ``pip``:`pip install -U inparse`Parser Generator-----------------http://inparse.comMotivation----------1. Most painful thing of Web Data Extraction is to write parser rule. the Inparse try togenerate the parser by AI according the training web pages.2. Commercial Universal Parser work good in Statistics, but failed in my case .And blackbox to user.Inparser create parser for special website ,web page category。And be correctable and improvable online by yourself.3. Open and free to create parser .Parser rule can be cached locally without remote serverif you have concern.4. You will not be charged by usage. Run parser in your own CPU.Example===============================```pythonfrom inparse import Inparsep=Inparse('b45beddc',  #parser no is generator by inparse.com parser builder.'d50cb533f69b6a78892afbd093f95fc1')  #access token can be found in your user page  .d=p.parse_url('https://qz.com/india/1413291/trulymadly-ceo-on-how-dating-apps-like-bumble-india-must-localise/')Inparse.pretty_print(d)```**Or parse in raw html**```pythonfrom inparse import Inparseimport requestsp=Inparse('b45beddc',  #parser no is generator by inparse.com parser builder.'d50cb533f69b6a78892afbd093f95fc1')  #access token can be found in your user page  .html=requests.get('https://qz.com/india/1413291/trulymadly-ceo-on-how-dating-apps-like-bumble-india-must-localise/').textd=p.parse(html)Inparse.pretty_print(d)```Below is output of Article data extraction```{   'article_body': '<div><p>Last week, American dating app <a ''href="https://qz.com/india/1413051/priyanka-chopra-invests-in-dating-app-bumble-to-rival-tinder/">Bumble ''It’s from smaller cities. And varied people are coming ''from different backgrounds. So that’s really ''encouraging.</p></div>','author': 'Kuwar Singh','publish_date': None,'title': 'Young Indians are using dating apps for so much more than just ''dating','top_image': [   'https://cms.qz.com/wp-content/uploads/2018/10/AP_900509923043-e1538971405267.jpg?quality=75&strip=all&w=410&h=231']}```More about Inparse===============Contributing------------You are welcome to port this SDK to Java, Go ,or any other programming languages.Donate------Links-----
Package: inpoly-cython
inpoly-cython / Original: https://github.com/dengwirda/inpoly-python$pipinstallinpoly-cythonProjectfrom:https://github.com/dengwirda/inpoly-pythonIonlyaddedtheautomaticcompilationofthefastkernels:https://github.com/dengwirda/inpoly-python#fast-kernelsLicenseTerms(fromhttps://github.com/dengwirda/inpoly-python)Thisprogrammaybefreelyredistributedundertheconditionthatthecopyrightnotices(includingthisentireheader)arenotremoved,andnocompensationisreceivedthroughuseofthesoftware.Private,research,andinstitutionaluseisfree.YoumaydistributemodifiedversionsofthiscodeUNDERTHECONDITIONTHATTHISCODEANDANYMODIFICATIONSMADETOITINTHESAMEFILEREMAINUNDERCOPYRIGHTOFTHEORIGINALAUTHOR,BOTHSOURCEANDOBJECTCODEAREMADEFREELYAVAILABLEWITHOUTCHARGE,ANDCLEARNOTICEISGIVENOFTHEMODIFICATIONS.DistributionofthiscodeaspartofacommercialsystemispermissibleONLYBYDIRECTARRANGEMENTWITHTHEAUTHOR.(Ifyouarenotdirectlysupplyingthiscodetoacustomer,andyouareinsteadtellingthemhowtheycanobtainitforfree,thenyouarenotrequiredtomakeanyarrangementwithme.)DISCLAIMER:NeitherInortheUniversityofSydneywarrantthiscodeinanywaywhatsoever.Thiscodeisprovided"as-is"tobeusedatyourownrisk.Example:frominpoly_cythonimportinpoly2importnumpyasnpxmin,xmax,ymin,ymax=0,1,0,1x0,y0,x1,y1=0.5,0.5,0,1#define any n-sided polygonp=np.array([[xmin,ymin],[xmax,ymin],[xmax,ymax],[xmin,ymax],[xmin,ymin]])#define some coordscoords=np.array([[x0,y0],[x1,y1]])#get boolean mask for points if in or on polygon perimeterisin,ison=inpoly2(coords,p)