Saravanan666/pypi-org huggingface dataset:
Package: easycheck-doiteasy
Nombre de la libreríadoit-monitoring-apiDescripción
La librería doit-monitoring-api es una API que se encarga de monitorear otros sistemas de tipo ETL. Esta librería ha sido desarrollada por DoIteasy.Instalación
Para instalar esta librería, puedes clonar el repositorio desde GitHub:Uso
La API está compuesta por varios endpoints que permiten la monitorización de sistemas ETL. A continuación se presentan los endpoints disponibles:/health: endpoint para verificar el estado de la API.
/jobs: endpoint para listar los trabajos monitoreados por la API.
/jobs/{job_id}: endpoint para obtener detalles sobre un trabajo específico.
/jobs/{job_id}/runs: endpoint para listar las ejecuciones de un trabajo específico.
/jobs/{job_id}/runs/{run_id}: endpoint para obtener detalles sobre una ejecución específica.
Contributing
Si deseas contribuir a esta librería, por favor, sigue estos pasos:Haz un fork del repositorio.
Crea una rama para tu contribución (git checkout -b feature/your-feature).
Haz tus cambios y haz commit de los mismos (git commit -am 'Add some feature').
Empuja tus cambios a la rama (git push origin feature/your-feature).
Abre un pull request.
Licencia
Esta librería se distribuye bajo la licencia MIT. Ver el archivo LICENSE para más detalles.
MIT License
Copyright (c) 2023 Doiteasy
Permission is here by 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: easy-choices
It’s a library deeply inspired by Choices fromdjango-model-utils.
However, sometimes we just need to use Choices rather than all the features provided bydjango-model-utils.RequirementsPython >= 3.5UsageTheeasy-choicespackage is hosted on ourPyPI repository.You can install the latest version ofeasy-choicesusing pip:$pipinstalleasy-choicesAnd use easy-choices as it’s demonstrated below:fromdjango.dbimportmodelsfromeasy_choicesimportChoicesstatus_choices=Choices(("sent","Sent"),("delivered","Delivered"),)classProduct(models.Model)price=models.DecimalField(max_digits=10,decimal_places=2)status=models.CharField(max_length=10,choices=status_choices.to_django_choices())@propertydefis_delivered(self):# You can use status_choices as a Enumreturnself.status==status_choices.delivered
Package: easy-choose
easy-chooseIt can easily help you choose!InstallationUse pip:pip install --upgrade easy-chooseUsageIt's particularly simple to use. The code is as follows:>>>import easy_choose as ec>>>ec.choose(2, "A", "B", "C")["A", "C"]Of course, you can also use lists:>>> ls = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]>>> ec.choose(5, *ls)[1, 4, 4, 7, 5]You can also keep them from duplicate elements:>>> ec.choose(5, only=True,  *ls)[1, 4, 7, 5]TestsYou can use ready-made test functions – just test and play!Here's how:>>> from easy_choose import tests as te>>> te.testnumbers(number=5, num=3)[1, 3, 3, 1, 2]Test tests(?)It sounds a bit hilarious, but it's true!>>> from easy_choose import test>>> test()Test all test functions in the test.py...All functions tested.Version: 1.1.3Author: RaskoraGithub:https://github.com/Raskora/easy-choose
Package: easy-chrome
Easy ChromeDescriptionThis package is used as an extension to selenium chrome WebDriver. It contains shortcuts to control driver more easily.FeaturesAuto download chromedriver by webdriver_manager with custom cache.Shortcuts to control driver and element.Examplesinit chrome driver.from easy_chrome import Driver
driver = Driver.set_chrome(detach_mode=True)wait an element located by XPATH to be visible in DOM.// bare usage
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, xpath))

// with easy-chrome
driver.wait_visible(xpath)get local storage.// bare usage
driver.execute_script("return window.sessionStorage.getItem(arguments[0]);", key)

// with easy-chrome
driver.get_local_storage(key)wait username input field to be visible in DOM, clear the content and write username to it.input_xpath = "//input[@id='username']

// bare usage
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, input_xpath)).clear()
sleep(0.2)
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, input_xpath)).sendkeys(username)

