Saravanan666/pypi-org huggingface dataset:
Package: ease-image-processing
ease-image-processingDescription.The package ease-image-processing is used to wrapper some functions of scikit image for ease of use, so the package features are:Structure:Histogram matchingStructural similarityResize imageDrawing the imageUtils:Read imageSave imagePlot imageBut the main goal of this project is to learn the main structures of a python package.InstallationUse the package managerpipto install ease-image-processingpipinstallease-image-processingUsage#Import libs and images:fromeaseimage.structureimportcombination,transformationfromeaseimage.utilsimportio,graphicsbarca=io.read_image('image/barcelona.png')real=io.read_image('image/real.png')inter=io.read_image('image/inter.jpg')# Combining Barcelona and Real Madrid symbols:real_barca=combination.transfer_histogram(real,barca)# Showing the combined symbol:graphics.plot_image(real_barca)graphics.plot_result(real,barca,real_barca)graphics.plot_histogram(real_barca)# Drawing Real symbol:draw_inter=transformation.image_to_draw(inter)graphics.plot_image(draw_inter)Add contentSetuptools documentationAutomated testsUse of ToxTox is for use automated tests in differents versions of Python.AuthorVitor PereiraLicenseMIT
Package: easelenium
easeleniumFramework based on Selenium WebDriver. Contains wrapper around Selenium WebDriver functionaly and UI to facilitate in development.Features:Supports Firefox, Chrome, IE, Opera and PhantomJS.SupportsPageObject patternSupports Continuous IntegrationSuits for novice users.Supports only Python 3.8+(for older python versions check0.3tag)Framework can be used as standalone framework with UI and/or as a library.
Supportive classes:browser.pybase_page_object.pybase_test.pyGUIeaselenium_ui:GeneratorEditorTest runnerDependenciesPythonwxPythonSelenium WebDriverpytestpytest-htmlpytest-dotenvloguruSimple usageMost ofBrowserfunctions support bothWebElementobject and tuple/list which represents html element. This tuple/list object should contain selector/locator as first element and value as a second element. Example:input = (By.NAME, 'q')Here is simple example:>>>fromeaselenium.browserimportBrowser>>>browser=Browser('gc')# create browser>>>browser.get('https://www.duckduckgo.com')# go to page>>>browser.type(by_name='q',text='selenium')# type 'selenium' into search field>>>browser.click(by_id='search_button_homepage')# click search button>>>browser.get_text(by_css='h2.result__title')# get first result title'SeleniumHQ Browser Automation'>>>browser.quit()# close browserCheckbrowser_test.pyfor more examples.Continuous IntegrationDone via command line scripteaselenium_cliInstallationUsingpippipinstalleaseleniumManualDownload latest code from GitHubExtract itOpen terminal or command line consoleNavigate to extracted folderInstall all required librariespython-mpipinstall-rrequirements.txtGo toeaseleniumfolder and install with command:pythonsetup.pyinstallLicenseMIT Licenseeaselenium_license.txtTutorialIntroductionSetupTest creationContinuous IntegrationMore informationPresentationThesis which contains description of the framework
Package: easelog
easelogDescriptionA python package for easy log formatting and productivity boost.Installpip install easelogCurrently Available functionscritical(msg, *args, extras)
c(msg, *args, extras) # short name for critical

fatal(msg, *args, extras)
f(msg, *args, extras) # short name for fatal

error(msg, *args, extras)
e(msg, *args, extras) # short name for error

warning(msg, *args, extras)
w(msg, *args, extras) # short name for warning

info(msg, *args, extras)
i(msg, *args, extras) # short name for info

