Saravanan666/pypi-org huggingface dataset:
Package: oakx-oger
oakx-ogerThis is anOGERplugin foroaklib.ALPHAUsagepip install oakx-oger
runoak -i oger:sqlite:obo:envo annotate cultured organisms polar ecosystems atmospheric gas exchangeHow it worksThere are two possible inputs to this plugin:A.txtfile [runoak -i oger:sqlite:obo:envo annotate --text-file text.txt]Words that need to be annotated.[runoak -i oger:sqlite:obo:envo annotate cultured organisms polar ecosystems atmospheric gas exchange]Input ontologies generally usedoaklibcan be used with anoger:prefix.
Note: This has been tested only withoger:sqlite:obo:*for now.AcknowledgementsThiscookiecutterproject was developed from theoakx-plugin-cookiecuttertemplate and will be kept up-to-date usingcruft.
Package: oalg
oalgCollection of on-line algorithms.Most of them are on-line versions of their
offline counterparts in numpy, but because of their on-line nature, they are
formulated as classes instead of functions.For further information about on-line algorithms, please check Wikipedia:http://en.wikipedia.org/wiki/On-line_algorithmCopyright noticeCopyright (C) 2013-2023 Daniel Jung
Contact:proggy-contact@mailbox.orgThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
Package: oaloader
Office Addin SideloaderA handy tool to manage your office addins locally,
you can use it for addin development or deploy your addins for your clients out of AppSource.NOTE: currently only support windows.FeaturesAdd or remove Office Add-in locally.Support local or url manifest source.Debug sideload status and list manifest info.Single binary without any dependency.Use it as a library.Generate add-in installer/uninstaller withsentrysupport by single command.Support fixing add-inAPP ERRORandclearing cache.InstallationPre-built releasesIf you just use the command line and don't have a python environment,
download pre-built binary fromGitHub Releases.Pypi>pipinstalloaloaderQuick Start> ./oaloader.exe --help
Usage:  [OPTIONS] COMMAND [ARGS]...

  Manage your office addins locally.

Options:
  --version         Show the version and exit.
  -l, --level TEXT  The log level  [default: info]
  --help            Show this message and exit.

Commands:
  add     Register catalog and add manifests, manifests can be file paths
          or...

  fix     Try fixing `APP ERROR` when starting up add-ins.
  info    Debug sideload status.
  remove  Remove manifest from catalog and manifest can be a file path or...Build an Addin installerInstallPoetry.Runpoetry installto prepare environment.CheckoutNuitka Requirementsand install a C compiler.Runpoetry run invoke installer -m <YOUR-ADDIN-MANIFEST-URL>to build your own installer.If your want customize the installer, just editinstaller.jinja2or write your own installer withoaloadermodule.Build an Addin uninstallerJust using invokeuninstallertask likeinstallerabove.FAQHow it works?https://docs.microsoft.com/en-us/office/dev/add-ins/testing/create-a-network-shared-folder-catalog-for-task-pane-and-content-add-insGet error likeImportError: DLL load failed while importing win32xxxwhen import pywin32 module.Try this solution:Open a terminal as AdministratorGet your virtualenv path by runningpoetry env infoRunpoetry run python <virtualenv path>/.venv/Scripts/pywin32_postinstall.py -installseehttps://github.com/mhammond/pywin32/issues/1431#issuecomment-548584385for more details.
