Saravanan666/pypi-org huggingface dataset:
Package: edit-distance
edit_distancePython module for computing edit distances and alignments between sequences.I needed a way to compute edit distances between sequences in Python.  I wasn't
able to find any appropriate libraries that do this so I wrote my own.  There
appear to be numerous edit distance libraries available for computing edit
distances between two strings, but not between two sequences.This is written entirely in Python.  This implementation could likely be
optimized to be faster within Python.  And could probably be much faster if
implemented in C.The library API is modeled after difflib.SequenceMatcher.  This is very similar
to difflib, except that this module computes edit distance (Levenshtein
distance) rather than the Ratcliff and Oberhelp method that Python's difflib
uses. difflib "does not yield minimal edit sequences, but does tend to yield
matches that 'look right' to people."If you find this library useful or have any suggestions, please send me a
message.Installing & uninstallingThe easiest way to install is using pip:pip install edit_distanceAlternatively you can clone this git repo and install using distutils:git clone git@github.com:belambert/edit_distance.git
cd edit_distance
python setup.py installTo uninstall with pip:pip uninstall edit_distanceAPI usageTo see examples of usage, view thedifflib documentation.
Additional API-level documentation is available onReadTheDocsThis requires Python 2.7+ since it uses argparse for the command line
interface.  The rest of the code should be OK with earlier versions of PythonExample API usage:importedit_distanceref=[1,2,3,4]hyp=[1,2,4,5,6]sm=edit_distance.SequenceMatcher(a=ref,b=hyp)sm.get_opcodes()sm.ratio()sm.get_matching_blocks()Differences from difflibIn addition to theSequenceMatchermethods,distance()andmatches()methods
are provided which compute the edit distance and the number of matches.sm.distance()sm.matches()Even if the alignment of the two sequences is identical todifflib,get_opcodes()andget_matching_blocks()may return slightly different
sequences.  The opcodes returned by this library represent individual character
operations, and thus should never span two or more characters.It's also possible to compute the maximum number of matches rather than the
minimum number of edits:sm=edit_distance.SequenceMatcher(a=ref,b=hyp,action_function=edit_distance.highest_match_action)NotesThis doesn't implement the 'junk' matching features in difflib.HackingTo run unit tests:python -m unittestTo deploy...Contributing and code of conductFor contributions, it's best to Github issues and pull requests. Proper
testing and documentation required.Code of conduct is expected to be reasonable, especially as specified by
theContributor Covenant
Package: editdistance-s
editdistance-sFast implementation of the edit distance (Levenshtein distance).forkthis is a fork ofeditdistancewith the following changes:__hash__based support is removed as it makes incorrect assumptionsonly strings (typestr) are supportedcffi replaces cython (soabi3wheels can be produced)the module is renamed toeditdistance_sthe public api does not containeval(onlydistance)installationpipinstalleditdistance-swheels should be available on pypi in most casesapidistance(s1: str, s2: str) -> intcompute the edit distance>>>importeditdistance_s>>>editdistance_s.distance('hello','hell☃')1
Package: editglancer
editglancerTools for visualizing neuron edits in neuroglancer from Python scripts.Documentation:https://caveconnectome.github.io/editglancerGitHub:https://github.com/CAVEconnectome/editglancerPyPI:https://pypi.org/project/editglancer/Free software: MITFeaturesAllows for easy creation of neuroglancer links which display a neuron and annotations for the edits which have been performed on itCreditsThis code was adapted from code originally written by Casey Schneider-Mizell (@ceesem) at the
Allen Institute for Brain Science.This package was created withCookiecutterand thebdpedigo/cookiecutter-pypackageproject template (which builds on several previous versions).
Package: edith-pyaf
EDITHDescriptionEDITH (PYAF) stands for Exact Diagonalization of Interacting Time-dependent Hamiltonians (in PYthon And Fortran). For now it is a collection of python modules used to calculate the spectral and dynamical properties of  many-body Hamiltonians describing quantum systems on a lattice. One long-term goal is to rewrite the core diagonalization routines in Fortran to make them faster and lighter. Currently, EDITH supports the exact diagonalization of the following models:Ising model in a transverse fieldHeisenberg model in a staggered fieldHubbard modelDipolar Aubry-Andre modelInstallationCurrently EDITH can be downloaded from PyPI via pip, e.g. withpython3 -m pip install edith-pyafAlternatively, you can download the source from the repository (it is just a collection of python modules). The module can then be executed directly.UsageTo use EDITH after installation:Copy the template input file:
python3 edith_pyaf.initialize.pyConfigure the input file (input.dat) with the parameters of your system.Execute EDITH:
python3 edith_pyaf.run.pySupportFor support, please contactmoligninip@gmail.com.RoadmapShort term goals:Python packaging.Simple GUI.Medium term goals:Extending code to non-Hermitian systems.Extending diagonalization to Liouvillians (open quantum systems).Extending code to time-dependent Hamiltonians.Long term goals:Rewriting core in Fortran.Enabling execution on HPC facilities with MPI.ContributingIf you would like to contribute to this project, please let me know!Authors and acknowledgmentPaolo Molignini (University of Stockholm)LicenseGPLv3 license.Project statusOngoing
Package: editini
This was created because the author found it difficult to use “configparser”.
“edit ini” is partially compatible with “configparser”.
You can create, edit and delete “[section]” and “option = value” for files with “.ini” extension.日本語版はこちらですLicenseCopyright (c) 2020 Penguin0093
Released under the MIT licensehttps://opensource.org/licenses/mit-license.phpHow to use it.The basic style is:iniio.iopen("File name","Open mode","section","option","value")First argument: File NameSecond argument: mode (Write : w ,Read : r ,Delete : d)Third argument: section name ([] in)Fourth argument: option name (left of “=”)Fifth argument: value (to the right of “=”)1.Importfrom editini Import iniio2.WritingCodeiniio.iopen("config.ini","w","section","option","value")Result config.ini[section]
option = valueIf the “value” is empty, “” (empty character) is substituted3.Readinginiio.iopen(" .ini","r","section","option")The return value is the read result.config.ini[section]
option = valueCodeprint(iniio.iopen("config.ini","r","section","option")+"\n")
print(iniio.iopen("config.ini","r","section")+"\n")
print(iniio.iopen("config.ini","r")+"\n")Resultvalue

