Saravanan666/pypi-org huggingface dataset:
Package: onyxerp
# OnyxERP Utils(v2)Versão alternativa do [SilexBase](https://github.com/BRAConsultoria/SilexBase) em Python, utilizando o
[Rinzler Framework](https://github.com/feliphebueno/Rinzler)# RequiresPython 3.6+Django 1.10.5+Rinzler 2.0.2+# Build`PHP python3.6 setup.py bdist_wheel `# Installation`PHP pip install onyxerp `
Package: onyxjokes
=======onyxjokes=======#This is a forked of pyjokes#One line jokes for programmers (jokes as a service)Installation============Install the `onyxjokes` module with pip.See the `documentation`_ for installation instructions.Usage=====Once installed, simply call `onyxjoke` from the command line or add it to your .bashrc file to see a joke everytime you start a terminal session.Use the `-c` flag to get jokes from a specific category. Options::-c neutral [default] (neutral geek jokes)-c adult (adult geek jokes)-c chuck (Chuck Norris geek jokes)-c all (all jokes)You can also access the jokes in your own project by importing `onyxjokes` and using the functions `get_joke` and `get_jokes`Comprehensive documentation is available at http://pyjok.esContributors============Development:* `Ben Nuttall`_* `Alex Savio`_* `Borja Ayerdi`_* `Oier Etxaniz`_Jokes:* `Luke Wren`_* `Sarah Bird`_* `Yash Mehrotra`_* `Marc Kirkwood`_* `Gregory Parker`_* `Martin O'Hanlon`_* `Graham Markall`_Contributing============* The code is licensed under the `BSD Licence`_* The project source code is hosted on `GitHub`_* Please use `GitHub issues`_ to submit bugs and report issues* Feel free to `contribute`_ to the code* Feel free to contribute jokes (via pull request or `proposal issue`_)* See the `contributing policy`_ on GitHubTests=====Install requirements (pytest)Run tests::python setup.py testPyjokes Society===============This project was founded at `PySS 2014`_ and is directed by the `Pyjokes Society`_... _documentation: http://pyjok.es/install/.. _http://pyjok.es: http://pyjok.es/.. _Ben Nuttall: https://github.com/bennuttall.. _Alex Savio: https://github.com/alexsavio.. _Borja Ayerdi: https://github.com/borjaayerdi.. _Oier Etxaniz: https://github.com/oiertwo.. _Luke Wren: https://github.com/wren6991.. _Sarah Bird: https://github.com/birdsarah.. _Yash Mehrotra: https://github.com/yashmehrotra.. _Marc Kirkwood: https://github.com/trojjer.. _Gregory Parker: https://github.com/ElectronicsGeek.. _Martin O'Hanlon: https://github.com/martinohanlon.. _Graham Markall: https://github.com/gmarkall.. _BSD Licence: http://opensource.org/licenses/BSD-3-Clause.. _GitHub: https://github.com/pyjokes/pyjokes.. _GitHub Issues: https://github.com/pyjokes/pyjokes/issues.. _contribute: https://github.com/pyjokes/pyjokes/tree/master/CONTRIBUTING.md.. _proposal issue: https://github.com/pyjokes/pyjokes/issues/10.. _contributing policy: https://github.com/pyjokes/pyjokes/tree/master/CONTRIBUTING.md.. _PySS 2014: http://www.pyss.org/.. _Pyjokes Society: http://pyjok.es/society/
Package: onyx-mclib
OnyxA python library to create minecraft data packsDocumentationYou can view the documentationhere.Getting StartedFirst, install the package withpip install onyx-mclib.
Next, create a python script and import onyx. It is also recommended you import all ofnbtlib.taglike so:from nbtlib.tag import *.Here's a sample script to get you started:importonyxclassMyPack(onyx.DataPack):def__init__(self):super().__init__("My data pack name")self.function("namespace:function",self.function_obj)self.generate()deffunction_obj(self):onyx.commands.say("Hello, World!")MyPack()Creditsfizzy/vberlier- Creator ofnbtlib,beet, andmudkip, helped walk me through using GitHub actionsArcensoth, rx, vdvman1 - Library design helpJayfin, Lue, lolad/lolgeny, MulverineX, Speedy2025 - Motivating me to work on this project after nearly abandoning itYou - For using this (hopefully, heh)
Package: onyxproject
Onyx a pour but de vous simplifier la vie , son but premier est de tout réunir en un seul endroitVous voulez consulter vos mails , ajouter des rendez-vous , avoir la météo et régler vos réveils en même temps ? C’est le but d’Onyx , de tout centraliser.Imaginons :Vous rentrez chez vous ,vous lancez votre ordinateur et votre page d’accueil est Onyx , puis vous vous connectez avec votre compte personnel et vous tombez sur votre page d’accueil rempli de vos widgets que vous avez choisis au préalableVous décidez de lancer votre musique préférée pendant que vous consultez vos mails sur la mailbox.Puis vous allez programmer votre réveil pour le lendemain avec votre musique préférée pour vous réveillerLe lendemain Onyx vous réveille avec votre musique puis vous indique l’heure et la météo du jour pour vous permettre de vous habiller de la bonne façon , de plus , il vous donne vos rendez-vous de la journée qui vienne directement de votre compte Google !Le site :http://onyxlabs.fr
Package: onyx-whatsapp-api
WhatsApp API Python ModuleA Python module for sending WhatsApp messages using a third-party API.InstallationInstall the module using pip:pipinstallwhatsapp-apiUsagefrom whatsapp_api import WhatsAppAPIExample usageyour_id='your_id'api_key='your_api_key'whatsapp=WhatsAppAPI(your_id,api_key)# Sending a simple text messageresult=whatsapp.send_simple_text_message('recipient_number','Hello, this is a test message')print(result)# Sending media from URLresult=whatsapp.send_media_from_url('recipient_number','media_url','Optional caption')print(result)# Sending text in a groupresult=whatsapp.send_text_in_group('group_name','Hello, this is a group message')print(result)# Sending media in a group from URLresult=whatsapp.send_media_from_url_in_group('group_name','media_url','Optional caption')print(result)API Methods
send_simple_text_message(number, message)
Send a simple text message to the specified number.number: Recipient's phone number.
message: Text message to be sent.
send_media_from_url(number, url, caption='')
Send images/PDF/documents, etc., from a URL to the specified number.number: Recipient's phone number.
url: URL of the media file.
caption (Optional): Caption for the media file.
send_text_in_group(group_name, message)
Send a text message to a WhatsApp group.group_name: Name of the WhatsApp group.
message: Text message to be sent.
send_media_from_url_in_group(group_name, url, caption='')
Send images/PDF/documents, etc., from a URL to a WhatsApp group.group_name: Name of the WhatsApp group.
url: URL of the media file.
caption (Optional): Caption for the media file.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Package: on.zopetools
Stuff to work with Zope & Plone from the command line or other programs.Unfortunately, only creating mount points works reliably, so…InstallationAdd the product to your buildout.cfgAfter running buildout, you should have a console script, createmountpoints,
in your buildout’s bin directory. Example:[tools]
recipe = zc.recipe.egg
eggs = on.zopetoolsTypical Usage$ ./bin/instance run ./bin/createmountpointsWhen the script exits, all ZODB mount points have been created.TODOThis package needs tests!LICENSE2014 Toni Mueller <support@oeko.net>Software licensed under the AGPLv3 or later.ChangeLog0.2 2014-01-09 01:50:53 +0000 (Toni Mueller)Implement the creation of any missing ZODB mount points.
Package: ooba
A headlessOobaboogawrapper.pipinstalloobaimportoobapath=ooba.download("https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF")llm=ooba.llm(path)messages=[{"role":"user","content":"Hi Mistral."}]fortokeninllm.chat(messages):print(token)https://github.com/KillianLucas/ooba/assets/63927363/b741f4ee-9dca-4c50-9405-dd99550b2dc8
Package: oobabot-plugin
Oobabot-pluginoobabotis a Discord bot which talks to a Large Language Model AIs (like LLaMA, llama.cpp, etc...), running onoobabooga's text-generation-webui.This is a plugin which allowsoobabotto run from within the text-generation-webui server, and offer a web interface to the bot.InstallationInstall oobabooga/text-generation-webui, and get a model running on it.from a command prompt, activate the same conda environment you used to install text-generation-webui, and install the plugin from PyPi:condaactivatetextgen
pipinstalloobabot-pluginThen just run this to create theoobabotplugin directory (./extensions/oobabot) and install the plugin's hook (script.py) into the Oobabooga server:oobabot-plugininstallFinally. restart the Oobabooga enabling the both the oobabot plugin and the API plugin.  E.g.:pythonserver.py--extensionsapioobabotHopeful success!  You should now see a new "oobabot" plugin under the "interface mode" tab.PreviewMotivationThere are a number of Discord bots which can talk to a Large Language Model AI, but many take a lot of setup.  I think this technology is amazing, and I want to make it easy for anyone to experience it by running their own bot, which they can own and customize to their own needs.If you have any issues, suggestions, or comments, pleasefile an issue in githubHave fun!
Package: oocas
oocasoocasis an out-of-core data processing framework built for pandas. Its main purpose is local ETL processing of large data by sequentially processing smaller files.Installationpipinstalloocascondainstall-cconda-forgeoocasUsageThe data, which are specified by a list of file paths, are read, transformed, and written/returned. In a transform substep data can be cached to be available in later transform substeps. A processing pipeline is build out of callable components.ProcessRead,FileRead, ParquetRead, ParquetMetadataRead,MultiReadTransform,CacheTransformCache, IndexCache, TimeIndexCacheWrite,FileWrite, ParquetWrite,MultiWriteHigh level components (bold) support plugin callables in addition to a variety of other useful arguments. Low level components inherit their behavior by passing a predefined method this way.ExamplesExamples can be found in the docs.Read files to dataframeimportoocasasocpaths=oc.find_paths('data/raw')sqp=oc.Process(oc.ParquetRead(),progress_bar=False)df=pd.concat(sqp(paths),axis=0)Random samplingimportoocasasocsqp=oc.Process(oc.ParquetMetaDataRead(),lambdax:x.num_rows,progress_bar=False)nrows=sum(sqp(paths))sample_idxs=np.random.choice(nrows,10**3)defsample(df,cache):adjusted_idxs=sample_idxs-cache.datacache(cache.data+len(df))returndf.iloc[[idxforidxinadjusted_idxs\ifidx>=0andidx<len(df)]].copy()sqp=oc.Process(oc.ParquetRead(),oc.CacheTransform(sample,cache=0))sample_df=pd.concat(sqp(paths),axis=0)Time series moving averageimportoocasasocdefmoving_average(df,cache):nrows=len(df)df=pd.concat([cache.data,df])cache(df)returndf.rolling(cache.lookback)\.mean().iloc[-nrows:]sqp=oc.Process(oc.ParquetRead(),oc.CacheTransform(moving_average,oc.TimeIndexCache('1H')),oc.ParquetWrite(path_part_replace=('raw','mavg'),mkdirs=True))mavg_paths=sqp(paths)N-to-1 file writeimportoocasasocpickle_multi_to_one_write=oc.FileWrite(lambdax,path,**kwargs:\x.to_pickle(path,**kwargs),path_transform=lambdax:x[0],path_part_replace=('raw','pickle'),name_transform=lambdax:\'_'.join(x.split('_')[1:]),suffix='.pkl.gz',mkdirs=True,overwrite=True,compression='infer')
Package: ooch
Sharing files on a local network made kinda easy.Share files with:python -mooch -s filename filename filename dirnameSharing a dirname shares all the files in that directory.Find files to mooch with:python -moochGrab a specific file with:python -mooch filenameUse python -mooch to discover the other command-line arguments, such as
verbosity and port number controls.Current limitations:you can’t mooch and offer files on the same hostthe interface is a bit crapno support for auto-zipping files upactually, no compression at alland, you know, a bunch of stuff ‘cos this is a toy thrown together in a
few hoursVersion History (in Brief)1.0 is the initial releaseCopyright (c) 2011 Richard Jones <http://mechanicalcat.net/richard>See the source file for the license
Package: ood-detection
OOD DetectionThis library is used for OOD Detection where a model encounters new
classes at test time that were not seen during training. The goal is to
detect that such inputs do not belong to any of the training classes.Installpipinstallood_detectionorcondainstall-cyashkhandelwalood_detectionExample Usageimportnumpyasnpfromsklearn.datasetsimportmake_blobsfromood_detection.coreimport*# example datasetn_samples=1000n_centers=10n_features=1024x,y=make_blobs(n_samples=n_samples,n_features=n_features,centers=n_centers,random_state=0)# using the last 5 cluster as the test and rest as traintrain_embedding=x[np.where(y<(n_centers-5))]train_labels=y[np.where(y<(n_centers-5))]test_embedding=x[np.where(y>=(n_centers-5))]test_labels=y[np.where(y>=(n_centers-5))]ood=OODMetric(train_embedding,train_labels)in_distribution_rmd=ood.compute_rmd(train_embedding)ood_rmd=ood.compute_rmd(test_embedding)plt.hist([in_distribution_rmd,ood_rmd],label=["In Distribution","OOD"])plt.legend()plt.show()Built using NBDevThis OOD Detection library was built in a jupyter notebook with proper
documentation and test cases. These test cases are verified before they
are published to Github Pages, PyPi, Conda etc.I’ve written down aNBDev
Tutorialexplaining the thought process of Jeremy Howard and folks at FastAI
behind building it. The tutorial covers about how to get started,
important functions and description of those I used with the issues I
faced while exploring the tool for the first time.AcknowledgementsSpecial thanks toYugam
Tiwarifor explaining the
code he has written for the OODMetric and helping me packaging in the
library.Thanks toSoma Dhavalafor coming up with the idea to prepare NBDev Tutorial and helping with
the initial reading and exploration material.
Package: ood-metrics
OOD Detection MetricsFunctions for computing metrics commonly used in the field of out-of-distribution (OOD) detection.InstallationWith PIPpip install ood-metricsWith Condaconda install -c conda-forge ood-metricsMetrics functionsAUROCCalculate and return the area under the ROC curve using unthresholded predictions on the data and a binary true label.fromood_metricsimportauroclabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]assertauroc(scores,labels)==0.75AUPRCalculate and return the area under the Precision Recall curve using unthresholded predictions on the data and a binary true
label.fromood_metricsimportauprlabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]assertaupr(scores,labels)==0.25FPR @ 95% TPRReturn the FPR when TPR is at least 95%.fromood_metricsimportfpr_at_95_tprlabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]assertfpr_at_95_tpr(scores,labels)==0.25Detection ErrorReturn the misclassification probability when TPR is 95%.fromood_metricsimportdetection_errorlabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]assertdetection_error(scores,labels)==0.05Calculate all statsUsing predictions and labels, return a dictionary containing all novelty detection performance statistics.fromood_metricsimportcalc_metricslabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]assertcalc_metrics(scores,labels)=={'fpr_at_95_tpr':0.25,'detection_error':0.05,'auroc':0.75,'aupr_in':0.25,'aupr_out':0.94375}Plotting functionsPlot ROCPlot an ROC curve based on unthresholded predictions and true binary labels.fromood_metricsimportplot_roclabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]plot_roc(scores,labels)# Generate Matplotlib AUROC plotPlot PRPlot an Precision-Recall curve based on unthresholded predictions and true binary labels.fromood_metricsimportplot_prlabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]plot_pr(scores,labels)# Generate Matplotlib Precision-Recall plotPlot BarcodePlot a visualization showing inliers and outliers sorted by their prediction of novelty.fromood_metricsimportplot_barcodelabels=[0,0,0,1,0]scores=[0.1,0.3,0.6,0.9,1.3]plot_barcode(scores,labels)# Shows visualization of sort order of labels occording to the scores.
Package: oodoctest
oodoctest extracts and runs code samples found in an OpenOffice.org document to
test their validity using the standard python doctest machinery. The goal is
to make it easy to write runnable python documentation with OpenOffice.org.This script can be both used a command line tool (oodoctest –help) or as the
provider of the OODocFileTest class to integrate OO documents as part of
doctest/unittest suite.
Package: oodocument
oodocumentConnects vía Uno bridge interface with libreoffice to perform simple format conversions and replace string over a document.Pypi Package linkDependenciesIf you arevirtualenvuser, you need to create with option--system-site-packagesas it needs to use system site-packages which has uno module installed by$ sudo apt-get install python3-uno. (Unfortunately, uno module is not available from pip).sudo apt-get install libreoffice-common python3-unoYou must run headless libreoffice service (libreoffice executable can be different on different gnu/linux distros, another options can besofficeorloffice)/usr/bin/libreoffice --headless --nologo --nofirststartwizard --accept="socket,host=0.0.0.0,port=8001;urp"FeaturesSearch and replaceSupport font colors, background and clear hyperlinksSupport file Conversion to pdf, txt, odt and docxInstallpip install oodcumentExamplesSearch and ReplaceWill openinput.docxfile, search forholamundoString and replacing it byXXX, then would save the output tooutput.pdfwithpdfformat.from oodocument import oodocument
data = {}
data['holamundo'] = 'XXX'
oo = oodocument('./input.docx', host='0.0.0.0', port=8001)
oo.replace_with(data, './output.pdf', 'pdf')
oo.dispose()Search and Replace with IndexesWill openinput.docxfile withholamundoString. The package will found indexes and replacemundoString and replacing it byXXX, then would save the output tooutput.pdfwithpdfformat.In this case, you must build a  3-component tuple with the following format:(start_index,end_index,text_to_replace)from oodocument import oodocument
data = []
data.append((5,10,'XXX'))
oo = oodocument('./input.docx', host='0.0.0.0', port=8001)
oo.replace_with_index(data, './output.pdf', 'pdf')
oo.dispose()Another Feature is the possibility of adding an offset parameter inreplace_with_indexfrom oodocument import oodocument
data = []
data.append((4,9,'XXX'))
oo = oodocument('./input.docx', host='0.0.0.0', port=8001)
oo.replace_with_index(data, './output.pdf', 'pdf',1)
oo.dispose()Search and Replace with Indexes in HeaderWill openinput.docxfile withholamundoString in header. You know the name of style contains header.In that case , the style name is "Default Style".from oodocument import oodocument
data = []
header_style_name = "Default Style"
neighbor_character = 20
data.append((4, 10, "XXX", "mundo"))
oo = oodocument("./input.docx", host="0.0.0.0", port=8001)
oo.replace_with_index_in_header(data, "./output.pdf", "pdf", 0, neighbor_character, header_style_name)
oo.dispose()Will openinput.docxfile, search forholamundoString and replacing it byXXXwith yellow background and red color font, then would save the output to the same file.from oodocument import oodocument
data = {}
data['holamundo'] = 'XXX'
oo = oodocument('./input.docx', host='0.0.0.0', port=8001)
oo.set_font_color(255, 255, 0)
oo.set_font_back_color(255, 0, 0)
oo.set_clear_hyperlinks(False) # default value is True
oo.replace_with(data)
oo.dispose()Will convertinput.docxfile tooutput.txtfile withtxtformatfrom oodocument import oodocument
oo = oodocument('./input.docx', host='0.0.0.0', port=8001)
oo.convert_to('./output.txt', 'txt')
oo.dispose()
Package: oodt
Agile OODT is a new version ofObject Oriented Data Technology.  It
improves upon the previous version by being easier to develop, maintain, and
extend; simpler to integrate by; and faster to use.InstallationWhat follows are the installation instructions for Agile OODT.Quick InstructionsAs a user with administrative privileges, run either:pip oodtor:easy_install oodtdepending on what’s available on your system.  You’re done!Full InstructionsAgile OODT requires thePythonprogramming language.  We recommend version 2.4
or later.  As of this writing, 2.7 is the latest stable version.  If Python is
not yet installed on your system, you can find binary and and source
distributions from the Python website.To test if a correct version of Python is available on your system, run:python -VYou should see output similar to:Python 2.7indicating the version of Python installed.  You may then proceed to install
Agile OODT.By far the easiest, recommended, and encouraged way to install Agile OODT is
either withPiporEasyInstall.  If your Python installation has either of
these installers available to it, then one command is all you need to run in
order to download, build, install, and generate command-line tools all in one
go for all users on your system.  For Pip users, it’s:pip oodtAnd for EasyInstall users, it’s:easy_install oodtBe sure to run that command as an administrative user.  For example, on Mac OS
X and other Unix systems, you might need to run either of:sudo pip oodt
sudo easy_install oodtInstalling From SourceIf neither Pip nor EasyInstall are available, you can still make a proper
installation of Agile OODT by building it from its source code.  Just follow
these instructions:Download the Agile OODT source distribution and extract the source
archive.  The source distribution is packaged as a gzip’d tar archive.Change the current working directory to the newly extracted directory.As an administrative user, run:python setup.py installFor More InformationVisit any of the following links for additional information, to ask questions,
report bugs, and so forth:OODT Home Pagehttp://oodt.apache.org/Mailing List for OODT Developmentmailto:dev@oodt.apache.orgPackage Page (Cheese Shop)http://pypi.python.org/pypi/oodt/Issue Tracker (submit bug reports here)https://issues.apache.org/jira/browse/OODTChangelogWhat follows is a history of changes to this software.0.2 - CurrentThis is the current release of Agile OODT, representing its migration from the
Apache Incubator to a full-fledged top-level Apache project.0.1-incubating - Initial Apache ReleaseThis release marks the induction of Agile OODT into the Apache Software
Foundation’sIncubator.
Package: ooengine
OOEngine InfoOOEngine version 0.2.1Python version 3.10.11 (main, Apr  4 2023, 22:10:32) [GCC 12.2.0]Branch by TheMadPunterOOEngine version 0.2.1How to PlayTo play OOEngine, you can use commands to influence the world around you. Use thecommands north, east, south, and west to move around, with "go somewhere" to go aspecific place.Command Listhelpquitnorth (n)east (e)south (s)west (w)look [object]take [item]eat [item]inventory (i)go [direction]infoinfogenUsernameLib version v1.0.0UsernameLib HelpCommand list:@username [username]emotesay [tosay]acknowledgements:Willie Crowther and Don Woods for Colossal Cave.Debug: False
Package: oofill
OverviewThis package allows you to programmatically fill sections in ODT files.
Read the tests to know how it works.Authors:atReal Team -contac@atreal.net:Jean-Nicolas Bes [drjnut]Matthias Broquet [tiazma]CreditsSponsorised by City of Savigny-sur-OrgeTODOAllowing section unlocked to be processed.Changelog for oofill(name of developer listed in brackets)Version 1.1.0 - 2010-06-11Added a parameter to make replacement of unprotected sections available
[tiazma]oofill - 1.0Stable release.
[tiazma]oofill - 0.1dev-r14Fully functional
[drjnut]oofill - 0.1 UnreleasedInitial package structure.
[zopeskel]