Saravanan666/pypi-org huggingface dataset:
Package: easy_test
Easy Test Seleniumes un mini framework el cual da una propuesta de como debe ser ordenado las pruebas funcionales
y asu vez presenta un marco de trabajo escalable y facil de editar.Para comenzar a usarEasy Test Seleniumse debe ejecutar lo siguiente:pip install easy_test
easy_test startproject “nombre de proyecto”Luego de haber ejecutado estas lineas. Dentro de la carpeta creada, podemos ver que tenemos una carpeta llamadaprincipaly un archivo con el nombre demanage.pyEl directorioprincipalcontiene el archivo de configuraciónsettings.py. Este archivo contiene la
configuración de los webdrivers a utilizar, las apps a ser testeadas, entre otros.Agregando pruebasNecesitamos entrar al proyecto creado y luego ejecutar lo siguiente:python manage.py newtest ‘prueba_1’Luego entramos a nuestro archivo settings.py y donde dice WEB_DRIVERS agregamos el webdriver a utilizar indicando
el navegador y el path si lo tuviera.Ejecutando nuestros testsPara ejecutar todos nuestros tests ingresamos el siguiente comando:python manage.py test allEn caso que deseemos ejecutar solo un test pues indicamos el test en vez indicar all:python manage.py ‘prueba_1’La documentación estará próximamente enFrontEnd Labs.
Package: easy-testing
easytestingEasy Testing is a Python library hosted onGithubandPyPIdesigned to streamline and simplify the testing process for Large Language Model (LLM) applications.
With a focus on user-friendly functionality, Easy Testing provides a comprehensive suite of tools and utilities for testing the robustness, accuracy, and performance of LLM applications.This library offers an intuitive interface for writing and executing test cases, allowing developers to assess the functionality of their LLM applications with ease. Easy Testing supports a variety of testing scenarios, including input validation, boundary testing, and performance benchmarking, enabling developers to identify and address potential issues in their applications.How to 🚀Having LLMs pipelines and your aim is to check if new prompts are performing as default.Installationpip install -U easy-testing
Package: easytextract
Easy to use text extractor, from PDF, DOC, DOCX and other documents, including if necessary using OCR (via Tesseract).This library can extract text from any type supported by Textract.This library only exists because of the awesome work of the Textract team and Tesseract.It runs under Python 2.7 (it was not tested nor developped with compatibility with Python 3 in mind, although it might work with some slight changes).INSTALLIn general, please refer to Textract documentation to install the appropriate softwares needed to extract text from the filetypes you need.The rest of this section will describe the details for a basic setup.PYTHON (all platforms: Linux, MacOSX, Windows)To run Easytextract from Python, you need Python > 2.7 and to pip install textract.Then install the following libraries to support the filetypes you want:For PDF, pip install PDFMiner. To get additional features and better PDF extraction, you can install pdftotext, part of poppler or Xpdf.For OCR, you need to install Tesseract >= 3.02 (but not 3.0 nor 4!) and pdftoppm.For DOCX, pip install python-docx2txt.For DOC, install antiword in the location on Windows: C:antiwordantiword.exe , for Linux and Mac you will need to change the path inside the script.to support other types such as audio, seehttps://textract.readthedocs.io/en/stable/#currently-supportingWINDOWSBy using the Windows binary (only for Windows 64-bits), PDF and DOCX are directly supported.To enable OCR, and install tesseract >= v3.02 (not v4!) for your platform beforehand. You also need to install pdftoppm.exe.For DOC support (not DOCX as it is already supported natively), you will also need antiword installed in C:antiwordantiword.exe.LICENSEeasytextract was initially made by Stephen Larroque <LRQ3000> for the Coma Science Group - GIGA Consciousness - CHU de Liege, Belgium. The application is licensed under MIT License.
Package: easy-tf-log
Easy TensorFlow LoggingNote: NOT compatible with TensorFlow 2!A pull request fixing this would be very gratefully accepted :)Are you prototyping something and want to be able tomagicallygraph some value
without going through all the usual steps to set up TensorFlow logging properly?easy_tf_logis a simple module to do just that.from easy_tf_log import tflogthen you can dofor i in range(10):
    tflog('really_interesting_variable_name', i)and you'll find a directorylogsthat you can point TensorBoard to$ tensorboard --logdir logsto getSeedemo.pyfor a full demo.Based on logging code from OpenAI'sbaselines.Installationpip install easy-tf-logNote that TensorFlow must be installed separately.Documentationeasy-tf-logsupports logging using either a global logger or an instantiated logger object.The global logger is good for very quick prototypes, but for anything more complicated,
