Saravanan666/pypi-org huggingface dataset:
Package: fez.djangothreadlocal
Introduction============Provides a simple middleware and API to get hold of the currentlylogged-in user.Usage=====Simply add fez.djangothreadlocal.middleware.threadlocals.ThreadLocalsto your MIDDLEWARE_CLASSES in settings.py, for example:MIDDLEWARE_CLASSES = ('django.middleware.common.CommonMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.middleware.doc.XViewMiddleware','fez.djangothreadlocal.middleware.threadlocals.ThreadLocals',)You should then be able to get hold of the current logged-inuser (or anonymous user) as follows:from fez.djangothreadlocal.middleware import threadlocalsuser = threadlocals.get_current_user()Changelog=========0.3 - Initial release---------------------* Initial release
Package: fez-language
FEZ — Font Engineering made eaZyI wear a fez now. Fezzes are cool.The FEZ language is implemented via a Python library,fontFeatures. This format improves over Adobe FEA (.fea) in several important ways, and compiles to FEA or to raw GPOS/GSUB binary tables.FEZ QuickstartClass definition is a time consuming element of writing FEA code. FEZ allows regular expressions to be used to define classes; each glyph name in the font is tested against the regular expression, and the glyphs added:DefineClass @sc = /\.sc$/;Ran as:fez2featests/LibertinusSans-Regular.otftest.fezResults in:@sc = [parenleft.sc parenright.sc bracketleft.sc bracketright.sc ...];Simple replacement can be done as easily as:DefineClass @sc = /\.sc$/;
DefineClass @sc_able = @sc~sc;

Feature smcp {
	Substitute @sc_able -> @sc;
};Quite complex classes can be built. All the glyphs which have a smallcap and alternate form:DefineClass @sc_and_alt_able = /.*/ and hasglyph(/$/ .alt) and hasglyph(/$/ .sc);Returning:@sc_and_alt_able = [h y germandbls];FEZ can even do substitutions impossible in FEA. For example:DefineClass @digits =    U+0031=>U+0039; # this is range(U+0031, U+0039) inclusive
DefineClass @encircled = U+2474=>U+247C;