debug(msg, *args, extras)
d(msg, *args, extras) # short name for debugUsage examplefromeaselog.easelogimport*setup(name="MY APP",output_fmt=["asctime","levelname","message"],sep=" | ",datefmt="%d/%m/%Y",level=logging.CRITICAL)critical("Critical message.")fatal("Fatal message.")error("Error message.")warning("Warning message.")info("Info message.")debug("Debug message.")c("Critical message.")f("Fatal message.")e("Error message.")w("Warning message.")i("Info message.")d("Debug message.")2020-06-2000:36:51|WARNING|Warningmessage.2020-06-2000:36:51|INFO|Infomessage.2020-06-2000:36:51|CRITICAL|Criticalmessage.2020-06-2000:36:51|CRITICAL|Fatalmessage.2020-06-2000:36:51|ERROR|Errormessage.2020-06-2000:36:51|WARNING|Warningmessage.2020-06-2000:36:51|INFO|Infomessage.PyPieaselogAuthor2020 brworkit.LicenseMIT License.
Package: ease-lonlat
ease_lonlatSmall package to convert given geographic coordinates (longitude, latitude) to EASE(2)-grid coordinates (col, row) and vice versa.This code is inspired by the 'easeconv-0.3' software, the EASE-Grid map transformation utilities Developed and distributed by the National Snow & Ice Data Center (NSIDC), University of Colorado at Boulder. But instead of defining projections and grids "from a scratch", the pyproj library and definition of grids fromNSIDChave been used.MOTIVATIONGet SMOS (CATDS, 25km, global projection) row and col coordinates corresponding to the pixel of EASE2 grid with given lon-lat coordinates.SUPPORTED GRIDS'N' stands for North Polar (Lambert's equal-area, azimuthal), 'S' for South Polar (Lambert's equal-area, azimuthal) and 'G' for Global (cylindrical, equal-area) projection.
3125km means pixel size of 3.125 km, 625 means 6.25 km and 125 means 12.5 km.EASE2_G1kmEASE2_G3km, EASE2_N3km, EASE2_S3kmEASE2_G3125km, EASE2_N3125km, EASE2_S3125kmEASE2_G625km, EASE2_N625km, EASE2_S625kmEASE2_G9km, EASE2_N9km, EASE2_S9kmEASE2_G125km, EASE2_N125km, EASE2_S125kmEASE_G125km, EASE_N125km, EASE_S125kmEASE2_G25km, EASE2_N25km, EASE2_S25kmEASE_G25km, EASE_N25km, EASE_S25kmEASE2_G36km, EASE2_N36km, EASE2_S36kmTESTED GRIDSTested on SMAP data. EASE2-grids - 9km (N, S, G), 36km (N, G).NOT TESTED GRIDSIf you can test this code on some of the not tested grids, I would appreciate if you do it and let me know :) Especially EASE grids.EASE-grids - all.EASE2-grids - 1km, 3km, 3.125km, 6.25km and 25kmUSAGEfromease_lonlatimportEASE2GRID,SUPPORTED_GRIDS# define new grid by yourselfgrid=EASE2GRID(name='EASE2_G36km',epsg=6933,x_min=-17367530.45,y_max=7314540.83,res=36032.22,n_cols=964,n_rows=406)# or using parameters taken from NSIDC and kept in SUPPORTED_GRIDSgrid=EASE2GRID(name='EASE2_G36km',**SUPPORTED_GRIDS['EASE2_G36km'])# convert longitude and latitude to row and col indicespoint_lon=17.4point_lat=49.4# row should be 48, col should be 528col,row=grid.lonlat2rc(lon=point_lon,lat=point_lat)# get lon, lat of the center of the pixelpixel_center_lon,pixel_center_lat=grid.rc2lonlat(col=col,row=row)
Package: ease-mailer
Ease MailerEasy Mailer is a simple python package that allows you to send emails with ease.UsageImport the classfrom ease_mailer import mailerFor Help Typemailer.Mail.help() # Shows the help messageCreate an instance of the classmail_class = mailer.Mail("source@email.com", "youremailpassword") # Creates an instance of the classLogin to your emailmail_class.login() # Logs the user in returns True if successful, False otherwiseSend an emailmail_class.send_mail("dest@mail.com", "Subject", "Body") # Sends the email, throws an error if user is not logged in returns True if successful, False otherwiseShow the status of email wether it was sent or notmail_class.show_status() # Shows the status of the email whether it was sent or not returns "Email sent successfully" if successful, "Email failed to send" otherwise
Package: easepy
easepyA python package for working with EASE grids in geodetic coordinates.
The documentation is available athttps://easepy.readthedocs.io/en/latest/.
The code is available athttps://github.com/karl-nordstrom/easepy.Installationpip install easepyExample usageimport easepy
ease = easepy.EaseGrid(resolution_m=25000, projection="Global")
# Fetch grid cell centroids
grid_lats, grid_lons = ease.geodetic_grid
# Find corresponding cell indices for particular location(s)
ease_indices, _ = ease.geodetic2ease(lat=46.7, lon=132.1)Authors:Karl Nordstrom (karl.am.nordstrom@gmail.com)Giorgio Savastano (giorgiosavastano@gmail.com)Please use github issues to make bug reports and request new functionality. Contributions are always welcome.
Package: ease-restapi
Introduce:本实例使用了request<http://docs.python-requests.org/en/latest/>类库来调用环信的REST API,
在运行本示例代码之前, 请先参考这里<http://docs.python-requests.org/en/latest/user/install/>安装.Introductions本地开发说明, 本地代码在基于环信官方REST API的对接, 分几部分描述如下.ease_restapi:service包为对官方REST API的对接, 按功能模块依次组织代码, 文件名以ease_为前缀标识.service包__init__.py提供REST API实现的对外调用.simplify包__init__.py提供环信与本地业务的对外调用, usage.py提供本地业务的调用注意点.config.py为包配置模板文件.demo包为本地账户与环信账户的对接的另一种形式.project_demo:实用django生成项目.config.py为该项目ease-restapi配置文件.common.py为本地公共类库.demo.py为service包的使用实例, 同时也是测试.Two Integration Mode:本地代码与环信账户的链接, 有两种形式:
- 本地表的形式, 以demo中models.py, admin.py, chkinfos.py为个单元, 实现本地账户与环信账户的对接.
- 官方建议形式, 以simplify中bridge.py为单元, 实现本地账户与环信账户的对接.
- 环信ID规则: <http://www.easemob.com/docs/rest/userapi/>Attention Note:基于版本：2015-01-21后续官方REST API的一旦变动, service包的代码相应要微调.project_demo中urls.py, views.py, 请根据需要补全, 目前只保留用于web形式测试功能.Changelog1.3 - 10-Feb-2015fixed distributing file for careless1.2 - 25-Jan-2015First release
Package: easework
Pakage DescriptionPakage Name - easeworkA python pakage that makes your work easy.
Currently have CALCULATION functions.RequirementsPython 3.8.6 or moreInstallationpipinstalleaseworkUsage/Examples# Function to add two numbersimporteaseworkexample=easework.add(9,7)print(example)Authors@Akul ChaudharyAppendixMore Functions would be added in the next updateSupportFor support or to report bugs  emaileasework25@gmail.comor join ourDiscord Server.FunctionsCalculationImageWebsiteEasework
Package: easier-docker
easier-dockerRepository IntroductionThis is based ondocker-pywhich makes it easier to run your program in docker.
Configure your container image information more easily in python, allowing the container in docker to execute the configured program you want to execute.Installpipinstalleasier-dockerUsagePlease checkwiki.RelatedRepositorydocker-py— A Python library for the Docker Engine API.MaterialsDocker SDK for PythonRepository Usedopsariichthys-bidens— About
Building a Basic Information API for Chinese National Universities in the Handheld College Entrance Examination Based on Fastapi.Maintainers@toueroContributingOpen an issueor submit PRs.Standard Python follows thePython PEP-8Code of Conduct.ContributorsThis project exists thanks to all the people who contribute.LicenseApache License 2.0
Package: easierfile
EasierfileAn easier-to-use Python package that object-oriented encapsulates Python traditional built-in file operations. It's also easier thaneasygui. o((>ω< ))o💿ObtainmentThe source code is currently hosted on Github at:https://github.com/leoweyr/Python-EasierfileBinary installers for the latest released version are available at thePython Package Index (PyPI).# PyPIpipinstalleasierfile🔗DependenciesDynoptimdict - A dynamic data dict class that inherits and overrides the built-in dict class for special purposes. That provides real-time access to dynamic data, while still allowing the option to get only the specified data without calculating all. It adheres to the concept of program optimization which avoids loading if not used, saving both memory and timeChardet - The universal character encoding detector⚖️LicenseMIT📗DocumentationThe documentation is hosted on Github repository:https://github.com/leoweyr/Python-Easierfile/blob/main/doc
Package: easier_install
Easily create setup.py files for easy_install / setuptoolsI’m too lazy to author setup.py files for installation of simple python modules
and scripts, and setuptools/easy_install is very handy for installing scripts
“properly” on both win32 and unix. Hence this script for creating a functional
setup.py quickly. It’s perfectly usable for creating source and binary distributions
as well.Quick guide:Go to a directory with lots of python modules (no packages!).If the directory name is /home/foo/bar, ‘bar’ will be used as the name of
the distribution.If a python module has ‘def main’ in it, it’s considered executableRun easier_installReview the resulting ei_setup.py and run it, as instructed.
Package: easierlog
easierlog: the easy way to inspect variables in PythonOvervieweasierlog provides an easier, but much more powerful replacement forprint()function when debugging in Python.InstallationTo install the latest release, type:$pip install easierlogGetting StartedRoughly every software developer needs to check how variables behave in runtime. In Python, this can be done by usingprint()function, that prints out the value of the passed variable. Sometimes, instead, the variable value is not enough. This is specially true when there are many variables to be inspected, or even when the same variable needs to be inspected in many parts of the code.To inspect both variable name and value,print()is not so straightforward:print('some_variable =', some_variable)It became a little bit easier since Python 3.8:print(f'{some_variable=}')But not so easy when comparing to easierlog:log(some_variable)This can better understood in the script:1# script1.py23deffunction1():4a=45print(a)678deffunction2():9a=310b='Hello World'11print(a)12print(b)131415function1()16function2()17Running the script above, it will result:4
3
Hello WorldBasic usageBy using easierlog, the previous script would become:1# script2.py23fromeasierlogimportlog456deffunction1():7a=48log(a)91011deffunction2():12a=313b='Hello World'14log(a)15log(b)161718function1()19function2()20Running the script above, it will result:[script2.py (line 08) in function1] (int) a = 4
[script2.py (line 14) in function2] (int) a = 3
[script2.py (line 15) in function2] (str) b = 'Hello World'As shown above,log()provides information about where it was called:File nameLine numberFunction nameAnd about the variable passed as argument:Variable typeVariable nameVariable valueMultiple variablesIt is also possible to pass multiple variables at once:1# script3.py23fromeasierlogimportlog456deffunction():7x=2.38y=1.59z=0.110log(x,y,z)111213function()14It will result:[script3.py (line 10) in function] (float) x = 2.3
[script3.py (line 10) in function] (float) y = 1.5
[script3.py (line 10) in function] (float) z = 0.1All variablesCallinglog()without any arguments it will log all declared variables in the function:1# script4.py23fromeasierlogimportlog456deffunction():7x=2.38y=1.59z=0.110log()111213function()14It will result:[script4.py (line 10) in function] (float) x = 2.3
[script4.py (line 10) in function] (float) y = 1.5
[script4.py (line 10) in function] (float) z = 0.1ExpressionsNot only variables can be passed tolog()function. Expressions also work:1# script5.py23fromeasierlogimportlog456deffunction():7x=2.38y=1.59z=0.110log(x+y+z)1213function()14It will result:[script5.py (line 10) in function] (float) x + y + z = 3.9LicenseThis package is released underMIT License.
Package: easier-pygame
Easier PygameTable of ContentsAboutGetting StartedContributingAboutThis python library is a wrapper for the pygame library.It provides a simple interface for creating games in pygame without all the bloat code that needs to be written for pygame to work.Getting Startedto use this package go to your console and write one of these commands:pip install easier-pygame

