Saravanan666/pypi-org huggingface dataset:
Package: inputs
Inputsaims to provide cross-platform Python support for keyboards, mice and gamepads.InstallInstall through pypi:pip install inputsOr download the whole repository from github:git clone https://github.com/zeth/inputs.git
cd inputs
python setup.py installAboutThe inputs module provides an easy way for your Python program to
listen for user input.Currently supported platforms are Linux (including the Raspberry Pi
and Chromebooks in developer mode), Windows and the Apple Mac.Python versions supported are all versions of Python 3 and your
granddad’s Python 2.7.To get started quickly, just use the following:from inputs import devicesFor more information, read the documentation atReadTheDocs(Also available in the docs directory of the repository)To get involved with inputs, please visit the github project at:https://github.com/zeth/inputs
Package: input-simple
This is Basically a Library for People who want to simplify the process of taking input in different formats and from different file types in Python.For more Information Visit:https://github.com/saikatsahana77/input_simpleChange Log1.0.0 (07/09/2020)First release1.0.1 (08/09/2020)Fixed Minor Bugs1.0.2 (09/09/2020)Fixed Some Minor Bugs
Package: inputty
inputtyA module to facilitate CLI inputs.InstallationpipinstallinputtyVersion HistoryVersion 1.0.5 29 Jun 2023xxxVersion 1.0.4 18 June 2023Colour cuesVersion 1.0.3 6 June 2023Actually make changesVersion 1.0.2 6 June 2023Allow the capture of a stringAdd extra args with INTEGERSAdd space to end of promptVersion 1.0.1 31 May 2023ImplementcallRefactor messagesVersion 1.0.0 30 May 2023Major refactorImplement testsVersion 0.0.4 9 May 2023Fix integer index bug (in _get_valid_input_list)Version 0.0.3 9 May 2023Fix  and remove self.allow_nullVersion 0.0.2 9 May 2023Access .srcVersion 0.0.1 9 May 2023Improve accessVersion 0.0.0 9 May 2023Initial version
Package: inputvalidate
inputvalidateDo you always find yourself having to write extra code every project to validate the input given by users? Then use inputvalidate -
a Python package containing various functions to validate user input.Calvin Chancalvinchan4370z@gmail.comMIT LicenseExample UsageCode:frominputvalidateimportget_intuser_age=get_int('Your age (0-99 yrs): ',min=0,max=99)print(f'You are{user_age}years old.')Terminal:Your age (0-99 yrs): twelve
Your age (0-99 yrs): 20.5
Your age (0-99 yrs): -2
Your age (0-99 yrs): 16
You are 16 years old.
$ |Functionsget_intget_int(prompt,**kwargs)Prompts user for an input, expecting an int. Repeats until an int is properly inputted, then returns the int.kwargs:min: Set min value acceptablemax: Set max value acceptableget_floatget_float(prompt,**kwargs)Prompts user for an input, expecting a float. Repeats until a number is properly inputted, then returns the input as a float.kwargs:min: Set min value acceptablemax: Set max value acceptableget_numberget_number(prompt,**kwargs)Prompts user for a number. Repeats until a number is properly inputted, then returns the input as an int/float, depending on what was inputted.kwargs:min: Set min value acceptablemax: Set max value acceptableget_stringget_string(prompt,**kwargs)Prompts user for an input, expecting a string. Repeats until an string is properly inputted, then returns the stringkwargs:min: Set min length acceptablemax: Set max length acceptablenospace: Set to True if input must contain no spaces. Default: Falseget_boolget_bool(prompt)Prompts user for a True/False answer. Repeats until user inputs True or False, ignoring caps, then returns True or Falseget_yesnoget_yesno(prompt)Prompts user for a yes/no answer. Repeats until the first letter of the input is y/n, ignoring caps, then returns 'y' / 'n'Aliases:get_ynget_tfget_tf(prompt)Prompts user for a t/f answer. Repeats until the first letter of the input is t/f, ignoring caps, then returns 't' / 'f'get_wordget_word(prompt)Prompts user for a single word of only alphabet letters. Repeats until a word is properly inputted, then returns the word as a stringget_charget_char(prompt)Prompts user for a single ASCII character. Repeats until a character is properly inputted, then returns the char as a string
Package: inpystem
inpystem python libraryDescriptioninpystem is an open source Python library which provides tools to reconstruct partially sampled 2D images as multi-band images.inpystem's core is a set of reconstruction techniques such as interpolation, regularized least-square and dictionary learning methods. It provides a user interface which simplify the use of these techniques.inpystem is mainly at the destination of the microscopy community so that it highly depends on the good libraryHyperSpy.This library was originally developed by its creator Etienne Monier to handle EELS data and develop reconstruction algorithms. This was proposed afterwards to the microscopy community as a tool.DocumentationThis project documentation is hosted byReadTheDocs. To access to it, please followthis link.LicenceThis library is distributed under the MIT license.
Package: inpython-package
READMEce projet 'inpython-package' rassemble tous les packages et modules python exploitÃ©s par Integrix .inpython.ingarphpackage pour la gestion avec MS-Graph.How do I get set up?les bases de u2Python c.f.wiki sys/proc/install u2ptyhonU2Python par RocketSoftwarevÃ©rifier la version de u2Python, au TCL uv>pythonimportsyssys.version# ->>  '3.4.1 (default, Feb 18 2015, 13:36:51) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]'exit()Install inPackages into U2pythonpip install inpython-package
Package: inqbus.bannerrotation
Introductioninqbus.bannerrotation simple, ajax based bannerrotation viewlet for
plone. It uses the jQuery Cycle Plugin and its original implementation
can be found here:http://jquery.malsup.com/cycle/The Viewlet automaticly take the images out of a predefined folder(Default: banners). This have the benifit to define several
bannerrotations for several parts of the website. Just add another
banners folder at the possition you want. It automaticly takes the
next bannersfolder, he find upwards the way to plonesites root folder.InstallingInstalling without buildoutInstall this package in either your system path packages or in the
lib/python directory of your Zope instance. You can do this using
either easy_install or via the setup.py script.Installing with buildoutIf you are usingbuildout_, just add it to your eggs and your zcml
in the instance part:[instance]
eggs = inqbus.bannerrotation
...
zcml = inqbus.bannerrotationinqbus.bannerrotation use a z3c.form view for the configlet. To make
sure you get the right versions, you might want to add the following
into your buildout.cfg to:[buildout]
...
extentds =
...
http://good-py.appspot.com/release/plone.app.z3cform/0.5.0Now, just run ‘’bin/buildout’’ in your instance rootfolder to
get the package and all of it dependencies. You can now install it via
the quickinstaller.ConfigurationAt the moment, there are two ways to configure the viewlet. The first
and more comfortable way is to go to plone control_panel and choose
‘Bannerrotation Viewlet’. The other way to configure it is via a
propertysheet, which can be found in the ‘’Zope Management Interface’’
under ‘portal_properties’ > ‘bannerrotation_properties’.You are able to edit the following parameter:EffectSpecify the effect while changing the image. There are 28 possible
values.(Default: fade)TimeoutSpecify the time between the imagechanges in milliseconds.(Default: 6000)SpeedSpecify the animationspeed in milliseconds.(Default: 1000)EnabledEnable or disable the bannerrotation(Default: True)RandomEnable or disable randomization of the images.(Default: False)The following option is only editable via ZMI:banner_source_idDefine the id of the folder, that should be taken as sourcefolder.(Default: banners ~ this folder is automaticly created )Copyright and CreditsjQuery Cycle is developed and maintained by M. Alsup and is
dual-licensed under MIT and GPL:http://jquery.malsup.com/cycle/The Author of inqbus.bannerrotation: Max Brauer (max.brauer@inqbus.de)Maintainer: Thomas Massmann, Maik DerstappenChangelog1.1 (2011-05-09)added Package Descriptionfixed some install_requires1.0 (2011-04-29)Initial release
Package: inqbus.collection.proxy
IntroductionAllow Plone Collections to proxy the content to not switch the context.
The proxied content is shown directly in the context of the collection.
If the user klick on a collectionitem, only the url change but neither
the navigation nor the breadcrums are modified.To activate the proxy just edit a collection, go to the settings and
there you will find a checkbox.InstallingIf you are using buildout, just add it to your eggs and your zcml in
the instance part:[instance]
eggs = inqbus.collection.proxy
...
zcml = inqbus.collection.proxyNow, just run ‘’bin/buildout’’ in your instance rootfolder to get the
package and all of it dependencies. After that, you are able to install
it via the quickinstaller.Copyright and CreditsThe Author of inqbus.collection.proxy: Max Brauer <max.brauer@inqbus.de>Maintainer: Thomas Massmann, Maik DerstappenChangelog1.0b1Initial release
Package: inqbus.folderlistings
Introductioninqbus.folderlistings provides a folderlisting view for collections
and folders. With this view you have the possibility to sort on title,
author, type and modificationdate like in a databrowser.InstallingTo install it, just add it to your buildout:[instance]
eggs = inqbus.folderlistings
...
zcml = inqbus.folderlistingsand run ‘’bin/buildout’’ from your plone root directory.Features planed for the next versionchange the sortorder to ascending/descending via click on the little
arrowsbatching the items to a configurable amountCopyright and CreditsThe Author of inqbus.folderlistings: Max Brauer (max.brauer@inqbus.de)Maintainer: Thomas Massmann, Maik DerstappenChangelog1.0Initial release
Package: inqbus.ocf.generic
Version:0.1Download:http://pypi.python.org/pypi/inqbus.ocf.genericKeywords:python, OCF, resource agents, framework, pacemaker,OverviewInstallationDocumentationBugs and IssuesCreditsLicenseChangelogOverviewInqbus.ocf.generic is a framework that helps you writing OCF compatible resource
agents for e.g. the Pacemaker failover management system.The inqbus.ocf.generic framework keeps away from you the gory details
you have to go into writing an OCF compatible resource agent.
Powerfull base classes bring to you:support of the complete set of OCF exitcodes and their respective business logikOCF Paramter classes for integer, string, etc. valuespredefined generic OCF handlers (meta-data, validate)the generation of the XML meta data is done for you automagicallyeasy addition of handlers for e.g. start/stop/statusinheritance of resource agents: encapsulate agent business logic and share it among similiar reasource agentsInstallationPlease refer to the installation of theinqbus.ocf.agents package.DocumentationThe documentation of the inqbus.ocf.generic API is still in progress.
Please refere in the meanwhile to inqbus.ocf.agents which is a good example
of using inqbus.ocf.generic.Bugs and IssuesThis software is work in progress. Please help us to improve it:https://bitbucket.org/inqbus/inqbus.ocf.genericCreditsI have stolen lots of ideas from Michael Samuel’socfra framework.LicenseThis software is licensed under the New BSD License. See the LICENSE.txt file in
the top distribution directory for the full license text.Changelog0.1 (unreleased)Initial release
Package: inqbus.plone.fastmemberproperties
Introductionget the FastmemberpropertiesToolfmp_tool = queryUtility(IFastmemberpropertiesTool, ‘fastmemberproperties_tool’)get a list of all memberpropertiesmember_props = fmp_tool.get_all_memberproperties()>>> props = fmp_tool.get_all_memberproperties()
>>> props
<persistent.dict.PersistentDict object at 0xd9f8e6c>>>> props.items()
[('maik', <persistent.dict.PersistentDict object at 0xd9fe56c>)]>>> props.keys()
['maik']>>> props['maik']
<persistent.dict.PersistentDict object at 0xd9fe56c>>>> pp(props['maik'].items())
[('visible_ids', 0),
 ('last_login_time', DateTime('2000/01/01')),
 ('language', ''),
 ('home_page', ''),
 ('listed', 'on'),
 ('wysiwyg_editor', 'Kupu'),
 ('error_log_update', 0.0),
 ('location', ''),
 ('portal_skin', ''),
 ('fullname', 'Maik Derstappen 2'),
 ('login_time', DateTime('2000/01/01')),
 ('email', 'maik.derstappen@derstappen-it.de'),
 ('ext_editor', ''),
 ('description', '')]or get properties for one member by idmember_props = fmp_tool.get_properties_for_member(‘example_member’)Changelog1.5 (03/09/2014)Plone 4.3 compatibility
