Saravanan666/pypi-org huggingface dataset:
Package: ohlcv-plus
OHLCV+Download market data, aka OHLCV for Open High Low Close Volume, is something very useful for a trader.
OHLCV+ provide you a way to manage your data.Features 📋Download market data very quickly using multithreading (in the respect of API rate limit).Save your data in a lightweight database.Load your data from the database very quickly.Update your data to keep up-to-date ohlcvs.Super simple with only one method to use.Tutorial 🔎DependenciesPandasCCXTcoloramaSQLAlchemyInstallationThe package is packaged as a pip package, you can install it with this command:pip install OhlcvPlusYou can also manually download this project and its dependencies.pip install -r requirements.txtUsageOhlcvPlus is super easy to use !
To see how it works, just look at the example.py file.
The code is also commented, you can easily take a look at the methods docstrings.fromohlcvimportOhlcvPlusimportccxt.client=ccxt.binance()ohlcvp=OhlcvPlus(client,database_path='my_data.db')ohlcv1=ohlcvp.load(market='BTC/USDT',timeframe='1m',since='2023-01-01 00:00:00',limit=1000,update=True,verbose=True,workers=100)
Package: ohmlr
One-hot multinomial logistic regression========================Quick Start-----------Installation~~~~~~~~~~~~- To install ``ohmlr`` on your computer using ``pip``, execute.. code-block:: shpip install ohmlr- Test out ``ohmlr`` in Python:.. code-block:: pythonimport ohmlrimport numpy as np# create model and generate datan_features = 16n_x_classes = np.random.randint(2, 10, size=n_features)n_y_classes = 8model = ohmlr.ohmlr().random(n_features, n_x_classes, n_y_classes)x, y = model.generate_data(n_samples=1000)# fit and score modelmodel.fit(x, y)print(model.score(x, y))Links-----Online documentation:http://joepatmckenna.github.io/ohmlrSource code repository:https://github.com/joepatmckenna/ohmlrPython package index:https://pypi.python.org/pypi/ohmlr
Package: ohmr
For generating, encoding and managing runtime trace ids. These are typically
used to link side-effects:db recordssearch documentslog entries…for things like debugging, auditing, isolation, etc.Get it like:$pipinstallohmrFirst create a tracer e.g. like:importcoidimportohmrtrace=ohmr.Tracer(coid.Id(prefix='OHM-'))Then use it, most likely at session begin/resume points, e.g. like:importflaskapp=flask.Flask('krazy_eyez_killah')@app.before_requestdefset_trace_id()trace.reset()
Package: ohmt
Oh, My TreesOh, My Trees(ohmt) is a library for hyperplane-based Decision Tree induction, which allows you to induce
both Univariate (e.g., CART, C4.5) and Multivariate (OC1, Geometric) Decision Trees.
It currently supports single-class classification trees, and does not support categorical variables as they don't play
well with hyperplanes.QuickstartInstallationInstallation through git:gitclonehttps://github.com/msetzu/oh-my-trees
mkvirtualenv-ppython3.11omt# optional, creates virtual environmentcdoh-my-trees
pipinstall-rsrc/requirements.txtor directly throughpip:pipinstallohmtTraining treesOMT follows the classic sklearnfit/predictinterface.You can find a full example in the examples notebooknotebooks/examples.ipynb.fromohmt.trees.multivariateimportOmnivariateDTdt=OmnivariateDT()x=...y=...# trees all follow a similar sklearn-like training interface, with max_depth, min_samples, and min_eps as available parametersdt.fit(x,y,max_depth=4)OMT also offers a pruning toolkit, handled bytrees.pruning.Gardener, which allows you to prune the inducted Tree.
Find out more in the example notebook.Induction algorithmsOMToffers several Tree induction algorithmsAlgorithmTypeReferenceInfoC4.5UnivariateCARTUnivariateDKMUnivariateOC1MultivariatePaperGeometricMultivariatePaperOnly traditional SVM cutOmnivariateMultivariateTest all possible splits, pick the best oneModel treeMultivariatePaperLinear treeMultivariatePaperOptimal trees*MultivariatePaperMirror ofInterpretable AI's implementation*As mirror ofInterpretable AI's implementation, you need toinstall the appropriate licenseto use Optimal treesUsing TreesYou can get an explicit view of atreeby accessing:tree.nodes: Dict[int, Node]its nodes,tree.parent: Dict[int, int], tree.ancestors: Dict[int, List[int]]its parent and ancestors,tree.descendants: Dict[int, List[int]its descendants,tree.depth: Dict[int, int]: the depth of its nodes.Trees can also be JSONized:tree.json()Growing your ownTreeGreedy trees follow the basic algorithmic core oflearning step: induce a nodeif shall continue:generate two childrenrecurse on the given childrenWe incorporate this algorithm inTree, wherestepimplements the node induction, thus, most greedy induction
algorithms can implemented by simply overriding thestepfunction:defstep(self,parent_node:Optional[InternalNode],data:numpy.ndarray,labels:numpy.ndarray,classes:numpy.ndarray,direction:Optional[str]=None,depth:int=1,min_eps:float=0.000001,max_depth:int=16,min_samples:int=10,node_fitness_function:Optional[Callable]=None,node_hyperparameters:Optional[Dict]=None,**step_hyperparameters)->Optional[Node]
Package: oh-my-aws-outage
# oh-my-aws-outageSimple wrapper around the AWS API to create an outage for a few services.# Usage```pythonfrom aws_outage.network_outage import NetworkOutage# Network outage of one AZ for one or more vpcsprint('[~] Taking service down...')outage_duration = 30vpc = 'some-vpc-name'with NetworkOutage('eu-central-1', 'eu-central-1a', outage_duration, vpc) as o:print(f'[+] Service is now down for {outage_duration} seconds!')o.outage(duration=outage_duration)print('[+] Service restored!')```
Package: oh-my-bloom
🪐 Project: Oh-My-Bloom中文版本bloom📋 project.ymlTheproject.ymldefines the data assets required by the
project, as well as the available commands and workflows.⏯ CommandsThe following commands are defined by the project. They
can be executed usingproject run [name].Commands are only re-run if their inputs have changed.CommandDescriptiontrain训练模型dev调试模型训练整个流程，用于debugfast-run快速跑通训练流程，用于debug
Package: ohmyddl
超星学习通 deadline 汇总，目前仅适用于上海大学环境python版本：3.6+使用方法Windows安装pipinstallohmyddl运行ohmyddl.exe如果浏览器窗口没有自动打开，可在地址栏输入：http://localhost:5986/命令行（可选）ohmyddl-cli.exe-h移除pipuninstallohmyddlLinux安装pip3installohmyddl--user运行# 正常运行（web）# 如果浏览器窗口没有自动打开，可在地址栏输入：http://localhost:5986/ohmyddl# 命令行ohmyddl-cli-h移除pip3uninstallohmyddl反馈邮箱：hwenwur@qq.com
Package: ohmyds
oh-my-dsPython library to pretty print data structuresInstallationpip3installohmydsUsageRight now only binary tree is supportedfromohmydsimportbinary_treeroot=binary_tree.create_tree([1,2,3,4,None,5,None,6,7,8])For binary tree, you can do two operations right now - level order traversal and printprint(root)The above command will print binary tree in a beautiful way (beauty is in the eyes of the beholder!)_1    
/  \   
3  2_  
 \   \ 
 5   4 
    / \
    7 6
Package: oh-my-email
oh-my-email什么是 oh-my-email库如其名，oh-my-email封装常用的邮件发送功能，使得在项目中发送邮件更加方便。支持的功能简洁邮件发送API支持自定义发件人昵称支持抄送支持HTML支持附件使用方式安装oh-my-emailpipinstalloh-my-emailfromoh_my_emailimport(OhMyEmail,OhMyEmailConfig,OhMyEmailContact,OhMyEmailPlainContent,OhMyEmailHtmlContent)fromoh_my_email.voimportUrlAttachment,FileAttachment# 初始化配置conf=OhMyEmailConfig(mail_host='',mail_port=25,mail_user='your email',mail_pass='your password',)ome=OhMyEmail(conf=conf)# 发送纯文本邮件withomeascl:cl.send(subject='test subject',sender=OhMyEmailContact('sender email','sender name'),receiver=[OhMyEmailContact('receiver email','receiver name')],content=OhMyEmailPlainContent("This is a test email"),)# 发送带抄送人和暗抄送人纯文本邮件withomeascl:cl.send(subject='test subject',sender=OhMyEmailContact('sender email','sender name'),cc=[OhMyEmailContact('cc email','cc name')],bcc=[OhMyEmailContact('bcc email','bcc name')],receiver=[OhMyEmailContact('receiver email','receiver name')],content=OhMyEmailPlainContent("This is a test email"),)# 发送HTML邮件(会将html中包含的图片链接转为base64)withomeascl:img1="https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2554525534.webp"text=f"""<p>Python 邮件发送测试...</p><p>图片演示：</p><p><img src="{img1}"></p>"""cl.send(subject='test subject',sender=OhMyEmailContact('sender email','sender name'),receiver=[OhMyEmailContact('receiver email','receiver name')],content=OhMyEmailHtmlContent(text),)# 发送带附件的邮件withomeascl:img1="https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2554525534.webp"text=f"""<p>Python 邮件发送测试...</p><p>图片演示：</p><p><img src="{img1}"></p>"""cl.send(subject='test subject',sender=OhMyEmailContact('sender email','sender name'),receiver=[OhMyEmailContact('receiver email','receiver name')],content=OhMyEmailHtmlContent(text),attachment=[UrlAttachment(url='',filename=''),FileAttachment(filepath='',filename='')])
Package: oh-my-logging
oh-my-loggingAn extension for logging module.Installpip install oh_my_loggingUsageDecoratorsloggerInject logger object to function as the last parameter.from oh_my_logging.decorators import logger

@logger
def myprint(message, logger):
    logger.debug(message)
    logger.info(message)
    logger.warn(message)
    logger.error(message)
    
myprint('hello')log_argsLog arguments of function.from oh_my_logging.decorators import log_args

@log_args
def sum(a, b):
    return a + b
    
sum(1,2) # echo 'params: a=1, b=2'log_returningsLog retuning value of function.from oh_my_logging.decorators import log_returnings

@log_returnings
def sum(a, b):
    return a + b
    
sum(1,2) # echo 'returning: 1'log_statCount the execution time cost of specific function.from oh_my_logging.decorators import log_stat

@log_stat
def sum(a, b):
    return a + b
    
sum(1,2) # echo statistic: 1.2ms'log_errorLog exception info then raise exception again, or catch then ignore specific exceptions.from oh_my_logging.decorators import log_error

# Log then raise exception again.
@log_error
def myfile(name):
    raise FileNotFoundException(name)

myfile('123')

# Log then catch then ignore FileNotFoundException.
@log_error(ignore_errors=(FileNotFoundException,))
def myfile2(name):
    raise FileNotFoundException(name)
    
myfile2('123')logSuper decorator which contains funtionalities of decorators all above. If you want to log two or more information, use this decorator instead suggested.from oh_my_logging.decorators import log

@log(log.ARGS, 
     log.RETURNING, 
     log.STAT, 
     {'target': log.ERROR, 
      'ignore_errors': (FileNotFoundException,)})
def myfile(name):
    raise FileNotFoundException(name)

myfile('123')Logging ConfigurationDefault ConfigurationThe default logging configuration stored in$PWD/logging.ini.JSON/YAML Configurationfrom oh_my_logging.builders import LoggerBuilderFactory

# JSON
LoggerBuilderFactory('/path/to/logging.js')

LoggerBuilderFactory.unsafe_clear()
LoggerBuilderFactory('/path/to/logging.json')

# YAML
LoggerBuilderFactory.unsafe_clear()
LoggerBuilderFactory('/path/to/logging.yml)

LoggerBuilderFactory.unsafe_clear()
LoggerBuilderFactory('/path/to/logging.yaml)Dict Configurationfrom oh_my_logging.builders import LoggerBuilderFactory

dictConfig = {
    'version': 1,
    'root': {
        'level': 'DEBUG',
        'handlers': ['memory'],
    },
    'handlers': {
        'memory': {
            'class': 'oh_my_logging.handlers.MemoryHandler',
            'formatter': 'default',
        },
    },
    'formatters': {
        'default': {
            'format': '%(message)s',
        },
    },
}
LoggerBuilderFactory(dictConfig)
Package: ohmyoled
ohmyoledPrerequistes:Download the binary and support files
Go to releases and download the most recent tagwget https://github.com/TheFinalJoke/ohmyoled/releases/download/$tag/ohmyoled-$tag.tar.gzUncompress the Filetar -zxvf ohmyoled-$tag.tar.gzRun the Install Script#!/bin/bash
cd ohmyoled-$tag
chmod 755 install.sh
sudo ./install.shRun The Scriptsudo systemctl enable --now ohmyoled.serviceConfigurationThis is the Basic of Linux Configuration Files located /etc/ohmyoled/ohmyoled.confRun Different Modules Set the Modules Run Attribute to True*Note: Most needs to have API Tokens assoicated to The ModuleYou will also need to Reload The service after any changes[weather]
Run=TrueYou Can also change different Configurations like weather
You can add different zipcode/cityTo Help Write Our and use testspip install -e .[dev]DevelopmentOpen vscode and make sure you have docker on your raspberry pi
Then connect to remote raspberry pi or run vscode on raspberry pi
Choose to reopen in container and you will have the environment to developSoon To come: Docker ContainerKnown Problems// If your pi is not booting, you will have to change the kernel bootloader. With Raspbain OS the bootloader is borked with HAT Softwarehttps://learn.adafruit.com/adafruit-1-3-color-tft-bonnet-for-raspberry-pi/kernel-module-troubleshooting
Package: oh-my-pickledb
OH-MY-PICKLEDBoh-my-pickleDB is a lightweight, fast, and intuitive data manager written in python📝 Table of ContentsAboutGetting StartedDeploymentUsageBuilt UsingTODOContributingAuthorsAcknowledgmentsUseful Links🧐 Aboutoh-my-pickleDB is an improved version ofPickleDB, with notable differences compared to the original. Most important differences are:Cryptographic utils - Encrypt/Decrypt data content usingFERNETsymmetric encryptionCode improvements - More readable documentation, improved code, etc...Data conversions - Byte, json, or str conversionsMore flexibility - Save/load data as bytes, json or str, you decide!Utilities - Export data as XML🏁 Getting StartedPrerequisitespython~=3.9
cryptography~=3.4.8
setuptools~=58.1.0
fire~=0.4.0Installing# Using python pip$pipinstalloh-my-pickledb# Using git$gitclonehttps://github.com/tory1103/oh-my-pickledb.git
$cdoh-my-pickledb
$pipinstall-rrequirements.txt
$pythonsetup.pyinstall🔧 Running the testsTests are found ontestsfolder.In future versions, tests will be added inside code documentation as multi-row comments.Break down into end to end testscd/tests
python3<test_name>.py🎈 Usagefrommy_pickledbimportPickleDBdatabase=PickleDB("test.json")# PickleDB objectdatabase.set('key','value')# Creates new key and valuedatabase.get('key')# Must return 'value'database.save.as_json()# Must save database to file on specified path🚀 Deploymentoh-my-pickleDB is a python library, when installed, just import it to your project.importmy_pickledbfrommy_pickledbimport*⛏️ Built UsingPythonJsonData Structures✍️ Authors@tory1103- Idea, Concept & Initial workSee also the list ofcontributorswho participated in this project.🎉 Acknowledgementsjsonxmlcsv✨ Useful linksWebsiteDocsPypi
Package: oh-my-stars
# oh-my-starsSearch your stars locally.```usage: mystars [-h] [-l LANGUAGE [LANGUAGE ...]] [-u] [-r] [-a] [-3] [-i][-v][keywords [keywords ...]]a CLI tool to search your starred Github repositories.positional arguments:keywords              Search by keywordsoptional arguments:-h, --help            show this help message and exit-l LANGUAGE [LANGUAGE ...], --language LANGUAGE [LANGUAGE ...]Filter by language-u, --update          Create(first time) or update the local stars index-r, --reindex         Re-create the local stars index-c WHEN, --color WHENColorize the output; WHEN can be 'always' (default ifomitted), 'auto', or 'never'-a, --alfred          Format search result as Alfred Script Filter output-3, --three           Alfred 3 support-i, --install         Import Alfred workflow-v, --version         show program's version number and exit```![oh-my-stars](https://raw.github.com/wolfg1969/my-stars-pilot/master/oh-my-stars.png)##### Works with Alfred Workflow![oh-my-stars-alfred-workflow](https://raw.github.com/wolfg1969/my-stars-pilot/master/oh-my-stars-alfred-workflow.png)### ConfigurationYou can avoid entering your GitHub API credentials every time you update the index, by adding them to the ``~/.netrc`` file as follows:```inimachine api.github.comlogin ‹GH_USERNAME›password ‹GH_API_TOKEN›```Use an API token as the password – you can create one via *Settings » Developer settings » Personal access tokens* in the GitHub web interface.Once you have stored credentials, you can also automate the index update by adding a job with ``crontab -e``:```sh# GitHub stars0 6 * * *	~/.local/bin/mystars -u```### Installation (Mac OSX)```sh$ pip install oh-my-stars --upgrade --user$ mystars --help$ mystars --update$ mystars angular upload$ mystars --language python$ mystars awesome python```if install failed, try following commands```sh$ pip uninstall distribute$ pip install setuptools$ pip install --upgrade setuptools```### Integration with Alfred```sh$ mystars -i -3```For Alfred v2```sh$ mystars -i```### Change logs#### v1.5.1- Fix error 'IOError: [Errno 32] Broken pipe'##### v1.5.0- Disable the pagination and add a --color option. Thanks for the suggestions from @jhermann- Speed up result display with CachingMiddleware of TinyDB##### v1.4.9- Fix workflow for Alfred v2##### v1.4.8- Fix Alfred XML output- Rewrite Alfred workflow script##### v1.4.5- Drop Python 2.6 Support- Update docs: using ~/.netrc + cron. @jhermann##### v1.3.5- Output Alfred 3 JSON ouput with "-a -3" option.- Import Alfred Workflow with "-i" (append "-3" for Alfred 3) option.##### v1.2.3- Get user + password from netrc. @jhermann.- Use pipenv to manage project requirements.##### v1.1.3- Upgrade to TinyDB 3.7.0.- Build index when updating.- Search result pagination.*Note*- Uninstall existing version.- Rebuild existing index with `mystars -r`.##### v1.0.2- Rename to oh-my-stars.##### v1.0.1- Support Github two-factor authentication. @yanyaoer##### v1.0.0- Replace kc with [TinyDB](https://github.com/msiemens/tinydb), no more non-python dependencies.- Only update stars since last time.
Package: oh-my-vim
Oh My Vim!This package allow you to manage your vim pluginsIt’s eavily inspired fromoh-my-zshInstallationIt’s recommended to installoh-my-vimas a non root user.If you don’t know python and virtualenv then just run the install script:$ curl -O https://raw.github.com/gawel/oh-my-vim/master/tools/install.sh | sh -Or with wget:$ wget --no-check-certificate -O- https://raw.github.com/gawel/oh-my-vim/master/tools/install.sh | sh -If you know virtualenv/pip then run this in a virtualenv:$ pip install oh-my-vim
$ bin/oh-my-vim upgradeHave a look at your~/.vimrc:$ vim ~/.vimrcAnd select your favorites profiles.CommandsBrowse all VimL projects available on github in your favorite browser:$ oh-my-vim search [-t] [term]Installation. You can use a git url or arequires.txtfile/url wich
contains git urls:$ oh-my-vim install [giturl|requires.txt]Remove a bundle:$ oh-my-vim remove [bundle1|bundle2|...]List installed packages:$ oh-my-vim listList all packages listed in Oh My Vim’s registry:$ oh-my-vim list -aGenerate arequires.txtfile:$ oh-my-vim list -u > requires.txtUpgrade bundles (andoh-my-vimpython package):$ oh-my-vim upgrade [bundle1|bundle2|...]Useful linksVim revisitedVim for programmersFAQI’m a newbie. Is oh-my-vim made me a Vim guru ?No, but it can help you to setup a friendly environment.After the installation step install someusefullplugins with the following:$ oh-my-vim install -d usefullThen have a look at thedefaultsandmapprofiles and enable them in your.vimrcYou’re now ready to go…!What if I already use pathogen ?Nothing. Just remove thepathogenstuff from yourvimrcCan I use oh-my-vim from Vim ?Yes, and you should. You’ll get some completion. Just use:OhMyVim <args>Can I install a bundle from a mercurial repository ?Yes. You just need to prefix your url withhg+:$ oh-my-vim install hg+https://bitbucket.org/sjl/gundo.vimGood project but I’m missing a feature. Can you add it ?No. But you can. Fork the repository and submit a pull request.I have a cool plugin and I want to add it to oh-my-vim-registrySubmit a pull request after adding it to theregistryDoes oh-my-vim work on windows ?No, it wont be so hard to port but I’m not supporting this OSThis is a great project. Can I offer you a beer ?Sure.
Package: ohneio
Utility library to write network protocol parser,sans I/O.OhneI/O (without I/O in German) is a library usingasynciocorouting programming style.ohneioallows you to write protocol parsers the way you would write an asyncio protocol:>>>importbase64>>>importohneio>>>>>>defwait_for(s):...whileTrue:...data=yield fromohneio.peek()...pos=data.find(s)...ifpos>=0:...returnpos...yield fromohneio.wait()...>>>defread_until(s):...pos=yield fromwait_for(s)...data=yield fromohneio.read(pos)...returndata...>>>@ohneio.protocol...defecho_base64(separator):...whileTrue:...segment=yield fromread_until(separator)...yield fromohneio.read(len(separator))...yield fromohneio.write(base64.b64encode(segment)+separator)...>>>connection=echo_base64(b'\r\n')>>>connection.send(b'hello')>>>connection.read()b''>>>connection.send(b'\r\nworld\r\n')>>>connection.read()b'aGVsbG8=\r\nd29ybGQ=\r\n'The example above also shows howohneioallows you to combine primitives
into bigger parsing functions (likewait_forandread_until).
Package: ohnodb
ohnodbPlease never use this in production. I beg you, don't.pip install ohnodbUsage:fromohnodbimportOhNoDBdb=OhNoDB("./data")my_data={"hello":"world"}db.create("my_table","my_item",my_data,is_json=True)print(db.fetch("my_table","my_item",is_json=True))# >>> {"hello": "world"}db.update("my_table","my_item",{},is_json=True)print(db.fetch("my_table","my_item",is_json=True))# >>> {}
Package: ohnoyoudidnt
ohnoyoudidntohnoyoudidnt is a doc8 sphinx linter intended for use byfrc-docs. Its an expansion to the normal doc8 linter with custom checks intended to follow the frc-docsstyleguideProject created byTheTripleVUsageManualEnsuredoc8is installed.Install ohnoyoudidntpython-mpipinstallohnoyoudidntRun the linter usingdoc8VS CodeFollow instructions 1 and 2 from aboveInstall thereStructuredTextVS Code extensionAdd"restructuredtext.linter.name":"doc8","restructuredtext.linter.extraArgs":["--ignore D001","--ignore D004","--ignore D002","--ignore WUMBO002"],to yoursettings.jsonfile.Contribution GuidelinesChecksChecks can never yield a line number < 1Checks must compile regex patterns once per import, not once per file
Package: oho
📦 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.