pip3 install easier-pygameif it doesn't work try one of these commands:python -m pip install easier-pygame

python3 -m pip install easier-pygame
Package: easierscrape
easierscrapeA library for basic web scraping.Overvieweasierscrape is a library which helps users do some basic web scraping operations. Oftentimes when doing webscraping code is written and re-written with slightly changed parameters to fit the website to be scraped from. This library is an easy to use tool that can scrape essentials from websites (tables, links, files, etc.). It also has the ability to generate hyperlink trees usinganytree.DetailsThis project is a pure python project using modern tooling. It uses aMakefileas a command registry, with the following commands:make: list available commandsmake develop: install and build this library and its dependencies usingpipmake build: build the library usingsetuptoolsmake lint: perform static analysis of this library withflake8andblackmake format: autoformat this library usingblackmake annotate: run type checking usingmypymake test: run automated tests withpytestmake coverage: run automated tests withpytestand collect coverage informationmake dist: package library for distributionBasic UsageInstall with pip:pip install easierscrapeImportScraperfromeasierscrapeand instantiate it with a url as seen below:fromeasierscrapeimportScraperscraper=Scraper("https://quotes.toscrape.com/login")From there, call class methods to scrape varying resources.Usage examples:>>> scraper.parse_text()
["Quotes to Scrape", "Quotes to Scrape", "Login", "Username", "Password", "Quotes by:", "GoodReads.com", "Made with", "❤", "by", "Scrapinghub",]

