Saravanan666/pypi-org huggingface dataset:
Package: refractiveindex
Easy Python interface to RefractiveIndex databaseThe original databasehttps://github.com/polyanskiy/refractiveindex.info-databaseDatabase files parsing was made with a modified version ofrefractiveIndex.pyfromPyTMM projectbyPavel Dmitriev.Installationpip install refractiveindexUsagefromrefractiveindeximportRefractiveIndexMaterialSiO=RefractiveIndexMaterial(shelf='main',book='SiO',page='Hass')wavelength_nm=600# [nm]SiO.get_epsilon(wavelength_nm)# (3.8633404437869827+0.003931076923076923j)SiO.get_refractive_index(wavelength_nm)# (1.96553846)SiO.get_extinction_coefficient(wavelength_nm)# (0.001)Notes:here the time dependence is assumed to be $\mathrm{e}^{-\mathrm{i} \omega t}$, so $\operatorname{Im}\varepsilon > 0$ is responsible for the losses.if there is a space in the name, one should write underscore instead of it, i.e. notpage='Rodriguez-de Marcos'butpage='Rodriguez-de_Marcos'.How to get material page namesYou can find the proper “page” name by hovering your cursor on the link in the Data sectionOr you can look up folders in this repositoryhttps://github.com/polyanskiy/refractiveindex.info-databaseSimular projects for JuliaJulia interface to refractiveindex.info databasehttps://github.com/stillyslalom/RefractiveIndex.jl
Package: reframed
ReFramedReFramed: metabolic modeling packageReFramedimplements many constraint-based simulation methods (see
list below), and contains interfaces to other libraries of theCOBRAecosystem includingescher,cobrapy, andoptlang.Available methodsNameLong nameReferenceFBAFlux Balance Analysis(Varma and Palsson,
1993)FVAFlux Variability
Analysis(Mahadevan and
Schilling, 2003)pFBAParsimonious FBA(Lewis et al, 2010)FBrAtioFBA with flux ratios(Yen et al, 2013)CAFBAConstrained
Allocation FBA(Mori et al, 2016)MOMAMinimization of
Metabolic Adjustment(Segre et al, 2002)lMOMAlinear MOMA(Segre et al, 2002)ROOMRegulatory On/Off
Minimization(Shlomi et al, 2005)ll-FBAloopless FBA(Schellenberger et
al, 2011)TFAThermodynamic Flux
Analysis(Henry et al, 2007)TVAThermodynamic
Variability Analysis(Henry et al, 2007)NETNetwork-embedded
thermodynamic
analysis(Kummel et al 2006)GIMMEGene Inactivity
Moderated by Met and
Exp(Becker and Palsson,
2008)E-FluxE-Flux(Colijn et al, 2009)SteadyComCommunity simulation(Chan et al, 2017)Credits and LicenseDeveloped by Daniel Machado at the Norwegian University of Science and Technology (NTNU).ReFramedis a refactored version of theframedlibrary.Released under an Apache License.
Package: reframe-py
Reframe » Low-Code Database Supercharged by AI Agents.The fastest way to build, deploy and managed AI Agents on your dataframes.Automate workflows you once spent countless human hours on!📖 Docs|🏠 HomepageAboutReframe is an experimental agent framework powered by GPT-4 that operates on dataframes.Reframe unleashes the future with AI Agents that work for you. These virtual assistants automate workflows,
search the web, explore LinkedIn, and more - with human-like intelligence but without human limitations.
Reframe combines an effortless a low-code database, dozens of tireless AI agents and powerful Language Models like
GPT, so you can manage data smarter, not harder. Let AI Agents do the work so you can focus on insights.Come chat with usInstallation|Quick Start|DocumentationInstallation1. Automatic InstallationBy far the easiest way to install the ReframeAI server is to use the install script.pipinstallreframe-pyDocumentation:https://reframe.is/docsReframeAI comes with some pre-built AI Agents. Alternatively, you can write your own.Reframe strives to be🥽 Transparent - through logging, and metrics that create visibility into the inner operations.🤸🏾 Flexible - AI Agents and tools are independent of each other, allowing you to create workflows easily.🧩 Composable. Reframe are simply executable python functions and classes with a well defined interface. You can easily construct sophisticated agents from basic building blocks. These building blocks can be obtained from our ecosystem or you can develop custom ones that are specific to your organization.🛹 Incrementally adoptable - By using existing technologies such as Docker, Kubernetes and Celery Aigent enables you to seamlessly adopt it with your organization. From simple ZeroShot agents to sophisticated multi-step AI agents each component can be integrated into your existing workflows.🔨 Reusable - once a tool is running, it can be utilized by various agents, thereby reducing operational overhead, increasing throughput and making tools easy to reason about.🏎️ Fast by taking advantage of data parallelism and prompt sequencing in a manner increases efficiency and reduces the overall number of expensive API calls made to LLM endpoints.🏟️ Rich ecosystem that enables your to pick and choose which tools and agents to deploy. Through contributions from open source developers, we are making great progress to develop a robust ecosystem of tools so that you always have a tool for the job.Features🌐 Internet access for searches and information gathering📥 Long-term and short-term memory management🧠 GPT-4 & Anthropic instances for text generation🔗 Access to popular websites and platforms🗃️ File storage and summarization with GPT-3.5🔌 Extensibility with PluginsStatusAlpha: We are testing Reframe with a closed set of customersPublic Alpha: Anyone can sign up over athttps://reframe.is. But go easy on us, there are a few kinksPublic Beta: Stable enough for most non-enterprise use-casesPublic: General AvailabilityWe are currently in Public Beta. Watch "releases" of this repo to get notified of major updates.DocumentationMore documentation is available here:https://reframe.is/docs
Package: refreshbooks
Refreshbooks provides a simple synchronous API for manipulating FreshBooksinvoices, clients, and other data::from refreshbooks import apic = api.OAuthClient('example.freshbooks.com','consumerkey','My Consumer Secret','An existing token','An existing token secret',user_agent='Example/1.0')# XML structure inferred from argsresponse = c.invoice.create(          # <request method="invoice.create">invoice=dict(                     #   <invoice>client_id='8',                #     <client_id>8</client_id>lines=[                       #     <lines>api.types.line(           #       <line>name='Yard Work',     #         <name>Yard Work</name>unit_cost='10',       #         <unit_cost>10</unit_cost>quantity='4'          #         <quantity>4</quantity>)                         #       </line>]                             #     </lines>)                                 #   </invoice>)                                     # </request>invoice_response = c.invoice.get(     # <request method="invoice.get">invoice_id=response.invoice_id    #     <invoice_id>...</invoice_id>)                                     # </request>print "New invoice created: #%s (id %s)" % (invoice_response.invoice.number,invoice_response.invoice.invoice_id)invoices_response = c.invoice.list() # <request method="invoice.list" />print "There are %s pages of invoices." % (invoices_response.invoices.attrib['pages'],)for invoice in invoices_response.invoices.invoice:print "Invoice %s total: %s" % (invoice.invoice_id,invoice.amount)Consumer keys and secrets can be obtained from FreshBooks. This librarydoes not handle negotiating for an OAuth token+secret pair; see the`oauth` module or the OAuth specification for details.This library also supports the older token-based API authorizationscheme::c = api.TokenClient('example.freshbooks.com','My API token',user_agent='Example/1.0')# ... as above ...API methods return lxml.objectify.ObjectifiedDataElement trees, whichcan be manipulated as Python objects with the same structure as theunderlying XML.If you are having trouble accessing items as in:items_response = c.items.list()for item in items_response.items.item:print item.item_idAdjust your syntax to use dictionary item lookup:items_response = c.items.list()for item in items_response['items'].item:print item.item_idObjectifiedDataElement provides a method named items which shadows theitems element in the response. Accessing items with dictionary lookupsyntax is the known work-around.To run tests:python setup.py nosetestsTo run network-accessing integration tests against httpstat.us:python setup.py nosetests --attr=integrationReferences:- http://developers.freshbooks.com/ - The FreshBooks API- http://developers.freshbooks.com/authentication-2/#OAuth - FreshBooks and OAuth
Package: refreshit
A print to always print in the same line, refreshing the contentSetup$pipinstallrefreshitCode sampleRefreshing some textfromrefreshitimportuprintfromtimeimportsleepuprint("Beautiful is better than ugly.")sleep(1)uprint("Explicit is better than implicit.\n")sleep(1)Loading statefromrefreshitimportuprintfromtimeimportsleepload=["Loading","Loading.","Loading..","Loading..."]foriinrange(4):foriteminload:uprint(item)sleep(0.2)uprint("Complete\n")A progress barfromrefreshitimportuprintfromtimeimportsleepn=20squares=[u"\u25A0"*x+" "+"{:.0f}".format((x/(n-1))*100)+"%"forxinrange(n)]foriinrange(2):foriteminsquares:uprint(item)sleep(0.1)print()
Package: refreshpairlist
refreshpairlist :rocket:Dynamic Pairlist for FreqAI (freqtrade)Installationpip install refreshpairlist:arrow_right: Remember to correctly configure api_server in your freqtrade configuration file.:arrow_right: Feel free to customize remotepairlist params under ["freqai"]["remote_pairlist_params"] in your freqtrade configuration file.Usagerefreshpairlist [-h] --strategy STRATEGY  --config CONFIG --db-name DB_NAME  [--db-url DB_URL]--strategy STRATEGY  The strategy name to use.--config CONFIG      The target configuration file path.--db-name DB_NAME    The db name of the selected strategy.--db-url DB_URL      The optional db url of the selected strategy. (defaults to main freqtrade directory)To update pairlist daily, run:refreshpairlist --strategy MyAwesomeStrategy \--config user_data/configs/freqai_config.json \--db-url sqlite:////home/user/freqtrade \--db-name tradesv3.dryrun.sqliteThe default remotepairlist params set are following:"remote_pairlist_params":{"filter":"meme+cpanic+ftok+leveraged","minv":0.1,"maxv":0.35,"mina":150,"maxa":-1,"sort":"marketcap","limit":11,"sort2":"rolling_volume_7"}filter: exclude certain pairs if applies to marketminv: min. volatilitymaxv: max. volatilitymina: min. agemaxa: max. agesort: sort pairlist bylimit: the number of pairs to update withsort2: second sorting method of choiceSeeremotepairlistfor more.Requirements:freqtraderequests_ratelimiterschedule
Package: refrot
RefrotAPythonscript to check a website for broken links, also known as link rot or
reference rot.How To Install ItInstall using:pip3 install refrotHow To Use ItBy default refrot checks all internal links, no matter how many levels, and a
single level of external links.refrot <url>Options-h --help                   Show help.
-i --ignore-external-links  Ignore external hyperlinks.
-u --user-agent             Send custom user agent string.
-v --version                Show version number.OutputURLs with status codes other than OK (200) and Temporary Redirect (302) are
displayed in the post-run summary.LinksProject pageRelease historyLicenseMIT license.Contact MeSend bug reports and patches tocraig@seagrape.us.
Package: refsig
The refsig package works as tool for identifying the referential signal from a set of unipolar iEEG data.Package contains 3 methods for obtaining the reference:(1) The first method creates the referential signal for the given iEEG data set using Method I from [1].
It does so using a comparative method based on correlation coefficient among the ICs of unipolar and bipolar montage.
The method does not calculate the referential signal, however it merely locates one unipolar independent component,
which has the lowest correlation coefficient with any bipolar IC.(2) Second method creates the referential signal of an iEEG set of data
using method II described in [1].
The difference from method I is that this method is solely based on
calculating the reference instead of locating it amongst unipolar ICs.
This method has proven to be the most accurate and fastest by the experimental results in [1]
as well as in our own testing. Therefore this method should be used for obtaining the reference.(3) The last method is a calculation of mere average reference from the given set of iEEG data.
This method is the fastest one, however not as accurate as the methods based on ICA.For import, use:-> from refsig import getrefEach method is then initialized by:(1) -> getref.find(unipol, N_iterations = 20, p = 0.2)(2) -> getref.calc(unipol)<–this one should be used!(3) -> getref.avg(unipol)where unipol is a m*k set of iEEG data, where m is the number of channels
and k is the number of samples.All methods return the referential signal as a linear vector 1xk.Based on:[1] HU, S., STEAD, M., WORRELL, G. A. Automatic identification and removal of scalp reference signal for intracranial EEGs based on independent component analysis. IEEE Transactions on Biomedical Engineering, 2007.
Package: refstack
What is RefStack?Toolset for testing interoperability between OpenStack clouds.Database backed website supporting collection and publication of
Community Test results for OpenStack.User interface to display individual test run results.RefStack intends on being THE source of tools for interoperability testing
of OpenStack clouds.RefStack provides users in the OpenStack community with a Tempest wrapper,
refstack-client, that helps to verify interoperability of their cloud
with other OpenStack clouds. It does so by validating any cloud
implementation against the OpenStack Tempest API tests.Refstack’s Use CaseRefStack and Interop Working Group- The prototypical use case for RefStack
provides the Interop Working Group - formerly known as DefCore committee - the
tools for vendors and other users to run API tests against their clouds to
provide the WG with a reliable overview of what APIs and capabilities are
being used in the marketplace. This will help to guide the Interop
Working Group defined capabilities and help ensure interoperability across
the entire OpenStack ecosystem. It can also be used to validate clouds
against existing capability lists, giving you assurance that your cloud
faithfully implements OpenStack standards.Value add for openstack distro or solution vendors- Vendors can use
RefStack to demonstrate that their distros, and/or their customers’ installed
clouds remain OpenStack compliant after their software has been incorporated
into the distro or cloud.RefStack consists of two parts:refstack-apiOur API isn’t just for us to collect data from private and public cloud
vendors. It can be used by vendors in house to compare interoperability
data over time.documentation:https://docs.opendev.org/openinfra/refstack/latest/repository:https://opendev.org/openinfra/refstackreviews:https://review.opendev.org/#/q/status:open+project:openinfra/refstackbugs:https://storyboard.openstack.org/#!/project/openinfra/refstackWeb-site:https://refstack.openstack.orgrefstack-clientrefstack-client contains the tools you will need to run the
Interop Working Group tests.documentation:https://docs.opendev.org/openinfra/refstack-client/latest/repository:https://opendev.org/openinfra/refstack-clientreviews:https://review.opendev.org/#/q/status:open+project:openinfra/refstack-clientbugs:https://storyboard.openstack.org/#!/project/openinfra/refstack-clientGet Involved!See theCONTRIBUTINGguide on how to get involved.
Package: refter-cli
OverviewSimple client to validate and push deployments to refterSetupRequirementsPython 3.10+InstallationInstall it directly into an activated virtual environment:$pipinstallrefter-cliUsageCheck out therefterdocumentation to learn more about how to use therefter-cliclient.CI/CDEasily integraterefter-cliinto your GitHub CI/CD pipeline to validate and push deployments to refter usingsetup-refteraction.
Package: reftool
reftoolreftoolis a command line interface for accessing reference archives. It allows to display
references, copy single reference items into the clipboard and optionally to apply encodings
to a copied reference. An example implementation for a reference archive is theusd-reference-archive.Installationreftoolcan be installed viapip, either by installing fromPyPi:[user@host ~]$pip3install--userreftoolor by building and installing it manually:[user@host ~]$gitclonehttps://github.com/usdAG/reftool[user@host ~]$cdreftool[user@host ~]$pip3install-rrequirements.txt[user@host ~]$python3setup.pysdist[user@host ~]$pip3install--userdist/reftool-*reftoolsupports autocompletion forbash. To take advantage of autocompletion, you
need to have thecompletion-helpersproject
installed. If setup correctly, just copying thecompletion scriptto your~/.bash_completion.dfolder enables autocompletion.ConfigurationDuring the installation,reftoolcreates a configuration file~/.config/reftool.ini.
Inside this file, the path for the reference archive and some other display related options
are set. You can adjust these options to your own preferences.In order to be useful, at least one reference archive should be available withinreftoolsreference path. Theusd-reference-archiveis one example for areftoolcompatible archive. You can have several different archives
within your reference path.For a default installation, the following commands can be used to setup a reference archive:[user@host ~]$mkdir-p~/.local/share/reftool-archives[user@host ~]$cd~/.local/share/reftool-archives[user@host ~]$gitclonehttps://github.com/usdAG/usd-reference-archive
Package: ref-type
Referencable objects in Python.fromref_typeimportrefref1:ref[int]=ref(1)ref2:ref[int]=ref(1)defadd(r1:ref[int],r2:ref[int])->None:r1+=r2add(ref1,ref2)print(ref1)# => 2Use.get()to get value,.ilshift(X)to do LeftShiftEquals.
Package: refund_calculation
For example, this sequence of events …A:$10B:$10C:($18)D:($2)… is turned into this timeline:A             B             C             D
|             |             |             |
|_____________|_____________|             |
|                           |             |
|           $10             |             |
|___________________________|             |
              |             |             |
              |     $8      |             |
              |_____________|_____________|
              |                           |
              |            $2             |
              |___________________________|This lets you determine, for each balance reduction event, the events from
