Saravanan666/pypi-org huggingface dataset:
Package: redkyn-grader
This program uses Docker and Python to easily grade many assignments in an encapsulated, safe manner. The general process starts by creating an image for a class or an assignment. That image can be given a payload, a protected grading script, which has a grading hooks. The grade module, when ran, creates an individual container for each student's assignment and runs a payload hook. The payload then returns a JSON response with stdin, stdout, and additional response information depending on the image ran.Getting StartedSeethe tutorialfor an idea of how to get started usinggrader.SetupThis project is setup usingbuildout. It's super easy to getgraderup and running:You'll probably need the following libraries...build-essentiallibncurses-devpython3-devAnd, of course, you'll want Docker if you plan to do anything interesting at all. Grader requires docker withAPI version >= 1.20. We useput_archive(PUT /containers/(id)/archive) from docker-py.# Bootstrap buildoutpython3bin/bootstrap-buildout.py# Setup your development environment with buildoutbin/buildoutNow you're done! When it sets up your environment, buildout creates a couple of executables and places them inbin/for you. They are:buildout: That's buildout. Run it whenever you add eggs tograder/setup.pyor modifybuildout.cfggrader: That'sgrader!python: "What? Another Python!?" Yeah... This is an ipython interpreter. It's handy because it has access to all the same packages that were installed forgrader.Check your styleIt's important to keep our code looking consistent. There's a tool installed by buildout calledflake8that will check your Python source for issues in style. Simply run it like this:# Make sure you run this in your grader directory. flake8 will recursively check source files for style issues.bin/flake8grader/
Package: redlib
A library for commonly used functions / classes in building a python application.Submodulesnet: utility classes for handling urls, list of well known cdns, top level domainsweb: utility class for parsing html and accessing elements via xpathsystem: platform related functionsmisc: doc string functionscolors: a named color listprnt: miscellaneous print functionspy23: python 2.7/3.4 compatibility functionshttp: http request / response handling, cachingDownloadPyPI:http://pypi.python.org/pypi/redlibSource:https://github.com/amol9/redlib
Package: redlibssh
Bindings forlibsshC library.InstallationBinary wheels are provided for Linux (manylinux 2010), OSX (10.14 and 10.15).Wheels haveno dependencies.For building from source, seedocumentation.pipinstallredlibsshPip may need to be updated to be able to install binary wheels.pipinstall-UpippipinstallredlibsshQuick StartSeecommand execution scriptfor complete example.FeaturesThe library usesCythonbased native code extensions as wrappers tolibssh.Thread safe - GIL released as much as possiblelibssh threading limitations apply - anything not supported in C is not supported in PythonVery low overhead thin wrapperObject orientedMemory freed automatically and safely as objects are garbage collected by PythonUses Python semantics where applicablechannel/file handle context manager supportchannel/file handle iterator supportRaises low level C errors as Python exceptions
Package: redlite
RedLiteAn opinionated toolset for testing Conversational Language Models.Documentationhttps://innodatalabs.github.io/redlite/UsageInstall required dependenciespipinstallredlite[all]Generate several runs (using Python scripting, seeexamples, and below)Review and compare runsredliteserver--port<PORT>Optionally, upload to ZenoZENO_API_KEY=zen_XXXXredliteuploadPython APIimportosfromredliteimportrun,load_datasetfromredlite.model.openai_modelimportOpenAIModelfromredlite.metricimportMatchMetricmodel=OpenAIModel(api_key=os.environ["OPENAI_API_KEY"])dataset=load_dataset("hf:innodatalabs/rt-gaia")metric=MatchMetric(ignore_case=True,ignore_punct=True,strategy='prefix')run(model=model,dataset=dataset,metric=metric)Goalssimple, easy-to-learn APIlightweightonly necessary dependenciesframework-agnostic (PyTorch, Tensorflow, Keras, Flax, Jax)basic analytic tools includedDeveloppython-mvenv.venv
..venv/bin/activate
pipinstall-e.[dev,all]Make commands:testtest-serverlintwheeldocsdocs-serverblackZeno <zenoml.com> integrationBenchmarks can be uploaded to Zeno interactive AI evaluation platform <hub.zenoml.com>:redliteupload--projectmy-cool-projectAll tasks will be concatenated and uploaded as a single dataset, with extra fields:task_iddatasetmetricAll models will be uploaded. If model was not tested on a specific task, a simulated zero-score dataframe is used instead.Usetask_id(ordatasetas appropriate) to create task slices. Slices can be used to
navigate data or create charts.TODOdeps cleanup (randomname!)review/improve module structureautomate CI/CDwrite docspublish docs automatically (CI/CD)web UI stylingbetter test servertestsIntegrate HF modelsIntegrate OpenAI modelsIntegrate Anthropic modelsIntegrate vLLM modelsFix data format in HF datasets (innodatalabs/rt-* ones) to match standardmore robust backend API (future-proof)better error handling for missing depsdocument which deps we need whenexport to CSVUpload to Zeno
Package: redlock-dist
redlock-distImplementation of distributed locking withRedisDistributed locks with RedisUsageInstall:pip install redlock-distexample:from redis import StrictRedis
from redlock_dist import RedLock