you'll probably want to instantiate your ownLoggerobject.Global loggereasy_tf_log.tflog(key, value, step=None)Logsvalue(int or float) under the namekey(string).step(int) sets the step associated withvalueexplicitly.
If not specified, the step will increment on each call.easy_tf_log.set_dir(log_dir)Sets the global logger to log to the specified directory.log_dircan be an absolute or a relative path.easy_tf_log.set_writer(writer)Sets the global logger to log using the specifiedtf.summary.FileWriterinstance.By default (i.e. ifset_diris not called), the global logger logs to alogsdirectory
automatically created in the working directory.Logger objectlogger = easy_tf_log.Logger(log_dir=None, writer=None)Create aLogger.log_dir: an absolute of relative path specifying the directory to log to.writer: an existingtf.summary.FileWriterinstance to use for logging.If neitherlog_dirnorwriterare specified, the logger will log to alogsdirectory in the
working directory. If both are specified, the constructor will raise aValueError.logger.log_key_value(key, value, step=None)Seetflog.logger.log_list_stats(key, values_list)Log the minimum, maximum, mean, and standard deviation ofvalues_list(a list of ints or floats).logger.measure_rate(key, value)Log the rate at whichvalue(int or float) changes per second.The first call internally stores the time of the first value;
the second call logs the change between the second value and the first value divided by the
time between the calls; etc.logger.set_dir(log_dir)Seeeasy_tf_log.set_dir(log_dir).logger.set_writer(writer)Seeeasy_tf_log.set_writer(writer).logger.close()Flush logs and close the log file handle.
Package: easy-tfrecords
easy_tfrecordsthis package is designed to assist reading and writing to tfrecord files in an intuitive way that preserves dtype and data structurePurpose:The tfrecord format is a fast and powerful way of feeding data to a tensorflow model; it can automatically batch, randomize and iterate your data across epochs without special instructions. Theproblemwith using tfrecord files comes from orchestrating the madness of matching feature structures across the reader, writer and fetcher.Theeasy_tfrecordsmodule contains methods and classes that allow you to write to and read from tfrecord files in a straightforward, extensible manner.Features:create tfrecord filesread from single or multiple tfrecord filesselectively read data from tfrecord filesexamine the data structure of tfrecord filesUsage:WritingImport data into python however you normally would (excel, pandas, csv, matlab, etc.)Reshape each of your arrays of features toshape=[N, x[, y[, z[, etc.]]]]where N is the number of features.Add multiple lists of features to the file as key-value pairsReadingCreate a reader class object, specifying your file list (can be length 1), optionally specifying batch size and shuffe spec.pass a list of which inputs to read from the fileExample Code:importnumpyasnpimporttensorflowastffromeasy_tfrecordsimportcreate_tfrecords,easy_tfrecordsasrecords# CREATE SOME TEST DATAx=np.array([[0,0,0,0],[0,0,0,0]],np.int32)trainX=np.asarray([x,x+1,x+2])y=np.array([0.25],np.float32)trainY=np.asarray([y,y+1,y+2])# CREATE AND SAVE TO A FEW TFRECORDS FILEScreate_tfrecords('tfr_1.tf',x=trainX,y=trainY)create_tfrecords('tfr_2.tf',x=trainX+10,y=trainY+10)create_tfrecords('tfr_3.tf',x=trainX+100,y=trainY+100,z=trainY+100)# INSTANTIATE THE RECORDS OBJECTrec=records(files=['data_1.tf','data_2.tf'],shuffle=False,batch_size=1,keys=['x','y'])next_factory=rec.get_next_factory()batch_x=next_factory['x']batch_y=next_factory['y']withtf.Session()assess:sess.run(rec.get_initializer())forninrange(10):print('------------')print('n =>{}\n'.format(n))x_eval,y_eval=sess.run([batch_x,batch_y])print('x_eval=\n{}\n'.format(x_eval))print('y_eval=\n{}'.format(y_eval))sess.close()Output :------------
n => 0