[maartenkling]1.4 (14/02/2011)add remove_memberproperties to remove members from cache if they are removed in plone, fix eventhandly for membrane members on creation time
[MrTango]1.3 (14/02/2011)Bugfix Release, upgrade highly recommended!
[MrTango]1.2 (06/01/2011)Bugfix Release
[MrTango]1.0 (19/04/2010)Initial release
[MrTango]
Package: inqbus.plone.panorama
============Introduction============With inqbus.plone.panorama you can easy include panorama images in Kupu andTinyMCE.How to use inqbus.plone.panorama?----------------------------------------------------------------------1. install inqbus.plone.panorama2. with Kupu & co edit a page and add an panorama image3. mark the panorama image and set Panorama as style4. after saving the page you should have an animated panorama in your page5. you can change some settings under/portal_properties/inqbus_plone_panorama_properties in the ZMISee it here in action in inqbus.plone.panorama in our demo:http://www.inqbus-hosting.de/open-source-software/inqbus.plone.panorama/Changelog=========0.1 (2009-06-16)----------------* Initial release
Package: inqbus.zopeftp
Overviewinqbus.zopeftp add a config parameter which can be used in zope.conf (Zope 2), that allow one to configure a start path for ftp users, like the path to a plone site. Then if you use a ftp-client to connect to your zope, first the directory is change to the configured path and then the user is authentificated there. So it’s enough that the user exist in this place (in a plone site for example), there is no need anymore to add this member in the zope root acl_users.Install inqbus.zopeftpAdd inqbus.zopeftp to you eggs and zcml lists in you buildout.cfg:eggs =
    inqbus.zopeftp