option = value

[section]
option = value4.Deleteiniio.iopen(" .ini","d","section","option")config.ini[section]
option = valueCode #1iniio.iopen("config.ini","d","section","option")Result #1 config.ini[section]Code #2iniio.iopen("config.ini","d","section")Result #2 config.ini(Empty)Click here for details (Japanese)
Package: edition1.twitterportletfix
ContentsIntroductionInstallationUsageCaveatsDisclaimerContributorsChangelogIntroductionThis package is intended to be a quick (and slightly dirty) fix for
the problem that the latest release ofcollective.twitterportlet(version 0.10) does not work with the Twitter API v1.1.By installing this package in your Plone site, you get an additional
configlet. In this configlet you can (or rather: must) configure your
Twitter tokens. This package then overrides the renderer of
the Twitter portlet to use these tokens for the Twitter API calls.InstallationTo enable this package in a buildout based instance, add the following
to your buildout configuration:[instance]
...
eggs =
    ...
    edition1.twitterportletfixAfter you have rerun thebin/buildoutand restarted your instance,
this product should be available for installation.Go to the “Site Setup” page in your Plone site.Click on the “Add-ons” link.Install the “Twitter portlet API v1.1 fix” product.UsageOnce installed, you need to configure the keys.First you’ll have to create a Twitter application.Go tohttps://dev.twitter.com/and log in with your Twitter account.Go to theMy applicationspage.Create a new application.Immediately create your access token (so your application can
access your account).Go to the “settings” tab and keep this window open because we’ll be
copying information to your Plone site in a minute.Now go back to your Plone site.Go to the “Site Setup” page in your Plone site.Click on the “Twitter settings” link.Copy all the required values from the Twitter application page.And you are done. That is, assuming you already had a Twitter portlet
in your site, it should now work again.CaveatsIn the Twitter portlet from collective.twitterportlet, you can
configure from which user the tweets should be shown. Although this
username is still used for the link to the Twitter profile page, it isnotused to determine who’s tweets to show. This is determined
solely by the access token (and secret) that you configured.Furthermore, you can only configureoneaccount with this fix. So
if you have more than one Twitter portlets and want to show tweets
from different accounts, you are out of luck.DisclaimerThis package has only been tested on Plone 4.1.6 (Python 2.6) and
Plone 4.3 (Python 2.7) since those were the only version we needed this
fix for. However, it probably also works on other versions of Plone.ContributorsMark van Lent (markvl) Edition1Changelog1.0 (2013-06-13)Package created using templer.
[markvl]
Package: editjsoninzip
Extract ZIP file. Edit JSON to update with new value of the key. Compress all files to tne new ZIP file.. image::https://img.shields.io/codecov/c/github/codecov/example-python.svgPython script to extract ZIP file utdate JOSN key/value and create new ZIP file.zipper.py- Script contains four functions.read_zip_file,update_json_file,get_all_file_pathsandprepareZipFile.read_zip_file- This function prints content of ZIP file and extract in the same folder.update_json_file- This function opens JSON file and edit defined key to the defined value.get_all_file_paths- This function creates list of the all files from argument PATH.prepareZipFile- This function will useget_all_file_pathsfunction to get all files PATH and then archive them to the other file.=====
UsageRequirements:
Python3.4 withsimplejsonandargparselibrary installed:Syntax:.. code-block:: bash# ./zipper.py
usage: zipper.py [-h] -zin ZIPINPUT -zout ZIPTOOUT -jsonf JSONFILE
zipper.py: error: the following arguments are required: -zin, -zout, -jsonf..
Package: editmenu
Install the package using pippip install editmenuImporteditmenumodule fromeditmenupackage>>>from editmenu import editmenuUseEditMenuclass to create an instance with a dictionary containing required values to be displayed and edited.>>>mymenu = editmenu.EditMenu({"Name:"Monty","LastName":"Python"})Usemenu()member function to display the menu and prompt the user to make required editing.>>>mymenu.menu()NotesGrey color is used as the font color for the values and updated values will be of white. This is for distinguishing changes.As of now editmenu package is only tested on ubuntu terminal. If you face any issue on windows platform, please mention the issue on github page this package.EditMenu class, accepts only dictionary containing key:value pairs, where both key and value must be of string type.menu() function returns a dictionary with updated values.
Package: edit-operation
edit_operationThere are already several Python packages that implement levenshtein distance, which are writtend by C or C++ to improve the efficiency. In certain occasions, besides the edit distance, the edit operations are also needed.python-Levenshteinhas theeditopsfunction but doesn't support transpose operations. So here comes the project,editdistpysupports the function of edit operations underDamerau–Levenshtein distance.Installpipinstall-Uedit_operationUsageThe package supports distance and edit_operations two functions. They have the same parametersstring astring bmax_distance: Only return right result under max_distance.is_damerau: Whether support transpose operation or not.distancefromedit_operationimportlevenshteina='absolute'b='absiluti'dis=levenshtein.distance(a,b)return -1 if the actual distance is beyond max_distance, by default max_distance is -1, which means no max_distance limit.edit_operationsfromedit_operationimportlevenshteina='absolute'b='bsiluti'operations=levenshtein.edit_operations(a,b,is_damerau=True)"""[{'operation': 'replace', 'location': 7, 'char_x': 'e', 'char_y': 'i'},{'operation': 'delete', 'location': 0, 'char_x': '@', 'char_y': 'a'}]"""@ character means the beginning of the input string. Return empty list if the actual distance is beyond max_distance.
Package: editor
🖋 editor - Open a text editor 🖋editoropens the default text editor or your favorite editor to edit an existing file,
a new file, or a tempfile, blocks while the user edits text, then returns the contents
of the file.You can pass a parametereditor=to specify an editor or leave it empty, in which
case the editor is:The contents of the environment variableVISUAL, if it's set, otherwise:The the contents of the environment variableEDITOR, if it's set, otherwise:The string'Notepad', if the code is running on Windows, otherwise:The string'vim'Example 1: Using a temporary fileIf no filename is provided, a temporary file gets edited, and its contents
returned.import editor

comments = editor.editor(text='Comments here\n\n')
# Pop up the default editor with a tempfile containing "Comments here",
# then return the contents and delete the tempfile.Example 2: Using a named fileIf a filename is provided, then that file gets edited.import os

FILE = 'file.txt'
assert not os.path.exists(FILE)

comments = editor.editor(text=MESSAGE, filename=FILE)
# Pop up an editor for a new FILE containing MESSAGE, user edits
# This file is saved when the user exits the editor.

assert os.path.exists(FILE)

# You can edit an existing file too, and select your own editor.
comments2 = editor.editor(filename=FILE, editor='emacs -nw')API Documentation
Package: editorconfig-checker
editorconfig-checker.pythonA Python wrapper to provide a pip-installableeditorconfig-checkerbinary.Internally, this package provides a convenient way to download the pre-builteditorconfig-checkerbinary for your particular platform.InstallationFrom source code:pip install .FromPyPI:pip install editorconfig-checkerUsageAfter installation, theecbinary should be available in your environment (orec.exeon Windows):ec -versionUsage with the pre-commit git hooks frameworkeditorconfig-checkercan be included as a hook forpre-commit.
The easiest way to get started is to add this configuration to your.pre-commit-config.yaml:repos:-repo:https://github.com/editorconfig-checker/editorconfig-checker.pythonrev:''# pick a git hash / tag to point tohooks:-id:editorconfig-checkeralias:ecThe above hook is a python wrapper that automatically downloads and installseditorconfig-checkerbinary.
If you manage your tools in some other way, for example, viaASDF,
you may want to use an alternative pre-commit hook that assumes thatecbinary executable is already available on the system path:repos:-repo:https://github.com/editorconfig-checker/editorconfig-checker.pythonrev:''# pick a git hash / tag to point tohooks:-id:editorconfig-checker-systemalias:ecSee thepre-commit docsto check how to customize this configuration.
Package: editorium
EditoriumcreatesQteditors for objects or functions via reflection.Object fields or method parameters are reflected and an editor generated for each field or parameter.
For instance anintfield is generated as aQSpinBoxeditor.Please see theStringCoercionproject for the command-line equivalent.FeaturesGenerate editor for field/typeGenerate editors for objectGenerate editors for function callRead fields from object to editorsWrite fields from editors into objectSupports custom editors and extensionsDefault editorsTypeAbstractEditorQWidgetintIntEditorQSpinBoxfloatFloatEditorQLineEditstrStringEditorQLineEditOptional[T][1]NullableEditorQCheckBox& Editor(T)boolBoolEditorQCheckBoxEnumAbstractEnumEditor[3]QComboBoxFlagsFlagsEditorQCheckBox[]List[T]ListTEditorEditor(T)`[]`Filename[2]AbstractBrowserEditorQLineEdit&QToolButton[1]Optional[T]is aPEP-484annotation supplied byPython’stypinglibrary and indicates that a value may beNone.[2]Filenameis aPEP-484-style annotation provided by theMHelperlibrary and provides hints on an acceptable filename e.g.Filename[“.txt”, EMode.SAVE].[3]TheStringCoercionlibrary is queried to obtain the list of options for types such asEnum, so if you have registered your list providers withStringCoercionyou will not need to do so again forEditorium.
Package: editpyxl
editpyxleditpyxl is a Python library to non-destructively edit Excel 2010 xlsx/xlsm files.The purpose is to edit excel files without otherwise modifying the excel document, to allow for efficient and quick
edits of an excel file.Many thanks to openpyxl for their hard work in developing a tool to read and writing excel files.https://bitbucket.org/ericgazoni/openpyxlOfficial documentationThe homepage ishttp://editpyxl.readthedocs.orgYou will find:every installation methodsthe official documentationcode examplesinstructions for contributing0.1.10Updated MutableSet import for python 3.10 compatibility0.1.9Force closing of zip file before removing folder, to prevent PermissionError: [WinError 32] error.0.1.8Added worksheet function clear_formula_values.  This deletes preset values in formulas to force recalculation, to
solve issue in Excel 2016 not respecting force recalc flags or the absence of the calcChain.xml0.1.5Updated lxml writing for python30.1.4Updated uuid1().get_hex() -> uuid1().hex0.1.3Added wb[‘sheetname’] notation.Added wb.sheetnames0.1.2Added ws[‘A1’] notation.0.1.1Added ws.dump() to dump all cell values.0.1.0Added wb.hide_sheet() / wb.unhide_sheet()0.0.9 (unreleased)Fixed filename parsing.0.0.8 (unreleased)Added function for updating formulas.0.0.7 (unreleased)Remove formulas from cells when setting value and remove calcChain.xml.0.0.1 (unreleased)Initial ReleaseInitial project released in Alpha.
Package: editquality
# Edit qualityThis library provides a set of utilities for building and maintaining
edit quality prediction models for Wikipedia and other Wikimedia projects.Repository:https://github.com/wikimedia/editqualityDocumentation:https://editquality.readthedocs.ioLicense:MIT## InstallationFirst, follow the [installation instructions for revscoring](https://github.com/wikimedia/revscoring).At the command line:` pip install editquality `This should will install the library and CLI tool in your PATH. To check it out
try invoking the CLI:` editquality-h`## Local Development
First, make sure you havepython3,virtualenv, andgit-lfsinstalled and configured on your system.  Note thatgit-lfswill need you to rungit lfs installonce before it works.You can clone the project repo and work from the
root directory as follows:` git clonehttps://github.com/wikimedia/editquality.gitcd editquality virtualenv-ppython3 venv source venv/bin/activate python setup.py install `Now you can invoke the utility cli:` ./utility-h`## Author
* Aaron Halfaker –https://github.com/halfak* Amir Sarabadani –https://github.com/Ladsgroup
Package: editrcs
EditRCS is a library to with functions to read RCS files into Python
classes Rcs and RcsDelta, and to manipulate them and write them to a new
RCS file.It is intended to be used to manipulate RCS files in ways that the RCS tools
don’t support, but it requires some knowledge of how RCS files work rather
than being a polished command-line tool.See rcsfile(5) for RCS file format definition.Example scripts in the examples directory include:checkout_start: print the earliest version of a RCS file to standard output.rcs_join: produce an RCS file with the history of one file followed by that
of a second file.rename_user: replace an old user name with a new one for each revision
checked in by that user.pivot_branch: given a branch head and a first-level branch head off that,
swap the sub-branch and the main branch.Limitations: I’m going with the 5.9.2 version of the manpage, and ignoring
the newphrase in the earlier (e.g. 5.6) specifications for now.
It is written to be simple rather than optimised for speed or space.INSTALLATIONTo install as a Python module run:python-mpipinstall/path/to/editrcs
Package: editshare-flow-api
EditShare Python APIFLOW is a media management platform that supports and manages all types of media content
whether located on premise, in the cloud or as a hybrid implementation.This is a python module that wraps EditShare's REST apisEach service is represented as a class within the moduleFor more information seehttps://developers.editshare.com/For more information our our products seehttps://editshare.com/
Package: edittag
Copyright (c) 2009-2012 Brant C. Faircloth. All rights reserved.SeeLICENSE.mdfor standard computer code.Sequence tags available fromhttps://github.com/faircloth-lab/edittag/downloadsare licensed underCreative Commons Attribution 3.0 United States License.Descriptionedittag is a software collection for designing sets of edit metric
sequence tags, checking sequence tags for conformation to the edit
metric, and integrating sequence tags to platform-specific sequencing
adapters and PCR primers. edittag differs from other approaches:edittag generates arbitrary lengths of edit-metric sequence tags in
reasonable time frames using multiprocessingedittag produces edit metric sequence tag sets conform to the edit
distance selectededittag used primer3 to integrate sequence tags to PCR primersWe provide several large sets of edit metric sequence tags designed
using edittag in the following formats:text- this file is in an appropriate format forcheck_levenshtien_distance.pycsvsqlite databaseDocumentationYou can find documentation here:http://faircloth-lab.github.com/edittag/CitationFaircloth BC, Glenn TC.  Large sets of edit-metric sequence identification
tags to facilitate large-scale multiplexing of reads from massively
parallel sequencing.http://precedings.nature.com/documents/5672/version/1DependenciesPython 2.7.x(should work on 2.6.x)numpy(tested with 1.5.1)py-levenshtein[optional - strongly recommended]mod-primer3[optional - needed for amplicon tagging]nose[optional - for unittests]Availabilitytar.gzrepositoryInstallationeasy_installeasy_install edittagtar.gzwget package.tar.gz
tar -xzf package.tar.gz
python setup.py installrepositorygit clone git://github.com/faircloth-lab/edittag.git edittagoptional package (py-levenshtein)wget http://pylevenshtein.googlecode.com/files/python-Levenshtein-0.10.1.tar.bz2
tar -xzvf python-Levenshtein-0.10.1.tar.bz2
python setup.py installoptional package (primer3)If you wish to design primers incorporating edit metric sequence tags, you
need to first install a modified version of primer3::git clone git://github.com/baddna/mod-primer3.git
cd mod-primer3/src
makeEnsure that you move the binaries from mod-primer3 to a location in your
path (move at leastprimer3-longandprimer3_configinto identical
directories in your path).Testing# Testing requires numpy and nose
import edittag
edittag.test()Using edittag# generate some tags
% design_edit_metric_tags.py --tag-length=6 --edit-distance=3 \
    --no-polybase --gc --comp --min-and-greater --output tmp/tags.txt

# validate the 6 nucleotide, edit distance 3 tag set
% validate_edit_metric_tags.py
    --input=tmp/tags.txt
    --section='6nt ed3'
    --verbose

# add those tags to a primer set
% add_tags_to_primers.py --left-primer=GTTATGCATGAACGTAATGCTC
    --right-primer=CGCGCATGGTGGATTCACAATCC \
    --input tmp/tags.txt --section='6nt ed3'
    --sort=pair_hairpin_either,pair_penalty,cycles \
    --remove-common --keep-database \
    --output tmp/trnH_tagged_with_10_nt_ed_5_tags.csv