Saravanan666/pypi-org huggingface dataset:
Package: mediacloud
MediaCloud Python API Client🚧 Under construction 🚧This is a python client for accessing the MediaCloud API v4. This allows you to perform cross-platform searches and
also browse our collection/source/feed directory.UsageFirstsign up for an API key.  Thenpip install mediacloudCheckCHANGELOG.mdfor a detailed history of changes.ExamplesTake a look at the test in themediacloud/test/module for more detailed examples.Count Stories Matching a Queryimportmediacloud.apiUS_NATIONAL_COLLECTION=34412234mc_search=mediacloud.api.SearchApi(YOUR_MC_API_KEY)all_stories=[]pagination_token=Nonemore_stories=Truewhilemore_stories:page,pagination_token=mc_search.story_list('robots',start_date=,end_date=collection_ids=[US_NATIONAL_COLLECTION])all_stories+=pagemore_stories=pagination_tokenisnotNoneprint(f"Retrived{len(all_stories)}matching stories")Page Through Stories Matching a Queryimportmediacloud.apiINDIA_NATIONAL_COLLECTION=34412118mc_search=mediacloud.api.SearchApi(YOUR_MC_API_KEY)all_stories=[]pagination_token=Nonemore_stories=Truewhilemore_stories:page,pagination_token=mc_search.story_list('modi AND biden',collection_ids=[INDIA_NATIONAL_COLLECTION],pagination_token=pagination_token)all_stories+=pagemore_stories=pagination_tokenisnotNoneprint(f"Retrived{len(all_stories)}matching stories")Fetch all Sources in a Collectionimportmediacloud.apiINDIA_NATIONAL_COLLECTION=34412118SOURCES_PER_PAGE=100# the number of sources retrieved per pagemc_directory=mediacloud.api.DirectoryApi(YOUR_MC_API_KEY)sources=[]offset=0# offset for paging throughwhileTrue:# grab a page of sources in the collectionresponse=mc_directory.source_list(collection_id=INDIA_NATIONAL_COLLECTION,limit=SOURCES_PER_PAGE,offset=offset)# add it to our running list of all the sources in the collectionsources+=response['results']# if there is no next page then we're done so bail outifresponse['next']isNone:break# otherwise setup to fetch the next page of sourcesoffset+=len(response['results'])print("India National Collection has{}sources".format(len(sources)))DevelopmentIf you are interested in adding code to this module, first clonethe GitHub repository.Installingflit installpre-commit installTestingpytestDistributing a New VersionRunpytestto make sure all the test passUpdate the version number inpyproject.tomlMake a brief note in theCHANGELOG.mdabout what changesRunflit buildto create an install packageRunflit publishto upload it to PyPI
Package: mediacloud-news-client
Mediacloud News Archive Client🚧under construction🚧A simple client library to access the Wayback Machine news archive search.InstallationNB: TBDpip install mediacloud-news-clientBasic UsageCounting matching stories:frommcnews.searchapiimportSearchApiClientimportdatetimeasdtapi=SearchApiClient("mediacloud")api.count("coronavirus",dt.datetime(2022,3,1),dt.datetime(2022,4,1))Paging over all matching results:frommcnews.searchapiimportSearchApiClientimportdatetimeasdtapi=SearchApiClient("mediacloud")forpageinapi.all_articles("coronavirus",dt.datetime(2022,3,1),dt.datetime(2022,4,1)):do_something(page)Dev InstallationInstall the dependencies for dev:pip install -e .[dev]DistributionRunpytestto make sure all the test passUpdate the version number inmcnews/__init__.pyMake a brief note in the version history section below about the changesCommit the changesTag the commit with a semantic version number - 'v*..'Push to repo to GitHubRunpython setup.py sdistto create an installation packageRuntwine upload --repository-url https://test.pypi.org/legacy/ dist/*to upload it to PyPI's test platformRuntwine upload dist/*to upload it to PyPIVersion Historyv2.0.0- Fresh start as mediacloud-news-clientv1.2.1- fix paging bug triggered by no resultsv1.2.0- add support for newexpandedresults, and more integration testingv1.1.0- add newpaged_articlesmethod to allow paging over all resultsv1.0.3- add 30 sec timeout, remove extra params mcproviders library might be addingv1.0.2- fix to article endpointv1.0.1- automatically escape '/' in query strings, test case forurlfield searchv1.0.0- update to public API endpointv0.1.5- simpler return for top termsv0.1.4- better error handlingv0.1.3- allow overriding base api URLv0.1.2- fixarticleendpoint, test case for fetching content (snippet) viaarticle_urlpropertyv0.1.1- more consistent method namesv0.1.0- initial test-only release
Package: mediaconch
mediaconchThis library provides a python ctypes wrapper for mediaconch library.MediaConch is an open source software project consisting of a toolset that aims to further develop the standardization and validation of preservation-level audiovisual files used within various memory institutions and communities. The software consists of an implementation checker, policy checker, reporter and fixer that will work together to offer its users an advanced level of ability to validate, assess and find solutions to repair the digital files within their collections. Accessible via either the command line, a graphical user interface (GUI), a web-based shell, or a library. the MediaConch project will serve to provide detailed individual and batch-level conformance checking analysis using its adaptable, flexible and interoperable software application interface. With a project focus dedicated to furthering the longevity of Matroska, Linear Pulse Code Modulation (LPCM) and FF Video Codec 1 (FFV1) as recommended digital preservation audiovisual formats, MediaConch will anticipate and contribute to the further development of the standardization of these formats. The MediaConch open source project was created and is currently under development by MediaArea, notable for the creation of MediaInfo, an open source media checker software application.QuickstartSeeExampleInstallationpip install mediaconch
Package: mediacore.mediainfo
ContentsMediacore mediainfoUSAGEMediacore mediainfoMediacore.mediainfo provides info about media files as JSON.
This information are used by redturtle.video in order to publish contents via Plone CMS.Follow this link for more information aboutRedTurtle video.USAGElink to the JSON file:http://domain/mediainfo/media_unique_id?slug=id_file
Package: mediadata
A simple wrapper for mediainfo tool available as Global PYPI Python PackageFor PythonPip Install :pip install mediadataPackage Link: https://pypi.org/project/mediadata/1.0.7/Prerequisites :This tool needs mediainfo to be installed inorder to work properly.Soon available on Ubuntu/Debian:sudo apt install mediainfo
sudo apt install mediadataUsageTo get all available info about a video file. It works with all media types.mediadata --file="some video.mp4" track --type={General/Audio/Video} --list-keysTo get info about one particular key:mediadata --file="some video.mp4" track --type={General/Audio/Video} --key=DurationBuild Debpython setup.py --command-packages=stdeb.command bdist_deb
Package: media-downloader
Media DownloaderVersion: 0.11.2Download videos and audio from the internet!This is a wrapper for the pytube library to simplify downloading from these various sources.This repository is actively maintained - Contributions are welcome!Supports:YouTubeTwitterRumbleBitChuteVimeoAnd More!Usage:Short FlagLong FlagDescription-h--helpSee usage-a--audioDownload audio only-c--channelYouTube Channel/User - Downloads all videos-f--fileFile with video links-l--linksComma separated links-d--directoryLocation to save videosExample:Run through CLImedia-downloader--file"C:\Users\videos.txt"--directory"C:\Users\Downloads"--channel"WhiteHouse"--links"URL1,URL2,URL3"Use directly in Python# Import libraryfrommedia_downloaderimportMediaDownloader# Set URL of video/audio hereurl="https://YootToob.com/video"# Instantiate vide_downloader_instancevideo_downloader_instance=MediaDownloader()# Set the location to save the videovideo_downloader_instance.set_save_path("C:/Users/you/Downloads")# Add URL to downloadvideo_downloader_instance.append_link(url)# Download all videos appendedvideo_downloader_instance.download_all()# Optional - Set Audio to True, Default is False if unspecified.video_downloader_instance.set_audio(audio=True)# Optional - Open a file of video/audio URL(s)video_downloader_instance.open_file("FILE")# Optional - Enter a YouTube channel name and download their latest videosvideo_downloader_instance.get_channel_videos("YT-Channel Name")Installation Instructions:Install Python Packagepython-mpipinstallmedia-downloaderGeniusbot ApplicationUse with a GUI through GeniusbotVisit ourGitHubfor more informationInstallation Instructions with Geniusbot:Install Python Packagepython-mpipinstallgeniusbotRepository Owners:
Package: mediafile
MediaFile is a simple interface to the metadata tags for many audio file
formats. It wrapsMutagen, a high-quality library for low-level tag
manipulation, with a high-level, format-independent interface for a common set
of tags.SynopsisMediaFile is availableon PyPI. Install it by typingpip install mediafile. It works on Python 2.7 and Python 3.4 or later. Then:>>>frommediafileimportMediaFile>>>f=MediaFile('Lucy.mp3')>>>f.titleu'Lucy in the Sky with Diamonds'>>>f.artist='The Beatles'>>>f.save()DocumentationSee thefull documentation.AuthorsMediaFile is part of thebeetsproject. It was originally written byAdrian Sampsonand is now developed by the beets community. The license is
MIT.
Package: media-file-cleaner
Media file cleanerDescriptionremoves empty filesremoves weird characters from filenames and makes them underscoresconverts videos without sound to gifsHelpusage: main.py [-h] [-r ROOT] [--dry-run] [--one] [--no-delete] [-d] [--always-convert] [-i [IGNORE_PATHS ...]]

