Saravanan666/pypi-org huggingface dataset:
Package: mediagoblin-indexedsearch
Search plugin for GNU Mediagoblin###############|license_badge| |pypi_badge| |version_badge||status_badge|.. |license_badge| image:: https://img.shields.io/pypi/l/mediagoblin-indexedsearch.svg:target: https://en.wikipedia.org/wiki/Affero_General_Public_License.. |pypi_badge| image:: https://img.shields.io/pypi/v/mediagoblin-indexedsearch.svg:target: https://pypi.python.org/pypi/mediagoblin-indexedsearch.. |version_badge| image:: https://img.shields.io/pypi/pyversions/mediagoblin-indexedsearch.svg:target: https://pypi.python.org/pypi/mediagoblin-indexedsearch.. |status_badge| image:: https://img.shields.io/pypi/status/mediagoblin-indexedsearch.svg:target: https://pypi.python.org/pypi/mediagoblin-indexedsearch.. |status_badge| image:: https://img.shields.io/pypi/status/mediagoblin-indexedsearch.svg:target: https://pypi.python.org/pypi/mediagoblin-indexedsearch.. END_BADGES_TAGN.B Only works with mediagoblin 0.9.0 and later.``mediagoblin-indexedsearch`` is a plugin for GNU Mediagoblin that adds support for searching media.By default, the search function will query the tags, title and description fieldsof media for the given phrase.More complex queries are supported, e.g searching for media with tagged with "hello"and not tagged with "goodbye" (tag:hello -tag:goodbye), or searching for anymedia added by the user "tom" (user:tom).(See http://whoosh.readthedocs.org/en/latest/querylang.html for more syntax info.)This plugin is based on an existing search plugin, https://github.com/ayleph/mediagoblin-basicsearch/,but uses a search index for queries... END_DESCRIPTION_TAGSetting up the search plugin===========================Checkout this repository with::git clone https://github.com/tofay/mediagoblin-indexedsearch.gitThen install the plugin into your virtualenv for mediagoblin::cd mediagoblin-indexedsearch//path/to/mediagoblin/bin/python setup.py installEnable the plugin by adding the following line to the ``[plugins]`` section of your mediagoblin config file.[[indexedsearch]]The following parameters can be specified in the indexedsearch section of your mediagoblinconfig file:SEARCH_LINK_STYLE = 'link'Specifies the style of the search link that is added to the top header bar of the MediaGoblin instance.The options for the search link display style are:* ``form`` displays a search form next to the Log In link. This is the default display style.* ``link`` displays a normal text link next to the Log In link.* ``button`` displays an action button link next to the Log In link.* ``none`` does not display a link. This is useful if you want to create your own search link in a user_dev template or custom theme.INDEX_DIR = '/path/to/index/directory'Specifies the directory in which the plugin will create a search index (the plugin willcreate the directory if it doesn't exist, assuming correct permissions etc.). By default the indexwill be created in /path/to/mediagoblin/user_dev/searchindex.USERS_ONLY = TrueSpecifies whether or not searching for content requires being logged-in. Defaults to True.
Package: mediagoblin-private
This plugins restricts the access of anonymous users to your GNU MediaGoblin
instance. You can choose between denying the access - and allowing as needed
some route paths - or allowing it by default - and denying some route paths.Set up the private pluginInstall this Python package from PyPi.$ pip install mediagoblin-privateOr if you’ve checked out this plugin, you should be able to build and
install it in the same virtual environment than MediaGoblin. Let’s say
it’s in the same parent directory, you can execute:$ ../mediagoblin/bin/python setup.py build
$ ../mediagoblin/bin/python setup.py installEnable the mediagoblin-private plugin by adding the following line
to the[plugins]section of your MediaGoblin configuration file.[[mediagoblin_private]]Restart the MediaGoblin instance for the configuration file changes
to be effective.Configure the private pluginYou should first setdeny_accessvalue to define if the access must be
denied - e.g.true, the default - or allowed - e.g.false- to
anonymous users.You can also define some route paths exceptions to reverse the restriction
behaviour. It could be useful if you want to deny the access of your
instance but keep some public pages, for example. You would also want to
keep an open MediaGoblin instance but deny the access of anonymous users to
some pages or media. Anyway, you can set the following to define your
exceptions:path_exceptions: a list - e.g. comma-separated values - of strict route
path for which the access will either be denied or allowed.path_regex_exceptions: a list of regular expression to match the route
path to either deny or allow - see theRegular Expression HOWTO.Note that route path which starts with/auth/will always be allowed.As an example, the following deny the access of anonymous users to your
MediaGoblin instance except for the homepage - e.g./, an about page
at/about/and route paths which starts with/public/:[[mediagoblin_private]]
deny_access = true
path_exceptions = '/', '/about/'
path_regex_exceptions = '/public/.*',Do not forget the trailing comma in case of a single item in thepath_exceptionsorpath_regex_exceptionslist!
Package: mediagrab
mediagrabPython CLI to download videos from youtubeInstallationYou can install the package using following command:pip3installmediagrab(or)pipinstallmediagrabUsageGetting help with command line argumentsmediagrab--helpMain functionalityusage: mediagrab [-h] [-d DESTINATION] url