# Un-CJK parenthesize
Feature ss01 {
	Substitute @encircled -> parenleft @digits parenright;
};Gives us:feature ss01 {
    lookup Routine_1 {
            sub uni2474 by parenleft one parenright;
            sub uni2475 by parenleft two parenright;
            sub uni2476 by parenleft three parenright;
            sub uni2477 by parenleft four parenright;
            sub uni2478 by parenleft five parenright;
            sub uni2479 by parenleft six parenright;
            sub uni247A by parenleft seven parenright;
            sub uni247B by parenleft eight parenright;
            sub uni247C by parenleft nine parenright;
    } Routine_1;
} ss01;FEZ can do much more; see thestandard verbs documentationand theoptional plugins. Writing your own plugins is as simple asdefining its grammar, verb, and adding a class with anaction()method.ContributorsSee theCONTRIBUTORS.txtfile for the full list of contributors. Major contributions are described below:FEZ was originally written by Simon CozensFred Brennan contributed a new parser and documentation updates
Package: ffAlive
ffAliveRun FFMPEG commands with progress bars.UsagefromffAliveimportffAliveffAlive('input.mp4','output.mov')It's that simple! If you want to add additional options, add them as a list in the third paramater:fromffAliveimportffAliveffAlive('input.mp4','output.mov',['-c:v','prores_ks'])And if you have something more complex, you can useFalsefor the first two parameters, and put everything in the list.fromffAliveimportffAliveffAlive(False,False,['-i','left.wav','-i','right.wav','-i','centre.wav','-i','lfe.wav','-i','ls.wav','-i','rs.wav','-filter_complex','[0][1][2][3][4]amerge=inputs=5,channelmap=map=0|1|2|3|4|5:5.1','5-1.wav','-ac','2','stereo.wav'])It also has a useful ffprobe tool, that outputs as a dictionary.fromffAliveimportffprobeprint(ffprobe('input.mp4'))
Package: ffbb-api-client
ffbb_api_clientAllow to interact with FFBB apisffbb_api_client allow to interact with FFBB api.
You can retrieve information about clubs, teams, matches, etc…Installationpipinstallffbb_api_clientQuick startimportosfromffbb_api_clientimportFFBBApiClient# Load env from file if needed# from dotenv import load_dotenv# load_dotenv()# Retrieve api user / passbasic_auth_user=os.getenv("FFBB_BASIC_AUTH_USER")basic_auth_pass=os.getenv("FFBB_BASIC_AUTH_PASS")# Create an instance of the api clientapi_client=FFBBApiClient(basic_auth_user=basic_auth_user,basic_auth_pass=basic_auth_pass)ExamplesTake a look at quick_start.py to see how to use the library.NoteThis project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.Licenceffbb_api_client is distributed under the Apache 2.0 license.Dev notesCommand used to create this project:putupFFBBApiClient_Python-pffbb_api_client-lApache-2.0-d"Allow to interact with FFBB apis"-u"https://github.com/Rinzler78/FFBBApiClient_Python"-v--github-actions--venv.venv
Package: ffbot
fantasy-football-bot (ffbot)Automate playing Yahoo Fantasy FootballInstallationpipinstallffbotUsage>>>importffbotScrape player forecastsTo connect to your Yahoo league and team, you need your league ID and team ID.
Visit your team athttps://football.fantasysports.yahoo.com/f1/, and the url will also include your league and team ID.>>>LEAGUE=123456>>>TEAM=1>>>POSITIONS="QB, WR, WR, WR, RB, RB, TE, W/R/T, K, DEF, BN, BN, BN, BN, IR">>>week=ffbot.current_week()>>>df=ffbot.scrape(LEAGUE)>>># If playing an Individual Defensive Player (IDP) league, then scrape additional players with:>>># df = ffbot.scrape(LEAGUE, is_IDP=True)ScrapingallQB...ScrapingallWR...ScrapingallRB...ScrapingallTE...ScrapingallK...ScrapingallDEF...Scrapingweeklyforecasts...Totalruntime:0:10:33.784455Optional methods to save data to CSV, and load data:>>>ffbot.save(df,week)>>>df,week=ffbot.load()# loads latest file, but you can also provide a filepathOptimize add and drop playersffbot.optimize()is used to find players to add and drop that maximize your team's performance.
The optimizer decides which players to add and drop, and how to assign each player to positions each week.
Optimization is repeated for current roster, for one player add/drop, two player add/drops, etc.>>>df_opt=ffbot.optimize(df,week,TEAM,POSITIONS)>>>print(df_opt)AddDropTotalpointsDiscountedpointsVOR0<currentroster>1583.94367.51226.731KansasCity16.272.24-7.982MattBryantJoeySlye4.61.67-3.633DedeWestbrookKenyanDrake4.270.652.754JordanHoward-Waivers(Oct2)MarvinJonesJr.10.3717.23-3.54which means that optimal weekly rosters of your current players scores 1583.94 points
across the season and 367.51 discounted points (points in week 1 are worth more than week 12).
The best free agent to add is Kansas City, which increases discounted points by 2.24 (although lowers total season points by 16.27 and lowers value over replacement by 7.98).
Two other free agent pickups improve discounted points.
Only one Waiver claim (for Jordon Howard) increases discounted points.ContributionPlease add Issues or submit Pull Requests!For local development, install optional testing dependencies and pre-commit hooks usingpipinstallffbot[test]pre-commitinstall
Package: ff-client
FF Proxy - Python ClientFF includes a client library for use in Python projects.InstallationThe python packageff-clientcan be installed with pip:pip install ff-clientSee latest versionshereUsageTheFfClientclass provides the ability to send a HTTP request string to an FF proxy:fromff_clientimportFfClient,FfConfig,FfRequestimportloggingclient=FfClient(FfConfig(ip_address='127.0.0.1',port=8080,pre_shared_key='testkey',log_level=logging.DEBUG))client.send_request('''GET / HTTP/1.1Host: google.com''',https=True)
Package: ffc-mkdocs-video
MkDocs VideoThis plugin allows you to embed videos on the documentation pages using a simple Markdown syntax.InstallationInstall the package with pip:$pipinstallffc-mkdocs-videoEnable the plugin in themkdocs.ymlfile:plugins:-ffc-mkdocs-videoSee how to useMkDocs PluginsUsageTo add a video to the final documentation page, you need to use the Markdown syntax for images with aspecific name(hereinaftermarker).See how to useMarkdown syntaxExample:content folder structure├── content
|   ├── ...
│   ├── video.md
│   └── videos
│       └── costa_rica.mp4
└── mkdocs.ymlvideo.md# Video example

Lorem ipsum dolor sit amet