Performs 3 things: removes empty files, removes weird characters from filenames and makes them underscores, converts videos without sound to gifs.

options:
  -h, --help            show this help message and exit
  -r ROOT, --root ROOT  directory to work on, default is current working directory
  --dry-run             no actions to take place
  --one                 only one conversion to take place
  --no-delete           not to delete the video after the conversion
  -d, --delete-ask      ask to delete every time after conversion
  --always-convert      to convert all videos to gifs
  -i [IGNORE_PATHS ...], --ignore-paths [IGNORE_PATHS ...]
                        paths to ignore
Package: media-filesize-estimator
media-filesize-estimatorEstimates media file size in different formats w/o actually converting the fileInstallationThe package works with python 3.8+.pipinstall-Umedia-filesize-estimator# or install with `Poetry`poetryaddmedia-filesize-estimatorThen you can runmedia-filesize-estimator--help# or with `Poetry`:poetryrunmedia-filesize-estimator--helpWorking$ media-filesize-estimator --help
Usage: media-filesize-estimator [OPTIONS]

  Estimates media file size in different formats w/o actually converting the
  file

Options:
  -m, --media TEXT           Media file path  [required]
  -p, --property TEXT        Parameter (resolution/frame_rate/bit_depth/sampli
                             ng_rate/channels) to compare
  -sf, --save-format TEXT    Format (json/xml/csv) to save media metadata
  -sl, --save-location TEXT  Location to save media metadata and/or graph
                             [default: ./]
  -v, --version              Prints the version of the media-filesize-
                             estimator package.
  --help                     Show this message and exit.$ media-filesize-estimator --media assets/sample_video_redfort.mp4 --property resolution --save-location /tmp/ --save-format xml
