Saravanan666/pypi-org huggingface dataset:
Package: otb
The Orieux toolbox (otb) provides various utilities function I
used in my scientific numerical computation projects. Feel free to use
them as you want. Any comments and contributions are welcome. You
might find it useful for Fourier transform manipulation. Typical usage
looks like this:#!/usr/bin/env python

from otb import uft
uft.urfft2(image)InfoAuthor: François OrieuxContact: orieux at iap dot frProject homepage:http://bitbucket.org/forieux/otbDownloads page:https://bitbucket.org/forieux/otb/downloadsContentsuft.pyMany function around unitary Fourier transform and convolution.utils.pySmall utilities like index manipulation small linear algebra
utils.plotutils.pyPlotting function.physics.pyFormula, constants or unit conversion.tifffile.pyNot mine, the author is Christoph Gohlkehttp://www.lfd.uci.edu/~gohlke/. Is use a lot this module so it’s
here for my convenience.RequirementsNumpy version >= 1.4.1matplotlib version >= 1.1.0anfft : optional, for fftw usescipy : optionalInstallationThepipversion:pip install otbIf you have notpip, download the archive, decompress it and to
install in your user path, run in a command line:python setup.py install --useror for the system path, run as root:python setup.py installDevelopmentThis package follow the Semantic Versionning conventionhttp://semver.org/. To get the development version you can clone the
mercurial repository available herehttp://bitbucket.org/forieux/otbThe ongoing development is erratic and actually follow my needs.Licenseotbis free software distributed under the MIT license, see
LICENSE.txt for details.References[1]B. R. Hunt “A matrix theory proof of the discrete convolution
theorem”, IEEE Trans. on Audio and Electroacoustics,
vol. au-19, no. 4, pp. 285-288, dec. 1971
Package: otda
Domain adaptation based on optimal transportPython package to simplify OT-based domain adaptation. This package usesPOTas optimal transport backend.Install with pip$python3-mpipinstallotda--userInstall from source$python3setup.pyinstall--userExemplary code snippetadapted_im=otda.colour_transfer(source_im,target_im,method='linear',nsamples=1000)Run domain adaptation on a single image$python3-motda.run--sourcesource.jpg--targettarget.jpg--outputoutput.jpg--methodemdAvailable methods: linear, gaussian, sinkhorn, emd.Some examples of the colour adaptationSource imageTarget domain imageMethodOutputLinearGaussianSinkhornEarth mover's distance (EMD)LicenseThis repository is shared under anMIT license.AuthorLuis Carlos Garcia Peraza Herrera (luiscarlos.gph@gmail.com), 2020-2022.
Package: otdev-tool
___        _   _             _____           _        _   ___   ___  
/ _ \ _ __ | |_(_)_ __ ___   |_   _|__   ___ | |      / | / _ \ / _ \
| | | | '_ \| __| | '_ ` _ \    | |/ _ \ / _ \| |      | || | | | | | |
| |_| | | | | |_| | | | | | |   | | (_) | (_) | |      | || |_| | |_| |
\___/|_| |_|\__|_|_| |_| |_|   |_|\___/ \___/|_|      |_(_)___(_)___/


usage: otdev-tool [-h] [-l] [-p PROJECT] [-f FUNCTION]

options:
 -h, --help            show this help message and exit
 -l, --list            List all functions supported.
 -p PROJECT, --project PROJECT
                       Set project, default is sunfire.
 -f FUNCTION, --function FUNCTION
                       Set function you'd like to call.
Package: ote
OTE : One Time EmailIntroductionoteis a command line utility that generates temporary email address and automatically extracts OTPs or confirmation links from the incoming mails. It uses1secmail.com's API to generate temporary emails.It can be installed with pip as follows:pip3 install oteUsageEnterotein your terminal, a random email address will be generated for you. Any OTP or confirmation link sent to this address will be printed on your terminal.After that:If the link/OTP is not accurate, enter 'f' to print the link to the email to check it yourself.If you want to open the confirmation link in your browser right away, enter 'o'To quit, either enter 'q' or press Ctrl+CNote: If your OTP or link was a false positive or was not detected at all, please create an issue with the email body attached. The more variations of OTPs we have, the better the detection will get over time.Generate a custom emailote init myusernameIt will create an email of formmyusername@domain.com. After this point,otewill use this personalized email every time.Generate a secure emailote initIt will generate a random 20 character email and save it for subsequent usage like the previous option.
Package: oteapi-dlite
OTEAPI DLite PluginAll strategies implemented in this plugin (except forcreate_collection) assumes that you have the UUID of a DLite collection with the keycollection_idin thesession:collection_id=session["collection_id"]coll=dlite.get_collection(collection_id)A DLite collection stores references to DLite instances and relations between them as RDF triples.
Hence, the collection is a knowledge base for the current use case.In order to make it easy retrieve the collection id when executing a pipeline, theget()method of all filters in this plugin should return thecollection_id.Further reading:OTE-API Core DocumentationOTE-API Services DocumentationDLiteA list and documentation for all the strategies in this plugin can be foundhere.License and copyrightThe OTEAPI DLite Plugin is released under theMIT licensewith copyright © SINTEF.AcknowledgmentOTEAPI DLite Plugin has been created via thecookiecuttertemplate for OTE-API plugins.OTEAPI DLite Plugin has been supported by the following projects:OntoTrans(2020-2024) that receives funding from the European Union’s Horizon 2020 Research and Innovation Programme, under Grant Agreement no. 862136.VIPCOAT(2021-2025) receives funding from the European Union’s Horizon 2020 Research and Innovation Programme - DT-NMBP-11-2020 Open Innovation Platform for Materials Modelling, under Grant Agreement no: 952903.OpenModel(2021-2025) receives funding from the European Union’s Horizon 2020 Research and Innovation Programme - DT-NMBP-11-2020 Open Innovation Platform for Materials Modelling, under Grant Agreement no: 953167.
Package: oteapi-optimade
OTE-API OPTIMADEAn OTE-API Plugin with OTE strategies.Further reading:OTE-API Core DocumentationOTE-API Services DocumentationLicense and copyrightOTE-API OPTIMADE is released under theMIT licensewith copyright © SINTEF.AcknowledgmentOTE-API OPTIMADE has been created via thecookiecuttertemplate for OTE-API plugins.OTE-API OPTIMADE has been supported by the following projects:OntoTrans(2020-2024) that receives funding from the European Union’s Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 862136.VIPCOAT(2021-2025) receives funding from the European Union’s Horizon 2020 Research and Innovation Programme - DT-NMBP-11-2020 Open Innovation Platform for Materials Modelling, under Grant Agreement no: 952903.OpenModel(2021-2025) receives funding from the European Union’s Horizon 2020 Research and Innovation Programme - DT-NMBP-11-2020 Open Innovation Platform for Materials Modelling, under Grant Agreement no: 953167.
Package: otek
Otek is a command line tool to help you make new projects with ease.Otek stores templates of projects so you don’t have to remake the same
file structure every time your start developing a new idea. Just make the
template once and keep getting started from that. Otek avoids being
opinonated because the user knows what project format is best. This is
different from projects likeyeomanwhere the user has no control over their
project structure.What’s with the name?“Otek” is a translitaterion of the hebrew word for “copy”. I’m using hebrew because
using a different language is the only way to find a name that wasn’t taken.InstallationJust use pip!pipinstallotek.otek FolderIn the.otekfolder there’s anotekrcwhich stores the defaults values for
variables in JSON format.  It supports full JSON.  To see how to use variables, read the next section.TemplatesTemplates let you pre-process your projects with different variables.  First
create a template project in your~/.otekfolder.  This will look like# ~/.otek/example-project/main.py__author__='<% name %>'print('hello, world.  This is the <% PROJNAME %> ')Next create a new project for your template to be created$mkdirexample&&cdexample$otekcreateexample-projectNow our main python file has subsituted thenameforJacob Wunder# ~/Documents/example/main.py__author__='Jacob Wunder'print('hello, world.  This is the example-project ')To change values for certain variables on a project to project basis, just use
the-vflag followed by a variable name. WARNING: only works for top-level variables.otekcreateexample-project-vname="Linus Torvalds"Now value ofnameis ‘Linus Torvalds’ so the__author__will be Linus Torvalds# ~/Documents/example/main.py__author__='Linus Torvalds'print('hello, world.  This is the example-project ')createScriptNeed more than files to create your project?  Just create a file calledcreatewhich will be run upon creation time as a bash script.  This could be used to
runnpm initornpm installif you already have a default package.json.RoadmapDownload other people’s project templates using github in a similar way to homebrew formulae
Package: otel-extensions-pytest
otel-extensions-pytest: A pytest extension for OpenTelemetryotel-extensions-pytestis a pytest plugin that will automatically instrument a pytest-based test session,
wrapping the test session in a span and wrapping each test in a child span.DependenciesPython >= 3.6pytest >= 6.2Installationpip installYou can install through pip using:pipinstallotel-extensions-pytest(you may need to runpipwith root permission:sudo pip install otel-extensions-pytest)SetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageEnable the plugin by addingpytest_plugins=("otel_extensions_pytest",)to yourconftest.py, or by adding the option-p otel_extensions_pytestto the pytest command line.For tracing to be enabled, you need to specify a trace receiver endpoint using the command-line option--otel-endpointor by setting the environment variableOTEL_EXPORTER_OTLP_ENDPOINT.
e.g.--otel-endpoint http://localhost:4317/The full set of options are shown here:Command-line OptionEnvironment VariableDescription--otel_service_nameOTEL_SERVICE_NAMEName of resource/service for traces--otel_session_nameOTEL_SESSION_NAMEName of parent session span--otel_endpointOTEL_EXPORTER_OTLP_ENDPOINTOTLP Receiver Endpoint--otel_protocolOTEL_EXPORTER_OTLP_PROTOCOLprotocol for OTLP receiver (supported:gprc,http/protobuf,custom)--otel_processor_typeOTEL_PROCESSOR_TYPESpan Processor type (batch:  useBatchSpanProcessor,    simple: useSimpleSpanProcessor--otel_traceparentTRACEPARENTParent span id.  Will be injected into current context (useful when running automated tests using theOpenTelemetry Jenkinsplugin)n/aOTEL_EXPORTER_OTLP_CERTIFICATEpath to CA bundle for verifying TLS cert of receiver endpointn/aOTEL_EXPORTER_CUSTOM_SPAN_EXPORTER_TYPECustom span exporter class (needed if protocol set tocustom)Additional Features@instrumented_fixturedecoratorYou can decorate fixtures by using the@instrumented_fixturedecorator.  If the fixture is a generator (i.e. has ayieldstatement), separate spans will be created for the setup and teardown phases.fromotel_extensions_pytestimportinstrumented_fixture# note: all options of pytest.fixture() are supported (autouse, etc)@instrumented_fixture(scope="function")defmy_fixture():""" Span is automatically created using `my_fixture` as span name """return"foo"@instrumented_fixture(scope="function")defmy_generator_fixture():# A span named `my_generator_fixture (setup)` is automatically created for this sectiontime.sleep(5)yield"foo"# A span named `my_generator_fixture (teardown)` is automatically created for this sectiontime.sleep(5)
Package: otelme
otelme - pronounced "Oh, tell me"A low-friction OpenTelemetry wrapper for Python apps. It comes with sugar over basic spanning and thetellmagic receiver.UsageUse context managers or decorators to automatically create scoped spans:withtelme.tell('update_user_record'):telme.tell('a')|'b'...@telme.telldefmyfunc():...@telme.tell('different_name')defmyfunc():...Save the user friend count before adding to it and saving it to a variablenew_count=telme.tell('friends')@len(user.friends)+1Save the result ofcount + 1as the attribute 'newcount' on the current spantelme.tell('newcount')+countnew_count=telme.tell('newcount')+1Use a splat (*) operator to add a whole dict a JSON attribute on the current tracetelme.tell('explosion')*{'bang':'loud','flame':'big'}# adds span attr: {'explosion': '{"bang": "loud", "flame": "big"}'Use double-splat (**) operator to hoist a dict by its keys on the current tracetelme.tell('explosion')**{'bang':'loud','flame':'big'}# adds span attrs: {'explosion.bang': 'loud', 'explosion.flame': 'big'}Usenotifywith the splat (*) operator to add a dict as an event on the current tracetelme.notify('explosion')**{'bang':'loud','flame':'big'}# adds new event `explosion` with attrs: {'bang': 'loud', 'flame': 'big'}Inspired bypipe,q, and therollup_fieldsupport inHoneycomb's beeline.ContributingAll help is welcome, especially help understanding howotelmeis used and what other use cases we can help with. Not all pull requests will be accepted, before opening a PR with a feature please open an issue to discuss it to avoid doing work that can't be upstreamed.Licenseotelmeis available under the MIT license, seeLICENSEfor details.
Package: oterm
otermthe text-based terminal client forOllama.Featuresintuitive and simple terminal UI, no need to run servers, frontends, just typeotermin your terminal.multiple persistent chat sessions, stored together with the context embeddings and template/system prompt customizations in sqlite.can use any of the models you have pulled in Ollama, or your own custom models.allows for easy customization of the model's template, system prompt and parameters.InstallationUsingbrewfor MacOS:brewtapggozad/formulas
brewinstallggozad/formulas/otermUsingpip:pipinstallotermUsingIn order to useotermyou will need to have the Ollama server running. By default it expects to find the Ollama API running onhttp://0.0.0.0:11434/api. If you are running Ollama inside docker or on a different host/port, use theOLLAMA_HOSTenvironment variable to customize the host/port. Alternatively you can useOLLAMA_URLto specify the full http(s) url. SettingOTERM_VERIFY_SSLtoFalsewill disable SSL verification.OLLAMA_URL=http://host:port/apiThe following keyboard shortcuts are supported:^ Ctrl+N- create a new chat session^ Ctrl+E- edit the chat session (change template, system prompt or format)^ Ctrl+R- rename the current chat session^ Ctrl+S- export the current chat session as markdown^ Ctrl+X- delete the current chat session^ Ctrl+T- toggle between dark/light theme^ Ctrl+Q- quit^ Ctrl+L- switch to multiline input mode^ Ctrl+P- select an image to include with the next message↑- navigate through history of previous promptsWhile Ollama is inferring the next message, you can pressEscto cancel the inference.Note that some of the shortcuts may not work in a certain context, for example pressing↑while the prompt is in multi-line mode.Customizing modelsWhen creating a new chat, you may not only select the model, but also customize thetemplateas well as thesysteminstruction to pass to the model. Checking theJSON outputcheckbox will cause the model reply in JSON format. Please note thatotermwill not (yet) pull models for you, useollamato do that. All the models you have pulled or created will be available tooterm.You can also "edit" the chat to change the template, system prompt or format. Note, that the model cannot be changed once the chat has started. In addition whatever "context" the chat had (an embedding of the previous messages) will be kept.Chat session storageAll your chat sessions are stored locally in a sqlite database.
You can find the location of the database by runningoterm --db.ScreenshotsLicenseThis project is licensed under theMIT License.
Package: otf
OTF is a framework to programmatically write, run and debug workflows.Notebooks:OTF is still in its infancy. We currently mostly rely on notebook to demonstrate
how it works:IntroductionSerialisationInstallingOTF is currently in pre-alpha. If you really want to play with it you
can check install the latest build via:$pipinstall-ihttps://test.pypi.org/simple/otf
Package: otf2ttf
otf2ttfThis is a simple command=line script that can be installed and used to
convert OTF (OpenType Font) and TTF (TrueType Font) file formats.How to use it:$ pip install otf2ttf
$ otf2ttf MyFont.ttfBackgroundCurrently these 2 PDF libraries, require TTF fonts, which is why this script
was packaged up for ease of use:ReportLabFPDFThis package was built using a sample script from thefonttoolsproject.Below is a link to the original script:otf2ttf.pyThis package was created to ease the use of non-programmers looking to
convert their files.More information about this script can be found inIssue #1283.
Package: otgCrypto
The expansion of OTG cryptography is One Time Gamble. It is a hybrid and lightweight cryptographic system. that transforms a plaintext into a ciphertext so that secret communication is to be ensured.PrefaceIn the OTG system, the original password is hidden under several fake passwords in a vault. Also, these passwords are hashed by bcrypt hash function which is a one-way encryption and cannot be reversed. Moreover, the secret message will be deleted by itself if a user gives the wrong password only at once. As a result, it will be so much more difficult for a hacker to guess, retrieve and use the password correctly among fake passwords. Furthermore, the key is 128 bits long. So, a hacker needs to go for 2128 = 3.402e+38 possible ways in terms of finding the correct key to decrypt the ciphertext. It is by far impossible for a regular user device to solve the math. It will need a supercomputer to do the computation. However, a low computational powered device (e.g. IOT device) can easily handle it because of its symmetric and stream cipher architecture. Thus, it makes the algorithm lightweight. Also, OTG is a software and hardware-independent cryptography. In conclusion, this new innovation can make a fruitful impact on the current security epidemic.Program UtilizationA user inputed password.A user inputed secret message.The secret messages is stored in a vault with ChaCha20poly1305 method.A dictionary is containing manipulated (fake) passwords in addition to the real password.A dictionary containing seeds (Seed generator). Seeds are simply pointers that point to the secret message.The encryption algorithm:cipher = password XOR key.The decrpytion algorithm:key = password XOR cipher.A try/except block to search for actual password that do exist in the password dictionary.The message will be deleted if a user give wrong password.Ideal Applications To UseGovernment Secret MessageSensitive Business CommunicationLow Computational Powered DeviceCautionOTG is a very typo sensitive system.It should be used only for very sensitive work.This cryptography ensures OTC (One Time Chance) method.Message will be deleted if a user gives wrong password only at once.Do You Want To Know Me?Call: +8801818832925Email:tahsin.ahmed@g.bracu.ac.bdFacebook:https://www.facebook.com/ahmedinsider
Package: othelloc
OthelloCPython library of C implementation of OthelloUsagefromothellocimportOthellogame=Othello()game.print_board()cur_player=game.cur_player()game.make_move(cur_player,game.get_possible_moves(cur_player)[0])game.print_board()InstallationpipinstallothellocClassesOthello()The base game class, which contains the board and the current player.Methodsget_starting_board()Returns the starting board position.copy()Returns a deep copy of the current game.make_move(player, move)Makes a move for the player. The move is a tuple of (row, col).is_game_over()Returns 1 if the game is over, otherwise 0.get_winner()Returns the winner of the game, or 0 if the game is not over.get_possible_moves(player)Returns a list of possible moves for the player. The moves are tuples of (row, col).get_score()Returns the score of the game. The score is a tuple of (black, white).tiles_to_flip(player, move)Returns a list of tiles that will be flipped if the player makes the move. The move is a tuple of (row, col).print_board()Prints the board, the current player and the score.print_moves(player)Prints the possible moves for the player.get_fen()Returns the FEN string of the current game.AttributesboardThe board of the game. 0 is empty, -1 is black, 1 is white.cur_playerThe current player. -1 is black, 1 is white.
Package: othello-cli
othelloA command-line interface for Othello! Either player can be human or a bot.
A list of available agents is available via the help command.InstallationTo install the Othello project, run this command in your terminal:$ pip install othelloUsage$ othello [OPTIONS]

    -b <agent>, --black <agent>
    -w <agent>, --white <agent>
    -v, --version
    -h, --helpLicenseMIT License
Package: othellotk
OthelloTkEdax gui to play Othello against the Edax engine.
Written in python3/Tkinter and licensed under the GPL v3+
(see the file named LICENSE).
It was tested with edax 4.3.2 and Python 3.4.3 on Linux.RequirementsPython 3, tkinter, Edax.Running OthelloTkThere are 3 ways to install/run it.Run it from the source folder by running the run.py script:python run.pyInstall it on your system with the command:python setup.py installThis command should be run as root user.
You can then run it with the command ‘othellotk’.Install it from PyPIpip install othellotkYou can then run it with the command ‘othellotk’.Setting up the Engine PathDownload the edax othello engine fromhttp://abulmo.perso.neuf.frThis has a prebuilt binary for Linux 64 bit.Start othelloTk.Do Engine/Set Engine Path and set the engine path to the edax
executable.
This is called lEdax-x64 in the edax bin folder (if you are using
Linux 64 bit).Start the game by left clicking to place a black stone.UsageYou play black, computer plays white.
Click on a square to place a black stone.
If you find there are no legal moves then you can pass by right
clicking anywhere on the board.Edax allows you to configure engine settings in a file named
edax.ini. Copy this file into the ~/.othelloTk/ folder
(or into the edax bin folder). See edax documentaion for more on this.To display debug messages use the -debug flag:python run.py -debug
(or othelloTk -debug if installed)If the engine is taking too long to move you can use ctrl-m to make it
move instantly. Use the time control menu option to set the time to
move.
Package: other
>>> import other
The Zen of Zope, by Alex Clark


Beautiful is an attribute of ugly.
Explicit is implemented by implicit.
Simple is provided by complex.
Complex is directly provided by complicated.
Flat only implements nested.
Sparse has tagged value dense.
Readability count is not in range.
Special cases could not adapt the rules.
Practicality implements purity.
Errors should never require a specification that doesn’t extend the specification of silence.
Unless explicit is a multi-adapter.
In subscribing to ambiguity, return all the objects that refuse the temptation to guess.
There should be none-- and preferably only zero --output from a handler.
Although that way may not be obvious at first unless you've registered an adapter hook
Now is verified by never.
Although never is not implemented by *right* now.
If the implementation is hard to explain, it queries the bad idea utility.
If the implementation is easy to explain, it may query the good idea utility.
Implicit namespace packages are one honking great idea -- let's do more of those!