rds = StrictRedis(host='localhost', port=6379, db=0)

"""
:param expire: lock key ttl(ms)
:param retry_times: retry times to get lock
:param retry_interval: retry interval(ms)
"""
with RedLock(rds, 'key-name', expires=30000, retry_times=3, retry_interval=50) as red_lock:

    if red_lock:
        print('get lock')
    else:
        print('do not get lock')Principle and notesBecause Redis is single-threaded and you can useSET key value NX PX expires
Package: redlockfifo
redlock-py - Redis distributed locks in PythonThis python lib implements the Redis-based distributed lock manager algorithm
[described in this blog post](http://antirez.com/news/77).To create a lock manager:dlm = Redlock([{“host”: “localhost”, “port”: 6379, “db”: 0}, ])To acquire a lock:my_lock = dlm.lock(“my_resource_name”,1000)Where the resource name is an unique identifier of what you are trying to lock
and 1000 is the number of milliseconds for the validity time.The returned value isFalseif the lock was not acquired (you may try again),
otherwise an namedtuple representing the lock is returned, having three fields:validity, an integer representing the number of milliseconds the lock will be valid.resource, the name of the locked resource as specified by the user.key, a random value which is used to safe reclaim the lock.To release a lock:dlm.unlock(my_lock)It is possible to setup the number of retries (by default 3) and the retry
delay (by default 200 milliseconds) used to acquire the lock.Disclaimer: This code implements an algorithm which is currently a proposal,
it was not formally analyzed. Make sure to understand how it works before using it
in your production environments.The MIT License (MIT)Copyright (c) 2014 SPS Commerce, Inc.Permission 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: redlockfifo-test
redlock-py - Redis distributed locks in PythonThis python lib implements the Redis-based distributed lock manager algorithm
[described in this blog post](http://antirez.com/news/77).To create a lock manager:dlm = Redlock([{“host”: “localhost”, “port”: 6379, “db”: 0}, ])To acquire a lock:my_lock = dlm.lock(“my_resource_name”,1000)Where the resource name is an unique identifier of what you are trying to lock
and 1000 is the number of milliseconds for the validity time.The returned value isFalseif the lock was not acquired (you may try again),
otherwise an namedtuple representing the lock is returned, having three fields:validity, an integer representing the number of milliseconds the lock will be valid.resource, the name of the locked resource as specified by the user.key, a random value which is used to safe reclaim the lock.To release a lock:dlm.unlock(my_lock)It is possible to setup the number of retries (by default 3) and the retry
delay (by default 200 milliseconds) used to acquire the lock.Disclaimer: This code implements an algorithm which is currently a proposal,
it was not formally analyzed. Make sure to understand how it works before using it
in your production environments.The MIT License (MIT)Copyright (c) 2014 SPS Commerce, Inc.Permission 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: redlock-plus
Redlock+ is an up to date, feature complete implementation of theRedlock AlgorithmIt’s a spiritual successor toglasslion/redlock, which is no longer maintained.FeaturesCompliant with the standard libraryLockandRLockso it can be used as a drop-in replacementComplete implementation of theRedlock AlgorithmAutoextend functionality to make redlock safer and easier to useWell tested (Python 3.6+, PyPy3)Type hintedDocumentationhttps://redlock-plus.readthedocs.io/en/latest/InstallationRedlock+ is available onPyPi:pipinstallredlock-plusBasic usagefromredlock_plusimportLockredis_instance_configs=[{"url":"redis://localhost/0"},{"url":"redis://example.com:1234/1"},{"url":"redis://other.host:5678/2"},]withLock("my_resource",redis_instance_configs):# do workor speed up things for repeated use using the factoryfromredlock_plusimportLockFactoryredlock_factory=LockFactory([{"url":"redis://localhost/0"},{"url":"redis://localhost/1"},{"url":"redis://localhost/2"},])withredlock_factory("my_resource"):# do work
Package: redlock-py
redlock-py - Redis distributed locks in PythonThis python lib implements the Redis-based distributed lock manager algorithm
[described in this blog post](http://antirez.com/news/77).To create a lock manager:dlm = Redlock([{“host”: “localhost”, “port”: 6379, “db”: 0}, ])To acquire a lock:my_lock = dlm.lock(“my_resource_name”,1000)Where the resource name is an unique identifier of what you are trying to lock
and 1000 is the number of milliseconds for the validity time.The returned value isFalseif the lock was not acquired (you may try again),
otherwise an namedtuple representing the lock is returned, having three fields:validity, an integer representing the number of milliseconds the lock will be valid.resource, the name of the locked resource as specified by the user.key, a random value which is used to safe reclaim the lock.To release a lock:dlm.unlock(my_lock)It is possible to setup the number of retries (by default 3) and the retry
delay (by default 200 milliseconds) used to acquire the lock.Disclaimer: This code implements an algorithm which is currently a proposal,
it was not formally analyzed. Make sure to understand how it works before using it
in your production environments.The MIT License (MIT)Copyright (c) 2014 SPS Commerce, Inc.Permission 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: redlock-py-catch
redlock-py - Redis distributed locks in PythonThis python lib implements the Redis-based distributed lock manager algorithm
[described in this blog post](http://antirez.com/news/77).To create a lock manager:dlm = Redlock([{“host”: “localhost”, “port”: 6379, “db”: 0}, ])To acquire a lock:my_lock = dlm.lock(“my_resource_name”,1000)Where the resource name is an unique identifier of what you are trying to lock
and 1000 is the number of milliseconds for the validity time.The returned value isFalseif the lock was not acquired (you may try again),
otherwise an namedtuple representing the lock is returned, having three fields:validity, an integer representing the number of milliseconds the lock will be valid.resource, the name of the locked resource as specified by the user.key, a random value which is used to safe reclaim the lock.To release a lock:dlm.unlock(my_lock)It is possible to setup the number of retries (by default 3) and the retry
delay (by default 200 milliseconds) used to acquire the lock.Disclaimer: This code implements an algorithm which is currently a proposal,
it was not formally analyzed. Make sure to understand how it works before using it
in your production environments.The MIT License (MIT)Copyright (c) 2014 SPS Commerce, Inc.Permission 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: redlog
redlogYet another logging library in Python. This one writes logs to a Redis database and supports threads of log messages.It goes with a minimalistic Python API to push logs to the database.importredloglog=redlog.Log("localhost",6397,db=15)thread=log.info("Session starts")thread.info("Client connection: socket opened")...There are fancy printing/formatting tools too.python3-mredlog--db15--last10m
Package: redmab
RedMab: Multi-Armed Bandit Experiments backed by Redis in pythonRequirementsTheredmabpackage requires Python 2.7 or higher.InstallationTo install, use pip:$ pip install redmabor from source:$ python setup.py installDocumentationFindRedMabdocumentation onRead the Docs.0.0.4 (March 15, 2018)fixing typo in update_success method.0.0.3 (March 15, 2018)build automation fixes0.0.2 (March 15, 2018)redpipe 2.0 compat.0.0.1 (March 01, 2018)Initial version. Very alpha.
Package: red-magic
red_magicred_magic is a python package containing handy scripts and functions.
It is quite generic so it can fulfill analysis, processing, and fun purposes !InstallationUse the package managerpipto install red_magic.pipinstallred-magicUsageimportred_magicasrmcrmc.psd(...)rmc.Model_pulse(...)rmc.explore_plot(...)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: redmail
Red Mail: Advanced Email SenderNext generation email senderWhat is it?Red Mail is an advanced email sender library.
It is a sister library forRed Box, advanced email reader.
It makes sending emails trivial and has a lot of advanced features such as:AttachmentsTemplating (with Jinja)Embedded imagesPrettified tablesSend as cc or bccGmail preconfiguredSee more from thedocumentationsor seerelease from PyPI.Install it from PyPI:pipinstallredmailWhy Red Mail?Sending emailsSHOULD NOTbe this complicated:importsmtplibfromemail.mime.multipartimportMIMEMultipartfromemail.mime.textimportMIMETextmsg=MIMEMultipart('alternative')msg['Subject']='An example email'msg['From']='first.last@gmail.com'msg['To']='first.last@example.com'part1=MIMEText("Hello!",'plain')part2=MIMEText("<h1>Hello!</h1>",'html')msg.attach(part1)msg.attach(part2)# Send the message via our own SMTP server.s=smtplib.SMTP('localhost',port=0)s.send_message(msg)s.quit()With Red Mail, it is simple as this:fromredmailimportEmailSenderemail=EmailSender(host="localhost",port=0)email.send(subject="An example email",sender="me@example.com",receivers=['first.last@example.com'],text="Hello!",html="<h1>Hello!</h1>")More examples:simple exampleemail with attachmentsemail with embedded imagesemail with embedded plotsemail with body parametersSee practical examples from thecookbook.AuthorMikael Koli-Miksus-koli.mikael@gmail.com
Package: redman
▄████████    ▄████████ ████████▄    ▄▄▄▄███▄▄▄▄      ▄████████ ███▄▄▄▄   
  ███    ███   ███    ███ ███   ▀███ ▄██▀▀▀███▀▀▀██▄   ███    ███ ███▀▀▀██▄ 
  ███    ███   ███    █▀  ███    ███ ███   ███   ███   ███    ███ ███   ███ 
 ▄███▄▄▄▄██▀  ▄███▄▄▄     ███    ███ ███   ███   ███   ███    ███ ███   ███ 
▀▀███▀▀▀▀▀   ▀▀███▀▀▀     ███    ███ ███   ███   ███ ▀███████████ ███   ███ 
▀███████████   ███    █▄  ███    ███ ███   ███   ███   ███    ███ ███   ███     ,  λ,..,,λΨ  ,
  ███    ███   ███    ███ ███   ▄███ ███   ███   ███   ███    ███ ███   ███   ／i＼/ ・ω・ヽ|／i＼
  ███    ███   ██████████ ████████▀   ▀█   ███   █▀    ███    █▀   ▀█   █▀    ⌒⌒l::.:... ｏ⌒⌒
  ███    ███                                                                      `'ｰ----‐´ lREDMAN is a command line tool that manages Redmine.Table of ContentsAbout The ProjectGetting StartedPrerequisitesInstallationUsageBasic usagePowerful usageOptionsKeybindsLicenseAbout The ProjectWhen you write a git commit comment, do you find it bothersome to associate it with a Redmine ticket? But it's okay! With REDMAN, you can search for Redmine tickets while you are in the terminal.Here's why:You should always be in the terminal during development. You should not open web pages other than developments. Well, I sometimes google, but ne.The more productive you are, the more tickets you will be assigned. There is even more potential for streamlining operations.REDMAN will dramatically change your Redmine life.Getting StartedPrerequisitesCommand line toolREDMAN depends on fzf. Please install fzf first.installation for fzfpeco and fzy will be ne. But fzf has a cool preview.Your Redmine settings/settings?tab=api✔Enable REST✔Enable JSONP/my/account✔Copy API Access KeyInstallationpip install redmanredman config
###
REDMINE_URL=<your Redmine url>
REDMINE_API_ACCESS_KEY=<your Redmine Access Key>
### this is ~/.redmanrcUsageBasic usageredman projectsredman usersredman issuesQueryPowerful usagecommand chainIf you press enter to select it, it will be automatically set in the issues query.historyIf you omit the subcommand, the previous query will be executed.OptionsKeybindsLicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: redmask
redmaskA simple tool to create palette swap maskHow palette swap mask worksA palette swap mask is an image used to map a palette using a gradient scale.The tool will generate a red gradient image because green and blue values are useless for the mask.Full explanation about palette mask:https://www.youtube.com/watch?v=u4Iz5AJa31QUsing the generated maskThe mask can be used in a palette swap shader.Example shader in Godot Engine 2.1.x:// fragmentuniformtexturepalette;uniformfloatcolors;uniformfloatcolor_step;if(COLOR.a!=0){COLOR=tex(palette,vec2((COLOR.r*255.0)/(colors-0.001)/color_step,0));}// '0.001' part is a workaround to fix float precision issues.Basic usage# redmask = python redmask.pyredmask<input><palette># generate a mask using default color step (1)redmask<input><palette>-s10# generate a mask using 10 as color stepredmask<generated-mask><palette>-a# apply a palette (paint the mask) using default color step (1)You can test using images in thetestsdirectory.Also, you can view usage info using the-h/--helpcommand.Example art made byYomieda.
Package: redminebotlib
Redmine-Bot-Library(EN version of README.md is coming soon)Цель проектаЦель Redmine-Bot-Library ‒ создать движок для реализации бота,
способного управлять системой Redmine.Текущее состояниеПроект находится в состоянии Proof-Of-Concept, т.е. он ещё не совсем
пригоден к использованию.Ближайшие цели:Работа с Redmine REST API в формате jsonРазработка формата сценарияМеханизм определения конца сообщенияНаписание документации к проектуCopyright 2023 Fe-Ti aka T.Kravchenko
Package: redmine-ci
Redmine CIDo you want to update redmine issue status by Gitlab CI?This project is the answer! Solve your Redmine issue by Gitlab CI!USAGEusage: redmine-ci [-h] [--issue ISSUE] [--status STATUS] [--user USER]
                  [--server SERVER] [--token TOKEN] [--dry-run] [--version]
                  [--status-list] [--user-list]

Update issue on Redmine

optional arguments:
  -h, --help            show this help message and exit
  --issue ISSUE, -i ISSUE
                        Issue ID on Redmine
  --status STATUS, -s STATUS
                        New issue status
  --user USER, -u USER  User to be assigned
  --server SERVER, -r SERVER
                        Redmine server address
  --token TOKEN, -t TOKEN
                        Redmine auth Token
  --dry-run, -d         Do not push any change
  --version, -v         Show application version
  --status-list, -l     List supported status
  --user-list, -ul      List Redmine usersRUNTo list supported status names:$ redmine-ci --status-listTo show current status of issue 11234:$ redmine-ci --issue 11234To update issue 11234 as "Working":$ redmine-ci --issue 11234 --status Working --token 89kjd182jd32897hr2To assign issue 11234 to "uilian":$ redmine-ci --issue 11234 --user uilian --token 89kjd182jd32897hr2API access keyRetrieve from the addresshttps://redmine.in.khomp.com/my/accountINSTALLTo install by pip is just one stepLocalIf you want to install by local copypip install .RemoteOr if you want to download our pip packagepip install redmine-ciREQUIREMENTSpython 2.7 or 3LICENSEMIT