Saravanan666/pypi-org huggingface dataset:
Package: ng.skin.dreambot
[name:недописано]* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.7- Depends fixed* Thu Jun 26 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.6- Style enhanced* Thu Feb 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.5- Main page and some services for it added* Tue Feb 19 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.4- Compatibility with all browsers achived;* Wed Feb 13 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.3- Styles and templates are refactored to agree users expectations;* Wed Feb 06 2008 Andrey Orlov <dbdt@dreambot.ru>- IE specific style added- Some style bugs fixed* Sat Feb 02 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.1- first official release
Package: ng.skin.eaglenest
[name:недописано]* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.5- Depends fixed;* Thu Jun 26 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.4- Style enhanced;* Thu Feb 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.3- Main page and some services for it added* Tue Feb 19 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.2- All browsers compatibility achived* Sun Feb 17 2008 Andrey Orlov <dbdt@dreambot.ru>  0.0.1- first official release
Package: ng.skin.greenpsy
[name:недописано]* Tue Apr 07 2009 Andrey Orlov <dbdt@dreambot.ru> 0.1.1- Calling crosswiki possibility added into dictionary itemconstructor form;- Author and date fields collor changed;- Link to main page added to Logotype;- RubricList viewlet disabled;- Form colors changed;- Special widget to enter tagannotation added;- Google Adds added;- IE compatibility enchanced;- Cloud style changed;* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.1.0- Rubric cloud pprototype added- Breadcrumb enchanced- A few components moved into base skin for common use;* Sun Nov 30 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.2- A few design enchancements.* Tue Oct 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.1- first official release
Package: ng.skin.neural
[name:недописано]* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 2.0.2- Depends fixed* Tue Oct 21 2008 Andrey Orlov <dbdt@dreambot.ru> 2.0.1- Main page added* Mon Jun 30 2008 Andrey Orlov <dbdt@dreambot.ru> 2.0.0- Skin fully rewrited. Skin are based on ng.skin.base now.* Wed Jan 30 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.6- Auto annotation added into abstract* Mon Jan 28 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.5- Print view added* Thu Jan 24 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.4- Editor menu added- Location on diferrent part source code changed* Wed Jan 23 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.3- Link on rss feed added- Common edit form added* Mon Jan 21 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.2- Multiform prototype added;- Demo-Logotype added;- Logotype got from IMain component now;- Site does not faulted on empty dictionry any more;- Style of bottom link bar fixed;* Sun Jan 13 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.1- first official release
Package: ng.skin.npclider
[name:недописано]* Wed Apr 29 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.5- The main page fixed: news informer and damaged margin restored;* Tue Apr 07 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.4- The main page changed;* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.3- Depends fixed* Sun Jan 18 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.2- Release of second developmet stage* Fri Dec 05 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.1- first official release
Package: ng.skin.zopelada
[name:недописано]* Thu Feb 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.5- Depends fixed* Thu Jun 26 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.4- Skin enhanced* Thu Feb 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.3- Main page and some services for it added* Tue Feb 19 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.2- All browsers compatibility achivement* Thu Feb 14 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.1- first official release
Package: ngslib
ngslib current release: ngslib 1.1.19Wiki page moved toGitHub.Requirementnumpyscientific computationpysam(>0.8.2) SAM/BAM file manipulationargparse(required if Python2.6 is used)Tested onPython 2.6.*(64-bit)Python 2.7.*(64-bit)CentOS 6.4Fedora 17RedHat 5.5Ubuntu 12.04(python-devandlibpng-devare required)InstallationFrom PyPI:>>> pip install ngslib

or

>>> easy_install ngslibFrom source:>>> easy_install --editable  --build-directory . ngslib
>>> cd ngslib
>>> python setup.py installMajor modulesIO: Read various biological dataDB: Build DB for genomic data for fast query.Pipeline: Pipelines built using wrappers of commonly used tools.Bed: Genomic coordinates data format.BedList: A list of Bed instances.TwoBitFile: python module for retrieve fasta sequence from 2bit file.BigWigFile: python module for retrieve Wiggle region from BigWig file.mFile: uniform interface for input types including regular file, sys.stdin/stdout and StringFile.Usage>>> import ngslib
>>> for tbed in ngslib.IO.BioReader('test.bed','bed'):
        print tbed>>> bwf = ngslib.DB('test.bw','bigwig')
>>> for wig in bwf.fetch('chr1',1000,2000):
        print wig
