Saravanan666/pypi-org huggingface dataset:
Package: redsolutioncms.django-tinymce-attachment
django-tinymce-attachment.Installation:Putattachmentas LAST item to yourINSTALLED_APPSin yoursettings.pywithin your Django project.Sync your database./manage.py syncdbUsage:In settings.py:Specify Models for which you`d like to add images and filesATTACHMENT_FOR_MODELS = [
    '<app>.models.<Model>',
]Specify Model to be listed in link-listATTACHMENT_LINK_MODELS = [
    '<app>.models.<Model>',
]Disable image grouping (enabled by default)GROUP_IMAGES = FalseFor objects listed in link-list these attributes will be used:get_absolute_url()to retrieve url.__unicode()__to retrieve verbose name.In urls.py:Add attachment to urls.py BEFOREadmin/(r'^', include('attachment.urls')), # Must be placed before admin/Example:settings.pyINSTALLED_APPS = (
    ...
    'attachment',
)

ATTACHMENT_FOR_MODELS = [
    'item.models.Item',
]

ATTACHMENT_LINK_MODELS = [
    'news.models.News',
]

TINYMCE_DEFAULT_CONFIG = {
    'external_image_list_url': 'images/',
    'external_link_list_url': 'links/',
}urls.pyurlpatterns += patterns('',
    (r'^', include('attachment.urls')), # Must be placed before admin/
    (r'^admin/', include(admin.site.urls)),
)Now you can attach images and files to Item object.
After you will save Item-object in TinyMCE editor for this page will be available:attached images in list of images.attached files in list of links.all News objects in list of links.Here are screenshots that demonstrates attachment work:- link lists- image lists- attached filesChangelog:0.5.0 - Image and file title of any size0.4.1 -get_image_groupstag returns a sorted dict0.4.0 - Grouping images by new “group” field enabled.0.3.0 - Ordering by new “position” field enabled.0.2.0 - Add field “title” for models AttachmentFile, AttachmentImageClassifiers:Content plugins
Package: redssh
RedSSHConnect to SSH servers in python easily and with C speed!
Interacting with SSH shouldn't be hard, slow or limited to certain SSH severs.
Based on ssh2-python (which provides libssh2 bindings for python) and made into an easy to use SSH library with the focus being ease of use and speed.
SSH should be as easy as a pre-wrapped TLS TCP socket, it should work well, be fast in execution and be simple to interact with.InstallingRedSSH can be installed via pip withpip install redsshor the latest commit, which may not be the most stable, from git withpip install git://git@bitbucket.org/Red_M/redssh.gitDocumentation99% of questions around how to do something should be answered in the documentation.
If something is not there please raise an issue so it can be added to the documentation.Now with autodocs!Why not use [other software]?I've found other automation libraries or solutions lacking, such as:Compatibility with remote servers (odd servers causes the library to be unable to connect).Feature set is limited (eg, no tunneling).Focuses on only connecting to Linux servers.Requires an agent to be installed, a state file to be present or a master "server".Poor performance.TO DOMore error based unit testsMore examplesHost based authenticationX11 forwarding
Package: red-star
Red Star BotA configurable, extensible Discord bot with administration and entertainment plugins included. Now with added shouting.FeaturesFlexible music playing withyoutube-dl, including queues, playlist support, vote-skipping, and more,Powerful custom commands based on our own Lisp dialect,RSLisp,Event logging, including message edits, deletions, and pins, user joins/leaves, and more,Powerful message purging by content (regex supported), author, and more,Message of the Day plugins with configurable holidays and messages based on day, weekday, or month,Voting plugin for making, responding to, and counting the results of polls,Reminder plugin with times, delays, and recurring reminders,New member announcer with easily configurable messages,Easy role administration for mobile users via commands,And more. Seeour wikifor more features.InstallationWith pipSimply runpip install red-star, and Red Star and all its dependencies will be automatically installed.
You can then run Red Star by simply runningpython -m red_starorred_star(if Scripts is in your PATH).From sourceInstallingRunningpip install -e .inside the Red Star folder will install Red Star and all its dependencies automatically.
This will allow you to run Red Star in the same way as above.Running portablyAlternatively, one can run Red Star portably by simply navigating to the source directory and runningpython red_star.py -p.
This will tell Red Star to keep its loose files inside the source directory, instead of placing them in your user folder.UsageStarting the bot is already covered above; simply invokered_star,python -m red_star, orpython red_star.pyto run the bot.
On first run, a default configuration file will be copied to~/.red_star(C:\Users\username\.red_staron Windows) that must be edited before use.Command-line Arguments-[-p]ortable: Tells the bot to run in portable mode, keeping all of its loose files in its source directory.
Useful if you don't want to clutter your user folder, or install the bot withpip.-[-d]irectory: Allows the user to specify a custom directory to place loose files. Cannot be used with-p.-[-l]ogfile: Allows the user to specify a different name for the log file than the default.-[-v]erbose: Tells the bot to output debug information while running. Can be called up to three times, increasing verbosity each time.DocumentationSeeour wikifor additional documentation, includingCommand Reference,Configuring Red Star,
andAdding A Bot to a Server.
Package: redstone-computer-utilities
Redstone Computer UtilitiesLightweight and Modular Redstone Computer Debugging Tools.InstallationPython 3.7.2 or newer (CPython or PyPy) is required.$pipinstallredstone-computer-utilitiesor# pyproject.tomlredstone-computer-utilities="^0.2.0"Check the GitHub repositoryNKID00/redstone-computer-utilitiesfor details.
Package: redstork
redstorkPDF Parsing library, based onPDFium.RequirementsPython 3Platfom support:Fairly recent Linux (Ubuntu 18.04 or better). Older systems not supported.MacOS 10.6 or betterWindows support in worksInstallationpipinstallredstorkFeaturesConvert to an image - page or arbitrary rectangle - using configurable scaleUpdate document metaUpdate font encoding (for some PDF documents)Save document to a fileQuick startDownload a sample PDF filefrom herefromredstorkimportDocument,PageObject,Glyphdoc=Document('sample.pdf')print('Number of pages:',len(doc))>>Numberofpages:15print('MediaBox of the first page is:',doc[0].media_box)>>MediaBoxofthefirstpageis:(0.0,0.0,612.0,792.0)print('Rotation of the first page is:',doc[0].rotation)>>Rotationofthefirstpageis:0print('Document title:',doc.meta['Title'])>>Documenttitle:RedStorkprint('First page has',len(doc[0]),'objects')>>Firstpagehas4objectsdoc[0].render('page-0.ppm',scale=2)# render page #1 as imagepage=doc[0]foroinpage:ifo.type==PageObject.OBJ_TYPE_TEXT:forcode,_,_ino:print(o.font[code],end='')print()>>RedStork>>Release0.0.1>>Apr02,2020forfid,fontindoc.fonts.items():print(font.short_name,fid)>>NimbusSanL-Bold(36,0)>>NimbusSanL-BoldItal(37,0)# lets generate an SVG file of the first letter on page 1text_object=[oforoinpageifo.type==PageObject.OBJ_TYPE_TEXT][0]# first text objectcharcode,_,_=text_object[0]# first character of the first text objectglyph=font.load_glyph(charcode)path,delayed_c=[],[]forx,y,op,closeinglyph:x,y=round(x,3),round(y,3)ifop==Glyph.MOVETO:path.append(f'M{x}{y}')elifop==Glyph.LINETO:path.append(f'L{x}{y}')elifop==Glyph.CURVETO:delayed_c.append(f'{x}{y}')iflen(delayed_c)==3:path.append('C '+', '.join(delayed_c))delayed_c.clear()ifclose:path.append('Z')path=' '.join(path)print('<svg><g fill="gray" transform="scale(100,-100)"><path d="'+path+'" /></g></svg>')>><svg><gfill="gray"transform="scale(100,-100)"><pathd="M 0.291 0.289 L 0.463 0.289 C 0.52 0.289, ... L 0.318 0.414 Z"/></g></svg>API docshttps://red-stork.readthedocs.io
Package: red_sysinfo
Red-SysAccess platform details from a single object.DescriptionThis module has a number of class objects, with properties derived from theplatformandsysmodules (part of Python'sstdlib).The cross-platform, main object ofred-sysis thePlatformInfoclass (defined indomain.platform.schemas). This class has properties likemachine, which prints the machine's architecture (i.e.x86_x84), system (i.e.Linux), and more.PlatformInfoalso has details about the Python interpreter running a script wherePlatformInfois called.PlatformInfo.pythonhas details like the interpreter's version, implementation, path, and more. You can view the class atdomain.platform.schemas.PlatformPython.UsageImport thePlatformInfoobject. 2 methods:An initialized CONSTANTImport with:from red_sys import PLATFORMThePLATFORMinstance will be initialized from the environment.Equivalent toPLATFORM = PlatformInfo()Use the.get_platform()functionImport the function withfrom red_sysinfo.utils import platform_utilsDefine a variable, i.e.PLATFORM = platform_utils.get_platform()Variable will contain an initialized instance ofPlatformInfoInitialize an instance of thePlatformInfoclassfrom red_sys import PlatformInfo

p: PlatformInfo = PlatformInfo()

print(p.system())To print a pre-formatted platform report, import theprint_platform()function fromred_sysinfo.domain.platform.utilsand pass aPlatformInfoobject.Example:from red_sysinfo import PLATFORM, print_platform()

print_platform(p=PLATFORM)Optionally, callprint_platform(print_large_values=True)to print values with a large output, likePLATFORM.python.modules.ThePlatformInfoBaseclass defines a number of functions and properties that children classes (classes inheriting fromPlatformInfoBase, i.e. "PlatformInfo(PlatformInfoBase):") can access..is_<platform>()functions, which return a bool if platform is detected.is_linux().is_unix().is_win().is_mac().is_java().is_<arch>functions, which return a bool if CPU architecture is detected.is_32bit().is_64bit().as_dict()functionReturns representation of class as a PythondictUsage:PLATFORM.is_dict()Enumsred-sysalso has a number of enumerators for constants. These are defined indomain.enums.platform, and are separated by platform.LinksGet the OS and its version where Python is runningPlatform Module DocsDocs:platformmoduleDocs:sysmodule
Package: redtape-py
RedtapeA permission management tool for AWS Redshift, with plans to extend it to other database systems. Inspired bypermifrost, andpgbedrock.InstallingRepoClone this repo and install withpoetry:gitclonegit@github.com:tomasfarias/redtape.gitredtapecdredtape
poetryinstallPyPIInstall withpip:python-mpipinstallredtape-pyUsage❯redtaperun--help
Usage:redtaperun[OPTIONS][SPEC_FILE]Runthequeriesnecessarytoapplyaspecificationfile.

Arguments:[SPEC_FILE]Aspecificationorapathtoafilecontainingit.

Options:--dry/--no-dryPrintchangesbutdonotrunthem.[default:no-dry]--skip-validate/--no-skip-validateSkipspecificationfilevalidation.[default:no-skip-validate]--userTEXTApplyoperationsonlytousersnamedasprovided.--groupTEXTApplyoperationsonlytogroupsnamedasprovided.--operation[CREATE|DROP|DROP_FROM_GROUP|GRANT|REVOKE|ADD_TO_GROUP]Applyonlyprovidedoperations.--dbnameTEXTARedshiftdatabasenametoconnectto.--hostTEXTThehostwhereaRedshiftclusterislocated.--portTEXTTheportwhereaRedshiftclusterislocated.--database-userTEXTAusertoconnecttoRedshift.Theusershouldhaveuser-managementpermissions.--passwordTEXTThepassawordofthegivenRedshiftusername.--connection-stringTEXTAconnectionstringtoconnecttoRedshift.--quiet/--no-quietShownooutputexceptofvalidationerrors,runerrors,andqueries.[default:no-quiet]--helpShowthismessageandexit.Specification fileA YAML specification file is used to define groups, users, and their corresponding privileges.Sample:groups:-name:group_nameprivileges:table:select:-table_name-...insert:-table_name-...update:-table_name-...drop:-table_name-...delete:-table_name-...references:-table_name-...database:create:-database_name-...temporary:-database_name-...temp:-database_name-...schema:create:-schema_name-...usage:-schema_name-...function:execute:-function_name-...procedure:execute:-function_name-...language:usage:-language_name-...users:-name:group_nameis_superuser:booleanmember_of:-group_name-...password:type:strvalue:strprivileges:table:select:-table_name-...insert:-table_name-...update:-table_name-...drop:-table_name-...delete:-table_name-...references:-table_name-...database:create:-database_name-...temporary:-database_name-...temp:-database_name-...schema:create:-schema_name-...usage:-schema_name-...function:execute:-function_name-...procedure:execute:-function_name-...language:usage:-language_name-...To doredtapeshould be considered in Alpha status: things may break, and test coverage is low. The following tasks are planned for a 1.0.0 release:Increase and track test coverage.Documentation.Support for wildcard (*) in specification file.Support for ownership.Support forASSUMEROLE.Support forEXTERNALobjects.Complete support formypystatic type-checking.LicenseMIT
Package: red-team-language
Install!pip3install.Usageusage:rtl[-h]--srcSRC[--dstDST][--ir][--asm][--obj][--build]TheRed-Team-Languagecompilerenablesonetowritescriptsanddeploythemasstaticexecutables-forthelolzofcourse!

options:-h,--helpshowthishelpmessageandexit--srcSRCThesource*.rtlscripttocompiletoLLVM-IR--dstDSTThewheretowritetheoutput(defaultisstdout)--irEmitLLVM-IR--asmEmitassemblyforthismachine--objEmitanobjectfileforthismachine--buildAttempttobuildabinaryfromtheprovided--srcNOTE:The--buildflag requires the ziglang binary 'zig' be on path if not using docker; this is the way.rtl--srcrtl/examples/shell/shell_executable.rtl--asm>a.s
clang-oexecutable.elf-fPICrtl/lib/protocol/shell/shell.ortl/lib/transform/xor/xor.oa.s-ggdbDockerPick a file from./rtl/examples/shelland execute the following - or use the one provided and copy+pasta!(i.e. executable_script_inline_obfuscated.rtl)DOCKER_BUILDKIT=1dockerbuild-fDockerfile-trtl:latest.
dockerrun--rm-it--volume"`pwd`/rtl/examples/shell/:/src"--volume"`pwd`/tmp:/tmp"rtl--src/src/executable_script_inline_obfuscated.rtl--build
ls-alh./tmp
file./tmp/*
Package: redterm
# redtermA console based Reddit reader with plans to implement features to enhance the reddit experience while browsing reddit signed out.One main feature currently being worked on, are functions to enable bookmarking of subreddits and saving of submissions and comments, *locally*.This will be accompanied by a psuedo front page generated based on local bookmarks(Probably by utilizing the multi reddit feature).The benefit of this is that your privacy will be intact in the case there is an Ashley Madison type incident on reddit.If you think you would value these features, please stick around while development continues.## Current Features* Viewing of specified subreddit.* Viewing of submission, and comments.* Full support for mixed narrow/wide text(CJK).## Features planned* Support for loading 'More comments' when specified.* Support for saving submissions and comments *locally*.* Support for bookmarking favorite subreddits and having your personal frontpage, login not required.## Features *not* planned* Account log in.* Any features requiring an account such as posting comments.(May consider implementing above if there is enough interest from users.)## InstallationInstall from pip.```pip install redterm```Clone from GitHub.```$ git clone https://github.com/owlowlgo/redterm.git$ cd redterm$ sudo python setup.py install```## Usage```$ redterm -s subreddit```## Controls* Up(j)/Down(k): Move cursor* Enter: Choose Submission/Comment* o: Open url in browser specified in config file(~/.redterm/config.yaml)* Esc: Quit## LicenseMIT## ThanksThis project would not have been possible without the following projects.* blessedhttps://github.com/jquast/blessed* PRAWhttps://github.com/praw-dev/praw
Package: redtrics
Redtrics generates metrics about the use of Github by developers.ContributorsAniceto Garcia (Concept & Developer)Alberto Resco (Developer & Main Contributor)Benjos Antony (Developer)Mick Jermsack (Developer)Sonia Fabre (UI Design)External DependenciesInfluxDBGithubSetupInstall InfluxDBPlease follow instructions inhttps://docs.influxdata.com/influxdb/Install binaryYou can install the stable build by running:$pipinstallredtricsor install the latest build:$curl-oredtrics.ziphttps://github.com/RedMart/redtrics/archive/master.zip$unzipredtrics.zip$cdredtrics$pythonsetup.pyinstallSetup settingsSome settings set with default values but we encourage you to setup
properly for your current needs. You must create the file/opt/redtrics/etc/settings.pygithub_token='your_github_token'github_organization='Your Organization'influxdb_settings={'host':'localhost','database':'redtrics','username':'redtrics','password':'redtrics'}email={'from_email':'change@me.com','from_name':'Tech Weekly Metrics','to':['change@me.com'],'smtp_host':'smtp.example.com','smtp_port':'25',}Overwrite mail templateIf you want to create your own template you must create your own in the
file/opt/redtrics/templates/mail.htmlproviding themetricsyou want to show.Metrics providedBranch Build Status{
    'build_status': {
        'success': 10,  # number of travis builds succeded
        'failure': 2   # number of travis builds failed
    }
}Commits on the last week (7 previous days){
    'commits_last_week': {
        'commits': 15,  # number of commits
        'additions': 100,  # lines added
        'deletions': 50,  # lines deleted
        'biggest': 20  # biggest commit (lines added + deleted)
    }
}Pull Requests stats{
    'pr_stats': {
        'closed': {
            'age': {
                'max': 1000,  # in seconds
                'min': 200,  # in seconds
                'avg': 450, # in seconds
            },
            'commits': {
                'pr_count': 4,  # number of Pull Requests
                'commits_count': 14,  # total number of commits in all Pull Requests
                'additions': 1000,  # total lines added
                'deletions': 1000,  # total lines deleted
                'biggest': 1000  # biggest Pull Request (lines added + deleted)
            }
        },
        'open': []  # List of PullRequest objects
    }
}Handcrafted with ♥ at RedMart.All Rights Reserved.
Package: redtube
Here we go! I’d like to present simple module to accessRedTube API. That API has a few
methods to access their video library with external clients (such as this small piece of code). Only read access is
provided at this moment.So, I’ll show you one small example, how to use this cool library:from redtube import RedClient