zcml =
    inqbus.zopeftpSet the FTP start pathYou can add the folowing config entry in your buildout.cfg:zope-conf-additional =
    <product-config inqbus.zopeftp>
        ftppath site/ftp-docs
    </product-config>or just add these lines to your zope.conf:<product-config inqbus.zopeftp>
    ftppath site/ftp-docs
</product-config>HISTORY1.0.1 (2010-11-07)fix package release1.0 (2010-11-07)initial release
Package: inquant
-- coding: utf-8 --from inquant import *class MyStrategy(StrategyTemplate):
"""我的策略"""def __init__(self,strategyID,logPath):
    """构造函数"""
    super(MyStrategy,self).__init__(strategyID,logPath)
    self.isfirst = 0

def OnTick(self, data):
    """Tick数据处理 注data参数一次只有一条tick数据"""
    self.WriteInfo('tick : {0} {1} {2}'.format(data.Symbol,data.LocalTime,data.Exchange))
    pass

def OnBar(self, data):
    """Bar数据处理 注data参数一次只有一条bar数据"""
    self.WriteInfo('bar : {0} {1} {2}'.format(data.Symbol,data.LocalTime,data.Exchange))

    resp10 = strategy.GetLastBar(data.Symbol,data.Exchange,data.BarType,5)

    if self.isfirst == 0:
        self.isfirst = 1
        resp4 = self.SendOrder(data.Symbol,data.Exchange,OrderSide.Sell,data.LastPx,1,OrderType.LMT,Offset.Close)
    pass

