Saravanan666/pypi-org huggingface dataset:
Package: slavem
# slavem监控全网其他服务的服务## MongoDB1. 配置一个MongoDB数据库，会创建数据库`slavem`。2. 这个数据库用于接受定时任务的汇报和设置定时任务列表。3. 为了你的人身安全，请设置用户名密码访问数据库。## 配置文件```json{"host": "localhost","port": 27017,"dbn": "slavem","username": "slavem","password": "slavem",}```## 启动服务```pythonimport slavemmonitor = slavem.Monitor(host='localhost',port=27017,)monitor.start()```## 任务### 创建任务```pythonimport slavemimport jsonsettingPath = './slavem_setting.json'with open(settingPath, 'r') as f:kwarg = json.load(f)monitor = slavem.Monitor(**kwarg)taskKwargs = {'name': 'serverName', # 可以重复'type': 'serverType','lanuch': '20:50:00', # 启动时刻'delay': 5,  # min 启动后 delay 分钟后查看启动结果'host': 'localhost', # 服务所在的 host}monitor.createTask(**taskKwargs)monitor.stop()```### 查看任务```pythonimport slavemimport jsonsettingPath = './slavem_setting.json'with open(settingPath, 'r') as f:kwarg = json.load(f)monitor = slavem.Monitor(**kwarg)monitor.showTask()monitor.stop()```
Package: slayer-in-the-shadows
Slayer in the ShadowsOur entry toPyWeek 35.Note: Unfortunately, we were unable to complete the game. We wanted to add in levels, enemy sprites, and ranged weapons,
but we all got busy with life. However, we still want to show off what we had, and we will still probably work on it and
finish later.InstallationTo install the game, you need to clone this repo and install the dependencies:git clone https://github.com/letsbuilda/slayer_in_the_shadows.git
cd slayer_in_the_shadows
python -m pip install -r requirements.txtNote: Replacepythonwith the proper executable name. On Windows, this is usuallypyand on other systems, it's
usuallypython3.Once the dependencies are installed, run the game:python -m run_gameControlsJump: W or SpaceRight: DLeft: AAttack: Left click
Package: slbsl
Convert paths from Windows to UNIX and vice versa.Written to slightly ease the pain of working in environments that use both like a bash on Windows. Do not pass arbitrary text to the tool, only a path (though it may be wrapped in quotation marks).Installationpip install slbslDependenciespyperclipfor clipboard functionality.TestsYou needpytestinstalled.py.test test_slbsl -vUsageThe package installs a few shell scripts that you can call:sl [path] : Converts <path> or clipboard content to UNIX convention.
bsl [path] : Converts <path> or clipboard content to Windows convention.
fsl [path] : Flips slashes in <path> or clipboard content to their opposite individually.
esl [path] : Equalizes slashes in <path> or clipboard content depending on the majority. In case of a draw, favors backslashes on Windows and slashes on UNIX.The result is returned to the commandline and stored additionally in the clipboard.Why the stupid name?slashbackslash
Package: slc.aggregation
IntroductionThis product provides an aggregation solution for our specific environment.What makes our environment relatively unique?The fact that almost all content must be available in more than 20 languages.
In addition to that, content distributed over various subsites, each with it’s
own news and events folders and various other duplications.Inevitably, a lot of content duplication results, as News Items are located all
over the place and content creators are not aware of their existence.slc.aggregation is therefore part of our Resource Centralisation strategy.You could use Collections/Topics, but they have some flaws when it comes to a
multiple language environment. For example, each Collection we add, needs to be
translated into about 22 languages.This product therefore adds a new aggregation mechanism, for use in sites with
many language versions.How to use:A new subtype ‘Aggregator’ is created in descriptors.py and it can be applied
to all Folders in the Site.When browsing in Plone, you will see that there is a ‘subtypes’ menu visible
in the folder actions bar.You can click on this menu and then choose ‘Aggregator’ to change your folder
into an aggregator.On reload, the Folder will now have a new view, with nothing in it, because
nothing is yet aggregated. You will notice a new object tab labeled
‘Aggregation’. You can click on it, and find the form for configuring you
aggregator.The values you specify will basically be used to construct a catalog query,
that fetches the objects for you.If correctly configured, your folder’s view should now show a batched listing
of the aggregated objects.Known Issues:To use the aggregator in a multi-language site, you have to subtype all the
translations of a folder.Since subtyping doesn’t take translations into account, this has to be done
manually.We will eventually release a product called slc.linguatools, that would among
other things allow you to subtype multiple translations simultaneously.Dependencies:p4a.commonp4a.z2utilsp4a.subtyperarchetypes.schemaextenderProducts.AdvancedQueryChangelog1.2 - (2009-11-17)Render the body text instead of the description if the aggregated object is a HelpCenterFAQFolder (jcbrand)Fixed a bug while parsing the form request in browser/aggregator.py (jcbrand)1.2 - (2009-11-17)Register a new descriptor for PloneHelpCenterFAQFolder (jcbrand)Autoinclude zcml via z3c.autoinclude.plugin (jcbrand)1.1 - (2009-10-21)Add a new form field ‘restrict_language’ to make language specific aggregation of items optional. (jcbrand)Add a helpful message when the aggregator returns no results. (jcbrand)1.0 - (2009-10-08)Bumped version to correspond to metadata.xml  (jcbrand)Fixed a bug in query_results when no annotations has been set. (jcbrand)0.1 - (2009-10-08)Initial release
Package: slc.calendarfetcher
Introductionslc.calendarfetcher provides the ability to import multiple ICS calendar files
(specified by their URLs) into a single folder. The folder must be subtyped as
a Calendar, which is functionality provided by p4a.plonecalendar.A tab labeled ‘Import ICal’ will appear on the folder, which leads the user to
a simple form where multiple calendar URLs may be specified.This form can be saved with the optional feature of immediately importing all
events from the specified URLs.By using a cronjob or Zope’s clockserver, this can be made automatic and periodically
repeatable, ensuring that your Plone calendar is always up to date with the
events from any other ICS conforming calendar (like iCal or Google Calendar).You can use the following URL to update all the calendars in a site that have remote
ICS files specified (NOTE: requires authentication):http://mysite.com/@@calendarfetcher_utils/fetch_all_remote_calendarsInstallation:Add slc.calendarfetcher to the eggs in the [instance] section of your buildout
or install it via easy_install.In Plone, slc.calendarfetcher can be installed via the portal_quickinstaller
tool in the Zope Management Interface or in the Add-remove products section of
Plone’s control panel.Changelog0.1b5 (2011-01-07)Changed dependency to p4a.calendar 1.2 [jcbrand]Added locales directory with some first translations. [jcbrand]0.1b4 (2010-12-16)Bugfix. Account for entries not being present in the annotations dict. [jcbrand]Renamed utility method for fetching calendars to avoid confusion. [jcbrand]0.1b3 (2010-12-13)Initial public release [jcbrand]
Package: slc.cleanwordpastedtext
IntroductionThis product cleans up the HTML formatting problems that are introduced by pasting content from MSWord
into Plone’s RichText fields.Every time an object is created or edited, the HTML in its RichText fields will
be sanitized.The HTML sanitizing feature is turned on by default for all Archetype objects, but can be
turned off on a per object basis by checking a box in the ‘settings’ fieldset
of the default edit view.Implementation:This product provides an event subscriber for all BaseContent Archetypes objects that will
clean up the HTML of all the RichText fields for each object.The cleaning and sanitizing of the HTML code is mainly done by using the lxml library:http://codespeak.net/lxml/lxmlhtml.htmlby means of the htmllaundry package,
written by Wichert Akkerman.Installation:This Product does not have to be installed via quick_installer or the plone
control panel.Just add it to your buildout or install via easy_install.Changelog1.2.8 (2010-12-21)Use Wichert Akkerman’s htmllaundry utilities for code sanitizing. (jcbrand)1.2.7 (2010-02-17)Only create a new version if at_edit would not create one anyway (thomasw)1.2.6 (2009-12-13)Don’t force target=”_blank” on links. (thomasw)1.2.5 (2009-12-07)Set add_nofollow to False, since it seems to confuse lxmk.html
parser (thomasw).1.2.4 (2009-11-25)Added LinguaPlone’s generateMethods magic, so that the languageIndependent
field gets propagated to all translations when the canonical is edited (thomasw)1.2.3 (2009-11-19)don’t strip ‘h1’ and ‘h2’ (jcbrand)1.2.2 (2009-11-16)added a more flexible detection mechanism - encoding (pilz)1.2.1 (2009-11-03)I was too stupid to make a successful release, here we go again (thomasw)1.2 (2009-11-03)Bugfix in event-handler: don’t fail if cleanWordPastedText field isn’t present (thomasw)1.1 - 2009-10-27Add a new sanitize method and new helper methods. Thanks to Wichert.Enable the cleaner by default. (jcbrand)1.0 - 2009-10-23Initial release (jcbrand)Contributors:Jan-Carel Brand (brand@syslab.com)Wichert AkkermanWolfgang Thomas (thomas@syslab.com)Alex Pilz (pilz@syslab.com)
Package: slc.docconv
ContentsIntroductionRequirementsContributorsChangelog1.3 (2015-07-31)1.2 (2015-05-15)1.1 (2015-05-15)1.0a2 (2014-07-11)1.0a1 (2012-08-31)IntroductionRequirementsdocsplit and dependencies (http://documentcloud.github.com/docsplit/)install collective.documentvier in your Plone SiteContributorsSyslab.com GmbH, AuthorChangelog1.3 (2015-07-31)Don’t install collective.documentviewer. We use the code but we
don’t want it installed because it overrides views for PDF files.
[deroiste]1.2 (2015-05-15)Nothing changed yet.1.1 (2015-05-15)Nothing changed yet.1.0a2 (2014-07-11)improved buildout [reinhardt]added some logging [reinhardt]added view to upload documents for conversion, refs #10398 [reinhardt]limit number of images to 20 by default, refs #10398 [reinhardt]new version of documentviewer [reinhardt]1.0a1 (2012-08-31)initial release
[reinhardt]
Package: slc.dublettefinder
Introductionslc.dublettefinder is a Plone product plugin that warns you of possible
file duplications in your Plone website.It provides custom validators (that can be ignored with a checkbox on the form)
that warns the user if the file or image being uploaded is a possible duplicate
of a file already in the site.It also provides a portlet that will show any possible file duplications when
on the context of any file or image.Works with the ATContentTypes ATFile and ATImage as well as Blobs.Validators:Validators are run when an object is newly created or being edited. They are
used to for example check that the fields of the object where correctly filled
in.slc.dublettefinder registers three new validators for the main two file containing objects
(ATFile and ATImage), and you can easily register them for your own file
containing objects. See ./extensions/configure.zcmlThe validators are called isUniqueObjectName, isUniqueFileName and
isUniqueFileSize and can be found in ./validators.py.The first validator check the object’s Title against all other objects of the
same type in the database, and warns you if there is a match.The second validator checks the uploaded file’s name against files in the
database and the third validator checks the file’s size.All three validators will warn you if they find a match, and then allow you to
override them (by clicking a checkbox) and continue adding your object.Portlet:A custom portlet is also provided, that will show you any possible duplicates
of the object/context that you are currently viewing.Compatibility:Tested on Plone 3.1.* and Plone 3.3.*Changelog0.3.1 (2010-03-18)Fixed warning message formatting. [jcbrand]0.3 (2010-03-17)Made slc.dublettefinder compatible with Plone 3.3 by removing the reliance deprecated
code. [jcbrand]0.2 (2010-01-26)Initial public release [jcbrand]
Package: slc.editonpro
slc.editonpro Package ReadmeOverviewIntegration layer for Edit On Pro WebeditorCurrently supports only one editor instance per page, but this will change soon.CreditsCopyright European Agency for Health and Safety at Work and Syslab.com
GmbH.slc.editonpro development was funded by the European Agency for Health
and Safety at Work.Licenseslc.editonpro is licensed under the GNU Lesser Generic Public License,
version 2 or later and EUPL version 1.1 only. The complete license
texts can be found in docs/LICENSE.GPL and docs/LICENSE.EUPL.Change historyChangelog1.2 (2012-06-01)Added EUPL license (deroiste)1.1 (2009-06-04)Created recipe with ZopeSkel
[pilz]Detailed DocumentationREADMEThis package provides support to integrate the RealObjects Edit On Pro wysiwyg
editor into plone to coexist with FCKEditor and Kupu.You need to have a folder named “eopro” (the same that comes with your editor
distribution) in your site root which contains all the
necessary edit on pro files including the license.
Make sure that you enable proper caching for these files!ContributorsWolfgang Thomas, Syslab.comAlexander Pilz, Syslab.com
Package: slc.facetedcalendar
Introductionslc.facetedcalendar provides faceted search inside a calendar.It makes use ofcollective.solrfor the faceted search andSolgema.fullcalendarfor the calendar view.UsageMake sure that collective.solr is configured for faceted search by going to
Plone/@@solr-controlpanel. Refer to the collective.solr docs for more info.On any Topic, for example in the Events folder, you can now enable the ‘Faceted
Calendar’ view by clicking on ‘Display’ and choosing it from the dropdown.You should see the Solgema.fullcalendar calendar together with a query box on the
right that lets you select the different facet parameters.The events in the calendar should automatically update every time you choose
another facet.You can choose which facet parameters to be shown by clicking the “Edit” link
on the query box.Changelog0.3 (2012-03-22)Update MANIFEST.in [jcbrand]0.2 (2012-03-21)Add MANIFEST.in to explicitly add docs dir. [jcbrand]0.1 (2012-03-21)Initial release
Package: slck-cli
slck-cli: Simple cli tool to manage your slack workspaceBasic Usage# listing all users in workspace$slckuserlist
User(id='U031L3JNBKS',name='taro',real_name='Taro Yamada')User(id='U036NS9S6HL',name='jiro',real_name='Jiro Tanaka')User(id='U032SU3SKBS',name='hanako',real_name='Hanako Suzuki')# user search by real_name (or name or id)$slckuserfind--real_name"Taro Yamada"User(id='U031L3JNBKS',name='taro',real_name='Taro Yamada')# channel list (filtered by prefix)$slckchannellist--prefixgeneral
Channel(id='C02AFAUOK33',name='general')# most reacted post in the channel$slckmessagepopulargeneral
Message(message_type='message',user=User(id='U031L3JNBKS',name='taro',real_name='Taro Yamada'),channel=Channel(id='C02AFAUOK33',name='general'),ts='1647648476.156199',text='テスト',num_reply=0,num_replyuser=0,num_reaction=3,permalink='https://foo.slack.com/archives/C02AFAUOK33/p23471289471123')# post award message$slckmessageawardyour-channel--post
Botisabouttopostawardmessage:最もリアクションを獲得したのは<@U031L3JNBKS|taro>さんのこのポスト！おめでとうございます！:raised_hands:
https://foo.slack.com/archives/C02AFAUOK33/
toyour-channel.Areyousure?[Y/n]Y
Posted!Installationpipinstallslck-cliPreparationCreate SlackApp and Install to your workspaceCreate a new Slack appAdd scopes to your Bot TokenIn order to use all the feature ofslck-cli, add scopes bellow:channels:historychannels:joinchannels:managechannels:readgroups:historygroups:readgroups:writeim:historyim:readim:writempim:historympim:readmpim:writeusers:readchat:writeInstall app to your workspaceSet tokenSet your slack bot token (xoxb-...) to your environmental varialbleSLACK_BOT_TOKENexportSLACK_BOT_TOKEN="xoxb-your-token"LicenseThis software is released under the MIT License, see LICENSE.
Package: slc.mailrouter
[![Build Status](https://travis-ci.org/syslabcom/slc.mailrouter.svg?branch=master)](https://travis-ci.org/syslabcom/slc.mailrouter)Introductionslc.mailrouter bridges the gap between zope and email. It is based on the same
idea as products such as mailboxer: a script is invoked by your mail transfer
agent (postfix, exim) and the body of the email is passed to this script on
stdin. This is then communicated to zope using an http post, where it is parsed
and handled.slc.mailrouter implements a component model for the handling of emails. By
itself it allows the user to send an email to a folder and have all attachments
on the email stored in that folder. The folder can be addressed either by
its UID, or by assigning a friendly alias to the folder in the plone control
panel.The MailToFolder router is implemented using an adapter pattern. If you want
to change the way this works, Implement an adapter that adapts IFolderish
and implements slc.mailrouter.interfaces.IMailImportAdapter. The add() method
on this adapter receives the message as an argument and is responsible for
persisting the contents of the message to the folder.Additional mail routes can be implemented by other products by creating a
utility and registering it under the interface
slc.mailrouter.interfaces.IMailRouter. Such mail router utilities are called
one after the other until one of them reports that the message was successfully
delivered. In this way it mirrors the way exim’s routers work.CreditsIzak Burger <isburger@gmail.com>
Manuel Reinhardt <reinhardt@syslab.com>
Package: slc.mindmap
Introductionslc.mindmap enables you to embed the mindmap editor from www.mindmeister.com
into your Plone site.By using this editor you can view, edit and export mindmaps from inside Plone.Please take note that currently mindmeister.com can only save mindmaps in their
own format (.mind). Your file will therefore be replaced with a .mind type file
whenever you save your mindmap through the embedded editor.How to useslc.mindmap provides a configlet in the Plone control panel with which you can
configure some of the features of the Mindmeister editor, such as
enabling/disabling exporting and saving.You will be required to specify an API key in this configlet which will
receive once you have signed up at www.mindmeister.comInitially the settings in the configure will disable editing and exporting and
enable POSTing of the mindmap file to the mindmeister servers.The POST option is only for development purposes since offline Plone instances
will not be able to render the mindmaps otherwise (without POSTing,
mindmeister.com receives a callback URL on the plone server from which to get
the mindmap file).After setting up the configlet, you can upload a mindmap and enable the
Mindmeister editor for it.To enable the editor, click on the subtypes menu on the file view, and choose
‘mindmap’. The page should reload and you should see the Mindmeister editor
loading inside an iframe in the context view.Requirementsslc.mindmap depends on p4a.subtyper, it will be fetched and installed
automatically.Changelog1.0 - (2009-10-22)Initial release
Package: sl-conda
TODOs[done] sealion-conda clone -b /path/to/conda/base -e /path/to/local/conda/to/be/cloned/env new_conda_envsealion-conda pkg -b /path/to/conda/base -e /path/to/local/conda/to/be/cloned/env /path/to/save/pkgs.zipsealion-conda create -f /path/to/save/pkgs.zip new_conda_envcheck if exists: conda, conda env, new conda env
Package: slc.outdated
slc.outdatedslc.outdated provides an object action for plone to toggle anoutdatedflag on any object that is IAnnotatable. The value of the
flag is stored in an annotation, indexed in the catalog via an indexer
and included in the metadata.By that you can use it for catalog queries and e.g. set CSS classes
accordingly.A viewlet will appear below the title of outdated content, indicating
that this content is outdated. Further, the acquisition chain will be
consulted for "outdated_info" and if found, its title and text body
will be displayed. It should be published and hidden from the
navigation.The software is tested manually and fully functional. The lack of
tests I consider a bug. I'd be most grateful if you donate tests, in
case you plan on using slc.outdated.
Package: slcp
Selective Copy v0.3.0Simple command line application that copies all files with given extensions from a directory and its subfolders to another directory showing progress bar and remaining files counter.Allows to preserve a source folder structure, to process only files without given extensions, to move files instead of copying, to exclude certain files from processing and to create a log if necessary.Opens a filedialog if source and/or destination are not given in the command line.Creates folders in a destination path if they don't exist.Installingpip install slcpUsageslcp ext [ext ...] [-s SRC] [-d DST] [-sc | -dc] [-p] [-i] [-m] [-e FILE [FILE ...]] [-l] [-h]

Positional arguments:
ext                         One or more extensions of the files to copy. 
                            Enter extensions without a dot and separate by spaces.

Optional arguments:
-s SRC, --source SRC        Source folder path.
-d DST, --dest DST          Destination folder path.
-sc, --srccwd               Use current working directory as a source folder.
-dc, --dstcwd               Use current working directory as a destination folder.
-p, --preserve              Preserve source folder structure.
-i, --invert                Process only files without given extensions.
-m, --move                  Move files instead of copying, be careful with this option.
-e FILE [FILE ...],         Exclude one or more files from processing.
--exclude FILE [FILE ...]   Enter filenames with extensions and separate by spaces.
-l, --log                   Create and save log to the destination folder.
-h, --help                  Show this help message and exit.ExamplesChangelogv0.3.0- 2019-08-22AddedBlackcode styleChangedThe code is now divided into separate modulesDots that come with extensions are removed from output folder name.
The reason is that folders with a name starting with a dot are considered as hidden on Linux.Log saving indicationName of the logfileFixedIssue when paths like /home/user/test and /home/user/test2 were considered as nested which lead to an error.Compare with v0.2.1v0.2.1- 2019-07-16AddedChangelogFixedReadme of the project onPyPIandGitHubCompare with v0.2.0v0.2.0- 2019-07-15AddedSupport of processing several extensions at once--invert option--move option--exclude optionCompare with v0.1.0LicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgmentsInspired by the task fromChapter 9 of Automate the Boring Stuff.