x_eval=
[[ 0.25]]

y_eval=
[[[0 0 0 0]
  [0 0 0 0]]]
------------
n => 1

x_eval=
[[ 1.25]]

y_eval=
[[[1 1 1 1]
  [1 1 1 1]]]
------------
n => 2

x_eval=
[[ 2.25]]

y_eval=
[[[2 2 2 2]
  [2 2 2 2]]]
------------
n => 3

x_eval=
[[ 100.25]]

y_eval=
[[[100 100 100 100]
  [100 100 100 100]]]
------------
n => 4

x_eval=
[[ 101.25]]

y_eval=
[[[101 101 101 101]
  [101 101 101 101]]]
------------
n => 5

x_eval=
[[ 102.25]]

y_eval=
[[[102 102 102 102]
  [102 102 102 102]]]
------------
n => 6

x_eval=
[[ 10.25]]

y_eval=
[[[10 10 10 10]
  [10 10 10 10]]]
------------
n => 7

x_eval=
[[ 11.25]]

y_eval=
[[[11 11 11 11]
  [11 11 11 11]]]
------------
n => 8

x_eval=
[[ 12.25]]

y_eval=
[[[12 12 12 12]
  [12 12 12 12]]]
------------
n => 9

x_eval=
[[ 0.25]]

y_eval=
[[[0 0 0 0]
  [0 0 0 0]]]