>>> scraper.print_tree(1)
https://toscrape.com
├── http://books.toscrape.com
├── http://quotes.toscrape.com
├── http://quotes.toscrape.com/scroll
├── http://quotes.toscrape.com/js
├── http://quotes.toscrape.com/js-delayed
├── http://quotes.toscrape.com/tableful
├── http://quotes.toscrape.com/login
├── http://quotes.toscrape.com/search.aspx
└── http://quotes.toscrape.com/randomCommand Line UsageWhen installed, you can invoke easierscrape from the command-line to generate a hyperlink tree, get a screenshot, download all image, txt, and pdf files, and scrape any tables for a given url and depth:usage: python -m easierscrape [-h] url depth download_path

positional arguments:
  url            the url to scrape
  depth          the depth of the scrape tree
  download_path  the location to download files to

optional arguments:
  -h, --help  show this help message and exitUsage example:>>> python -m  easierscrape https://toscrape.com/ 1 example_down_path
https://toscrape.com
├── http://books.toscrape.com
├── http://quotes.toscrape.com
├── http://quotes.toscrape.com/scroll
├── http://quotes.toscrape.com/js
├── http://quotes.toscrape.com/js-delayed
├── http://quotes.toscrape.com/tableful
├── http://quotes.toscrape.com/login
├── http://quotes.toscrape.com/search.aspx
└── http://quotes.toscrape.com/randomContributingSeeCONTRIBUTINGfor more information.LicenseThis software is licensed under the Apache 2.0 license. Please seeLICENSEfor more information.
Package: easiersnmp
easiersnmpeasiersnmpis a wrapper aroundeasysnmpto make it even easier to use.
It also includes an alternative implementation ofeasysnmptable.Python typesWhile I really likeeasysnmp, it returns instances ofSNMPVariableinstead of of the basic Python data types.
In addition the actual value (SNMPVariable.value) will always be a string, even if the underlying SNMP type is numeric.SNMP GET ineasysnmpimporteasysnmpsession=easysnmp.Session(hostname='localhost',community='public',version=2)result=session.get('ifIndex.1')# result is an instance of easysnmp.SNMPVariableprint(result.oid,result.oid_index,result.snmp_type,result.value)# ifIndex 1 INTEGER 1# The result.value is a string even though the snmp_type is INTEGERprint(type(result.value)# streasiersnmpchanges this behaviour by convertingSNMPVariable.valueinto the correct data type.SNMP GET ineasiersnmpimporteasiersnmpsession=easiersnmp.Session(hostname='localhost',community='public',version=2)result=session.get('ifIndex.1')# result is an instance of easiersnmp.SNMPVariableprint(result.oid,result.oid_index,result.snmp_type,result.value)# ifIndex 1 INTEGER 1# The result.value is an integer matching the snmp_typeprint(type(result.value)# intThe table below shows how values are converted.SNMPVariable.snmp_typePython typeINTEGER32intINTEGERintUNSIGNED32intGAUGEintIPADDRipaddress.IPv4Address/ipaddress.IPv6AddressOCTETSTR(read note below)TICKSdatetime.timedeltaOPAQUEOBJECTIDNETADDRipaddress.IPv4Address/ipaddress.IPv6AddressCOUNTER64intNULLNoneBITSintUINTEGERintTheOCTETSTRSNMP type is commonly used as a container for values that cannot be represented in any other
SNMP type. It is impossible to know the correct interpretation of anOCTETSTRwithout parsing the relevant
SNMP MIB.
Package: easiest-sort
Sorting Module in PythonThis Python module provides implementations of several sorting algorithms. The current version includes the following sorting algorithms:Bubble SortMerge SortQuick SortInsertion SortHeap SortShell SortPartial SortHow to install and import moduleTo install the module, you need to write in the terminal.pip install easiest_sortTo import the module, you need to write in your Python filefrom easiest_sort import *Bubble SortUse Case: Simplicity and ease of understanding. Suitable for small data sets or educational purposes. Inefficient for large data sets due to quadratic complexity.fromeasiest_sortimportbubble_sortmy_list=[]bubble_sort(my_list)Merge SortUse Case: Efficient sorting for large data sets. Relatively stable and well-suited for lists that do not fit entirely in memoryfromeasiest_sortimportmerge_sortmy_list=[]merge_sort(my_list)Quick SortUse Case: High efficiency on average and large data sets. Demonstrates good practical performance. Used in various domains, including programming languages and databases.fromeasiest_sortimportquick_sortmy_list=[]quick_sort(my_list)Insertion SortUse Case: Effective for small or partially ordered data. Convenient when adding new elements to an already sorted part of an array.fromeasiest_sortimportinsertion_sortmy_list=[]insertion_sort(my_list)Heap SortUse Case: Efficient for sorting large data sets. Utilizes the "heap" data structure. Possesses predictable worst-case performance.fromeasiest_sortimportheap_sortmy_list=[]heap_sort(my_list)Shell SortUse Case: Balances implementation simplicity with good performance. Often applied in scenarios where a trade-off between efficiency and implementation simplicity is desired.fromeasiest_sortimportshell_sortmy_list=[]shell_sort(my_list)Ascending and Descending orderIf you want to use descending order sorting, you should use the second argument 'order' with a value of False. Its works with every sort algorithmfromeasiest_sortimport*my_list=[]bubble_sort(my_array,order=False)Partial SortThis module provides a partial_sort function, allowing you to perform partial sorting on a list. With this function, you can sort only the top or bottom k elements of the list, leaving the rest of the elements in their original order.Usagefromeasiest_sortimportpartial_sortmy_array=[5,2,8,1,9,4,7,3,6]x1=partial_sort(my_array,3,top=True)x2=partial_sort(my_array,3,top=False)Also you can use Reverse Order for Partial Sortfromeasiest_sortimportpartial_sortmy_list=[5,2,8,1,9,4,7,3,6]x=partial_sort(my_array,3,top=True,reverse=True)
Package: easifem
easifemeasifem is a command line interface (CLI) for using EASIFEM library.Expandable And Scalable Infrastructure for Finite Element Methods, EASIFEM, is Modern Fortran framework for solving partial differential equations (PDEs) using finite element methods. EASIFEM eases the efforts to develop scientific programs in Fortran. It is meant for researchers, scientists, and engineers using Fortran to implement numerical methods for solving the initial-boundary-value problems (IBVPs)."Table of ContentsInstallationLicenseInstallationpip install easifemLicenseeasifemis distributed under the terms of theMITlicense.Getting startedeasifemprovides following subcommands:setenvinstallruncleansetenveasifemsetenv--install="PATH_INSTALL_DIR"--build="PATH_BUILD_DIR"--source="PATH_SOURCE_DIR"This will createeasifemvar.sh(for Bash and Zsh) andeasifemvar.fishfor (Fish shell). These files will be located at~/.config/easifem.installeasifeminstallextpkgs
easifeminstallbase
easifeminstallclasses
easifeminstallmaterials
easifeminstallkernels
easifeminstalleasifemrunTo-doFollowing command will be added in the future.updateuninstallbuild