Saravanan666/pypi-org huggingface dataset:
Package: ezlocalai
ezlocalaiezlocalai is an easy set up artificial intelligence server that easily exposes a list of local artificial intelligence models to choose from to run on your own computer. It is designed to be as easy as possible to get started with running local models. It automatically handles downloading the model of your choice and configuring the server based on your CPU, RAM, and GPU specifications. It also includesOpenAI Styleendpoints for easy integration with other applications using ezlocalai as an OpenAI API proxy with any model. Additional functionality is built in for voice cloning text to speech and a voice to text for easy voice communication entirely offline after the initial setup.PrerequisitesGitPowerShell 7.XDocker Desktop(Windows or Mac)CUDA Toolkit(NVIDIA GPU only)Additional Linux PrerequisitesDockerDocker ComposeNVIDIA Container Toolkit(NVIDIA GPU only)Installationgitclonehttps://github.com/DevXT-LLC/ezlocalaicdezlocalaiEnvironment SetupExpand Environment Setup if you would like to modify the default environment variables, otherwise skip to Usage. All environment variables are optional and have useful defaults. Change the default model that starts with ezlocalai in your.envfile.Environment Setup (Optional)None of the values need modified in order to run the server. If you are using an NVIDIA GPU, I would recommend setting theGPU_LAYERSandMAIN_GPUenvironment variables. If you plan to expose the server to the internet, I would recommend setting theEZLOCALAI_API_KEYenvironment variable for security.THREADSis set to your CPU thread count minus 2 by default, if this causes significant performance issues, consider setting theTHREADSenvironment variable manually to a lower number.Modify the.envfile to your desired settings. Assumptions will be made on all of these values if you choose to accept the defaults.Replace the environment variables with your desired settings. Assumptions will be made on all of these values if you choose to accept the defaults.EZLOCALAI_API_KEY- The API key to use for the server. If not set, the server will not require an API key when accepting requests.DEFAULT_MODEL- The default model to use when no model is specified. Default iszephyr-7b-beta.WHISPER_MODEL- The model to use for speech-to-text. Default isbase.en.AUTO_UPDATE- Whether or not to automatically update ezlocalai. Default istrue.THREADS- The number of CPU threads ezlocalai is allowed to use. Default is 4.GPU_LAYERS(Only applicable to NVIDIA GPU) - The number of layers to use on the GPU. Default is0. YourGPU_LAYERSwill automatically determine a number of layers to use based on your GPU's memory if it is set to 0 and you have an NVIDIA GPU.MAIN_GPU(Only applicable to NVIDIA GPU) - The GPU to use for the language model. Default is0.Usage./start.ps1For examples on how to use the server to communicate with the models, see theExamples Jupyter Notebook.OpenAI Style Endpoint UsageOpenAI Style endpoints available athttp://<YOUR LOCAL IP ADDRESS>:8091/v1/by default. Documentation can be accessed at thathttp://localhost:8091when the server is running.
Package: ezlocaldb
ezlocaldbVersion 0.0.1Easy, local databases for no-sweat persistence. This convinience package wraps
small parts ofappdirs,sqlite3, andsqlalchemy, to easily create
databases for local applications. The package saves about 15 lines of code, but
it's 15 lines I find myself writting at the start of many projects, so maybe it
will save you some time too.InstallationPIPThe easiest way to installezlocaldbis with pippipinstallezlocaldbUsage/ExamplesQuick StartTo work withsqlalchemyuseget_engineto get anengineobject for
database access. The first argument toget_engineis the name of your
application, which is used to uniquely specify the database.fromezlocaldbimportget_enginefromsqlalchemyimportSession# Get an sqlalchemy engine to use with sqlalchemy.Sessionengine=get_engine(app_name="MyAmazingApp")withSession(engine)assession:# Now work with session to initalize database,# or execute other CRUD operations.passWhen you callget_engine, ezlocaldb checks to see if your database was created
previously. If it wasn't it creates a newsqlitedatabase. Either way, it
returns anenginewhich can be used to access the database.Removing or refreshing databasesIf you want to remove or refresh the database, usefromezlocaldbimportremove_database,get_engineremove_database("MyAmazingApp")# To recreate the database (with no data in it) useengine=get_engine("MyAmazingApp")Initializing the SchemaUsually, getting tables and such setup is just a little tricky. When should you
emitCREATE TABLEcommands? Is everything in place? Did you just overwrite
your data?Withezlocaldbyou can pass asqlalchemy.MetaDatainstance as a keyword
argument toget_engine. If you're using the ORM, it's as simple as this:fromsqlalchemy.ormimportDeclarativeBasefromezlocaldbimportget_engineclassBase(DeclarativeBase):pass# More ORM classes derived from Base# ...engine=get_engine('MyAmazingApp',metadata=Base.metadata)If your database file hasn't been created,get_enginewillcreate_allthe
tables, etc. represented in your ORM tree. If the file was previously created,
the metadata argument is ignored. This way you can quickly get a database setup
for orm operations, and not worry about accidentally overwritting all your data.If you make changes to your ORM structure, you can useremove_databasefrom a
repl or other function, and callget_enginewith themetadataargument again,
and the new database will reflect all your new structure.A note on migrations.
Database migrations are a complicated subject. If you want to keep your data
while you revise your ORM structure or Database Schema, you're probably ready
to graduate to using fullSQLAlchemy, and look atAlembic.Thank You!
Package: ezlocale
EzLocale is a language library that makes translation easier (hence the name).Throw gettext in the trash, because you’ll never need to manually translate again.Powered by Google Translate, with the googletrans module.https://github.com/ssut/py-googletrans$ pip install ezlocaleBasic Usageimportezlocale# set default language to Spanishezlocale.DEST=ezlocale.language.ES# easier translation_=ezlocale.gettextname=input(_("What's your name? > "))print(_("Hello,%s!"%name))Â¿CuÃ¡l es tu nombre? > PatrickÂ¡Hola, Patrick!To get a language by its name, just useezlocale.get_language(name)(case insensitive)You can also use a different language with each call.>>>ezlocale.gettext("Hello!",dest=ezlocale.get_language("Latin"))'Salve!'>>>ezlocale.gettext("Â¡Hola!",dest=ezlocale.language.EN,src=ezlocale.language.AUTO)# anything to english'Hello!'ToTo clear the translation cache, useezlocale.clear_cache()EzLocale uses an LFU cache for each language to make sure resources aren’t wasted.http://github.com/reshanie/faste/
Package: ezlock
ezlockSuper simple file-based locking:# first.py
from ezlock import Lock
import time