which the balance was added. In this example, we can see that:The $18 reduction in event C came from $10 of event A and $8 of B.The $2 reduction in event D came entirely from event B.Code for this example:fromrefund_calculationimport*history_from_event_sequence([Event(time='A',delta='10'),Event(time='B',delta='10'),Event(time='C',delta='-18'),Event(time='D',delta='-2'),])# Result:History(closed=(Closed(amount=Decimal('10'),start='A',end='C'),Closed(amount=Decimal('8'),start='B',end='C'),Closed(amount=Decimal('2'),start='B',end='D'),),open=(),debt=Decimal('0'),)
Package: refurb-json-minify
refurb-json-minifyA small plugin forRefurbaimed at minifying JSON outputs.Why is this important?JSON is a widely used format for data exchange, whether that be APIs talking over the
internet, metadata being stored in a database, or config files stored on a user's
filesystem. Although CPU and harddrive space is getting cheaper and cheaper, it isn't
free, and being mindful of resources can lead to faster and more efficient programs.Supported ChecksJMIN100: UseseparatorsThejson.dumpandjson.dumpsfunctions
allow for an optionalseparatorsfield which specifies what characters to use
for colons (:) and commas (,) in the JSON output. Normally there is whitespace
after these characters, but you can change this to use a more compact format.Here is a simple example comparing the output ofjson.dumps()with and withoutseparatorsspecified:importjsondata={"hello":"world","numbers":[1,2,3,4],}a=json.dumps(data)b=json.dumps(data,separators=(",",":"))print(f"{len(a)=}",f"{len(b)=}")When we run this, we get:len(a)=43 len(b)=37By reducing the whitespace in our JSON output we where able to shave off 6 bytes, or about
16% in this example.JMIN101: Don'tjson.dump()integersDon't calljson.dump()on integers, usestr()instead since they share the
same representation.
Package: refurb-plugin-example
Refurb Plugin ExampleThis repo is meant to be a good starting point for those who are looking to
make plugins for Refurb.For illustrative purposes, this plugin will emit an error when the followingprintstatement is found:print("Hello world!")SetupFirst things first, fork this repo. Make sure to change the name, but keep
therefurb-prefix (for naming convention sake).Next, clone:$ git clone https://github.com/USERNAME/refurb-your-plugin
$ cd refurb-your-pluginOf course, replacingrefurb-your-pluginwith the name you picked.Then, update thepyproject.tomlfile with the your information.
You can run thesetup.shscript to do this for you, which will ask you a series
of questions. If the script does not work, you will have to update it manually
(you should only need to update the first two sections).Check DiscoveryIn order for Refurb to find and use your check, 2 conditions must be met:You must export a class that starts withError, which will contain the error metadata. Note:It must derive fromErrorIt cannot be namedErrorCodeYou must have a function calledcheck, which is the entry point for a given check.The definition for acheckfunction looks something like this:def check(node: CallExpr, errors: list[Error]) -> None:
    ...WhereCallExpris the node you want to accept, anderrorsis where you append an