// with easy-chrome
driver.wait_visible(input_xpath).clear_and_type(user_name)Source CodeThe source code is currently hosted on GitHub at:https://github.com/wcuong/easy-chromeReleaseThe package is currently hosted on Pypi at:https://pypi.org/project/easy-chrome/ChangeLog2.0.1 2023-11-04Init project2.0.2 2023-11-06Change headless mode to --headless=newIgnore DownloadBubble Feature, which enforces an download popup in incognito mode.2.0.3 2023-11-08add custom windows chrome detect method because sometimes webdriver_manager fails to detect.
Package: easycim
EASY-CIM: Extracting Attributes in a Simple DictionarY of CIM dataEASY-CIM is a python library for extracting dataAttribution and Disclaimer:This software was created under a project sponsored by the U.S. Department of Energy, an agency of the United States Government.  Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.PACIFIC NORTHWEST NATIONAL LABORATORYoperated byBATTELLEfor theUNITED STATES DEPARTMENT OF ENERGYunder Contract DE-AC05-76RL01830
Package: easy-class
EASY ClassEASY Class is a toolkit for creating generic classes in an elegant way.Usagefromeasy_classimportEasyClass,StringVariable,IntegerVariableclassMyClass(EasyClass):attr1=IntegerVariable()attr2=StringVariable()The above code declares a class with two member variablesattr1andattr2, whereattr1can only be an integer value andattr2can only be a string. Hence, if you try to do the followingobj=MyClass()obj.attr1="Test"it will raise the exceptionTypeError: attr1 expects int type, but received str.Class Variable ReferenceAll Variable types (i.e. IntegerVariable, StringVariable) are inherited
from the classVariablewhich represents a class attribute type.
Below contains all the API references ofVariableincluding the
variable options and field types this package offers.Variable optionsThe following arguments are available to all variable types. All are
optional.nullIfFalsethe attribute cannot
be assigned aNULLvariable. Default isTrue. You cannot also
instantiate a class which has any Non-nullable attributes without
specifying the correct arguments. Below is what I meant to say.classMyClass(EasyClass):attr1=IntegerVariable(null=False)attr2=StringVariable(null=False)obj=MyClass()The above will raise the exceptionValueError: Following attributes cannot be null: [attr2, attr1]choicesA list to use as choices for the attribute. Will raise exception if
value being is stored is not included in this list of choices.defaultThe default value for the attribute. Right now, callables are not
supported.editableIfFalse, the attribute value cannot be edited. Default isTrue.Variable TypesIntegerVariableAn Integer Variable.IntegerVariableallows the following extra arguments.max_valueThe maximum value that can be set for the attribute. Default isNone(i.e., no validation is done)min_valueThe minimum value that can be set for the attribute. Default isNone(i.e., no validation is done)StringVariableA string variable, for small- to large-sized strings.StringVariablehas the following extra argumentsmax_lengthThe maximum length (in characters) of the attribute. Defaults255.min_lengthThe minimum length (in characters) of the attribute. Defaults0.BooleanVariableA true/false attribute.FloatVariableA floating-point number represented in Python by afloatinstance.FloatVariableaccepts same arguments as anIntegerField.ClassVariableA custom class variable. Required keyword argumentclsmust be passed to aClassVariable. Below is an example.classA(object):passclassMyClass(EasyClass):a=ClassVariable(cls=A,null=False)DictVariableA dictionary variable.DateTimeVariableA pythondatetimevariable.DateTimeVariableeither accepts adatetimevariable or string of the
formatYYYY-MM-DDTHH:MM:SS.DateVariableA pythondatevariable.DateVariableeither accepts adatevariable or string of the
formatYYYY-MM-DD.TimeVariableA pythontimevariable.TimeVariableeither accepts atimevariable or string of the
formatHH:MM:SS.
Package: easyclasses
EasyclassesLightweight alternative to dataclassesQuick ExamplefromeasyclassesimportEasyClassclassMyClass(EasyClass):a:strb:strc:str="test"print(MyClass("a","b",c="hi"))# MyClass(a='a', b='b', c='hi')InstallationLinux/Macpython3 -m pip install -U easyclassesWindowspy -3 -m pip install -U easyclassesPerformanceBased onbenchmarks.py, easyclasses is over 6x faster than the built-in dataclasses module.On top of that, it's also outperformsNamedTuple.UsageBasicsEasyclasses API is pretty similar to dataclasses.The main difference between dataclasses is that easyclasses uses a subclass instead of a decorator, like so:fromeasyclassesimportEasyClassclassMyEasyClass(EasyClass):a:strYou can also provide default arguments the same way:fromeasyclassesimportEasyClassclassMyEasyClass(EasyClass):a:strb:str="h"You can pass subclass arguments to enable or disable certain features:fromeasyclassesimportEasyClassclassMyEasyClass(EasyClass,eq=False,immutable=True):a:strMyEasyClass("a")==MyEasyClass("a")# FalseMyEasyClass("a").a="test"# TypeErrorIf you aren't planning on using features like__eq__, then you can useLightEasyClass, which has features like that removed, allowing it to be faster than the normalEasyClass:fromeasyclassesimportLightEasyClassclassMyEasyClass(LightEasyClass):# works the samea:strFactoriesIf you need a default argument for a mutable object (such aslistordict), you can use thefactoryfunction:fromeasyclassesimportEasyClass,factoryclassMyEasyClass(EasyClass):a:list=factory(list)ValidatorsYou can set a validator using thevalidatorfunction:fromeasyclassesimportEasyClass,validatorclassMyEasyClass(EasyClass):a:str=validator(str,lambdav:v=="hi")MyEasyClass("hi")# OKMyEasyClass("a")# AssertionErrorYou can even use it withfactory:fromeasyclassesimportEasyClass,validator,factoryclassMyEasyClass(EasyClass):a:list=validator(factory(list),lambdav:v==[1])MyEasyClass([1,2])# AssertionError
Package: easyclimate
A line of code to analyze climateDocumentation(latest)•Documentation(main branch)•Documentation(Dev)•ContributingAboutEasy Climateis a Python package, aiming to use a line of code to analyze climate.We support Python >= 3.10.Project goalsEliminate lengthy code for data and plot handling.Use numpy and xarray syntax for optimal computational speed.Dask for scalable parallel processing support extends climate data processing to TBs or PBs.Open-source software for increased application flexibility.How to install?If you usepip, you can installeasyclimatewith:pipinstalleasyclimateFor more information about installation, please chech the documentation.Getting involved👩🏾‍💻Contributing to project development:Please read ourContributing Guideto see how you can help and give feedback.🧑🏾‍🤝‍🧑🏼Code of conduct:This project is released with aCode of Conduct.
By participating in this project you agree to abide by its terms.Imposter syndrome disclaimer:We want your help.No, really.There may be a little voice inside your
head that is telling you that you're not ready, that you aren't skilled
enough to contribute. We assure you that the little voice in your head is
wrong. Most importantly,there are many valuable ways to contribute besides
writing code.ContributorsThanks to our many contributors!LicenseThis is free software: you can redistribute it and/or modify it under the terms
of theBSD 3-clause License. A copy of this license is provided inLICENSE.txt.
Package: easycloudapi
easycloudapiTheeasycloudapiis a simple uitility to provide ease of developing experience for any Python Applications.Functionality Availaible:Generate Date DimensionGenerate Bigquery Schema from JsonCode Samples:Generate Bigquery Schema-You can directly pass json/dict object to thegenerate_bq_schemamethodfromeasycloudapi.gcp.bigquery.bigquery_schemaimportBigquerySchemasample_json={"name":"Danilo","age":32,"date_joined":"2020-11-05","location":{"country":"United Kingdom","city":"London"},"years_active":[2020,2021,2022],"favourite_movies":[{"name":"Momento","year":"2000"},{"name":"Se7en","year":"1995"},{"name":"Momento","year":"2000"}]}bq_schema_obj=BigquerySchema()out_generate_bq_schema=bq_schema_obj.generate_bq_schema(data=sample_json)print(f"out_generate_bq_schema:\n{out_generate_bq_schema}")You can also convert the json file into json/dict object and pass to thegenerate_bq_schemamethodimportjsonfromeasycloudapi.gcp.bigquery.bigquery_schemaimportBigquerySchemabq_schema_obj=BigquerySchema()withopen("tests//test_data//sample_json_01.json")asjson_file:sample_dict=json.load(json_file)out_generate_bq_schema=bq_schema_obj.generate_bq_schema(data=sample_dict)print(out_generate_bq_schema)Date Functionality-Generate Date Dimensionfromeasycloudapi.generic.datetime.generate_date_dimentionimportgenerate_date_dimensionout1=generate_date_dimension(start_date="2023\\08\\01",end_date="2023\\08\\03")print(f"out1:{out1}")out2=generate_date_dimension(start_date="2023/08/01",end_date="2023/08/03")print(f"out2:{out2}")out3=generate_date_dimension(start_date="2023-08-01",end_date="2023-08-03")print(f"out3:{out3}")How to ContributeRefer toDeveloper GuideMIT LicenseCopyright (c) 2023 easycloudapiPermission 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: easycm
Easy CMA simple python package to plot confusion matrices.Installationfoo@bar:~$pipinstalleasycmUsageYou can simply call the function with predictions and true values from your classification problem.fromeasycmimportplot_confusion_matriximportmatplotlib.pyplotasplty_true=[False,True,True,False]y_pred=[False,False,True,True]plot_confusion_matrix(y_true,y_pred)plt.show()To include your confusion matrix in subplots, you can do the followingfromeasycmimportplot_confusion_matriximportmatplotlib.pyplotasplty_true=[False,True,True,False]y_pred=[False,False,True,True]fig,axs=plt.subplots(1,2)plot_confusion_matrix(y_true,y_pred,ax=axs[0])plt.show()You can also customize the labels for the X and Y axis and the title.fromeasycmimportplot_confusion_matriximportmatplotlib.pyplotasplty_true=[False,True,True,False]y_pred=[False,False,True,True]plot_confusion_matrix(y_true,y_pred,title='Title',xlabel='X',ylabel='Y')plt.show()
Package: easyCodes
This is a simple code snippets library for oftenly used algorithms and code snippets. You have to just type some matching strings to get the code as the output on your screen
Useful in Competetive Programming
======Attributes present:getCodeFor(‘Name_of_your_required_function’)-> This function matches the functions present in the package to the name provided by the function call and prints the most similar functionavailableCodes()-> This function doesn’t take any arguments and prints the code available in the packageTHIC PACKAGE HAS CODE SNIPPETS OF FOLLOWING FUNCTIONS (and takes no arguments)dfs, bfs, dijkstra, bellmanFord, knapsackTabulation, knapsackSet, travellingSalesman, availableCodes, inlineString, numInputsinlineString: Is for setting input stream for the program
numInputs: Is for the boilerplate codesChange Log0.0.1 (09/04/2021)First Release0.0.2 (09/04/2021)Minor fixings
Package: easycolab
Easy to use tools to be used on Google Colab. This Python package implements some of the most useful commands such as mounting Google drive folders, download of big files and zip/unzip files.## How to install
1. Open a Google Colab Session.
2. On a new cell, type:` !pip install easycolab `3. Try importing easycolab to check if the installation worked:` import easycolab as ec `
Package: easycolor
Python Easy ColorColor output in python2/3 made easy!DescriptionMake python color ouput easy in UNIX terminals
that support ANSI sequences.Installationpip install easycolorDocumentationCheck the documentation at: (http://easycolor.readthedocs.io/en/latest/)
also available at: (https://georgetg.github.io/easycolor/)Source CodeCheck at github: (https://github.com/GeorgeTG/easycolor)LicenseCopyright George T. Gougoudis 2016. BSD 3-Clause license; see LICENSE file.Basic usageTo wrap text, the wrap function must be imported.fromeasycolor.styleimportwrapas_wThe text is then wrapped as easy as# wrap text, appends a style-resetprint(_w('yellow on red',fg='yellow',bg='red'))print('normal text')To compile a style, the make_style function is used:fromeasycolor.styleimportmake_style,RESETExample:# define some stylesblack_on_white=make_style(fg='black',bg='white')# we have to reset the background herered_bold=make_style(fg='red',bg='reset',opt='bold')# An options reset is only possible with a total reset# we can however negate an option to remove it('!option').green_bold_underline=make_style(fg='green',opt=('!bold','underline'))print(black_on_white+'Black on white'+red_bold+'Red bold'+green_bold_underline+'Green not bold underline'+RESET)Note: For advanced formatting use the easycolor.parser module.Advanced usageFirst obtain an instancefromeasycolor.parserimportColorParserparser=ColorParser()Then for printingcprint=parser.cprint# Add rainbow colors!cprint("""<f:red>r<f:yellow>ai<f:green>nb<f:blue>o<f:magenta>w""""""</f>o</f>bn</f>ia</f>r</f>""")# complex foreground - backgroundcprint("""<f:red,b:yellow>red on yellow</b>just red<b:black>red on black!""""""<f:green>green on black</f>again red on black</f,b>normal""")Parse a format string for a colored logger, for later useINFO=parser.parse("[<f:cyan>INFO</f>] <o:bold>{}")print(INFO.format('Some info..'))
Package: easy-colorprint
colorPrintcolorPrint is a very light weight module that enables you to print in color without having to use fstring codes and memorising complicated (or too long to write !) syntax...I wrote it in order to save time when I'm coding scripts that generates a lot of terminal prompts which are painfull to read wthout colors !Basic usageThe script uses a cprint function and tags in the string starting by the§symbol.fromcolorPrintimportcprint# First Try :cprint("Now I can use §-SUCCESSGreen color !")cprint("The §_INFOtext§ I want to §_SUCCESSprint§ using §_WARNINGWarning background!")# Same with shortcodes :cprint("The §_#Itext§ I want to §_#Sprint§ using §_#WBackground colors!")cprint("Or §-#Itext§ using §-#WForeground colors!")# Compatibility# use of the § symbolcprint("colorPrint is §-#Icompatible§ with the usage of the § §§_#Scharacter§ if you need it §-#Danyway§ !")# use of fstringvalue="Oh la la"cprint(f"§_#I{value}§, colorPrint is §-#Icompatible§ with the usage of fStrings variables §-#Dif you need it§ !")As simple as that !How tags worksColorPrint tags allways starts with§symbol. In order to change  the text color or background color, you need to start with anopening tag.Theclosing tagis needed only if you wnat to end the start tag effect before the end of the string.Opening tagThe opening tag second char is meant to define if it is a backgound or a foreground color. it is either-(foreground) or_(Background)Available opening tags:Closing tagThe closing tag is just§. As long as it comes after an opening tag, it will be considered as a closing tag.More to come...In the next upgrade I will add the ability to change the default colors right after importing the module...
Package: easycolors
This module contains rgb tuples for some colors.Running e.g. 'easycolors.red' will return the rgb tuple for red.Running e.g. 'easycolors.transform(easycolors.red, (0,0,10))' will return the rgb tuple for red, but with its blue value incremented by 10.The first arg can also be a 3-value tuple, and the second arg can also be an int (which will in- or decrement all values in the given rgb-tuple).Running 'easycolors.help()' will print some information that might be usefull.colors:
white, black, grey, darkgrey, red, green, blue, yellow, orange, cyan, purple, navy, pinkexample code:import easycolorseasycolors.red"(255,0,0)"easycolors.transform(easycolors.red, (-10,0,0))"(215,0,0)"easycolors.transform((10,10,20), 5)"(15,15,25)"
Package: easy-colors
Easy ColorsThis package allows you to print colored text in the console using ANSI escape codes.InstallationInstall on Linux/MacOS:python3 -m pip install easy_colorsInstall on Windows:python -m pip install easy_colorsUsagefromeasy_colorsimportColorsprint(f'{Colors.INFO}This is an example{Colors.END}')print(f'{Colors.DANGER}This is another example{Colors.END}')Note: Make sure to end all colored strings withColors.END