Package: easythreads
#项目名:easythreads使用threading实现了一个线程池,使用方法很是简单,我们只需要把执行的函数塞入线程池里就可以了.#Usage:```from easythreads import AsyncWorkerdef task_a():print 'a..'def task_b(a,b,c):print 'b...'pool = AsyncWorker(10)pool.append(task_a)pool.append(task_b,1,2,3)pool.shutdown(block=False)```
Package: easy-thumbnails-admin
[![Build Status](https://travis-ci.org/Apkawa/django-multitype-file-field.svg?branch=master)](https://travis-ci.org/Apkawa/easy-thumbnails-admin)[![Requirements Status](https://requires.io/github/Apkawa/django-multitype-file-field/requirements.svg?branch=master)](https://requires.io/github/Apkawa/easy-thumbnails-admin/requirements/?branch=master)[![PyPI](https://img.shields.io/pypi/pyversions/easy-thumbnails-admin.svg)]()# Install```bashpip install easy-thumbnails-admin```1. Append into `INSTALLED_APPS` settings before `easy-thumbnails` like:```pythonINSTALLED_APPS = [# ...'easy_thumbnails_admin','easy_thumbnails','easy_thumbnails.optimize',# ...]```2. Configure `THUMBNAIL_ALIASES` like here. Add `admin`.`help_text` if needed.```pythonTHUMBNAIL_ALIASES = {'example_app.Article.poster': {'small': {'size': (100, 100), 'crop': 'smart',# Here there'admin': {"help_text": "Small thumbnail, showed on article list"},},'medium': {'size': (300, 200), 'crop': 'smart',# And here'admin': {'help_text': 'A generic thumbnail'}}}}```## UsageThis library patched all fields with `ThumbnailField`.1. Click on preview or link at field in admin![Build Status](docs/screenshots/initial.png)2. Aliases list![Build Status](docs/screenshots/thumbnail_list.png)3. Edit alias![Build Status](docs/screenshots/edit_thumbnail_alias.png)# Contribute## Run examples```bash# virtualenvwrappermkvirtualenv etaworkon eta./tests/manage.py migrate./tests/manage.py runserver```## frontend```bashyarn # or npmyarn watchyarn build # for release```
Package: easy-thumbnails-rest
Easy Thumbnails RestEasy Thumbnails Fields for Django Rest API FrameworkInstallationpip install easy-thumbnails-restTested on Django 2.2, 3.1, 3.2UsageThis package is an extension foreasy-thumbnails.Please make sure to haveTHUMBNAIL_ALIASESdefined insettings.py.
If not added, please checkEasy Thumbnails Docsto add it.To use the serializer fields provided by this package you need to have your image fields defined as provided here:easy-thumbnails fieldsExamplesettings.THUMBNAIL_ALIASESTHUMBNAIL_ALIASES={'':{'avatar':{'size':(50,50),'crop':True},},}FieldsThumbnailerSerializerThumbnailerListSerializerThumbnailerJSONSerializerThumbnailerSerializerYou can useThumbnailerSerializerto get image's predefined alias. You need to pass argumentaliaswith value as one of the aliases name defined inTHUMBNAIL_ALIASESExample:fromrest_frameworkimportserializersfromeasy_thumbnails_rest.serializersimportThumbnailerSerializerclassExampleSerializer(serializers.ModelSerializer):image=ThumbnailerSerializer(alias='avatar')classMeta:model=ExampleModelfields='__all__'From the above example the fieldimagewill contain string value of alias image url.ThumbnailerListSerializerYou can useThumbnailerListSerializerto get image's predefined alias image list. You need to pass argumentaliaswith value as one of the target's inTHUMBNAIL_ALIASES.If you don't understand where to find target, please see the structure of theTHUMBNAIL_ALIASESinEasy Thumbnails DocsExample:fromrest_frameworkimportserializersfromeasy_thumbnails_rest.serializersimportThumbnailerListSerializerclassExampleSerializer(serializers.ModelSerializer):image=ThumbnailerListSerializer(alias='target')classMeta:model=ExampleModelfields='__all__'From the above example the fieldimagewill contain list of all aliased image urls under the given target.ThumbnailerJSONSerializerYou can useThumbnailerJSONSerializerto get image's predefined alias image list. You need to pass argumentaliaswith value as one of the target's inTHUMBNAIL_ALIASES.If you don't understand where to find target, please see the structure of theTHUMBNAIL_ALIASESinEasy Thumbnails DocsExample:fromrest_frameworkimportserializersfromeasy_thumbnails_rest.serializersimportThumbnailerJSONSerializerclassExampleSerializer(serializers.ModelSerializer):image=ThumbnailerJSONSerializer(alias='target')classMeta:model=ExampleModelfields='__all__'From the above example the fieldimagewill contain list of key-value pair where key's are the alias under the given target and values are the respective image url.
Package: easyticket-qrgen
easyticket_qrgenPackage for creating QR Codes for the event ticket systemeasyticket.InstallationUsepip install easyticket_qrgen. Works only with python >= 3.6.DocumentationFind the documentation onreadthedocs, also including a small example.LicensePublished under theApache License, Version 2.0.Third-Party PackagesAttribution to the following libraries:pyqrcodePillow
Package: easytime
# easytimeThe simplest python time library ever written.## Why a Time Library?Handling times in python is painful. This library makes it not painful. That is
the reason.I know there are plenty of ways to handle this sort of thing, but this is my
way, and I enjoy it.Maybe you will too.## UsageUsingeasytimeis, well, …easy. There are only a couple things you need
to know:Always use UTC when handling time in your program. The best way to do this
is via theeasytime.utcnow()method, for instance:`python >>> from easytime import easytime >>> now = easytime.utcnow() >>> now easytime(2012, 11, 18, 16, 53, 30, 316026) `Only use timezones to display time data to users!This means that you
should keep your time in UTC always, until the very last second when you have
to display time to your user. To do this, you can use theeasytime.convert()method:`python >>> from easytime import easytime >>> now = easytime.utcnow() >>> now easytime(2012, 11, 19, 0, 56, 30, 847490) >>>now.convert('America/Los_Angeles')# Convert the time to LA time. datetime.datetime(2012, 11, 18, 16, 56, 30, 847490,tzinfo=<DstTzInfo'America/Los_Angeles'PST-1day, 16:00:00 STD>) >>>now.convert('Europe/Berlin')# Convert the time to Berlin time. datetime.datetime(2012, 11, 19, 1, 56, 30, 847490,tzinfo=<DstTzInfo'Europe/Berlin' CET+1:00:00 STD>) `If you follow the above two rules, you will no longer hate your life each
time you need to use timezones.## Detailseasytimeis really nothing more than a simple wrapper around python’s built-indatetime.datetimetype. Everyeasytimeobject is adatetimeobject, with
two exceptions:You have access to a new method,convert, which allows you to specify atimezone (the full list is available here:http://en.wikipedia.org/wiki/List_of_tz_database_time_zones) to convert your
datetime into. This is how you can display the time in different local
timezones.You are forced to use UTC. Even if you try to generate a local time, eg:datetime.datetime.now(), you’ll get back UTC, becauseeasytimeoverrides
it.You can do anything witheasytimethat you can do with a normaldatetime.datetimeobject, so be sure to read the official [Python
datetime](http://docs.python.org/2/library/datetime.html) documentation if you
need to do anything more advanced.
Package: easytimer
AboutA module for easily timing sections of code.Installationpip install easytimerUsagetick() starts a new section timer and ends the previous section timertock() prints out the runtime for each section so farCalling tick() multiple times with the same name adds to a running total for that nameExamplesfromeasytimerimporttick,tockimporttime# Example with unnamed sectionstick()time.sleep(0.1)tick()time.sleep(0.2)tick()time.sleep(0.1)--- Timer Results ---
tick 1 - 0.10s
tick 2 - 0.20s
tick 3 - 0.10s
---------------------# Example with named sectionstick('Setup')time.sleep(0.1)tick('Multi')time.sleep(0.2)tick('Intermediate')time.sleep(0.3)tick('Multi')time.sleep(0.4)tock()--- Timer Results ---
Setup        - 0.10s
Multi        - 0.60s
Intermediate - 0.30s
---------------------# Example with looptick("Part A")time.sleep(0.1)foriinrange(10):tick('Part B1')time.sleep(0.02)tick('Part B2')time.sleep(0.03)tick("Part C")time.sleep(0.4)tock()--- Timer Results ---
Part A  - 0.10s
Part B1 - 0.20s
Part B2 - 0.30s
Part C  - 0.40s
---------------------
Package: easy-timer
Super Simple Command-line Countdown TimerFeaturesAre you sick of fancy timer applications?Easy Timer provides you a minimalist countdown timer inside your command-line terminal.When you turn on the spoken countdown, the remaining time is periodically notified by voice.
This is useful for studying or working in time without watching a computer screen.Dependenciessaycommand or its alternatives (for spoken countdown)Python: 2.6 / 2.7 / 3.2 / 3.3 / 3.4 / 3.5sixmog-commonsQuickstartYou can now try Easy Timer by typing two command lines.pip install easy-timer
easy-timer -s 0:10Installationpipcommand may needsudoOperationCommandInstallpip installeasy-timerUpgradepip install--upgradeeasy-timerUninstallpip uninstalleasy-timerCheck installed versioneasy-timer--versionHelpeasy-timer-hExamplesSet a 10-minute timer.easy-timer 10Set an 80-minute (= 1 hour 20 minutes) timer.easy-timer 80Set a 90-second (= 1 minute 30 seconds) timer.easy-timer 1:30Enable the spoken countdown.easy-timer -s 10
easy-timer --say 10Specifysayoptions.easy-timer -s --say-cmd='say -v Karen' 1
easy-timer -s --say-cmd='say -v "Pipe Organ"' 0:10Set the language to Japanese.easy-timer -s --say-cmd='say -v Kyoko' --lang=ja 1
LANG=ja_JP.UTF-8 easy-timer -s --say-cmd='say -v Kyoko' 1Run a timer withcaffeinatecommand to prevent the system from sleeping.caffeinate -d easy-timer -s 80When does the timer speak?By default, the timer speaks on the following timings.Every 10 minutesLast 5 minites and 1 miniteEach of final 10 seconds (countdown)
Package: easy-time-tracker
BRANCHSTATUSmaindevelopeasy-time-trackerA simple work time tracker CLIEnvironmental VariablesSet these variables if you want to save your data somewhere else.VARIABLEUSEDEFAULT-FILE-NAMEEASY_TIME_TRACKER_CURRENT_RECORDSet the location of where to store this datacurrent_record.jsonEASY_TIME_TRACKER_COMPLETED_RECORDSSet the location of where to store this datacompleted_records.jsonEASY_TIME_TRACKER_PROJECT_LISTSet the location of where to store this dataprojects.txtNotesIt runs as a linux style cli command use -h, or --help to get help(venv) user@main-pc:~/some-directory$ ett -h
usage: ett [-h] {start,stop,output,gui} ...

easy-time-tracker

optional arguments:
  -h, --help            show this help message and exit

commands:
  Valid commands: a single command is required

  {start,stop,output,gui}
                        CLI Help
    start               Start the clock
    stop                Stop the clock
    output              Output completed records
    gui                 Start the GUIExample help for start, people is optional it is to include names of people that were in a meeting.(venv) user@main-pc:~/some-directory$ ett start -h
usage: ett start [-h] [-d DESCRIPTION] [-p PEOPLE [PEOPLE ...]] [--project PROJECT]

optional arguments:
  -h, --help            show this help message and exit
  -d DESCRIPTION, --description DESCRIPTION
                        Description of the time
  -p PEOPLE [PEOPLE ...], --people PEOPLE [PEOPLE ...]
                        List of people
  --project PROJECT     Project
Package: easy-to-cython
package code to installpython setup.py sdistshowtree .use twine upload to pypipip install twinetwine upload dist/*install packagepython setup.py installbuild cython packageeasy-to-python-build build_extremove origin files, replace cython fileseasy-to-python-releasereference resourceshttps://blog.csdn.net/u012419550/article/details/105967006/https://blog.csdn.net/lslxdx/article/details/73131664
Package: easytoken
easytokeneasytokeneasytoken is an independent Open Source, Natural Language Processing python library which implements a easytoken to create token from Both Sentence and Paragraph. It will also return the POS of the corresponding token .Next in Line:This is still in alpha stage so we are planning to add few more feature as  cleaning which will be added by 2020. We are also developing a other Language Processing algorithm for our library.Naming:The name is just it's purpose _(^^)/Installation and Implementation:To install easytoken follow the steps:WindowsInstall pip:$ python get-pip.pyInstall via pip:$ pip install easytokenFor upgrade:$ pip install --upgrade easytokenLinux/UnixInstall pip:$ python3 get-pip.pyInstall via pip:$ python3 -m pip install easytokenFor upgrade:$ python3 -m pip install --upgrade easytokenAfter Download the module ,:$ python
>>> import nltk
>>> nltk.download("all")Implementation:>>>fromeasytoken.easytokenimportWordeasytoken>>>fromeasytoken.blobimportPartsofspeech>>>Wordeasytoken.tokenize(Wordeasytoken,text="Hello all , I'll be a good lover for you.")>>>print(Partsofspeech.pos("Hello all , I'll be in love with you."))Developer Info:Author: Sayan MondalAuthor-email:sayanmondal2098@gmail.comTeam: Bread and CodeRequired Libraries:'nltk',
      're',
      'itertools',
      'os',
      'sys',
      'string'LISCENSE:MIT License

Copyright (c) 2020 Sayan Mondal | Bread-and-Code

Permission 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.