Package: oam-dl
Ozy and Millie Archive CLIoam-dl is inspired by and based on xkcd-dl by Tasdik Rahman, which was inspired by youtube-dl by Daniel Bolton.It archives the less memetic yet superior (:P)Ozy and Millieby Dana Simpson, which ran from 1998 to 2008.FeaturesDownload allOzy and Milliecomics.Download individualOzy and Milliecomics by release number.Download ranges ofOzy and Milliecomics by release number.InstallationIt’s on PyPI:pip3 installoam-dlUsageAfter installing, runoam-dl--create.
This creates a json file in your home directory that stores
information on each of the comics.--downloadDownloading a comic will create a directory structure in your
home directory under ~/OAM to automatically organize your comics
by year and month. You can specify a path other than ~ with the--pathcommand,
and--pathcto create your path if it doesn’t already exist.oam-dl--download<NUM>retrieves theOzy and Milliecomic with releasenumber <NUM>.oam-dl--download-aretrieves everyOzy and Milliecomic. There are >2000 of them, so the download may take a while.oam-dl--download-r<START> <END>retieves the range of comics betweenrelease numbers <START> and <END>.oam-dl--download[option]--path=path/to/directorycreates the archive at that path.LicenseMIT License (see LICENCE.txt)
Package: oampy
oampyis a Python package and command line tool that allows to access data
from the Open Access Monitor (OAM), which is run by Forschungszentrum Jülich.Installation… via PyPIpipinstalloampyPrerequisiteCreate an environment variableOAM_EMAILwith your email address. If the
variable isn’t created before using this package, yourusername@hostnamewill be used to populate the user agent field in the request headers instead.
Sinceversion 2.1you need a token to
use the API. Therefore, you must create an environment variableOAM_TOKENwith your token.
See alsoUsage Termsbelow.Usage ExamplesCommand Line# set environment variable OAM_EMAILexportOAM_EMAIL="researcher@institution.org"# set environment variable OAM_TOKENexportOAM_TOKEN="YOUR_SECRET_OAM_API_TOKEN"# fetch metadata of journal given by ISSNoampyjournal"0360-4012"# fetch metadata of publication given by DOIoampypublication"10.1007/s11263-011-0505-4"Interpreter# import package osimportos# set environment variable OAM_EMAILos.environ["OAM_EMAIL"]="researcher@institution.org"# set environment variable OAM_TOKENos.environ["OAM_TOKEN"]="YOUR_SECRET_OAM_API_TOKEN"# import package oampyimportoampy# fetch metadata of journaljournal=oampy.get_journal("0360-4012")# fetch metadata of publicationpublication=oampy.get_publication("10.1007/s11263-011-0505-4")Usage TermsOpen Access MonitorThe database of the Open Access Monitor Germany is published under the Open Database License 1.0.The data can be reused under the following conditions:Reuse of larger amounts of data and use of the API: please contact us.Reuse of the data by download via the OAM application: CC BY 4.0https://open-access-monitor.de
Package: oanda-accessor-pyv20
oanda_accessor_pyv20This app lets you easily load candle data of Foreign Currency from Oanda API.DependenciesYou have to setup followging packages or modules on your host machine.dockerdocker composeSetup development environment$dockercomposebuild
$dockercomposerunpackage_basebash# Run unit test/opt#pipenvrunpytestHow to use$pipenvrunpython
Loading.envenvironmentvariables...
CourtesyNotice:Pipenvfounditselfrunningwithinavirtualenvironment,soitwillautomaticallyusethatenvironment,insteadofcreatingitsownforanyproject.YoucansetPIPENV_IGNORE_VIRTUALENVS=1toforcepipenvtoignorethatenvironmentandcreateitsowninstead.YoucansetPIPENV_VERBOSITY=-1tosuppressthiswarning.
Python3.8.1(default,Feb22020,08:37:37)[GCC8.3.0]onlinux
Type"help","copyright","credits"or"license"formoreinformation.
>>># TODO: modify after making a module>>>fromoanda_accessor_pyv20importOandaInterface>>>o_interface=OandaInterface(instrument="GBP_JPY",account_id="101-000-00000000-000",access_token="11111111222222221111111122222222-11111111222222221111111122222222")>>>result=o_interface.load_specify_length_candles()>>>result["candles"]openhighlowclosevolumecompletetime0160.006160.052159.995160.044968True2022-12-2317:00:001160.046160.066160.004160.056728True2022-12-2317:05:00...58159.988160.121159.954160.015629True2022-12-2321:50:0059160.010160.138159.952160.029166True2022-12-2321:55:00
Package: oanda-backtest
oanda-backtestoanda-backtest is a python library for backtest with oanda fx trade rest api on Python 3.6 and above.Installation$ pip install oanda-backtestUsagebasicfromoanda_backtestimportBacktestbt=Backtest(access_token='<your access token>',environment='practice')bt.candles("EUR_USD")fast_ma=bt.sma(period=5)slow_ma=bt.sma(period=25)bt.sell_exit=bt.buy_entry=(fast_ma>slow_ma)&(fast_ma.shift()<=slow_ma.shift())bt.buy_exit=bt.sell_entry=(fast_ma<slow_ma)&(fast_ma.shift()>=slow_ma.shift())bt.run()bt.plot()advancedfromoanda_backtestimportBacktestbt=Backtest(access_token='<your access token>',environment='practice')filepath='usd-jpy-h1.csv'ifbt.exists(filepath):bt.read_csv(filepath)else:params={"granularity":"H1",# 1 hour candlesticks (default=S5)"count":5000# 5000 candlesticks (default=500, maximum=5000)}bt.candles("USD_JPY",params)bt.to_csv(filepath)fast_ma=bt.sma(period=10)slow_ma=bt.sma(period=30)exit_ma=bt.sma(period=5)bt.buy_entry=(fast_ma>slow_ma)&(fast_ma.shift()<=slow_ma.shift())bt.sell_entry=(fast_ma<slow_ma)&(fast_ma.shift()>=slow_ma.shift())bt.buy_exit=(bt.C<exit_ma)&(bt.C.shift()>=exit_ma.shift())bt.sell_exit=(bt.C>exit_ma)&(bt.C.shift()<=exit_ma.shift())bt.initial_deposit=100000# default=0bt.units=1000# currency unit (default=10000)bt.stop_loss=50# stop loss pips (default=0)bt.take_profit=100# take profit pips (default=0)print(bt.run())bt.plot("backtest.png")totalprofit1989.000totaltrades171.000winrate35.088profitfactor1.198maximumdrawdown2745.000recoveryfactor0.725riskrewardratio2.236sharperatio0.050averagereturn10.666stoploss5.000takeprofit5.000Supported indicatorsSimple Moving Average 'sma'Exponential Moving Average 'ema'Moving Average Convergence Divergence 'macd'Relative Strenght Index 'rsi'Bollinger Bands 'bband'Stochastic Oscillator 'stoch'Market Momentum 'mom'Getting startedFor help getting started with OANDA REST API, view our onlinedocumentation.ContributingFork itCreate your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create new Pull Request
Package: oandabase
Oanda Base PackageUses the REST v20 API to access your Oanda account, send orders and receive data.InstallationCreate a virtual environment and activate it.for ref:https://docs.python.org/3/tutorial/venv.htmlpip install oandabaseCreate a.envfile in the root folder and add your account number and token. You can add multiple accounts here e.g. live, practice, different accounts for different strategies etc. The classes in theoanda.pymodule are setup to default toaccount=PRACTICE_ACCOUNTandtoken=PRACTICE_TOKEN, when writing strategies to use different accounts simply pass these as keyword arguments to replace the default ones.Add.envto your .gitignore to keep your account details local.PRACTICE_ACCOUNT=XXX-XXX-XXXXXXXX-XXX
PRACTICE_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUsage:Built to be a component of other systems.
Read through the classes and they should explain themselves.
Package: oanda-chart
oanda-chartOanda forex candle chart tkinter widget.Video DemoYouTube demo of chart widgetQuick Sample of UsageThis code is a complete script for a working chart provided that:There is a working internet connection.AnOANDA_TOKENenvironmental variable is set to a valid access token.importtkinterimportosfromoanda_chartimportChartManagerroot=tkinter.Tk()manager=ChartManager(os.getenv("OANDA_TOKEN"))chart=manager.create_chart(root,flags=True,width=700,height=400)chart.grid(row=0,column=0,sticky="nsew")root.rowconfigure(0,weight=1)root.columnconfigure(0,weight=1)root.mainloop()Some BackgroundThe charts rely on theoanda-candlespackage which pulls candles fromOandathrough theirV20 Restful APIThe user must supply a
secret token string that is associated with either a demo or real brokerage account with
Oanda.Feature SummaryThis is strictly for tkinter applications.Only Oanda Forex candles are charted.User must supply a secret access token to their Oanda account.By dragging on chart user can pan about and candles are downloaded automatically as needed.Chart automatically keeps candles up to date with checks for recent prices every 5 seconds.Panning around can be done both in and out of a mode where the candles are adjusted to fit view.Dragging mouse on price scale makes candles taller or shorter.Dragging mouse on time scale makes them fatter or narrower (and so does mouse wheel).An optional Pair (instrument) selector with flags matching currency is an option for the chart.Pair (instruments) are also selectable from drop down.Granularity of candles (e.g. Monthly, hourly, etc) are limited to certain values supported by Oanda's V20 API.Bid, Mid, or Ask price can be selected for (default is Bid).All the selectors can be linked to one of several colors to enable changing a pair for one chart to also change it for others and such.Some Missing FeaturesSome features a trader might expect of a candle applications but which are presently missing:There are no annotations supported yet (no putting lines, or text, etc in chart).There is not selection mechanism for candles to see stats on them specifically.There is no way to place an order or see your order info.There are no indicators other than the candles.
Package: oandapy
OVERVIEWOANDAPYis a python3 wrapper for Oanda’s REST API v20.
This library currently implements the features released underversion 3.0.1of OANDA’s REST API.Head over toOANDA’s REST API v20 docsto go through their documentation.
This repository start on fork from Gustavo Ferreira and have a massive change laterRequirementsThis project requires:Python 3.4 or earliergit clientvirtualenvwrapper/virtualenv for local developmentInstallation$pipinstalloandapyOr, you can download the source and$gitclonegit@github.com:rhenter/oandapy.git$cdoandapy$pythonsetup.pyinstallUSAGECreate a account onhttps://www.oanda.comto get a API Access Token.Import the oandapy module and create an instance with your access token:>>fromoandapyimportAPIv20>>fromoandapy.exceptionsimportOandaError>>>>access_token="<OANDA Access token>">>oanda=APIv20(environment="practice",access_token=access_token)>>try:>>result=con.account.get_accounts()>># In case of http status 400>>exceptOandaErrorasexc:>>print(str(exc))>>>># Use the result as object>>print(result.as_obj())MyModel(accounts=[NamelessModel(tags=[],id='000-000-0000000-000')])>>>># Use the result as dict>>print(result.as_dict()){'accounts':[{'id':'000-000-0000000-000','tags':[]}]}ContributingPlease send pull requests, very much appreciated.Fork therepositoryon GitHub.Create a virtualenv.Install requirements.pip install-rrequirements-dev.txtInstall pre-commit.pre-commitinstallMake a branch off of master and commit your changes to it.Create a Pull Request with your contributionNOTESOanda API REST-v20 is still under development, some functionality have not yet been implemented (Pricing History, Forex Labs), but I will keep an eye on it, and as soon as it gets implemented I will update this library accordingly.DO NOT USE THIS LIBRARY ON PRODUCTION! It is under heavy development and still lacks testing suites. It is also partially documented.Use this library at your own risk.Happy hunting on the markets!!Changelog0.0.9Update url on setup.py0.0.8Update Sphinx docUpdate docstrings (its not ok yet)0.0.7Changes to Pypi view0.0.6Refactor: Move FactoryResponse to Core API and fix tests0.0.5Update Readme file to get simple examples0.0.4Change Setup data0.0.3Add Travis and Coveralls supportRemove Enum feature0.0.2Update readme fixing typos and changing the introduction0.0.1 (2018-12-06)initial release using changes file
Package: oao
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: oap
1
                111111                    1221  21
              112222111       112211 2    11222331113
             11211  1211    1122333222     12321  1211
             1221   1211    1231  1221      2321   1221
             1221   1221    1232  1221      2321   1121
             1221  11221    1231   2321     13211  113
             1112211211     1121  12321    1123332111
               111111        111211 121    1123211
                                            1221    1
                                            121
                                            111
                                             1
____________________________________________________________________
                                                      Version 0.0.14
Optical Array Processing (oap)
Licensed under the MIT license (see `LICENSE` file)

A transparent library for processing and analyzing individual
images of Optical Array Probes (OAPs)

Author:         Lucas Grulich
Last Update:    June 20, 2021IntroductionTheoaplibrary is a transparent tool, written inPythonandC, for working directly with image data fromOptical Array Probes.
It was initially developed for the preparation and classification of image data with neural networks.This software is still in the alpha phase and will be further developed at irregular intervals!Comments on this project are always welcome! If you have suggestions for improvement, you can simply write me anemailand I will try to implement them.At the current state, the decompression algorithm has only been implemented for grayscale probes byDroplet Measurement Technologies (DMT).DMT Monoscale Decompression coming next!The completedocumentationcan be found athttps://oap.readthedocs.ioInstallationTheoaplibrary is available onPyPi, so simply open a terminal window and type at the prompt:pipinstalloapI always recommend the use of virtual environments (e.g.venv&pipenv) to avoid destroying your Python installation.But if you don't want to work with virtual environments and still don't want to mess up your system directories, install the library as a user:pipinstalloap--userUsageA short code snippet that decompresses an OAP imagefile and outputs the first 100 images to the console:from oap import Imagefile

imagefile = Imagefile("Imagefile20200830120000")

# search for columns and rosettes
imagefile.classify()

# plot number of particles per flight second
imagefile.plot()

# plot number of rosettes per flight second
imagefile.plot(r=(0.5, 1))

# get all optical arrays containing particles of size
# 100 to 200 micrometers (area ratio) that were recorded
# between flight seconds 20000 and 22000.
array_list = imagefile.get_arrays(timespan=(20000, 22000),
                                  area_ratio=(100, 200))

# print particle images
for array in array_list:
    array.print()Initialization & CompilationPrerequisitesPython >= 3.7Pipenvpipenvinstallpythonsetup.pyinstall
Package: oapi2mockserver
OAPI2MOCKSERVERWhat does it doIt creates expectations for mockserver based on an OpenAPI2 yaml.If no scenarios are provided, it creates expectations for all endpoints with the first status-code defined. If example values are given in contract, these values will be used for response body.If scenarios are provided, they must match the defined endpoints in the OpenAPI2 file.Usagestart a mockserver:docker run -it --rm -P jamesdbloom/mockserverCreate expectations:oapi2mockserver mock localhost:<port_of_mockserver_docker_container> <path_to_open_api_2_contract_yaml>Scenario Parameter-sjson of scenarios to push to the mockserverExample:oapi2mockserver mock localhost:32768 foo.yaml -s '{"scenarios":[["\/v1\/foo\/{id}","get","200", "{\"foo\":\"bar\"}", "application/json"]]}'This pushes one scenario to mockserver with path/v1/foo/{id}, operationget, expected status-code200, expected response-body{"foo":"bar"}and expected response Content-Type headerapplication/jsonResponse-Body and Content-Type are optional and will be generated out of the contract if not given.
If the Response-Body is a json, it will be validated against the schema defined in the contract before the scenario will be send to mock-server.
Also the Content-Type header needs to be defined inproduces partof contract before the scenario will be send to mock-server.Developmentrun current development state:cd into package root directoryinstall dependencies withpip3 install -r requirements.txt(just before first run or after adding new dependencies)runpython3 run.py mock <url_to_mockserver> <path_to_open_api_2_contract_yaml>Testscd into package root directory and runpython3 -m unittest discover -s tests -vBuildcd into package root directory and runpip3 install ./Upload to pypi.orgWARNING: This will overwrite the current version on pypi.org!raise version insetup.py, then run ./upload