def OnOrderChanged(self,order):
    """成交回报处理"""
    self.WriteInfo('OrderChanged : {0} {1} {2}'.format(order.Symbol,order.Price,order.Exchange))
    pass

def TaskCallback(self):
    print(datetime.now().time())ifname== 'main':
#新建策略
strategy = MyStrategy('2-xk1211231243242314123534523453','/home/admin/logs/测试策略/')strategy.SetMarketStatus(1)

ret = strategy.GetHisBar("rb1905",Exchange.SHFE,60 * 60,1000,20181015150000)

#创建定时任务
strategy.CreateScheduler(strategy.TaskCallback,[90000,161005])

contracts = strategy.GetFutContracts('rb',Exchange.SHFE,-1)
contracts = strategy.GetFutContracts('rb',Exchange.SHFE,0)
contracts = strategy.GetFutContracts('rb',Exchange.SHFE,1)
contracts = strategy.GetFutContracts('rb',Exchange.SHFE,2)
contracts = strategy.GetFutContracts('rb',Exchange.SHFE,3)

a1 = strategy.Subscribe(["rbM.SHFE.Tick.0", "rbM.SHFE.Bar.300"])

strategy.WriteInfo(u"开始启动策略...")
resp = strategy.Start()
if not resp:
    strategy.WriteError(u"策略启动失败！！")
    input(u"按任意键退出")
    sys.exit()