with Lock():
    print("I got the lock and I'm keeping it for 20s")
    time.sleep(20)and# second.py
...
with Lock():
    print("Trying to get a lock too")running>>> python3 first.py &
I got the lock and I'm keeping it for 20s
>>> echo "before 20s"
before 20s
>>> python3 second.py
locking.LockError: Attempted to acquire on already locked lock!Lock files have an owner. A lock can check if it owns a file withlock.mine.Locks will only release a lock that's not theirs if it's forced i.e.lock.release(force=True).You can wait for a lock to be released withLock.wait()
Package: ezlog
# (E)a(z)y (log)gingWrappers to make eazy logging of functions and members calls.Allow to track parameters, exceptions and performance of functions.# InstallationSimple as `pip3 install ezlog`# Some examples on how to use itTo log function call```pythonfrom ezlog.wrappers import log_call@log_call()def test(a, b):print("test_fiunction_called")return 4test(2, "test")```To log class member call```pythonfrom ezlog.wrappers import log_member_callclass A:@log_member_call()def test(self, a, b, **kwargs):print("test_called")a=A()a.test(2, 4, test={"d":"t", "c":"o"})```# CustomizationDefault behavior can be overriden using followin module wide parameters:- default_log_levelOverride for default logging level.- default_performance_measureOverride default behavior for measuring performance or not.- default_loggingOverride default logger.- default_epsLimit for prevent spamming extremely low measurements.- default_one_line_logOverride default logging style.If True - log only one line (Called (args), result)If False(default) - log in 2 lines (Calling... Done).- default_log_argumentsOverride default settings to log arguments or not.- default_log_resultOverride default settings to log function result or not.
Package: ez-logger
ez-loggerez-loggeris a python module that offers easy to use API's for performing common logging operations.This library has been tested on the following platforms.WindowsLinuxMac OSXIt also works on both python major versions.python 2.7python 3.6API DocsAPI docs are maintainedhereUsagepipinstallez-loggerfromez_logger.console_loggerimportConsoleLoggerlogger=ConsoleLogger()logger.error('some error occurred')fromez_logger.file_loggerimportFileLoggerlogger=FileLogger(log_file='test.log',log_dir='/tmp')logger.error('some error occurred')Refer toAPI Docsfor detailed documentation.Developmentvirtualenvvenvsourcevenv/bin/activate