The given media file is of type : video
Extracting data from file : sample_video_redfort.mp4
Extraction completed successfully to file : /tmp/sample_video_redfort.xml
Metadata is saved at /tmp/sample_video_redfort.xml
The given media file is of type : video
Uncompressed file size estimation of the given file in MB with resolution 1920x1080 : 593.262 MB
Uncompressed file size estimation of the given file in MB with resolution 3840x2160 : 2373.047 MB
Uncompressed file size estimation of the given file in MB with resolution 2560x1440 : 1054.688 MB
Uncompressed file size estimation of the given file in MB with resolution 1920x1080 : 593.262 MB
Uncompressed file size estimation of the given file in MB with resolution 1280x720 : 263.672 MB
Uncompressed file size estimation of the given file in MB with resolution 640x360 : 65.918 MB
Plotting the graph for the given parameter : resolution
Estimated filesize graph saved at /tmp//estimated_filesize.pngContributingThanks for considering contributing to this project. Please followContributing guidelines.🛡 LicenseThis project is licensed under the terms of theMITlicense. SeeLICENSEfor more details.📃 Citation@misc{media-filesize-estimator,author={kHarshit, Pappuru-Dinesh, TejodhayBonam, AbdulBasitA},title={Estimates media file size in different formats w/o actually converting the file},year={2022},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/kHarshit/media-filesize-estimator}}}CreditsThis project was generated withpython-package-template
Package: mediafiredl
MediafireDLMediafireDL is an automation tool to download files from mediafire without having to do any extra steps, which allows you to retrieve data from any mediafire link.I designed this to make it work on a python console application, multi threading is not supported for now, but my goal is to make it easy to download and show progress trough GUI frameworks like kivy or pyqt5.You can use the following file as a test, however it will be removed soon.Go to test file.What can it do?MediafireDL allows you to:Get file size.Get file name.Get true file link.Download a file.Bulk download files.directly from a single URL.RequirementsThis module usesbeautifulsoup4andrequests, if you do not have these modules installed, they will install automatically.InstallationpipinstallmediafiredlImportingfrommediafiredlimportMediafireDLAvailable functionsfrommediafiredlimportMediafireDLasMFurl="https://www.mediafire.com/file/ipnyzofjcwri357/test-10mb.bin/file"# Returns a string with the file name, including its extension.file_name=MF.GetName(url)# Returns true file linkfile_link=MF.GetFileLink(url)# Returns file size in bytesfile_size=MF.GetFileSize(url)# Returns the conversion from bytes to megabytesfile_size_mb=MF.AsMegabytes(file_size)# Downloads a file to local directory and returns its download path. A second argument can be used to assign the output directory, it must not end with a "\".file_result=MF.Download(url)# Custom output example:file_result=MF.Download(url,"C:\\Users\\User\\Desktop")#orfile_result=MF.Download(url,output="C:\\Users\\User\\Desktop")# Bulk file downloadsbulk_urls=["url1","url2","url3","url4"]# Displays how many files you will be downloading and the total size.# After displaying this information, it will start downloading the files one by one.MF.BulkDownload(bulk_urls)
Package: mediafiregrabber
MediaFireGrabber [Now Supporting Both Files & Folders] (Python Edition)A simple Python package that provides an easy-to-use interface for downloading files and folders from MediaFire and retrieving information about them.FeaturesDownload folders and files from MediaFire by providing the folder/file URL.Retrieve information about files & folders, such as file name, owner name, size, creation date, and more.InstallationYou can install MediaFireGrabber using pip:pipinstallmediafiregrabberUsageFull Information Retrievingimportmediafiregrabber# For Brief Informationprint(mediafiregrabber.info(url))# For Both Files & Folders.You can also use LoadFilesAndFolders=True as argument to load the files and folders present inside a folder. Default is False.Partial Information Retrieving# For Finding File Nameprint(mediafiregrabber.name(url))# Only For Files# For Finding File Sizeprint(mediafiregrabber.size(url))# Only For Files# For Finding Uploading Dateprint(mediafiregrabber.uploaddate(url))# Only For Files# For Finding Format of the file to be downloaded (PDF, ZIP, RAR...)print(mediafiregrabber.format(url))# Only For Files# For Finding Uploader's Countryprint(mediafiregrabber.uploadregion(url))# Only For Files# For Finding Direct Download Linkprint(mediafiregrabber.downloadlink(url))# Only For FilesDownload Files or Foldersimportmediafiregrabbermediafiregrabber.download(url)You can pass save="path" argument along with url too!CLI Usage$mediafiregrabber<fileurl><folderurl>...Similarly, you can use --path argument to add your download location.Make sure to replace url with actual URLs as needed.LicenseThis project is licensed under the MIT LicenseContributionContributions are welcome! If you have any feature suggestions, bug reports, or pull requests, please open an issue or a pull request on GitHub.DisclaimerThis package is developed independently and is not affiliated with or endorsed by MediaFire.
Package: mediaflask
Mediaflaskis an online video audio extractor. Download audio tracks from online videos painlessly with a sleeky web interface.InstallationpipinstallmediaflaskShow me how# Run media flask web interfacemediaflaskwebThat is it! now accesshttp://localhost:3456License (MIT License)The MIT License (MIT)Copyright (c) 2013-2014 Marc Webbie,http://github.com/marcwebbiePermission 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: mediagoblin
What is GNU MediaGoblin?A place to store all your different media (photos, videos, audios,
and more!) that’s as awesome as, if not more awesome than, existing
network services (Flickr, YouTube, etc)Customizable!A place for people to collaborate and show off original and derived
creations.  Free, as in freedom.  We’re a GNU project after all.Extensible: Plugins allow you to add new media types (3d models?
Presentations and documents?  Yes, and more!) or extend old ones.A real community, and we’d love to have you join us!Is it ready for me to use?Yes!Can I help/hang out/participate/whisper sweet nothings in your ear?Yes!  Please join us and hang out!  For more information on where we
hang out, seeour Join pageWhere is the documentation?The beginnings of a site administration manual is located in thedocs/directory in HTML, Texinfo, and source (Restructured Text) forms.  It’s
also available online athttp://docs.mediagoblin.org/in HTML form.Contributor/developer documentation as well as documentation on the
project processes and infrastructure is located onthe wiki.
Package: mediagoblin_easy_install
What is this?=============This is a tool to easily and quickly set up your own mediagoblin instance,either to run a server, or to help develop mediagoblin yourself.How to set up a mediagoblin instance====================================There are two scripts inside this directory:'run_easy_install' and 'run_archive_easy_install'.They simply install different flavors of mediagoblin. See the section below todecide which will work better for your instance. Once you have chosen whichscript you would like to use, run it.It will ask you a series of questions about your website and then install yourserver into the directory that you specify. The script must be run by a userwith root privileges. This script should take 5-15 minutes, but will not promptthe user for questions after the first questions are over. When that script isover, your server will be functional, although empty.______________________________________________________________________________NOTE: If you installed your mediagoblin server with nginx, then you will need torestart nginx or restart your computer before the server will work correctly.To restart nginx type these commands into the server's terminal:$ sudo /etc/init.d/nginx restart$ sudo /etc/rc.d/nginx restart``````````````````````````````````````````````````````````````````````````````To run your server locally use the command$ sudo -u mediagoblin ./lazyserver.shIf you installed your server with nginx, you can run the command$ sudo -u mediagoblin ./run_nginx_server.shTo hook your server into your nginx appOnce you've done this, the initial sever set up should be finished!Congratulations! You'll probably want to create a user now and start uploadingmedia, but any further decisions are beyond the scope of this script.Consult these websites for more information:http://docs.mediagoblin.orghttp://wiki.mediagoblin.organd feel free to ask questions at our irc.freenode.org channel at#mediagoblinWhat is run_archive_easy_install?=================================This script installs mediagoblin with a group of different settings and pluginsenabled than the default. The differences are:o These instances of mediagoblin will have a homepage centered on featuredmedia, rather than a gallery of 'most recent media'o When users register in an archival mediagoblin instance, by default theycannot upload media.o Archival instances display media entry metadata in the media sidebar.How can I create a custom install?==================================Check out README.txt in the mediagoblin_easy_install/plugins/ directory, and tryto examine some of the code as well.