strategy.WriteInfo(u"策略启动成功")

resp4 = strategy.SendOrder('rb1905',Exchange.SHFE,OrderSide.Buy,0,1,OrderType.MKT,Offset.Open)
resp5 = strategy.CancelOrder('7ba0ab1c8319442299c835269f600f3f')

resp1 = strategy.GetAssetInfo()
resp2 = strategy.GetOrders()
resp3 = strategy.GetPositions()

resp6 = strategy.GetOrder('7ba0ab1c8319442299c835269f600f3f')
resp7 = strategy.GetOpenOrders()
resp8 = strategy.GetContract('rb1905',Exchange.SHFE)
resp9 = strategy.GetLastTick('rb1905',Exchange.SHFE,2)
resp10 = strategy.GetLastBar('rb1905',Exchange.SHFE,300,5)

input(u"策略执行中，按任意键退出...")
Package: inquant.portlet.contextualrecentitems
OverviewA Plone Portlet which does an adapter lookup to fetch
theportal typeto use in the query for recently changed
portlets.RationaleThis is scratching an itch of a customer, which wants to
display only recent “news” on a news page etc.
Instead of hard-coding the portal type, we do a adapter lookup.UsageUsers then can register adapters like:<adapter
    for=".interfaces.INewsArea
         zope.publisher.interfaces.browser.IBrowserRequest
         zope.publisher.interfaces.browser.IBrowserView
         "
    provides="inquant.portlet.contextualrecentitems.interfaces.ITypeNameProvider"
    factory=".adapters.FeedItemTypeProvider"
    />

<five:implements
    class="Products.feedfeeder.content.folder.FeedfeederFolder"
    interface=".interfaces.INewsArea"
    />And have the actual adapter look like:class FeedItemTypeProvider(object):
    def __init__(self, context, request, view):
        pass
    type = "FeedFeederItem"The portlet renderer does aqueryMultiAdapteron the context, the request
and the view. Thus, it’s possible to have a different portlet for each view of
your content. This is useful for search pages registered on the site root:<adapter
    for="zope.interface.Interface
         zope.publisher.interfaces.browser.IBrowserRequest
         Products.BabpnProducts.browser.search.BabpnBOSearchView"
    provides="inquant.portlet.contextualrecentitems.interfaces.ITypeNameProvider"
    factory=".adapters.BizOpTypeProvider"
    />

class BizOpTypeProvider(object):
    def __init__(self, context, request, view):
        pass
    type = "BusinessOpportunity"That way, therecent changesportlet only shows items which match your search page.Of course, if no adapter is found, the portlet falls back to its normal behavior like