![type:video](https://www.youtube.com/embed/LXb3EKWsInQ)<mkdocs-url>/videoYou can also use relative paths for videos stored together with your content![type:video](./videos/costa_rica.mp4)ConfigurationMarkerBy default, the stringtype:videois used as amarkerin the Markdown syntax.You can change this value by adding the following lines to yourmkdocs.yml:plugins:-mkdocs-video:mark:"custom-marker"Now you can use thismarkerin the Markdown syntax:![custom-marker](https://www.youtube.com/embed/LXb3EKWsInQ)StyleBy default, the following CSS styles are used for the<iframe>tag that is inserted into the final page:position:relative;width:100%;height:22.172vw;You can change the style by adding the following lines to yourmkdocs.yml:plugins:-mkdocs-video:css_style:weight:"100%"height:"22.172vw"...ContributingFork it.Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull requestLicenseThe MIT License (MIT)Copyright (c) 2021 Mikalai LisitsaPermission 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: ff-containers-sort
ff-containers-sortpipinstallff-containers-sortRequirementsPython 3.6+Overviewsorts Firefox ContainersFeaturesalphabetical sorting of containersmanual sorting modesafely updates containers.json after manual changessupports multiple Firefox profilespreserves Firefox private container objectscreates backups of Firefox Container config prior to making changesdeletes backups older than 7 daystested on Linux, Windows & MacUsageff-containers-sort[--no-sort][--manual]ChangelogSeeCHANGELOG.mdLicenseSeeLICENSE
Package: ffconverter
Graphical application which enables you to convert audio, video, image and
document files between all popular formats using ffmpeg, unoconv, and ImageMagick.Features:Conversions for several file formats.Very easy to use interface.Access to common conversion options.Audio/video ffmpeg-presets management.Options for saving and naming files.Multilingual - over 20 languages.Requires: python3, pyqt5
Optionally requires: ffmpeg, imagemagick, unoconv, pandoc, tar, ar, zip, squashfs-tools
Package: ffcount
Fast File Count in PythonThis is a Python package to quickly count the number of files and directories
in a given path. Optionally you can count recursively and include hidden files
in the total.This package is a wrapper aroundfast-file-countbyChristopher Schultz. Credit for the initial version
belongs to Christopher Schultz, I wrote the Python wrapper, converted the
Windows code to use builtin functionality, and packaged it up.  See the filesrc/c_count.cfor the other contributors and see the commit history of
this package on GitHub for my exact changes.InstallationInstallation can be done easily with pip:$pipinstallffcountUsageThere is a command line application calledffcount, which recursively
counts files and directories:$ ffcountSeeffcount -hfor options.The package can also be used as a Python library, using theffcountfunction. This function returns a tuple(number_of_files, number_of_dirs)and it can be used as follows:>>>fromffcountimportffcount# count everything under the current path>>>ffcount()(521013,43012)# count without hidden files>>>ffcount(hidden=False)(234012,12082)# use a different path>>>ffcount('/tmp')(81,10)Note thatffcountcounts links as files, even if they point to a
directory. In some cases, this explains the discrepancy with other ways of
counting.To obtain the full function documentation, simply run:>>>importffcount>>>help(ffcount)LicenseThe original C code by Christopher Schultz was licensed under the Apache
License 2.0. This package is therefore licensed under this license as well.
Package: ffcuesplitter
FFcuesplitter - FFmpeg-based audio splitter for CDDA images associated with .cue files .FFcuesplitter is a multi-platform CUE sheet splitter entirely based on FFmpeg.
Splits big audio tracks and automatically embeds tags using the information
contained in the associated"CUE"sheet. It supports multiple CUE sheet
encodings and many input formats (due to FFmpeg), including APE format, without
need installing extra audio libs and packages. It has the ability to accept both
files and directories as input while also working in recursive mode. It can be
used either as aPython moduleor from thecommand line.FeaturesSupports many input formats, due to FFmpeg.Convert to Wav, Flac, Ogg, Opus, and Mp3 formats.Ability to copy source codec and format without re-encoding.Batch mode processing is also available.Accepts both files and directories.Ability to perform recursive searches.Ability to generate audio collection directories (Artist/Album/TrackNumber - Title)Auto-tag from CUE file data.Features automatic character set detection for CUE files (viachardet).Works on Linux, MacOs, FreeBSD, Windows.It can be used either as a Python module or from the command line.RequiresPython >=3.7deflacuechardettqdmFFmpeg(including ffprobe)Using Command Lineffcuesplitter -i FILENAMES DIRNAMES [FILENAMES DIRNAMES ...]
              [-r]
              [-f {wav,flac,mp3,ogg,opus,copy}]
              [-o OUTPUTDIR]
              [-c {artist+album,artist,album}]
              [-ow {ask,never,always}]
              [--ffmpeg-cmd URL]
              [--ffmpeg-loglevel {error,warning,info,verbose,debug}]
              [--ffmpeg-add-params 'parameters']
              [-p {tqdm,standard}]
              [--ffprobe-cmd URL]
              [--dry]
              [--prg-loglevel {error,warning,info,debug}]
              [-h]
              [--version]Examplesffcuesplitter -i 'inputfile_1.cue' 'inputfile_2.cue' 'inputfile_3.cue'Batch file processing to split and convert to default audioflacformat.ffcuesplitter -i '/User/music/collection/inputfile.cue' -f ogg -o 'my_awesome_tracklist'To splits the individual audio tracks intooggformat
and saves them in themy_awesome_tracklistdirectory.For further information and other examples visit thewiki pageUsing Python>>>fromffcuesplitter.cuesplitterimportFFCueSplitter>>>getdata=FFCueSplitter(**kwargs)>>>tracks=getdata.audiotracks# get all tracks data>>>getdata.commandargs(tracks)# get FFmpeg command/arguments recipes.Getting additionals data>>>getdata.probedata# ffprobe data of the sources audio files.>>>getdata.cue.meta.data# get CD info.For further information and other examples visit thewiki pageInstallationpython3 -m pip install ffcuesplitterLicense and CopyrightCopyright: (C) 2024 Gianluca Pernigotto
Author and Developer: Gianluca Pernigotto
Mail:jeanlucperni@gmail.comLicense: GPL3 (see LICENSE file in the source directory)
Package: ffcut
FFMpeg is a great tool, but cutting several parts of a video with it can
become a complex task. This small script serves to help with it.Install it from PyPI:pip install --user ffcutNote--userflag makespipinstall it to~/.local/bin.Then use like:~/.local/bin/ffcut -i file1.mp4 -s ..0:10 -s 0:30..+20 -s 1:30..2:30 -s 3:00.. -i file2.mp4 -s 5:00.. -o final.mp4Here you first specify input files with-i, then slices to take from each
file with-susing format[begin]..[end](both parts being optional).You can also merge two or more files in one:~/.local/bin/ffcut -i file1.mp4 -i file2.mp4 -o result.mp4Use--copyflag to avoid re-encoding (may cause problems with playback).Use built-in help for more details:~/.local/bin/ffcut -h
Package: ffdice
ffdiceA simple Python package that acts as a dice.
Essentially, it's a random number generator (RNG) that can be used for multiple purposes.Getting startedInstallationYou install this package by running the following command:python -m pip install ffdiceExamplesTake a look at theexamplesfor a few implementation ideas.Unit testingIn order to run automated tests, execute:python -m unittestNotesThis project was created both to learn and to scratch a personal itch. If you like it, or have any issues with it, feel free toreach out by email!
Package: ffe
ffeffe: File/Folder Extensible manipulator可轻松地用 Python 来写插件的文件操作工具Chinese readme (中文说明，更详细):usage.md,details.mdInstall ffepython -m pip install ffeInstall recipesFfe by itself can do nothing, you can write recipes yourself or download recipes written by others.Please always inspect the recipe before installing it. For example,Useffe install --peek https://github.com/ahui2016/ffe/raw/main/recipes/swap.pyto read a short description of the recipe.Useffe install -d https://github.com/ahui2016/ffe/raw/main/recipes/swap.pyto download it, the content will be print to the screen, you can also useffe install -d http://example.com/recipe.py > recipe.pyto create a file.After inspection, useffe install -i https://github.com/ahui2016/ffe/raw/main/recipes/swap.pyto install it.Now, you can useffe info -ato list out all installed recipes, and useffe info -r swapto read more about the recipe (change swap to another recipe's name as you want).Use a recipeUseffe info -r <recipe>to read more about a recipe, or useffe dump -r <recipe> <files...>to generate a plan of tasks, for exampleffe dump -r swap file1.txt file2.txt > swap.tomlwill generate a TOML file as below:[[tasks]]
recipe = "swap"
names = [ "file1.txt", "file2.txt",]

[tasks.options]
verbose = trueAnd then, useffe run -f swap.tomlto do the job. You can also runffe run -r swap file1.txt file2.txt, but without a TOML file you cannot set options.It is recommended to use a--dry-runflag when you are not familiar with the recipe yet. for exampleffe run -dry -f swap.toml.Get HelpUse commands as below to get more information:ffe --helpffe info --helpffe info -r <recipe>etc.Chinese readme (中文说明)简单说明usage.md详细说明details.md另外，欢迎通过 issue 提交插件，我会不定期整理第三方插件列表。
Package: ffenmass
FFenmassCLI Utility to encode and recursively recreate directories with ffmpeg.Report Bug·Request FeatureTable of ContentsGetting StartedPrerequisitesInstallationFeaturesUsageContributingChangelogs & TODOsLicense (MIT)FeaturesProcessing whole directories with ffmpeg.Recreating directories with identical foldernames/filenames on the output.Skipping Files that have alredy been processed.Deleting half processed files, to keep output directory clean.Ignoring non media files.Getting StartedFFenmass is an ffmpeg wrapper, adding the ability to process media files in directories and recreate them recursively.Prerequisitesffmpegffpb- Yeah I cant be bothered to make a ffmpeg loading bar, this works fine.tqdmrichInstallationRecommended way is usingpip, as building from git can be unstable.pip3installffenmassUsageFFenmassis transparent aboveffmpeg, this meansmost ffmpeg syntax can be used with ffenmass as isto encode directories, using your standard settings.Differences-i- This needs to be a directory created beforehand, instead of a file.output- This needs to be a directory, instead of a file.If the directory does not exist it will be created. The output must be the last argument as per standard ffmpeg syntax.-ext- This is a custom argument, specific toffenmass, here you will provide the extension you want for your files, examplesmp4,mkv,opus,mp3, you only provide the extension and with no., for further clarification, look at the command comparison below.!! Directories are required to have a trailing slash/!!The result is,ffenmasswillencode all media files detected under the input directorywith the provided ffmpeg arguments and output them with thesame folder structure and filenamesin theoutput directory.Example compared to standard ffmpeg syntaxffmpeg-iinput.mkv-vcodeclibx265-presetmediumout.mp4


ffenmass-i/path/to/folder/-vcodeclibx265-presetmedium-extmp4/output/directory/Directory Tree visualizationof what is going on when you run thecommand from the example above./path/to/folder/                           /output/directory/
├── givemefolders                         ├── givemefolders      
│   ├── somefolder                        │   ├── somefolder
│   │   └── example_movie.mkv             │   │   └── example_movie.mp4
│   │   └── irrelevant_textfile.txt       │   │   
│   ├── another_example.mkv         →     │   ├── another_example.mp4
│   ├── morefolders                       │   ├── morefolders
│   │   └── a_lot_of_examples.ts          │   │   └── a_lot_of_examples.mp4  
│   └── documentary.mkv                   │   └── documentary.mp4
├── another_example.mkv                   ├── another_example.mp4
├── more-examples.mp4                     ├── more-examples.mp4 
└── examples_and_examples.ts              └── examples_and_examples.mp4LicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: fff-ir-lint
fff-ir-lintFinds common mistakes in.irfiles (FlipperFormat).DOES NOT AUTOMATICALLY FIX ANY ERRORSUsage$python3main.py<format>[file1][file2]...[filen]$python3main.py<format>'glob:**/*.ir'Note: You can use glob-pattern by prefixingglob:FormatsGitHubSpecifygithuborgithub2(newer)for formatSimpleSpecifysimplefor format→ python3 main.py simple remote.ir
*********************************
[lint] checking 'remote.ir' [1/1]
Error in line 19
'protocol:NEC'
         ↑
         [error]: space missing after ':'
[suggested] 'protocol: NEC'
---
Error in line 19
'protocol:NEC'
 ↑↑↑↑↑↑↑↑
 [error]: key 'type' expected
[suggested] 'type: ...'
---
[lint] found 2 warnings/errors in file.
*********************************CI/CDAn example GitHub Actions Workflow can be foundhere.The linter should work in a CI/CD pipeline.
Just put the example in your repo under the.github/workflowsdirectory andenableactions in the repo if necessary.If a pull request is created in which.irfiles are modified, the linter checks the modified (or newly created).irfiles.If errors are found, they are appended as a comment to the PR and the PR is set toRequested Changes.
Package: fff-profile-picture
FFF Profile Picture LibWhat is it?A library to generate profile picturesExamplefromfff_profile_pictureimportGeneratorfromPILimportImagegenerator=Generator(Image.open("original.JPG"),Image.open("overlay.png"))result=generator.process()result.save("generated.png")Docshttps://fff-bots.gitlab.io/fff-profile-picture-python/