red = RedClient()
# Getting top of the top... I think so :)
collection = red.search()
# Search method provides list like object of type RedCollection with video entries of type RedVideo.
print type(collection)
# You can show you total videos for current search and current page
print collection.total, collection.page

# Let's search banana, it's good choice for this search engine
collection = red.search(query='banana', page=2)
# As you can see, we can access next page by page parameter
# Also you can access next page by calling next method from RedCollection instance
collection = red.next()

# You can access video entries by their internal ID
first = red.by_id('1')
# Or by some syntax sugar:
first = red[1]
print first # <RedVideo[1] "Heather taking it deep again">

# RedVideo entries has many useful information about video, ie:
print first.title, first.duration, first.url, first.player_url, first.embed
# As you can see, we can access video streaming url for this client or generate video embed code

# Also you can retrieve tag, category or star lists provided by RedTube
categories, tags, stars = red.categories, red.tags, red.stars
# This methods has internal cache, so you will do only one HTTP request for multi calls.That’s all, guys! Have a nice day!
Package: redturtle.alternative_orderui
IntroductionAn alternativefolder_contentsforms, that disable someway KSS ordering and show another fast way
to reorder items (less and less cool, but this is working most of the time).The new UI is not using fantastic AJAX/KSS technology, but reload the whole page, simply using basic
features that you always have when Javascript is disabled in your browser.So… use this only when you (or your users) experience some problem with KSS ordering
(not always this happens, but happens…). If no-one report a problem with the basic Plone drag&drop
sort mechanism, you don’t need this product.Assumptions made in themesThe script try to be smart as possible, being general and not based to Plone UI and theme installed.It choose the sorting cell looking for “draggable” CSS classIt choose the checkbox cell looking for “notDraggable” CSS classThe cell where to take the title of the document (used when prompt user) must be the one after
the “notDraggable”TODOUse jQuery Tools features if installed instead of the ugly Javascript confirmFind a KSS way to disable KSSCreditsDeveloped with the support of:Azienda USL FerraraRegione Emilia RomagnaAll of them supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog0.5.0 (2012-11-14)Added uninstall profile [micecchi]0.4.0 (2010-12-02)Code clean with JSLint [keul]Added support for “reverse” parameter in “folder_position” script.
The internal called function “orderObject” support it, but not Plone.
This way this is compatible also with products likecollective.sortmyfolder(see also#11317) [keul]Egg cleaned [keul]0.3.0 (2010-07-14)once again the error of usingtrimorstripJavascript API (that Firefox support both).
Tired of this now I’m usingjQuery.trim[keul]changed icon [keul]the code is more general, robust and less based on the default Plone 3 theme
(also works with Sunburst theme now) [keul]basic Javascript prompt now put default (empty value), now less ugly on IE [keul]0.2.0 (2010-07-06)added z3c.autoinclude support [keul]i18n Javascript support [keul]removed a lot of customization, not really needed [keul]disabled KSS in a less intrusive way [keul]0.1.0 Unreleased (2010-01-11)initial (un)release - you can find this only on SVN
Package: redturtle.auditlog
redturtle.auditlogFeaturesLog security related events in Plone:[ ] Login[ ] Logout[ ] Password reset[ ] Password change[x] User creation[x] User deletion[x] User global role assignment[x] User global role unassignment[x] User local role assignment[x] User local role unassignment[x] User group creation[x] User group deletion[x] User group assignment[x] User group unassignment[x] Group role assignment[x] Group role unassignments[x] Group local role assignment[x] Group local role unassignmentContributeIssue Tracker:https://github.com/collective/redturtle.auditlog/issuesSource Code:https://github.com/collective/redturtle.auditlogDocumentation:https://docs.plone.org/foo/barLicenseThe project is licensed under the GPLv2.ContributorsMauro Amico,mauro.amico@gmail.comChangelog1.0.0 (2024-01-07)Initial release.
[mamico]
Package: redturtle.bent
IntroductionThis is an example of mr.bent plugins. Check mr.bent for more details.Changelog0.0.2 - 24/02/2009add objectload plugin based on collective.performancecolouriser0.0.1 - 20/02/2009Initial releaseAuthor & ContactAuthor:Andrew Mleczko <andrew.mleczko@redturtle.net>RedTurtle Technologyhttp://www.redturtle.net