the standard plone recently changed portlet.
Package: inquant.recipe.textfile
This is a very simple recipe which generates a textfile
from a template.The template can be everything, and may contain python-style
string formatters. The values will be replaced with the
options you set inside the buildout.cfg section.Parameterstemplate-directory – the directory to fetch templates fromtemplate – the template filedefault: $(name)s.inlocation – the output file${buildout:template-directory}is set to${buildout:directory}/templatesif not set in the buildout section.Iflocationis not set, no file is created. You can always access the
generated content using thecontentkey, though.ExampleAn example buildout.cfg:[buildout]
parts=test.txt
template-directory=${buildout:directory}/templates

[test.txt]
recipe=inquant.recipe.textfile
template-directory=${buildout:template-directory}
template=test.txt.in
location=${buildout:directory}/test.txt

avalue=foo
anothervalue=barNote that due to the default settings (see above), thetemplate-directoryandtemplatesettings are redundant.An example text template:This is just a test

template=%(template)s
location=%(location)s

This is just text %(avalue)s and %(anothervalue)s got
replaced. See?The recipe will read the template and replace the strings
yielding something like:This is just a test

template=/Users/seletz/develop/plone/buildout/templates/test.txt.in
location=/Users/seletz/develop/plone/buildout/test.txt

This is just text foo and bar got
replaced. See?EOFvim: set ft=rst ts=2 sw=2 tw=75 expandtab:
Package: inquirer
python-inquirerCollection of common interactive command line user interfaces, based onInquirer.js.Goal and PhilosophyBorn as aInquirer.jsclone, it shares part of the goals and philosophy.So,Inquirershould ease the process of asking end userquestions,parsing,validatinganswers, managinghierarchical promptsand providingerror feedback.You candownload the python-inquirer code from GitHubordownload the wheel from Pypi.Platforms supportPython-inquirer supports mainly UNIX-based platforms (eq. Mac OS, Linux, etc.). Windows has experimental support, please let us know if there are any problems!InstallationpipinstallinquirerDocumentationDocumentation has been moved topython-inquirer.readthedocs.io.But here you have a couple of usage examples:Textimportreimportinquirerquestions=[inquirer.Text('name',message="What's your name"),inquirer.Text('surname',message="What's your surname"),inquirer.Text('phone',message="What's your phone number",validate=lambda_,x:re.match('\+?\d[\d ]+\d',x),)]answers=inquirer.prompt(questions)EditorLike a Text question, but used for larger answers. It opens external text editor which is used to collect the answer.The environment variables$VISUALand$EDITOR, can be used to specify which editor should be used. If not present inquirer fallbacks tovim -> emacs -> nanoin this order based on availability in the system.External editor handling is done using great librarypython-editor.Example:importinquirerquestions=[inquirer.Editor('long_text',message="Provide long text")]answers=inquirer.prompt(questions)ListShows a list of choices, and allows the selection of one of them.Example:importinquirerquestions=[inquirer.List('size',message="What size do you need?",choices=['Jumbo','Large','Standard','Medium','Small','Micro'],),]answers=inquirer.prompt(questions)List questions can take one extra argumentcarousel=False. If set to true, the answers will rotate (back to first when pressing down on last choice, and down to last choice when pressing up on first choice)CheckboxShows a list of choices, with multiple selection.Example:importinquirerquestions=[inquirer.Checkbox('interests',message="What are you interested in?",choices=['Computers','Books','Science','Nature','Fantasy','History'],),]answers=inquirer.prompt(questions)Checkbox questions can take extra argumentcarousel=False. If set to true, the answers will rotate (back to first when pressing down on last choice, and down to last choice when pressing up on first choice)Another argument that can be used islocked=<List>. The given choices in the locked argument cannot be removed. This is useful if you want to make clear that a specific option out of the choices must be chosen.PathLike Text question, but with builtin validations for working with paths.Example:importinquirerquestions=[inquirer.Path('log_file',message="Where logs should be located?",path_type=inquirer.Path.DIRECTORY,),]answers=inquirer.prompt(questions)ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseCopyright (c) 2014-2023 Miguel Ángel García (@magmax_en), based onInquirer.js, by Simon Boudrias (@vaxilart)Distributed under the terms of theMIT license.