>>> depth = bwf.pileup('chr1',3000,4000)
>>> bwf.close()LicenseThis program is released underGPLv3license, seeLICENSEfor more detail.
Package: ngsqc
Add a short description here!Fast_QC: fastp, fastqc
bamqc: qualimap
vcfqc:Descriptionthree files type: fastq, bam and vcf, we need to use different tools to analysis the quality of files.
Fast_QC: it is used to analysis fastq file, include fastp and fastqc
bamqc: it is used to analysis bam file, include qualimap
vcfqc: it is used to analysis vcf file, include ourseves script.NoteThis project has been set up using PyScaffold 2.5.8. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: ngsscriptlibrary
NGSSCRIPTLIBRARYCollection of scripts to help with NGS data-analysis in the AMC.Prerequisiteszlib and BEDtools:sudoapt-getinstallzlib-dev
wgethttps://github.com/arq5x/bedtools2/releases/download/v2.27.0/bedtools-2.27.0.tar.gz
tar-zxvfbedtools-2.27.0.tar.gzcdbedtools2
make
sudocpbedtools2/bin/*/usr/local/binpython3-tkinter:sudoapt-getinstallpython3-tkInstallsudopipinstallngsscriplibrary
Package: ngs-smap
SMAP - Stack Mapping Anchor PointsSMAP delineate analyses read mapping distributions for GBS read mapping QC, defines read mapping polymorphisms within loci and across samples, and selects high quality loci across the sample set for downstream analyses.SMAP sliding-frames defines loci covering SNPs and/or structural variants to runSMAP haplotype-sites.SMAP compare identifies the overlap between two sets of loci (e.g. common loci across two runs of SMAP delineate).SMAP haplotype-sites performs read-backed haplotyping using a priori known polymorphic SNP sites, and creates "ShortHaps".
As a special case, SMAP haplotype-sites also captures GBS read mapping polymorphisms (here called "SMAPs") as a novel genetic diversity marker type, and integrates those with SNPs for ShortHap haplotyping.SMAP target-selection creates input files for SMAP design.SMAP design creates highly multiplex amplicon sequencing (HiPlex) primers and/or gRNA panels for genotyping CRISPR/Cas-induced or natural variation in a genepool.SMAP haplotype-window works independent of prior knowledge of polymorphisms, groups reads by locus, defines a window enclosed between two custom border sequences, and retains the entire corresponding DNA sequence as haplotype.SMAP effect-prediction is designed to provide biological interpretation of the haplotype call tables created by SMAP haplotype-window.SMAP grm creates a similarity/distance matrix by converting a SMAP haplotype-site genotype call table based on GBS or amplicon sequencing data.DocumentationAn extensive manual of the SMAP package can be found onRead the Docsincluding detailed explanations and illustrations.CitationIf you use SMAP, please cite "Schaumont et al., (2022). Stack Mapping Anchor Points (SMAP): a versatile suite of tools for read-backed haplotyping.https://doi.org/10.1101/2022.03.10.483555". Source code is available online athttps://gitlab.ilvo.be/genomics/smap-package/smap.LicenseSMAP is available under the GNU Affero General Public License v3.0 (GNU AGPLv3.Building and installingSMAP is being developed and tested on Linux.
Additionally, some dependencies are only developed on Linux.https://ngs-smap.readthedocs.io/en/latest/quickstart/quickstart.html#smapinstallationquickstartdescribes the installation guidelines.ContributionsThe Ghent University 2019 and 2021 Computational Biology class under supervision of prof. Dr. Peter Dawyndt and Felix Van der Jeugt has made contributions to reduce memory usage and to speed up haplotype calculations.LinksDocumentationSource CodeReport an issueGbprocesS: extraction of genomic inserts from NGS data for GBS experimentsSMAP on pypiILVO (Flanders Research Institute for Agriculture, Fisheries and Food)
Package: ngstream
ngstream: Streaming NGS reads from public databasesngstream is a small python (3.6+) library that makes it easy to stream NGS reads from the Sequence Read Archive (SRA), GA4GH, and (eventually) other public databases, given an accession number.DependenciesInteracting with SRA requiresNGSand the python language bindings to be installed. Follow the instructionshere. We recommend installing the SDK frombiocondaor HomeBrew (brew install sratookkit) and then installing the python library from GitHub.pysam is required for converting between BAM/CRAM (e.g. downloaded with Htsget) and SAM/FASTQ.Note that the SRA toolkit by default caches downloaded data -- if you mysteriously run out of hard disk space, this is probably why. Instructions on how to configure/disable caching arehere. If you want to change the cache location, use the following command (it won't return 0, but it still works):vdb-config--root-s/repository/user/main/public/root=<TARGET_DIR>Installationpip install ngstreamBuilding from sourceClone this repository and run:makeAccessing Reads from SRAimportngstream# Use the API to stream reads within your own python program.withngstream.open("SRR3618567",protocol="sra")asreader:forrecordinreader:# `record` is an `ngstream.api.Record` object if the data is# single-end, and a `ngstream.api.Fragment` object if the data# is paired-end.print(record.as_fastq())Accessing Reads Using HTSGetimportngstreamfrompathlibimportPathurl='https://era.org/hts/ABC123'ref=ngstream.GenomeReference("GRCh37",Path("GRCh37_sizes.txt"))withngstream.open(url,protocol="htsget",reference=ref)asreader:forpairinreader:print("\n".join(str(read)forreadinpair))Dump reads to a file (or pair of files)importngstream# Grab 1000 read pairs from an SRA run and write them to FASTQ files.accession='SRR3618567'withngstream.open("SRR3618567",protocol="sra",item_limit=1000)asreader:files=ngstream.dump_fastq(reader)print(f"Wrote{reader.read_count}reads from{accession}to{files[0]},{files[1]}")Use the command-line tools# Dump all reads from the ABC123 dataset to ABC123.bam in the current directory.$htsget_dumphttps://era.org/hts/ABC123DocumentationComing soonDevelopersWe welcome contributions via pull requests.Unit tests are highly desirable.Style-wise, we enforceblackcode style. Please usemake reformat.We use Google-style docstrings, which are formatted by theNapoleon Sphinx Plugin.We run pylint as part of each build and strive to maintain a 10/10 score.We enforce aCode of Conduct.
Package: ngt
python NGT日本語InstallPython binding with pybind11 (ngtpy) is installed as follows.pip3 install ngtYou can install the python bindings from source code. YouMUSTinstall the NGT library according to theREADMEbefore installing the python bindings as follows.pip3 install pybind11
pip3 install numpy
cd NGT_ROOT/python
python3 setup.py sdist
pip3 install dist/ngt-x.x.x.tar.gzPlease note that the search speed of the ngtpy packages from PyPI is slower than that of the ngtpy that is built on your computer so that the package can be run on older CPUs.Documentsngtpy (pybind11) referenceSimple samplesngtpy (pybind11)ngtpy(pybind11) can reduce the processing times than ngt(ctypes). It is more effective especially for the short search time.importngtpyimportrandomdim=10nb=100vectors=[[random.random()for_inrange(dim)]for_inrange(nb)]query=vectors[0]ngtpy.create(b"tmp",dim)index=ngtpy.Index(b"tmp")index.batch_insert(vectors)index.save()results=index.search(query,3)fori,(id,distance)inenumerate(results):print(str(i)+": "+str(id)+", "+str(distance))object=index.get_object(id)print(object)See alsosample.py.
Package: ngtextpreprocess
ngtextpreprocessngtextpreprocessa simple Python package that removes noise and extracts the meaningful information from the given input text data.Unlike plain tokenization and de-tokenization, where useful information like sentences, dates, percentages, monetary values etc
becomes undentifiable,ngtextpreprocessgoes one step ahead in preserving these crucial information while removing noisy data.Table of contents:InstallationUsageCleaning pipelineUsing required functions in the pipelineIndividual methodsInstallation:To install the package in your local environment, open a terminal inside your project directory and type:pipinstallngtextpreprocessTo upgrade the already existing installation, runpipinstall-UngtextpreprocessUsage:The package comes with a cleaning pipeline for performing all the
text cleaning processes in a single step.Along with that, the package also can be used for specific text cleaning tasks
by accessing the individual methods.Cleaning pipeline# import the packagefromngtextpreprocessimportCleanText# initialize the input textinput_text="""This is a #1234 sampl writtn 100% on 2022/04/14 ___<a href=#> with $100.50 on my @abcd table.</a>"""# instantiate the class object by passing the input textct=CleanText(input_text=input_text)# call the cleaning pipeline and get the outputoutput_text=ct.cleaning_pipeline()print(output_text)>>Thisisasamplewritten100%on2022/04/14with$100.50onmytable.You can customize the pipeline by deciding what all functions
you would require in the same sequential manner.This can be done by backward elimination technique where
you can set the parameter for the required function as False.Also you can enable the set_logging parameter to get the
logging details as a log file in a dynamically created
logging directory.Here is how its done.Using required functions in the pipelineIn this example, we want the name to stay intact in the output.
So, we are disabling the remove_name function. Also we are
enabling logging to get the log details in the logging
directory.# importfromngtextpreprocessimportCleanText# initialize the input textinput_text="This is John Doe from U.S. ."# instantiatecleaner=CleanText(input_text)# call the cleaning_pipeline methodoutput_text=cleaner.cleaning_pipeline(set_logging=True,set_remove_name=False)print(output_text)>>ThisisJohnDoefromAs you can see, the name has been preserved and all other possible
corrections have been made. Also, the logfiles have been generated.Individual methodsThe following are the individual functions used within the pipeline.For Text BeautificationCleaning HTMLFixing ASCII decoding errorsRemoving BulletsReplacing HexcodesRemoving Symbols and EmojisFor Personal Information RemovalRemoving Personal NamesRemoving Contact AddressesRemoving Contact NumbersRemoving e-mail addressRemoving social-media tagsRemoving URLFor Text CorrectionExpanding Domain specific short-forms
(Currently, financial domain has been covered.)Expanding General short-formsFixing ContractionsRemoving PunctuationsRemoving Extra WhitespacesFixing Spelling errors
Package: ngui
♆ NEPTUNENEPTUNEis a set of decoupledPython librariesintended to facilitate Python development:nfin,ngui,nlearn,nmath andnutil.The librarynguicontains graphical utility functions; among them:chart builders (including the choropleth map) andHTML code generation (including the conversion of figures and images).NEPTUNE is based on popular libraries like numpy, pandas, plotly and scipy.InstallLaunch the following commands in a shell:gitclonehttps://github.com/b-io/io.barras.gitcdio.barras/python/neptune/
mvncleaninstallLicenseFeel free to download, try and share your suggestions about the libraries,
while respectingthis MIT License (MIT).
Package: ng.utility
Short description ng.utility package====================================Package developed to be a library of small, but usefulutilits, channels and other components for use in differentdark purpose.Channel objecteventchannel--------------------------Some events (IIntIdAddedEvent, IIntIdRemovedEvent) is, in sense,events of component life cicle, is not such structurally.Event content attribute with value equal object of event,but event is not send as pair (event, object) and event handlermust processing all event and do test on interface providing.This channel receive such events and re-emits them as pair(event, object), It do possibile to declare handlers withevents for defined kind of object.Utility intidsvocabulary------------------------This is vocabulary on IIntIds utilities using of some our products.Package interfacewave---------------------This package components catch event emited by object with interface**IUserInterfaceWave** on creating and asign new object all interfaces fromits parent if them extent **IPropagateInterface** interface.Hierarhy of object with dynamic interfaces such as their parents can becreated simple by this way.* Tue Oct 21 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.3- InterfaceWave package added* Fri Jan 11 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.2- Object event channel imported successfully now.* Sun Dec MSK 2007 Andrey Orlov <dbdt@dreambot.ru> 1.0.1- first official release
Package: nguyenpanda
🐼nguyenpanda🐼nguyenpandaOverviewWelcome to the world ofnguyenpanda, a Python library that brings you the essence of utility packages,
each named after animals, perfectly representing its unique domain.🦋 butterflyEmbark on a journey through randomness and chaos with the enigmaticbutterflypackage.
Delve into the realms of uncertainty, probability, and statistics.
Embrace the unpredictable nature of nguyenpanda'sbutterfly.
Remember, even the flutter of abutterfly'swings can cause significant changes in a complex system,
so seize the opportunity to explore its mysteries.🦉 owlIlluminate the path to mathematical enlightenment with the wisdom of theowl.
Ascend to mastery in calculus, conquer the realms of linear algebra,
and traverse the diverse landscapes of mathematics.
Allow nguyenpanda'sowlto be your steadfast companion on your intellectual odyssey.🐦‍⬛ ravenEnter the realm of the raven, where intelligence and innovation
converge in a comprehensive library of data structures
Inspired by the ingenuity of the raven, this package offers elegant data structures classes.🦢 swanIndulge in the beauty of aesthetics and user interfaces with the elegantswanpackage.
Dive into the world of colors, front-end development, GUI, and more.
Transform your applications into visual masterpieces withswan.InstallationTo embark on your nguyenpanda adventure, install the library with the following command:pipinstallnguyenpandaFor a specific version, gracefully flutter to your desired release with:pipinstallnguyenpanda==<version>Getting StartedUnleash the power of nguyenpanda by delving into the documentation and perusing code examples within each package directory. Witness the harmonious convergence of butterfly, owl, and swan as they elevate your projects in distinct domains.🤝 ContributionsBecome a part of the nguyenpanda community! Share your ideas, report bugs, or request features through GitHub issues. We welcome your contributions and enhancements.🪪 Licensenguyenpanda is released under the MIT License. Feel the freedom to explore, utilize, and contribute, respecting the terms outlined in the license.☎️ ContactHà Tường Nguyên (Mr.)Computer ScienceOffice for International Study Programs | HCMC University of TechnologyContact via:Gmail:nguyen.hatuong0107@hcmut.edu.vnGmail:hatuongnguyen0107@gmail.comHappy coding with nguyenpanda! 🚀
Package: ng.xmlrpcscan
Short package description=========================Package developed to provide possibility xmlrpc server tree and editattributes of some interfaces by external applicaton.Package provide utility:ngxmlrpcscanThe ngxmlrpcscan  developed to scan xmlrpc server tree and print oredit attributes of some interfaces by external applicatonUsed::ngxmlrpcscan [<Switches>] <URL> [<ATTRIBUTE>  ...]Switches:-vBe verbose;-pDo pause each time when exteranl routin run;-cCheck class-sAtribut are to save after external routin run;-c <CLASSNAME>Object checked on condition: "is object of this class".-i <INTERFACE>Adapt object to this interface;-nPointed object used without any scan by tree-eExternal routin used (do print otherwize), filename will besubstituted indeed substring %(name)s in this string. Itsupposed running program read filename when started andwrite after finish;Arguments::<URL>Scan tree will be begun on this URL. For authorization,you must insert login and pasword into URL. Let seesample bellow;<ATTRIBUTE>Any attribute acceptable via interface bellow.Sample------Please, issued command::ngxmlrpcscan.py -s -p -v \-i zope.app.folder.folder.Folder-с zope.dublincore.interfaces.IZopeDublinCore \-e "joe  %(name)s "http://theman:12345678@localhost:8080/Root/Main \title descriptionThe ngxmlrpcscan scaned object tree rooted inhttp://theman:12345678@localhost:8080/Root/Main to find all folders and toedit folder methadata via IZopeDublinCore adapter.You can edit one object attribute with command::ngxmlrpcscan -v  -e -n \http://theman:12345678@localhost:8080/Root/Main \"joe '%(name)s'" bodyJust enter and enjoy!* Tue Oct 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.6- Switch "q" used to skip begin of enumerated object added;- Error emited on  unicode in urls fixed* Sun Jan 13 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.5- License changed* Fri Nov 23 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.4- Command line changed. See help for other info.* Wed Nov 14 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.3- Switch -n added. Recursive scan can'not doing whenswitch -n issued;- Minor bugs fixed in Zope3-path of code;* Tue Nov 13 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.2- Documentation fixed* Tue Nov 13 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.1- first official release
Package: ngy
ngyCreate MBTiles from IGN mapsInstallationpip install ngyUsageScript:SYNOPSIS
    locus LAT1 LONG1 LAT2 LONG2 POSITION_NAME

POSITIONAL ARGUMENTS
    LAT1
        Type: float
    LONG1
        Type: float
    LAT2
        Type: float
    LONG2
        Type: float
    POSITION_NAME
        Type: str
Package: ng.zcmljunction
The "junction" adapter: ng.zcmljunction---------------------------------------The zcmljunction is zope3 product developed to provide possibility rapidinterface adapter creation. To create adapter you can use new junctionzcml-directive. Adapter can provide output interface attributes fromattributes of input interface or it join.Sample of use::<junctionfor=".interfaces.IArticle"provides=".interfaces.ISearch"factory = ".searchadapter.SearchAdapter"><property in="title" out="title"/><property in="abstract" out="abstract"/><property in="body" out="body" default=""/><property in="abstract klass name keyword title body author" out="common" default=""/></junction>* Sun Jan 13 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.3- Reuqures fixed- Documentation fixed* Wed Nov 7 2007 Andrey Orlov <dbdt@dreambot.ru> 1.0.2- File setup.py fixed* Wed Nov 7 2007 Andrey Orlov <dbdt@dreambot.ru> 1.0.1- first official release
Package: nh3
nh3Python bindings to theammoniaHTML sanitization library.Installationpipinstallnh3UsageSeethe documentation.PerformanceA quick benchmark showing that nh3 is about 20 times faster than the deprecatedbleachpackage.
Measured on a MacBook Air (M2, 2022).Python 3.11.0 (main, Oct 25 2022, 16:25:24) [Clang 14.0.0 (clang-1400.0.29.102)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import requests

In [2]: import bleach

In [3]: import nh3

In [4]: html = requests.get("https://www.google.com").text

In [5]: %timeit bleach.clean(html)
2.85 ms ± 22.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

In [6]: %timeit nh3.clean(html)
138 µs ± 860 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each)LicenseThis work is released under the MIT license. A copy of the license is provided in theLICENSEfile.