Saravanan666/pypi-org huggingface dataset:
Package: repl-openbb
title: Installation
sidebar_position: 2InstallationWe provide a simple installation method in order to utilize the OpenBB SDK. You must first create an environment, which allows you to isolate the SDK from the rest of your system. It is our recommendation that you utilize acondaenvironment because there are optional features, such asforecast, that utilize libraries that are specifically sourced fromconda-forge. Due to this, if you do not use a conda environment, you will not be able to use some of these features. As such, the installation steps will be written under the assumption that you are using conda.Steps:::note NOTE
Make sure you meet allrequirementsbefore proceeding.
:::1.InstallMinicondaDownload thex86_64Miniconda for your respective system and follow along
with it's installation instructions. The Miniconda architecture MUST bex86_64in order to use certain features.2.Create the virtual environmentcondacreate-nobbpython=3.9.6-y3.Activate the virtual environmentcondaactivateobb4.Install OpenBB SDK Core packagepipinstallopenbb5.(Optional) Install the Toolkits5.1If you would like to use the Portfolio Optimization features:::note NOTE
If on Apple Silicon Macs (M1/M2) you will need to install dependency from conda-forge firstcondainstall-cconda-forgecvxpy=1.2.2-y:::Install the Portfolio Optimization Toolkitpipinstall"openbb[optimization]"5.2If you would like ML Forecasting features:::note NOTE
If on Apple Silicon Macs (M1/M2) you will need to install the dependency from conda-forge firstcondainstall-cconda-forgelightgbm=3.3.3-y:::Install the Forecasting Toolkitpipinstall"openbb[prediction]"5.3If you would like to use both Portfolio Optimization and ML forecast features:::note NOTE
If on Apple Silicon Macs (M1/M2) you will need to install the dependencies from conda-forge firstcondainstall-cconda-forgelightgbm=3.3.3cvxpy=1.2.2-y:::Install all Toolkitspipinstall"openbb[all]"Congratulations! You have successfully installedopenbbon an environment and are now able to begin using it. However, it is important to note that if you close out of your CLI you must re-activate your environment in order begin using it again. This can be done with the following:condaactivateobbThe OpenBB SDK can be imported to a Jupyter Notebook or any code editor with,from openbb_terminal.sdk import openbbas explained in theHow to use the SDKguides. By following the above process, theOpenBB Terminalis automatically included as well which can be ran by typingopenbb.
Package: replot
Re-plota.k.a. How did I create that plot again 🤔PythonmatplotlibgitDid you ever want to recreate an old plot, changing just a small bit, but didn't manage because ...... wait, which script did I use to create that plot?... wait, what arguments did I pass to that script?... wait, what version of all involved libraries did I use?... wait, what environment variables were set at that time?... wait, what is the correct version of the data files?... wait, where did all the data files go?...This project aims to solve (most of) these problems and make plots fully reproducible at any time later in history.ConceptThe approach relies on two aspects,metadataandcapturing.Metadatais all the information that's addressed by the above questions, such as library versions, command line arguments, environment variables, etc.Capturingdescribes the way in which the metadata is stored together with the image.The current version ofreplotsaves the following metadata as theUserCommentExiftag together with the image (as a JSON dictionary):the current working directoryscript file path relative to repository rootcommand line argumentsenvironment variablesversion of all packages in the current virtual environmenta snapshot ofmatplotlib.rcParamscurrent commit hashHow does it work?All you need to do isimport replotsomewhere at the top of your script and then save your figures via the matplotlibFigure.savefigmethod. Behind the scenes,replotpatches this method in order to add the metadata information.File dependenciesreplotmonitors dependencies on external files by intercepting the following function calls:builtinopenpandas.read_csvnumpy.loadandnumpy.loadtxtData that is accessed in different ways won't be added to the list of dependencies. Custom data loaders can be registered for monitoring viareplot.monitor.In addition, it counts the main script as well as any other imported custom modules as file dependencies.If any of the file dependencies is not part of the git repository or if it contains unsaved changes,replotwill refuse to create a new image viaFigure.savefig. Instead it will print a warning which informs about the unsaved file dependencies. This warning can be suppressed viafrom replot import nowarn. A typical workflow would be to repeatedly view the plot viaplt.show(), then commit all the changes and then running the script again will also create the plot image.How to view the data?Thereplotpackage can be used to print the metadata in JSON format by passing the image file path as a command line argument or
by passing theUser Commentfield of the Exif data via stdin; for example:python -m replot test.png
exiftool -UserComment test.png | python -m replotThis will print all metadata information, however typically thecommit_hashfield is sufficient,
given thatreplotenforces putting all file dependencies under version control before a figure can be saved.
Package: replotlib
Replotting matplotlib figure the css wayFree software: BSD licenseInstallationpip install replotlibDocumentationhttps://replotlib.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.1 (2017-04-04)First release on PyPI.
Package: repl-python-wakatime
repl-python-wakatimePython REPL plugin for automatic time tracking and metrics generated from your
programming activity.Supported REPLs:python:executesstr(sys.ps1)after
every input.configure file:$PYTHON_STARTUP.fromrepl_python_wakatime.pythonimportinstall_hookinstall_hook()ptpython:executesget_ptpython().get_output_prompt()after every output.configure file:.../ptpython/config.py....depends on OS.fromptpython.replimportPythonReplfromrepl_python_wakatime.ptpythonimportinstall_hookdefconfigure(repl:PythonRepl)->None:install_hook(repl)ipython:executesc.TerminalInteractiveShell.prompts_class(shell).out_prompt_tokens()after
every output.configure file:~/.ipython/profile_default/ipython_config.py.fromrepl_python_wakatime.iptpythonimportinstall_hookinstall_hook(c)ptipython: Same asipython.bpythonxonshmypython: Won't fix.configure file: non-exist.install_hook()must be after the customization of the prompt string and best
at the end of file.Configurefromrepl_python_wakatime.pythonimportinstall_hookinstall_hook(hook_function,args,kwargs)will executehook_function(*args, **kwargs)after every output/input. Other
REPLs are similar. Currently,hook_functioncan be:repl_python_wakatime.hooks.wakatime.wakatime_hook(): By default.repl_python_wakatime.hooks.codestats.codestats_hook(): forcodestatsCreate your hooks for other similar projects, such as:codetimerescuetime...Similar projectswakatime plugins for python and many shellscodestats plugins
Package: repl-run-cli
repl-from-cliA new way to get your source code onto Repl with one command.What is repl-from-cli?Repl-from-cli allows you to upload your source code to a temporary GitHub repository and then allows you to clone it to repl.it and either delete or save the repo on your GitHub. You basically get to hit 2 birds with 1 stone.How does it work?This tool uses the GitHub API through PyGithub and thegitcommand line tool. It uses a Python program to create and pull repositories on GitHub to your local directory, push to remote, pull to repl.it, and then either delete the repo, or save it! You'll need a few things to get started.Requirements:Python 3.5+A GitHub AccountA GitHub Personal Access Token (How Do I Get Mine?)Arepl.itAccountGetting StartedTo start, first make sure you havegitthe command line tool installed. If you are using GitHub you most likely have it installed but if you don'tfind out how here.Either Run:pip3 install repl_from_clior# After pulling this repo and going into the directory:
python3 setup.py installTo install therepl-from-clicommand.The tool pulls from~/.replitcli/configfor configuration values. To change your GitHub token remove theconfigfile there. This will run the startup wizard again and allow you setup your config.UsageRunrepl-from-cliinside any directory you'd like to upload to repl.it. It will make sure you are logged into repl before creating the repository. After it creates the repo on your github it will create a local git repo in the directory and push to the GitHub repo. If you want to hide files you should make a.gitignoreprior to running this command. Also if it already has a GitHub repo simply use the URL API repl.it provides (ex.https://repl.it/github/<Username>/<Repo Name>).The tool will open uprepl.itin your default browser.Make sure you are logged into repl.it on it.
Package: rePLS
rePLSExamplesfromrePLSimportrePLS,rePCR,reMLRimportnumpyasnpn_samples,n_features,n_outcomes,n_confounders=100,10,5,2n_components=2rng=np.random.RandomState(0)Y=rng.randn(n_samples,n_outcomes)X=rng.randn(n_samples,n_features)Z=rng.randn(n_samples,n_confounders)reg=rePLS(Z=Z,n_components=n_components)reg.fit(X,Y)Y_pred=reg.predict(X,Z)
Package: repltable
repltableinstall](#⚙️-installation)this is a project is to make it so that you can have tables in the replit db.the main annoyance (for me) with replit is that it reverts a lot of database file changes, which forces you to use the repl.it database. also, you can't group together keys, and it takesFOREVERto install, due to it installing flask, aiohttp and a ton of other things you don't need for the database.⚙️ installationpipinstallrepltable🪴 usage# if you are using this on replitfromrepltableimportdb# or...fromrepltableimportDatabasedb=Database("https://kv.replit.com/v0/...")# repltable databases work like a dictionarydb.get(foo='bar')>>>[{'foo':'bar'}]# repltable auto-creates tables if they don't existdb.insert(dict(foo='bar'))# you can get one, or get all matching documentsdb.get_one(foo='bar')>>>{'foo':'bar'}# you can also group keys togetherfromrepltableimportTableDatabasetable=TableDatabase.get("users")# from here, it behaves as a regular databasetable.get(foo='bar')>>>[{'foo':'bar'}]# repltable auto-creates tables if they don't existtable.insert(dict(foo='bar'))# you can get one, or get all matching documentstable.get_one(foo='bar')>>>{'foo':'bar'}❓ why not just use replit-py?well, my goal is to make it so that you can use repl.it databases without having to use replit-py. replit-py has27dependencies. repltable has2.plus, repltable has more features:caching (auto-updates itself for accuracy!)groups of keys (named tables)uses more efficient queries (you canfilterkeys!)👥 contributingto contribute, fork the repo, make a branch, and send a pull request.for local development, you can install the dependencies with poetry:poetryinstall📜 licensethis project is licensed under themitlicense.
Package: repl-uploader
SynopsisThis is a simple code to extract data information from an excel (with a predefined format) and send it to a new Replicon expense sheet using webservices.MotivationSimplify my expenses reportsInstallationInstall Python -https://www.python.org/downloads/(I am using python 3.8)Check if python is in the path environment variablea) Command+r > type "rundll32 sysdm.cpl,EditEnvironmentVariables"b) Check if there is somenthing like "C:\Program Files (x86)\Python37-32\scripts;C:\Program Files (x86)\Python37-32" in the PATH variablec) Add it if necessaryOpen a command window and install the required python modules using the following command:pip install repl_uploaderInstall de xlwings addon on excel typing the following command on a command window:xlwings addin installGarantee that the Project Name Format in your replicon is set to "Name - Code"a) Login on your Replicon accountb) Go to settings (engine wheel - upper right corner)c) Change "Project Name Format" to "Name - Code"When a new release is available, upgrade with the following command:pip install --upgrade repl_uploaderAPI Referencexlwings -http://docs.xlwings.org/en/stable/quickstart.htmlAuthorThiago WeidmanContributorsDanilo Passos- The guy who made the worksheet template (Yeap, I stole the idea).Rodrigo Tomazeli- The Beta tester and "implementer"Manuel Cardoso- The new features specifier :)
Package: replus
Replus v0.3.0A wrapper for theregexlibrary for advanced pattern management.Checkout theFull documentation.QuickstartInstallationpipinstallreplusor clone this repogitclonegit@github.com:biagiodistefano/replus.gitand then runpythonsetup.pyinstallTemplate creationThe Engine loads Regular Expressionpattern templateswritten in *.json files from the provided directory, builds and compiles them in the following fashion:example of templatepatterns/date.json:{"day":["3[01]","[12][0-9]","0?[1-9]"],"month":["0?[1-9]","1[012]"],"year":["\\d{4}"],"date":["{{day}}/{{month}}/{{year}}","{{year}}-{{month}}-{{day}}"],"$PATTERNS":["{{date}}"]}will result in the following regex:(?P<date_0>(?P<day_0>[12][0-9]|0?[1-9]|3[01])/(?P<month_0>0?[1-9]|1[012])/(?P<year_0>\d{4})|(?P<year_1>\d{4})-(?P<month_1>0?[1-9]|1[012])-(?P<day_1>[12][0-9]|0?[1-9]|3[01]))Only the patterns under$PATTERNSwill be matched against at runtime.QueryingIt is possible to query as follows:fromreplusimportReplusengine=Replus('patterns')formatchinengine.parse("Look at this date: 2012-20-10"):print(match)# <[Match date] span(19, 29): 2012-12-10>date=match.group('date')print(date)# <[Group date_0] span(19, 29): 2012-12-10>day=date.group('day')print(day)# <[Group day_1] span(27, 29): 10>month=date.group('month')print(month)# <[Group month_1] span(24, 26): 12>year=date.group('year')print(year)# [Group year_1] span(19, 23): 2012>Filteringit is possible to filter regexes by type, being the type given by the json's filename's stem. E.g., in the above example, results matched by the patterns underpatterns/date.json's$PATTERNSwill have typedatefilters=["dates","cities"]formatchinengine.parse(my_string,*filters):# do stuffExtra featuresThere are two useful secondary features:non-capturing groups: these are specified by using the "?:" prefix in the group name or keyatomic groups: these are specified by using the "?>" prefix in the group name or keydynamic backreferences: use#to reference a previous group and@<n>to specify how many groups behindtemplate:{"?:number":["\\d"],"abg":["alpha","beta","gamma"],"spam":["spam"],"eggs":["eggs"],"patterns":["This is an unnamed number group: {{number}}.","I can match {{abg}} and {{abg}}, and then re-match the last {{#abg}} or the second last {{#abg@2}}","Here is some {{?:spam}} and some {{?>eggs}}"]}It will generate the following regexs:This is an unnamed number group: (?:\d).I can match (?P<abg_0>alpha|beta|gamma) and (?P<abg_1>alpha|beta|gamma), and then re-match the last (?P=abg_1) or the second last (?P=abg_0)Here is some (?:spam) and some (?>eggs)N.B.: in order to obtain an escape char, such as\d, in the pattern's model itmustbe double escaped:\\d
Package: replutil
replutilA collection of utilities for running services onrepl.it.Includes utilities for getting attributes of the container, as well as keeping the container alive usingthe UptimeRobot API.KeepAlive ExampleYou can obtain a token on thethe UptimeRobot dashboard.fromreplutilimport*fromtimeimportsleepimportlogginglogging.basicConfig(level=logging.INFO)withReplKeepAlive("token"):# Do your long running operations here...sleep(40)Registering servers, ports, and watchers are abstracted away from the end user.When used as a context manager, the library will automatically handle registering and deregistering watchers as well as staring and keeping open webservers.Yes, all you need to have your repl container run forever is a single line and an indent. No hacker plan, freedom!If this is used in a larger project, like, say, a Discord bot, you should do anyasyncioevent loop logic (includingClient.run) in the context manager scoping block as it creates processes.InstallYou can install this package via pip:pip install replutil
Package: replyify
A Python library for Replyify’s API.InstallationYou can install this package by using the pip tool and installing:
::
$ pip install replyifyOr:
::
$ easy_install replyifyRegister Your Application with ReplyifySign up for Replyify athttps://app.replyify.com/access/signupRegister your application athttps://app.replyify.com/oauth2/applications/registerUse OAuth2 workflow to obtain an access token for a userMake calls on the users behalfCredentials:
API calls require an access token obtained using OAuth2.  Once you obtain an access token for a user you can set theREPLYIFY_ACCESS_TOKENwith environment variables, manually after importingreplyify, or with each request:
::
$ export REPLYIFY_ACCESS_TOKEN=’{ your access token }’
…You can also set them manually:
::
import replyify
replyify.access_token = ‘{ add key here }’
…or with each request:
::
import replyify
campaign = replyify.Campaign.retrieve(‘asdf-…-1234’, access_token=’{ access token here }’)Using the Replyify APIDocumentation for the python bindings can be found here:https://app.replyify.com/api/docshttp://replyify.com/api/docs/pythonIn the standard documentation (the first link), most of the reference pages will have examples in Replyify’s official bindings (including Python). Just click on the Python tab to get the relevant documentation.In the full API reference for python (the second link), the right half of the page will provide example requests and responses for various API calls.
Package: replytics
Easily track your Repl.it statistics with Repl-Analytics! Simply put this at the beginning of your code and Replytics is active.importreplytics;replytics.init('https://repl.it/YOUR REPL LINK HERE')Don't forget to replace the url to the url of your own Repl.
Runreplytics.get_views()to get the amount of views your Repl has. Dashboard coming soon.
Package: repmsa
Table of ContentsWhat is repmsa?InstallationUsageWhat is repmsa?Creating a percentage identity matrix from a multiple sequence alignment and then ranking them to select the best sequence representetive
in the Multiple Sequence Alignment. repmsa ranks the sequences based on highest identity.Installationpip install repmsaUsagefromrepmsaimportRankMatrixvar=RankMatrix(msa_file)print(var.dm)#prints the distance matrixdf#prints the distance matrix in data frame.var.id_iter#is the iterator from highest ranked to lowest rank.var.ranked#returns the ranked list in a listed tuple.var.topids()# returns the id of the highest ranked sequence, each time its called it moves the next highest one.var.seq_by_id('QIQ56215.1')# returns the sequence by the id that is provided.
Package: repo2env
repo2envDetermine the environment specification for a given (app) repository.This tool parses an (app) repository and determines requirements similar torepo2docker.
But instead of generating a docker image it returns a specification that can then be used to build the environment.InstallationThe easiest way to install this tool is either directly with pip:~$pipinstallgit+https://github.com/aiidalab/repo2env.gitOr clone the repository first and then install:~$gitclonehttps://github.com/aiidalab/repo2env.git
~$cdrepo2env/
~/repo2env$pipinstall.UsageUse therepo2envcommand to parse the environment of a local or remote (app) repository:For a local repository, just provide the path:~$repo2env/path/aiidalab-hello-world/{"python_requirements":["aiidalab>=20.02.0b2"]}For a remote repository, provide aPEP 508compliant URL, for example:~$repo2envgit+https://github.com/aiidalab/aiidalab-hello-world.git@v1.0.0{"python_requirements":["aiidalab>=20.02.0b2"]}The output is JSON-formatted and can then be used for further processing.Tip: Usejqto generate pretty-printed output for manual inspection:$repo2env~/local/aiidalab/aiidalab-hello-world/|jq.{"python_requirements":["aiidalab>=20.02.0b2"]}What is parsedsetup.cfg: If present, theoptions.install_requireslist is parsed intopython_requirements.requirements.txtIs parsed intopython_requirementsif present andsetup.cfgis not present.AcknowledgementsThis work is supported by theMARVEL National Centre for Competency in Researchfunded by theSwiss National Science Foundation,
as well as by
the MARKETPLACE project funded byHorizon 2020under the H2020-NMBP-25-2017 call (Grant No. 760173).
Package: repo2jupyterlite
repo2jupyterliteBuild jupyterlite apps out of repositoriesInstallationInstall from PyPI:pipinstallrepo2jupyterliteBuild a repoYou can use therepo2jupyterlitecommand to check out any supported repo
(Git, Dataverse, Figshare, Local filestore, etc) and builds a jupyterlite
installation withjupyter lite build.repo2jupyterlitehttps://github.com/yuvipanda/requirementsrequirements-buildYou can serve therequirements-build/directory now statically, and it should
have the contents of the repo be present!
Package: repo2kaniko
repo2kanikorepo2kanikois a plugin forrepo2dockerthat lets you useKanikoinstead of Docker.Kaniko must run in a container, can only build images, and can only store images in a registry.
It has the big advantage that it i completely unprivileged and doesn't require any host configuration, unlike e.g. Podman which requires your system to have the correct cgroups configuration.It does not use a local Docker store, so it is not possible to separate the build and push steps.This means the repo2docker--push/--no-pusharguments have no effect.The default in this plugin is to automatically push the image to a registry after it is built.
Set TraitletKanikoEngine.push_image=Falseor environment variableKANIKO_PUSH_IMAGE=0to disable pushing the image.Kaniko does not cache layers locally, instead it uses a registry for caching.
You should probably use a dedicated local private registry for speed and not the remote registry used for storing the built image.
UseKanikoEngine.cache_registry_credentialsorKANIKO_CACHE_REGISTRY_CREDENTIALSto specify the credentials for the cache registry.
These behave similarly toContainerEngine.registry_credentialsandCONTAINER_ENGINE_REGISTRY_CREDENTIALS.Runningpodman run -it --rm quay.io/manics/repo2kaniko \
    repo2docker --debug --engine=kaniko \
    --Repo2Docker.user_id=1000 --user-name=jovyan \
    --KanikoEngine.registry_credentials=registry=quay.io \
    --KanikoEngine.registry_credentials=username=quay-user \
    --KanikoEngine.registry_credentials=password=quay-password \
    --image-name=quay.io/quay-user/r2d-test \
    --no-run \
    https://github.com/binderhub-ci-repos/minimal-dockerfileWith a local registry that can be used as a cache:./run-local-registry.sh
REGISTRY=...
podman run -it --rm quay.io/manics/repo2kaniko \
    repo2docker --debug --engine=kaniko \
    --Repo2Docker.user_id=1000 --user-name=jovyan \
    --KanikoEngine.cache_registry=$REGISTRY/cache \
    --KanikoEngine.cache_registry_credentials=username=user \
    --KanikoEngine.cache_registry_credentials=password=password \
    --KanikoEngine.cache_registry_insecure=true \
    --image-name=$REGISTRY/r2d-test \
    --no-run \
    https://github.com/binderhub-ci-repos/minimal-dockerfile
Package: repo2podman
repo2podmanrepo2podmanis a plugin forrepo2dockerthat lets you usePodmaninstead of Docker.Requires Podman 3+.Installationpip install repo2podmanRunningSimply include--engine podmanin the arguments torepo2docker:repo2docker --engine podman <repository>Using a different Podman executablerepo2podman uses thepodmancommand line executable, so it should be possible to substitute any other docker/podman compatible command line tool.For example,nerdctl:repo2docker --engine podman --PodmanEngine.podman_executable=nerdctl <repository>podman-remote:export CONTAINER_HOST=ssh://<user>@<host>/home/<user>/podman.sock
export CONTAINER_SSHKEY=$HOME/.ssh/<ssh-private-key>
repo2docker --engine=podman --PodmanEngine.podman_executable=podman-remote <repository>