Saravanan666/pypi-org huggingface dataset:
Package: ezflow
EzFlowA modular PyTorch library for optical flow estimation using neural networksDocumentation|TutorialsInstallationFrom source (recommended)gitclonehttps://github.com/neu-vig/ezflowcdezflow/
pythonsetup.pyinstallFrom PyPIpipinstallezflowModels supportedDICLDCVNet(1 checkpoint)FlowNetSFlowNetC(3 checkpoints)PWCNet(3 checkpoints)RAFT(3 checkpoints)VCNDatasets supportedAutoFlowFlyingChairsHD1KKITTIKubricMPI SintelSceneFlow MonkaaSceneFlow DrivingSceneFlow FlyingThings3DSceneFlow FlyingThings3D subsetResults and Pre-trained checkpointsDCVNet |model config|paperTraining DatasetTraining ConfigckptsSintel Clean (training)Sintel Final(training)KITTI2015 AEPEKITTI2015 F1-allFlyingThings3DSubset + Monkaa + Drivingconfigdownload1.903.354.7523.41%FlowNetC |model config|arXivTraining DatasetTraining ConfigckptsSintel Clean (training)Sintel Final(training)KITTI2015 AEPEKITTI2015 F1-allChairsconfigdownload3.414.9414.8454.23%Chairs -> Thingsconfigdownload2.934.4812.4745.89%Kubricconfigdownload3.573.9612.1136.35%PWC-Net |model config|arXivTraining DatasetTraining ConfigckptsSintel Clean (training)Sintel Final(training)KITTI2015 AEPEKITTI2015 F1-allChairsconfigdownload3.54.7317.8151.76%Chairs -> Thingsconfigdownload2.063.4311.0432.68%Kubricconfigdownload3.083.319.8321.94%RAFT |model config|arXivTraining DatasetTraining ConfigckptsSintel Clean (training)Sintel Final(training)KITTI2015 AEPEKITTI2015 F1-allChairsconfigdownload2.234.5610.4538.93%Chairs -> Thingsconfigdownload1.662.755.0116.87%Kubricconfigdownload2.122.546.0117.35%Additional InformationKITTI dataset has been evaluated with a center crop of size1224 x 370.FlowNetC and PWC-Net usespaddingof size64for evaluating the KITTI2015 dataset.RAFT and DCVNet usespaddingof size8for evaluating the Sintel and KITTI2015 datasets.ReferencesRAFTDICL-FlowPWC-NetFlowNetPytorchVCNdetectron2CorrelationLayerptflowPixelsicon byIcons8
Package: ezform
ezformsimple extensions to Django formsUsagefromezform.fieldsimportDateRangeFieldclassMyForm(Form):range=DateRangeField()Advanced Usagedeclare a concrete data model:# myapp.modelsfromezform.modelsimportDateclassMySkipDate(Date):classMeta:abstract=Falseand update DB schema:exportDJANGO_SETTINGS_MODULE=mywebapp.settings
django-adminmakemigrations
django-adminmigrateadd required configuration to project settings:# mywebapp.settingsEZFORM_SETTING={'SKIP_LIST':'myapp.MySkipDate'}get day counts:importdatetimefromezform.utilsimportDayCountday_count=DayCount(datetime.date(2019,12,15),datetime.date(2020,1,6)).do()BylawsCopyright 2016-2023 Xingeng ChenLicense: Apache License 2.0
Package: ezFraction
ezFractionezFractionis a custom Python module for working with fractions.InstallationFrom PyPI:pip install ezFractionFrom source:git clone https://github.com/GooDeeJaY/ezFraction.git
cd ezFraction
python -m pip install .UsageImporting and initialization:fromezFractionimportFraction# passing stringFraction("3.14")# 157/50# passing floatFraction(1.24)# 31/25# passing intFraction(567)# 567/1# passing fractionFraction(28,3)# 28/3Properties:frac=Fraction(4.6)# Propertiesprint(frac)# 23/5print(frac.decimal)# 4.6print(frac.numerator)# 23print(frac.denominator)# 5print(frac.tuple)# (23, 5)By default fractions will be rounded to 5 decimal places, if you want more or less precision you can set different rounding or even switch off the rounding:print(Fraction(3.14))# 333333/100000print(Fraction(3.14,rounding=None))# 4166666666666667/1250000000000000When initializingFraction, we can setreducetoFalsein order to get unreduced fraction:print(Fraction(18.5))# 37/2print(Fraction(18.5,reduce=False))# 185/10Also, there are.reduce()and.enlarge()methods that perform actions that their name tells. Both methods havenew_objparameter which is used to create newFractioninstances rather than applying methods to themselves. Apart from.reduce(),.enlarge()accepts one additional argumentmultiplierthat is used to set the different multiplier for enlargement rather than 2 (default).frac=Fraction(20.5)print(frac)# 41/2print(frac.enlarge())# 82/4print(frac.enlarge(multiplier=3))# 246/12frac2=frac.reduce(new_obj=True)print(frac2,frac)# 41/2 246/12You can use.with_denominator()method in order to set custom denominator:frac=Fraction(0.32)# 8/25custom=frac.with_denominator(35,to_str=True)# 11.2/35Since this creates an invalid fraction, conversion will not be saved in Fraction instances but rather will be returned as a tuple (default) or string. Also, there is a.with_numerator()method that does the same thing but with a numerator.These methods can be useful when comparing fractions with others. For example, we have fractions 8/25 and 9/35, telling which one is greater by glance is not so easy. So here comes the aid of.with_denominator()method by which we convert 8/25 to 11.2/35.
Now it is easy to tell that 11.2/35 is greater than 9/35Last but not least, you can perform arithmetic operations with Fraction objects:frac1=Fraction(0.48)# 12/25frac2=Fraction(1.52)# 38/25print(frac1+frac2)# 2/1print(frac1-frac2)# -26/25print(frac1*frac2)# 456/625print(frac1/frac2)# 6/19
Package: ezFutures
ezFutures is a Python parallel computation tool that provides the user API similar to that of concurrent futures, with various parallelism backends.Installpip install ezFuturesGetting startedFirst, we need to import the class:fromezFuturesimportezFuturesIn order to start working with ezFutures, you must instantiate the class object. The most important parameter to set is then_procsparameter which defines the number of processes to run in parallel.ez=ezFutures(n_procs=19)From there, you cansubmitjobs in a sequential manner, just as you do with concurrent futures. However, because ezFutures default parallelism backend is not concurrent futures, merely submitting a task will not start the job. You have the option of using concurrent futures process pool as the parallelism backend (we will update documentation in the future to describe this)defsome_task(elem):return(elem)foriinrange(10):ez.submit(some_task,i)You can start the jobs by invokingresultsmethod, just as you would with the concurrent futures API.ez.results()# Progress: |██████████████████████████████████████████████████| 100.0%# [1, 2, 7, 0, 8, 3, 5, 4, 9, 6]The 10 tasks submitted are done in parallel asynchronously, which is why the returned results order is jumbled.In case there are errors, you can retrieve the stacktrace by invokingerrorsmethod.ez.errors()The default parallelism backend will try the tasks 3 times (configurable usingn_retriesparameter when initializing ezFutures) before marking the task as a “failed” task.
Package: ez-gecos
ez-gecos (v0.2.1)Tiny package to parse the GECOS field.v0.2.1InstallationPyPiGithubFrom sourceUsageLinksLicenseVersionez-gecos is only tested on Python 3.7InstallationSimply install using pip (or pipenv).PyPipip install ez-gecosGithubpip install git+https://github.com/thohell/ez-gecos.gitFrom sourcegit clone https://github.com/thohell/ez-gecos.git
pip install ./ez-gecosUsagefromgecosimportGECOS# If username is not supplied, GECOS tries to parse the GECOS# field of the username found in environment variable 'USER'gecos=GECOS(username='someuser')# orgecos=GECOS()# Full name from GECOS field or None.print(gecos.full_name)# Room from GECOS field or None.print(gecos.room)# Work phone from GECOS field or None.print(gecos.work_phone)# Home phone from GECOS field or Noneprint(gecos.home_phone)# Other from GECOS field or None.# If there are more than one other, they are returned# as a comma separated list.print(gecos.other)# Full GECOS field or Noneprint(gecos.full)# orprint(gecos)# Returns email address from GECOS field or None.# The email address is parsed from 'other', and# returns first entry that looks like an email address.print(gecos.email_address)Linksez-gecos onGithubez-gecos onPyPiLicenseez-gecos:GPLv3
Package: ezgiphy
ezgiphy 0.0.4A wrapper for the Giphy public API.A package wrapper for the Giphy public API that allows you to work with all Giphy API endpoints.Installing using pippip install ezgiphyExamples (Giphy public api endpoints)fromezgiphyimportGiphyPublicAPIgiphy=GiphyPublicAPI('<giphy-api-key>')Phrase searchSearch all Giphy GIFs for a word or phrase. Supported parameters:q : Search query term or phrase (required).limit :  The maximum number of records to return.offset: An optional results offset.rating: Filters results by rating (g/pg/pg-13/r)lang: specify default country for regional content.giphy.search(q='something',limit=25,rating='g')Translate searchExperimental search endpoint for gif dialects. Supported parameters:s : Search query term or phrase (required).giphy.translate(s='something')Trending gifsGet all trending gifs. Supported parameters:limit: The maximum number of records to return.rating: Filters results by rating (g/pg/pg-13/r),giphy.trending(limit=25,rating='g')Random gifsRandom gif(s) filtered by tag. Supported parameters:tag: The maximum number of records to return.rating: Filters results by rating (g/pg/pg-13/r).giphy.random(tag='something',rating='g')Giphy Id searchSearch Giphy gifs for a single Id. Supported parameters:id: Filter result by specific gif id (required).giphy.get_by_id(id='some id')Search by idsSearch all Giphy gifs for  an list of Id's. Supported parameters:ids: List of specific ids (required).giphy.get_by_ids(ids=['id one','id two','id three'])Examples (Giphy sticker api endpoints)fromezgiphyimportGiphyStickerAPIsticker=GiphyStickerAPI('<giphy-api-key>')Phrase searchSearch all Giphy Stickers for a word or phrase. Supported parameters:q : Search query term or phrase (required).limit :  The maximum number of records to return.offset: An optional results offset.rating: Filters results by rating (g/pg/pg-13/r)lang: specify default country for regional content.sticker.search(q='something',limit=25,rating='g')Translate searchExperimental search endpoint for sticker dialects. Supported parameters:s : Search query term or phrase (required).sticker.translate(s='something')Trending gifsGet all trending stickers. Supported parameters:limit: The maximum number of records to return.rating: Filters results by rating (g/pg/pg-13/r),sticker.trending(limit=25,rating='g')Random gifsRandom sticker(s) filtered by tag. Supported parameters:tag: The maximum number of records to return.rating: Filters results by rating (g/pg/pg-13/r).sticker.random(tag='something',rating='g')Giphy Id searchSearch Giphy stickers for a single Id. Supported parameters:id: Filter result by specific gif id (required).sticker.get_by_id(id='some id')Search by idsSearch all Giphy sticker for  an list of Id's. Supported parameters:ids: List of specific ids (required).sticker.get_by_ids(ids=['id one','id two','id three'])
Package: ezgpx
🗺️ ezGPX🔎 DescriptionEasy to use Python GPX library.PyPi:https://pypi.org/project/ezgpx/Documentation:https://ezgpx.readthedocs.io/en/latest/Source code:https://github.com/FABallemand/ezGPXBug reports:https://github.com/FABallemand/ezGPX/issues🛠️ Installationpipinstallezgpx🏁 Get startedimportezgpx# Parse GPX filegpx=ezgpx.GPX("file.gpx")# Simplify (using Ramer-Dougle-Peucker algorithm)gpx.simplify()# Plot with Matplotlibgpx.matplotlib_plot(color="elevation",start_stop_colors=("green","red"),way_points_color="blue",title=gpx.name(),duration=(0,0),distance=(0.5,0),ascent=None,pace=(1,0),speed=None,file_path="img_1")# Remove metadatagpx.remove_metadata()# Write new simplified GPX filegpx.to_gpx("new_file.gpx")👤 AuthorFabien ALLEMAND
Package: ez-grid
ez_grid provides the class Grid that allows for the construction and manipulation of 2D gridded structures.No need to install the whole of Pandas for this simple task!
Home-page:https://github.com/0Hughman0/ez_gridAuthor: 0Hughman
Author-email:rammers2@hotmail.co.ukLicense: MIT
Download-URL:https://github.com/0Hughman0/ez_grid/tarball/0.1.3Description: UNKNOWN
Keywords: grid,config,lightweight,no dependencies,configuration,csv,config
Platform: UNKNOWN
Package: ezhashlib
Convenience wrapper around the hashlib library.Requirements:hashlibUsage:importezhashlibasehlHash functions availableehl.sha3_224()ehl.sha224()ehl.shake_256()ehl.sha512()ehl.sha384()ehl.sha3_384()ehl.sha1()ehl.sha3_512()ehl.sha256()ehl.blake2b()ehl.blake2s()ehl.md5()ehl.sha3_256()
Package: ezhook
Inspired by quick.hook, this makes sending webhooks in discord .py much, much easier!
Most of the functions below are wrapped in a:@bot.commandasyncdefcommand(ctx):IMPORTANT NOTEfor editors without pip, such asrepl.it, to install the package, instead ofpip install ezhookyou would put the following at the top of your script:importosos.system('pip install ezhook')importezhookSupport ServerExamples:Without Embed:importezhookawaitezhook.send_hook(bot=bot,channel=ctx.channel,message="This is an example",username="Space Boii",avatarURL="https://i.imgur.com/EpTz5rOb.jpg",)With Embed:importezhookembed=discord.Embed(title="example embed",color=3093151)embed.add_field(name='hi',value="hello")awaitezhook.send_hook(bot=bot,channel=ctx.channel,message="This is an example",embed=embed,username="Space Boii",avatarURL="https://i.imgur.com/EpTz5rOb.jpg",)
Package: ezi
eziis a Python interface to the Ezidebit payment gateway.ExampleTo add a new direct debit by bank account or credit card:>>>fromeziimport(...add_bank_debit,add_card_debit,add_payment,clear_schedule,...edit_customer_bank_account,edit_customer_credit_card,...get_settled_payments)>>>add_bank_debit(...608725,'Example','Person','email@example.com','invoice-99',...'200','2015-03-01','Mr Person','111111','123456',...'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',...'YOUR DIGITAL KEY')>>>add_card_debit(...608725,'Example','Person','email@example.com','invoice-99',...'200','2015-03-01','Mr Example','4444333322221111','01/16',...'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',...'YOUR DIGITAL KEY')>>>clear_schedule(...608725,...'https://api.demo.ezidebit.com.au/v3-3/nonpci?singleWsdl',...'YOUR DIGITAL KEY')>>>add_payment(...608725,'invoice-99','200','2015-03-01',...'https://api.demo.ezidebit.com.au/v3-3/nonpci?singleWsdl',...'YOUR DIGITAL KEY')>>>edit_customer_bank_account(...608725,'Mr Example','111111','123456',...'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',...'YOUR DIGITAL KEY')>>>edit_customer_credit_card(...608725,'Mr Example','4444333322221111','01/16',...'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',...'YOUR DIGITAL KEY')>>>get_settled_payments(...'2015-03-01','2015-03-02',...'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',...'YOUR DIGITAL KEY').PaymentTestingTo run the tests:$toxRelease History1.0.0 (2021-09-28)Require Python >= 3.6.Switch to setup.cfg.0.4.0 (2017-08-22)Improvementsget_settled_paymentsnow returnsDecimalamounts.0.3.3 (2016-10-17)Bug fixesFixedAttributeError: 'module' object has no attribute 'client'.0.3.2 (2016-03-21)ImprovementsChangeget_settled_paymentsto return a list of Payment objects.0.3.1 (2016-03-21)Bug fixesAddget_settled_paymentstoezi/__init__.py.0.3 (2016-03-16)ImprovementsAdd aget_settled_paymentsfunction.0.2.7 (2015-09-14)ImprovementsStrip non-digit characters from credit card number.0.2.6 (2015-08-13)ImprovementsHandlesuds.WebFaultand translate to anEzidebitError.0.2.5 (2015-07-31)ImprovementsAddHISTORY.rst.0.2.4 (2015-07-31)ImprovementsAdd syntax highlighting toREADME.rst.
Package: ezi18n
Github|PyPISetting upStart by downloading the package via pip.python3 -m pip install ezi18nAfter that, you can just import it into your file.Examplesimportezi18nimportrandom_=ezi18n.Translator()# if you don't provide anything in the brackets, it will look for the file's name's language JSON file. If the main file is  main.py, it will look for main_lang.json - unless you provide a base filename (in this case: main) and/or a suffix (by default: _lang)dice=random.randint(1,6)language=input("What's your native language? / Was ist Deine Muttersprache? (en/de) >>> ")print(_("dice_result",language,dice=dice)){"en":{"dice_result":"Your dice rolled {dice}!"},"de":{"dice_result":"Dein Würfel hat eine {dice} gewürfelt!"}}Working with pluralsimportezi18nimportlocale_=ezi18n.Translator("main","_plurals")# this will look for main_plurals.json as the language JSON fileapples=int(input("How many apples do you have? >>> "))language=locale.getlocale()[0][:2]# this will return the default OS language, such as en, hu, de, fr, es etc.print(_.one("apples",apples,language,apples=apples)){"en":{"apples":["You only have one apple! What a loser...","You have {apples} apples!"]},"hu":{"apples":["{apples} almád van!"]}}This example does a great job at presenting how the.one()function works. Here's the explanation for the code:The code will look for the default OS language, and will tell you how many apples you have with plurals in mind. I always get angry when I see "you have 1 apples"-ish text on a website, and it's an easy fix, but for some reason, many developers don't pay attention to it.Hungarian doesn't make a difference between plurals, so the list for "hu"/"apples" only has 1 item. This won't be a problem though - the library isn't hardcoded to only look for the first and second elements in the returned list, it will look for thefirstand thelast. Which means that if a list only has 1 item, it will only return that item.
Package: ezil
Ezil Pool API WrapperSimple API wrapper for Ezil.me mining pool. All methods returns dict or NoneInstallationpip install ezilUsageInitializationimport Ezil from ezil