pipinstall-rrequirements.txtRun Testspython-mpytest-vtests/unit/*.py--spec
Package: ezlogger-xzf
EzloggerThis package is made to easily create logger that is suit for most of the situations, including following functions:automatically create "log" folder under the work directorythe log information will be displayed on std, and will also be stored in the .log fileallow user to set the information level for both stdout and log fileParameters:stdout_level<str>: The log level to be used for stdout ('INFO', 'ERROR', 'DEBUG', or 'WARNING'), Defaults to 'INFO'.file_level<str>: The log level to be used for the log file ('INFO', 'ERROR', 'DEBUG', or 'WARNING'), Defaults to 'DEBUG'.log_file<str>: The path and name of the log file to write the log messages, defaults to 'logfile.log'.Returns:logger<logging.Logger>: The initialized logger instance.Useage:# Importsimportsys,logging,tracebackfromezlogger_xzfimportinitialize_loggerfrompathlibimportPathlogger=initialize_logger(stdout_level='INFO',file_level='DEBUG',log_file='logfile.log')# Error & Debug (need to import traceback)logger.error(f"[func_name]: error message<{e}>")logger.debug(f"[func_name]: error message<{e}>\n**********\n{traceback.format_exc()}**********")# Infologger.info(f"[func_name]: message")# Warninglogger.warning(f"[func_name]: warning message")
Package: ezloglib
ezlogModern, simple in use, fast, colored logging library for python.Formatting supportStdout\Stderr\File handlersEasy to use & add custom handlersColored and customizableInstallationYou can install this viapip(Windows):pipinstallezloglibAnd also for linux systems:pip3installezloglibRead more about this on thedocumentationExamplesExample from thedocumentation.File:examples/presentation.pyimportezlogimportmath# declare stdout handler with log level - debugsout_handler=ezlog.StdoutHandler(log_level='debug')# initialize main loggermain_logger=ezlog.Logger('Main',handlers=[sout_handler])# examples of the default log levelsmain_logger.debug('This is{}message','debug')main_logger.exception('This is{}message','exception')main_logger.info('This is{}message','info')main_logger.warning('This is{}message','warning')main_logger.error('This is{}message','error')main_logger.critical('This is critical message')# pretty formatting + colored typesmain_logger.debug('Int:{}List:{}Dict:{}',13,[1,2,3],{'hello':'world'})main_logger.exception('Tuple:{}Bool:{}Bytes:{}',('hello','world'),True,b'whois?')main_logger.info('Float:{}',math.pi)main_logger.warning('Exception (color):{}',NameError("name 'abc' is not defined"))# example of the formattingmain_logger.info('{:<20}--{:>19}','pi is',f'{math.pi:.2f}')# example exception loggingtry:printt('Hello, world!')exceptExceptionase:# NOTE: You can use also debug, critical and other log levels to print exceptionmain_logger.exception('Exception example',exception=e)main_logger.info('It is continue work')File:examples/groups_filelogging.pyimportezlog# declare stdout handler with log level - debugfile_handler=ezlog.FileHandler('example.log',log_level='debug')sout_handler=ezlog.StdoutHandler(log_level='info')# recommended: exception log level as default# initialize example groupsexample_group=ezlog.LoggerGroup('Example',handlers=[sout_handler,file_handler])groups_group=ezlog.LoggerGroup('Groups',parent=example_group)main_logger=ezlog.Logger('Main',group=groups_group)# examples of the default log levelsmain_logger.debug('This is{}message','debug')main_logger.exception('This is{}message','exception')main_logger.info('This is{}message','info')main_logger.warning('This is{}message','warning')main_logger.error('This is{}message','error')main_logger.critical('This is critical message')
Package: ezmapper
🌐 ezmapperWelcome toezmapper— a Python package that supercharges your Extract-Transform-Load (ETL) processes. With a core focus on an intuitive interface, ezmapper aids in seamlessly mapping data between various sources and destinations. Whether you love YAML or Excel for configurations, we've got you covered!🚀 InstallationGetting started withezmapperis a breeze:pipinstallezmapper🌟 FeaturesSimplified ETL: Seamlessly load and map data in pandas DataFrames.Configuration Flexibility: Whether you're a YAML enthusiast or a dictionary lover, configure the way you want!Two-Way Mapping: Apply mappings on your data or go the other way round.Excel Enthusiast?: Directly save your mappings to Excel or initialize them from an Excel sheet.📚 ClassesMapperThe heart ofezmapper. Dive into the core ETL functionalities:Fetch mapping from a YAML or directly from a dictionary.Transform a pandas DataFrame usingload()and revert transformations usingdump().Excel wizards, rejoice! Useto_excel()to save, orfrom_excel()to load configurations.fromezmapperimportMapper💡 Example UsageGiven below is a concise YAML configuration for your understanding:config:comment_column:comment# Highlight changed values in the DataFrameid_column:id# For error logging & ensuring unique entriesfilters:-0.15 < floats < 1# Applying filters on the DataFramemapping:id:Aletters:Bbooleans:Cfloats:column:Drule_value:True -> floats * 10words:Etimestamp:column:CREATE_COLUMN()default_value:pd.Timestamp.now()comment:CREATE_COLUMN()🤝 ContributingGot an idea? 🌱 Found a bug? 🐞Join in! Open an issue or submit a pull request. Your contributions are heartily welcome.📞 SupportNeed a hand? Don't hesitate. Open an issue on the repository or drop a message to our dedicated maintainers.
Package: ezmaps
EZ MapsGenerate Beautiful Maps 🗺ContentsInstallationUsageExamplesTroubleshootingContributingAuthorLicenseInstallationMake sure you have Python installed (Python 3.2+)You can install using the commandpip3 install ezmapsUsageThis is a CLI app so you can run it usingezmapsin your command lineezmaps takes a few arguments* -c , --config  Path to your config file
  	* -s , --save    If you save the state of this run
  	* -l , --load	 Load an old state (pickle file) to avoid makes calls to the APIThe config file is in thejsonformat and has the following information{
	"details":{
		"place": "Sydney"
		"level":7,
		"background": [0,0,0],
	    "color":[255,255,255],
	    "size":[2500,1800],
		"detail":6
	},
	"markers": [{
		"locations": ["police"],
		"icon": "police.png",
		"size": 30
	}]
}keytypedescription[details],[place]stringThe name of the place you want to generate the map for[details][level]integerAdministrative level for the place you can find the level for your placehere[details][background]list or integerRGB value of the color you want or-1-Transparent[details][color]listRGB values for the color you want the map to be drawn in[details][size]list or integerwidth and heightof the output image (The actual image will be resized to this value). If just anintegeris provided it returns the natural scale of the map with the integer as the max height or width value allowed[details][detail]listHow many level of roads do you want in your image higher the number the lower the level of roads fetched[markers]listA list of markers you want marked on your image[markers][locations]list or stringA list of longitude or latitude for custom markers or a string specifying a type of important location[markers][icon]stringPath to the icon you want the mark the marker with will search in foldericonin the location where the config file is located[markers][size]integerSize of the icon in the final image inpixlesExamplesAlljsonfiles for the examples can be found intestsfolderSydneyMarking all cafes in SydneyCaliforniaCustom MarkingLos AngelesandSan Franciscoin CaliforniaArgentinaShibuyaMarking allhospitalsin ShibuyaTroubleshootingAll this data is obtained fromOverpasswhich is rate-limited so to avoid getting stuck in the rate-limit try saving and loading states as much as possibleIf you find any bug or error please create an Issue on this repositoryContributingAll Contributions welcome
Please submit all pull requests the against master branch.Authorc00kie17LicenseMIT
Package: ezmarkdown
ezmarkdownstands for easy MarkDown.MarkDownis a convenient way to write formatted documents.It was created with the goal of enabling people to “to write using an
easy-to-read, easy-to-write plain text format, and optionally convert
it to structurally valid HTML”.Seethis cheatsheet.This module enables to write MarkDown in an IPython notebook and export
some or all the cells in the notebook as a standalone HTML document.The export module uses nbconvert.Several export templates are available:* Output cells only* Input cells only* Input and output cells* Output cells with toggle input cells* Input cells with toggle output cellsSee theexample notebook
Package: ez-markdown-parser
EzMarkdownParserEzMarkdownParser is a very simple Python package that converts Markdown text to HTML strings with its htmlify function. It is designed to handle basic Markdown elements such as paragraphs, headings, list items, bold text, and links.This parser was made for cs50w project #1 Wiki on 2024, so it only supports the tags required by the project specifications, wich are mentioned above.InstallationInstall EzMarkdownParser using pip:pipinstallez-markdown-parserUsagefromez_markdown_parserimportEzMarkdownParsermd_text="""# Heading 1This is a paragraph with some **bold text** and a [link](https://example.com).## Heading 2- List item 1- List item 2"""parser=EzMarkdownParser()html_text=parser.htmlify(md_text)print(html_text)FeaturesConvert Markdown headings to HTML<h1>to<h6>tags.Process list items (*and-) and convert them to HTML<li>tags.Wrap paragraphs with HTML<p>tags.Recognize and convert double asterisk (**) for bold text.Recognize and convert links in the format[text](URL).LimitationsThe parser is not complete nor optimized yet, it doesnt support advanced markdown features. Use it with caution.ContributingContributions are welcome, as long as the project remains fun enough!
If you find an issue or have suggestions for improvements, please open an issue or submit a pull request.LicenseThis project is dedicated to the public domain. You are free to use, modify, and distribute the code without any restrictions. See the UNLICENSE file for more details.
Package: ezml
E-Z Meta-Language / Python ParserWhat Is E-Z MetaLanguage/Parser?E-Z Meta-Language is an extremely simple(or "e-z"), xml-flavored, data storage + aquisition method,
revolving around this parser, written in Python.At this point, general usage is simply variable storage.Basic usage:Example .ezml file(test.ezml):<ezml><meta>Author:ExampleAuthor
Info:ClassSchedule
Date:January17th,2020</meta><vartitle>Campus#1WeeklyScheduleExample</title><varmonday>NoSchool</monday><vartuesday>class1:history
class2:science</tuesday><varwednesday>NotOnCampus</wednesday><varthursday>class1:history
class2:science</thursday><varfriday>class1:history
class2:ap-history
class3:science</friday></ezml>Parsing Example (From File) :fromezmlimport*ezml=EZML(utils.dump_file('test.ezml'))print(ezml.meta)print(ezml.var['title'])print(ezml.var['monday'])print(f"Tuesdays Schedule:\n{ezml.var['tuesday']}")Parsing Example (From String):fromezmlimportEZMLezml=EZML("<ezml><meta>Title: Hello World!</meta><var title>Foo<title><var bar>Hello World!</bar></ezml>")print(ezml.meta)print(ezml.var['title'])print(ezml.var['bar'])Getting Current Version:fromezmlimportutilsprint(utils.version)Thanks for using E-Z MetaLanguage!
Package: ez-ml
EZMLEZ ML or Easy ML , is a ready to use collection of functions and classes frequently used in machine learning projects and kaggle competitions .Important NoteThis project is still in beta , docstrings exist inside the lib but no official documentation has been created yet .Any contribution is welcome as long as it fits the spirit of the package.Getting StartedTo start kicking ass you just need to install the librarypip install ezmlAuthorsGhazi Ben Dahmen-Initial work-GhaziBenDahmenLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: ezmomi
A simple command line interface for common VMware vSphere VM tasks. Please seehttps://github.com/snobear/ezmomifor usage examples.ezmomi uses thepyvmomiVMware vSphere API Python Bindings.ezmomi 6.x works with vSphere 6 (may work with 5, but not tested)
ezmomi 0.x works with vSphere 5
Package: ezmonitor
ezmonitorSummaryezmonitor is a easy program for monitoring MEM and CPU Usage of some process and its chriden process.Software RequirementsLinuxPython >=2.7.10, <3.10  and  Python3 for recommendInstallationinstall from git repo:pip install git+https://github.com/yodeng/ezmonitor.gitor just install from Pypi：pip install ezmonitoror install from anaconda repo:conda install -c yodeng ezmonitorUser Guide and Usage1).  monitor by process idezmntor [pid]output：sys.stdout loggingpid.logpid.pdf2). monitor by process nameif more then one process detected by process name, will exists.ezmntor [processName]output：sys.stdout loggingpid.logpid.pdf3). monitor you command lineezmntor [your command line]output：pid.logpid.pdf4). monitor by decoratorfromezmonitorimportezmonitor@ezmonitor.wrapper()defyoufunction(*args,**kwargs):passoutput：sys.stdout loggingpid.logpid.pdfDemo