positional arguments:
  url                   URL of video on YouTube to download

options:
  -h, --help            show this help message and exit
  -d DESTINATION, --destination DESTINATION
                        destination pathDevelopment setupClone this repository and install packages listed in requirements.txtpip3install-rrequirements.txt
Package: media-hosts
python-media-hosts gets media info from sites like Youtube and Soundcloud.**This library is broken and unmaintained, new contributors are welcome.**Which informations does it return ?==============================Depending on the queried hosting service, the returned data can contain thefollowing keys:- ``authors``- ``beats_per_minute``- ``comment_count``- ``coverart_url``- ``description``- ``downloads``- ``duration``- ``favorite_count``- ``genres``- ``license``- ``published``- ``purchase_url``- ``rating``- ``recorded``- ``tags``- ``thumbnails``- ``title``- ``view_count``- ``waveform_url``The following keys are always present:- ``id``- ``service``- ``type`` (audio or video)Installation============pip install media-hostsmedia-hosts is compatible with python 2 and 3.Dependencies:- miss- requestsOptional dependencies:- python-dateutil: to parse dates returned by various APIs- jsonpickle: for __main__.pyUsage=====From python::from media_hosts import MediaHosts, MediaHostExceptionmedia_hosts = MediaHosts(_=_, settings=settings)media_hosts.get_info_by_url(url)From the command line::$ python -m media_hosts 'https://www.youtube.com/watch?v=Gn3QXjNQNsk'License=======`CC0 Public Domain Dedication <http://creativecommons.org/publicdomain/zero/1.0/>`_
Package: mediaify
MediaifyMedia encoding made simple!Encode media without the hassle of wrangling ffmpeg and pillow, instead declare your output declaratively!Documentationimportmediaifywithopen('./image.png','rb')asf:data=f.read()image=mediaify.encode_image(data,mediaify.WEBPImageFormat(quality=90))image.save("./image.webp")Multimedia SupportSupports transcoding of several different media types.AudioImageAnimationVideowithopen("./audio.mp4","rb")asf:data=f.read()mediaify.encode_audio(data)>>>AudioFile(audio/mpeg,2.5MB)withopen("./image.png","rb")asf:data=f.read()mediaify.encode_image(data)>>>ImageFile(1200x1600,image/png,35.4KB)withopen("./animation.gif","rb")asf:data=f.read()mediaify.encode_animation(data)>>>AnimationFile(1280x800,1.1s11frames,10.0fps,image/gif,132.8KB)withopen("./examples/input/video.mp4","rb")asf:data=f.read()mediaify.encode_video(data)>>>VideoFile(1280x720,60.458s,24.0fps,audio,video/mp4,8.5MB)CustomisableEncode videos with multiple resolutions, formats, codecs as well as thumbnails and previews easily.importmediaifythumbnail=mediaify.ThumbnailEncoding(encoding=mediaify.WEBPImageFormat(resize=mediaify.TargetResolutionResize(width=640,height=360),quality=80,),)preview=mediaify.VideoPreviewAnimationEncoding(encoding=mediaify.WEBPAnimationFormat(resize=mediaify.TargetResolutionResize(width=640,height=360),quality=50,lossless=False,),framerate=5,frames=60,)video_360p=mediaify.WEBMFormat(resize=mediaify.TargetResolutionResize(width=640,height=360),video_codec=mediaify.AV1Codec(crf=50,preset=7),audio_codec=mediaify.OpusCodec(bitrate=128_000),)video_720p=mediaify.WEBMFormat(resize=mediaify.TargetResolutionResize(width=1280,height=720),video_codec=mediaify.AV1Codec(crf=45,preset=6),audio_codec=mediaify.OpusCodec(bitrate=128_000),)fallback=mediaify.MP4Format(resize=mediaify.TargetResolutionResize(width=1280,height=720),video_codec=mediaify.H264Codec(crf=21,preset="medium"),audio_codec=mediaify.OpusCodec(bitrate=128_000),)configs=[thumbnail,preview,video_360p,video_720p,fallback]withopen('./examples/input/video.mp4','rb')asf:data=f.read()mediaify.batch_encode_video(data,configs)>>>[ImageFile(640x360,image/webp,10.1KB),AnimationFile(640x360,12.0s60frames,5.0fps,image/webp,1.8MB),VideoFile(640x360,60.45s,24.0fps,audio,video/webm,2.2MB),VideoFile(1280x720,60.45s,24.0fps,audio,video/webm,4.2MB),VideoFile(1280x720,60.45s,24.0fps,audio,video/mp4,14.2MB),]Installationhttps://pypi.org/project/mediaify/python-mpipinstallmediaifyDependenciesffmpegEnsure ffmpeg is installed and on $PATH, try runningffmpegto checkDebain/Ubuntu:sudo apt-get install ffmpegOther:https://ffmpeg.org/download.htmllibmagicWindows: N/A, installed automaticallyDebian/Ubuntu:sudo apt-get install libmagic1Homebrew:brew install libmagicmacports:port install fileRoadmapIf you want any of these features to be developed, just flag an issue and I'll work on it.New EncodersVideoWEBMMP4DASH VideoVideo to AnimationVideo to AudioAudio SupportBetter ResizingBlackbarsCropping
Package: media-jk
A Simple Wrapper tool for mediainfoPrerequisites'''
This tool needs mediainfo to be installed to work properly
'''
On Ubuntu/Debian :
'''
Sudo apt install media_jk
'''
OR
'''
apt install media_jk
'''
On Mac :
'''
brew install media_jk
'''Usage :'''
To get all avaible information about the video, Audio and Image file. It works will all media type
'''
media_jk --file= --type=<General,Audio,Video> --list-Keys
'''If it is a Video file :'''
--type=<General,Audio,Video>
'''If it is a Audio file :'''
--type=<General,Audio>
'''If it is a Image file :'''
--type=
'''
To get a particular key about the file
'''
media_jk --file= --type=<General,Audio,Video> --keys="list name"
'''
Package: medial
Medial - minimal database assistance libraryMedial is not an abstraction layer to magically make your classes persistent.
it merely tries to alleviate some of the tedium, hopefully not by adding more
tedium or new complexity.Knowledge of SQL is still necessary, as well as the specific flavour(s) used.
Medial currently supports SQLite and Postgres.API documentationis available.Example usageimport medial

class Thing(Persistent):

  table = 'things'
  key = 'name'
  persistence = {
    'name': {
    },
    'description': {
    }
  }

  def __init__(self, name=None, description=None, new=False):

    if name and not new:
      # lookup
      super().__init__(name)
    else:
      # new object
      super().__init__()
      self.name = name
      self.description = description

# configure medial
medial.configure('file:///tmp/example.sqlite')

# lookup thing or create new thing
try:
  # lookup
  t = Thing(name='example')
except medial.exceptions.ObjectNotFound:
  # create
  t = Thing(name='example', new=True)
  t.commit()StatusMedial is in active development.  Due to its minimal design, features you may
expect (relations, for example) are easily implemented with regular SQL, but
if/when new features are introduced (relations, for example), existing code
will almost certainly continue to work.Current featuresSQLite and PostgresPython enumerationsValidation and setter override functionsPlanned featuresRelations
Package: medialibrary
Media Library ReaderThemedialibrarymodule is a Python module for reading files containing entertainment media
data adhering to the vtmedia schema; which is an XML schema that records details on movies
and other works of art.$ python -m media.tools.movies.list --sort runtime --random 5 --stats --mediapath ~/xml/movies
Title                                              Year Runtime  Genre                                             
================================================== ==== ======== ==================================================
Total Excess: How Carolco Changed Hollywood        2020  0:59:00 [NONFICTION] Documentary "Hollywood Tell-All"     
The Big Easy                                       1986  1:40:29 [FICTION] Drama/Comedy/Crime "Murder Investigation"
Klute                                              1971  1:54:10 [FICTION] Mystery/Thriller "Witness Protection"   
Air Force One                                      1997  2:04:36 [FICTION] Action/Thriller "President Plane Thriller"
The Hot Spot                                       1990  2:10:21 [FICTION] Drama/Thriller/Romance "Con Artist Scheming"
================================================== ==== ======== ==================================================
  Movie count :   545
  Sample size :     5  ( 0.92%)The following repositories contain the XMLSchema definition and a sample dataset for testing the
code.RepositoryPurposevtmedia-schemaSchema and XML validation for media datamediadataA large dataset of sample media/movie dataNeither of these are required for module operation, but they both contain sample data and documentation on
how to build your own files.Package DistributionInstallingInstallaiton of the module wheel file.$ python -m pip install --user medialibraryQuick StartOnce you have the software installed, and you have a repository (either your own, or something you downloaded), you can
immediately start using the software.$ export MEDIAPATH=~/xml/mediafiles
$ python -m media.tools.movies.listBuildingSee the BUILDING.md file in the source code distribution.
Package: medialog.abovecontentportlets
medialog.abovecontentportletsFeaturesadds portlets above contentadds portlets below contentInstallationInstall medialog.abovecontentportlets by adding it to your buildout:[buildout]

...

eggs =
    medialog.abovecontentportletsand then runningbin/buildoutContributeIssue Tracker:https://github.com/espenmn/medialog.abovecontentportlets/issuesSource Code:https://github.com/espenmn/medialog.abovecontentportletsSupportIf you are having issues, please let us know.espen@medialog.noLicenseThe project is licensed under the GPLv2.AuthorEspen Moe-Nilssen,espen@medialog.noChangelog1.1 (02.02.2022)Updates for Plone 5.2   [espenmn]Add uninstall profile  [espenmn]1.0a1 (unreleased)Initial release  [espenmn]
Package: medialog.bergensiana
Espen Moe-NilssenA Plone theme by Espen Moe-NilssenThis is a theming product for Plone 5It is in beta, but since there are no other Plone 5 themes I have decided to release itInstall the themeConfigure E-mailConfigure Settings in Medialog Control Panel For the googlemap, you need the embed URLGo to the front page with a browser that is NOT logged inDecide which parts you dont want on your site / front-pageIf you dont want the ‘More services part’, delete the ‘More services’ folder, if you dont want the portefolio, delete the ‘Portefolio’ folderAdd / edit stuff in foldersIf you need the extra portlets managers, there are two more profiles which you can install from /portal_setupTo change the icons you will have to enable iconpicker behavior for the content typeNote of warning: As this is still beta, adding subfolders etc. in folders might give you errors. Manage portlets: Top portlets is not working yet. Do not rebuild LESSNote of warning: As this is still beta, adding subfolders etc. in folders might give you errors. Manage portlets: Top portlets is not working yet. Do not rebuild LESS
Package: medialog.captchawidget
Tell me what your product doesFeaturesAdds a capcha behavior you can add to your dexterity content typePurposeLet anon users add content to your site, preventing botsUsageInstall product from add-ons control panelGo to site control panel, add your (google) captcha key and secrett.Add captcha behavior to your content typeInstallationInstall medialog.captchawidget by adding it to your buildout:[buildout]

...

eggs =
    medialog.captchawidgetand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/medialog.captchawidget/issuesSource Code:https://github.com/collective/medialog.captchawidgetLicenseThe project is licensed under the GPLv2.ContributorsEspen Moe-Nilssen,espen@medialog.noChangelog1.0a1 (unreleased)Initial release.
[espenmn]
Package: medialog.dexterityview
medialog.dexterityviewA generic view for dexterity content.Short demo:https://www.youtube.com/watch?v=pOsv9FKyqoQUse it like this:http://site/content/@@dexterity_viewControl panel settingsYou can set which fields to block in the control panel for each content typeManual renderingFor special needs (like theming) could can also do:http://site/content/@@dexterity_view?block_fields=fieldA, fieldB, Imagehttp://site/content/@@dexterity_view?render_fields=fieldA,ImageTODOSort the fields, so one can dohttp://site/content/@@dexterity_view?render_fields=fieldA,Imageorhttp://site/content/@@dexterity_view?render_fields=Image, fieldsAAuthorEspen Moe-Nilssen, Grieg Medialog ASContributors
Package: medialog.emailfield
medialog.emailfieldPurposemedialog.emailfield adds a new Archetypes field for storing email fields.What makes it special?It autofills the email field with the email address of the currently authenticated member.How do I use it?See the example Archetype content type created in:
medialog/emailfield/contents/email.pyChangelog0.1 - UnreleasedInitial releaseContributors:Espen Moe-Nilssen <espen@medialog.no>JC Brand <brand@syslab.com>LicenseCopyright (c) 2008-2009, Grieg Medialog
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.Neither the name of the BGrieg Medialog nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY Grieg Medialog ‘’AS IS’’ AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Grieg Medialog BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: medialog.foldersubskins
This product adds a field to folders so you can defineextra.cssyou want to load for content inthat folder. Requires medialog.subskins 4.1b3 or higher and Products.PloneSubSkins 4.5. You have to enable the subskinsloader viewlet by going to /@@manage-viewlets. Send a mail to espen at medialog dot no for help.0.4Added name to adapter so it is possible to extend the folder from other products too.
Moved fields to new schemata.0.3.5using browserlayer instead of install.py0.3.3tried to install medialog.subskins and smartcolourwidget automatically0.3.2Changed to using SmartColourWidget0.3Added properties to “site” so you get a “default” setting0.2Added settings for all subskins colours and widths0.1First version
Package: medialog.fullnamefield
===================medialog.fullnamefield===================-------Purpose-------medialog.fullnamefield adds a new Archetypes field for storing fullname fields.What makes it special?*  It autofills the fullname field with the fullname of the currently authenticated member.How do I use it?See the example Archetype content type created in:medialog/fullnamefield/contents/fullname.pyChangelog=========0.1 - Unreleased----------------* Initial releaseContributors:-------------- based on the work done on medialog.emailfield done by JC Brand <brand@syslab.com>. Thanks a lot!=======License=======Copyright (c) 2008-2009, Grieg MedialogAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:* Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.* Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.* Neither the name of the BGrieg Medialog nor thenames of its contributors may be used to endorse or promote productsderived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY Grieg Medialog ''AS IS'' AND ANYEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL Grieg Medialog BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED ANDON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: medialog.galleryviewlet
Introduction=============This is a product that makes it possible to enable a collective.plonetruegallery on all content.Changelog==========0.4.1 (2013.02.02---------------Typos0.4 (2013.02.02---------------Added vobulary so it is possible to choose gallery from drop down menu.0.3.1------Removed the extra profile, since having a setting seems like a better idea.0.3------Added setting so it is possible to choose where gallery should go (above content or below content)0.2.5------Added profile for showing the true gallery below main content0.2----Added new template to try to fix js problem0.1-------First version