ezil = Ezil()Statsezil.pool_stats(WALLET_ADDRESS)Historyezil.pool_history(WALLET_ADDRESS)Balanceezil.pool_balance(WALLET_ADDRESS)Forecastezil.pool_forecast(WALLET_ADDRESS)
Package: ezimage
ezimageWhat is ezimage?Load and display images and access its content data with one-liners. A wrapper forPILandIPython.display, ideal for machine learning and image processing. Easily load a PNG/JPEG image (or a list of them) from a local machine or the web and use its data in any desired format (e.g. NumPy/PyTorch/TensorFlow/etc). Display or save data arrays from any format or ordering (CHW/WCH). All with one-liners.InstallationpipinstallezimageExample Usagefromezimageimportezimageimg=ezimage(url='https://tinyurl.com/yyxvexs6')img.CHWWatch this tutorial onYouTubefor a walk through.DescriptionEnables the user to easily load an image from a path, a url, or by directly providing a data array. If a list is provided, a list of ezimage instances will be retunred.
The properties enable the user to access the image data in R, G, B, A, GS (grayscale), HWC, and CHW formats.
In IPython environments such as in Jupyter, thedisplaymethod allows the user to view images. Unlike PIL, this method allows for iterative image display.Regardless of the ordering, format, or type of data, if directly feeding data arrays, all values must be in a valid PNG range (between 0 and 255).Versatile Data Type and Data FormatUser is free to choose the format of the data arrays specified withformat_func.format_funcis a function that converts a PIL image to user's desired format.
The output must cast to a NumPy array (i.e. no error when runningnp.array(format_func(PIL_img))). See examples below.Note that the internal computations are done using PIL functions or NumPy arrays andformat_funcis only designated for the user interface.NumPy uint8 Example:format_func=lambdaPIL_Image:np.array(PIL_Image,dtype=np.uint8)NumPy float16 Example:format_func=lambdaPIL_Image:np.array(PIL_Image,dtype=np.float16)PyTorch float32 Example:importtorchformat_func=lambdaPIL_Image:torch.tensor(np.array(PIL_Image),dtype=torch.float32)Example usage for a single image from the web:img=ezimage(url="https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Omar_Khayyam2.JPG/220px-Omar_Khayyam2.JPG")img.display()Example usage for reading all PNG files in a directory:fromezimageimportezimagefrompathlibimportPathpath_parent=Path("path/to/image/folder/")pathList=list(path_parent.glob("*.png"))imgList=[ezimage(p)forpinpathList]forimginimgList:img.display(print_name=True)
Package: ez-img-diff
ez_img_diffA tool for doing quick percieved image difference analysisWhat does ez_img_diff do?ez_img_diff is a CLI and api for doing a simple form of percieved image difference analysis with SSIM. This allows for tons of features, but the main one is being able to compare some sort of "baseline" image of an application to a "current" itteration in visual regression testing.Down the road I will write a selenium integration to tie this whole process together!Why should I use ez_img_diff?There are a ton of great and more robust tools out there for this analysis, or for visual regression testing, but I found each of them had their own problems, here's a list:PackageIssueneedleRequires a Nose test runner, and had out of date dependenciespytest-needleWorks well, but cannot usewebdiver_managerwith itdpxdtDidn't test, but was 7 years old and mostly focused on CI/CD usageVisual Regression TrackerWorks great, but for some of my use cases I need an API not a full applicationhermioneCould not use javascript/nodeJS for my use casespecterCould not use javascript/nodeJS for my use caseCypress-image-screenshotCould not use javascript/nodeJS for my use caseQuick-startInstallationFrom sourceClone this repo:https://github.com/Descent098/ez-img-diffRunpip install .orsudo pip3 install .in the root directoryFrom PyPiRunpip install ez_img_diffExamplesAPI ExamplesCompare 2 images without saving difference filesfromez_img_diff.apiimportcompare_imagesimg1="baseline.png"img2="current.png"compare_images(im1,img2)# 14.03Compare 2 images with saving difference and threshold filesfromez_img_diff.apiimportcompare_imagesimg1="baseline.png"img2="current.png"compare_images(im1,img2,"difference.png","threshold.png")# 14.03CLI Usageezimgdiff

Atoolfordoingquickperceptualimagedifferenceanalysis

Usage:img_diff[-h][-v]img_diff(<img1><img2>)[-oOUTPUT_FOLDER]Options:-h,--helpshowthishelpmessageandexit-v,--versionshowprogram'sversionnumberandexit-oOUTPUT_FOLDER,--outputOUTPUT_FOLDERthefoldertooutputdifferencefilestoso for example to get the diff of two images use:$>img_diffbaseline.pngcurrent.png14.03You can then store the diff and threshold of the two images with:$>img_diffbaseline.pngcurrent.png-oresults14.03

$>cdresults&&ls
diff.png
thresh.pngNotesSome things to keep in mind:Output folder will have 2 files in itdiff.pngandthresh.pngdiff.pngis the regular difference png, which shows where things differthresh.pngis the threshold png, which is much higher contrast and shows you where the biggest changes happened more clearly