error if one occurs. You can accept multiple node types using a type union, like so:def check(node: UnaryExpr | OpExpr, errors: list[Error]) -> None:
    ...This check will accept both unary and binary expressions.Any nested folders must contain an__init__.pyfile. This might not be 100% necessary,
but from what I can tell, it is best to add it in anyways.
Package: refuse
Synopsisrefuseis a Python module implemented usingctypesthat provides a simple cross-platform interface to:libfuseFUSE for macOSWinFsprefuseoriginated as a fork offusepy. This fork will break with its origins in (at least) the following aspects:Dropping Python 2 supportDropping the monolithic single-file-designAddinglibfuse3supportMarkinglibfuse2support as deprecatedA test suiteIf you have a pending pull request againstfusepythat you would like to see included intorefuseplease open an issue here.If you want to contribute torefuse, please have a look at thecontributing guidelines.Project statusTHIS PROJECT HASALPHASTATUS.The high level API has been tested throughLoggedFS-pythonwithpjdfstestandfsxon x86_64 Linux only, but not in all possible modes of operation. The low level API is completely untested at this point.Installationrefuserequireslibfuse2.8 or 2.9 (highly recommended),FUSE for macOSorWinFsp. Themasterbranchof its git repository is always kept at the latestpreview release. It should be "sort of stable" (still ALPHA). Development happens in thedevelopbranch.You can install thepreview releasesfrom PyPI:pipinstallrefuseYou can alternatively also install the currentHEAD, most likely very unstable:pipinstallgit+https://github.com/pleiszenburgrefuse.git@developrefuse(theoretically) runs on:OSAPIarchlevelversioni386x86_64PPCPPC64arm64MIPSLinuxhigh2yesyesyesyesyesyes3nonononononolow2yesyesyesyesyesyes3nonononononoMac OS Xhigh2yesyesyesyes3nonononolow2yesyesyesyes3nonononoFreeBSDhigh2yesyesnononono3nonononononolow2yesyesnononono3nonononononoOpenBSDhigh2yesyesyesyesyesyes3nonononononolow2nononononono3nonononononoWindowshigh2yesyesno3nononolow2nonono3nononoWindows/Cygwinhigh2yesyesno3nononolow2nonono3nononoPorting a project fromfusepytorefuseSee documentation.MiscellaneousAuthors(credit where credit is due)Change log (current)(changes in development branch since last release)Change log (past)(release history)Contributing(Contributions are highly welcomed!)Documentation(mostly notes at this point)License(ISCL)