Saravanan666/pypi-org huggingface dataset:
Package: gu-bi-dist
gu-bi-dist is a Python module for machine learning,and distributed under the MIT open license. The prime functionality of module is to measure Gaussian and Binomial distribution’s mean, standard deviation, and PDF(Probability Density Function).
The module also supports data and PDF visualization, source code is available at the bottom of the page.![Distribution flow chart](https://www.prioritysystem.com/images/distributionflowchart.png)Gaussian distribution:
In probability theory, a normal (or Gaussian or Gauss or Laplace–Gauss) distribution is a type of continuous probability distribution for a real-valued random variable. For more details visit:https://en.wikipedia.org/wiki/Normal_distributionBinomial distribution with parameters n and p is the discrete probability distribution of the number of successes in a sequence of n independent experiments, each asking a yes–no question, and each with its own boolean-valued outcome: success/yes/true/one (with probability p) or failure/no/false/zero (with probability q = 1 − p). For more details visit:https://en.wikipedia.org/wiki/Binomial_distributionUser installation
Installation using pip, you need python >= 3.7 version.!pip install -U gu-bi-distSource code
You can check the latest sources with the command:!gitclonehttps://github.com/vaasanthk/Gaussian-and-Binomial-distribution.gitTesting
After installation, you can launch the test suite from outside the source directory (you will need to have pytest >= 3.3.0 installed):!pytest testVersion: 1.0
Package: gudhi
The Gudhi library is an open source library for Computational Topology and
Topological Data Analysis (TDA). It offers state-of-the-art algorithms
to construct various types of simplicial complexes, data structures to
represent them, and algorithms to compute geometric approximations of shapes
and persistent homology.The GUDHI library offers the following interoperable modules:Complexes:CubicalSimplicial: Rips, Witness, Alpha and Čech complexesCover: Nerve and Graph induced complexesData structures and basic operations:Simplex tree, Skeleton blockers and Toplex mapConstruction, update, filtration and simplificationTopological descriptors computationManifold reconstructionTopological descriptors tools:Bottleneck distanceStatistical toolsPersistence diagram and barcodeFor more information about Topological Data Analysis and its workflow, please
refer to theWikipedia TDA dedicated page.
Package: gu-django-multihost
gu-django-multihost===**gu-django-multihost** is a Django application/framework which allow to serve different hostnames ""and urlconfs in one django application instanceQuickstart:===Install gu-django-multihost:$ pip install gu-django-multihostAdd gu-multihost to INSTALLED_APPS in settings.py for your project:INSTALLED_APPS = (...'gu_multihost',)#multihostMULTIHOST_DATABASE_DRIVEN_URLS = True # means that list or url modules are stored in database and managed there#for MULTIHOST_DATABASE_DRIVEN_URLS = False make a list possilbe selections for sites urlsfrom gu_multihost import MULTIHOST_DEFAULT_URLSMULTIHOST_AVAILABLE_URLS = MULTIHOST_DEFAULT_URLS + [ROOT_URLCONF, ]Add middleware class fetch from cache middleware :MIDDLEWARE_CLASSES += (# should be called after FetchFromCacheMiddleware'gu_multihost.middleware.MultiHostMiddleware','django.middleware.cache.FetchFromCacheMiddleware',)Setup you'r multihost sites objects.Standard core django sites host names should be configured to actual accesible domain names with protocol name and port values without ending slash:https://site-name.org:8433In your code:import gu_multihostYu can query current site, which serves a request:gu_multihost.get_current_site.site # link to django site objectYou can build urls for different sites with a full url.gu_multihost.mh_reverse(news_item, site=None, full_url=False, [site.two_letter_code, nid])Build short url for default site - /BB/news/item/XXX/gu_multihost.mh_reverse(news_item, site=None, full_url=False, [site.two_letter_code, nid])Build full url for default site - http://default.site/BB/news/item/XXX/gu_multihost.mh_reverse(news_item, site=mobile, full_url=False, [site.two_letter_code, nid])Build full url for separate site - http://mobile.site/BB/ni/XXX/The same is from django templates:{% import multihost %}{% mh_reverse 'portal-news-item' '' 'pb' %}{% mh_reverse 'portal-news-item' 'mobile' 'pb' %}License (and related information):===Originally written by Andriy Gushuley.This program is licensed under the MIT License (see LICENSE.txt)
Package: gu-django-tinymce
gu-django-tinymce
===gu-django-tinymceis a Django application that contains a widget to render a form field as a TinyMCE editor.QuickstartInstall gu-django-tinymce:$ pip install gu-django-tinymceAdd tinymce to INSTALLED_APPS in settings.py for your project:INSTALLED_APPS = (
    ...
    'tinymce',
)Add tinymce.urls to urls.py for your project:urlpatterns = [
    ...
    url(r'^tinymce/', include('tinymce.urls')),
]In your code:from django.db import models
from tinymce.models import HTMLField

class MyModel(models.Model):
    ...
    content = HTMLField()django-tinymceuses staticfiles so everything should work as expected, different use cases (like using widget instead of HTMLField) and other stuff is available in documentation.ReleasesLatest release is 2.4.0. It’s support python 2.7, 3.4, 3.5 and Django >= 1.6.
Previous releases can be found on github, but they are no longer maintained.Documentationhttp://django-tinymce.readthedocs.org/Support and updatesUse github issueshttps://github.com/aljosa/django-tinymce/issuesLicenseOriginally written by Joost Cassee.This program is licensed under the MIT License (see LICENSE.txt)ChangelogThis document describes changes between each past release.2.6.0 (2017-01-23)Avoid deprecation warning with django.core.urlresolvers (#188)Fixed a client-side validation issue when the TinyMCE widget has the HTML
required attribute set (#187).Fixed a crash when no languages are activated (#175).2.5.0 (2017-01-23)Added compatibility for Django 1.11.Dropped support for Django 1.6.2.4.0 (2016-08-31)Added compatibility for Django 1.10.Fix JQuery Problem with grappelliFix Python 3 compatibility (#170)Improve documentation (#163, #171)Cleaned Imports (#182)Fix TinyMCE Widget for ModelTranslation tabs (#174)Fix JSON mimetype (#186)2.3.0 (2016-03-10)Added tests (#149)Improved Python3 support2.2.0 (2015-12-23)TinyMCE compressor now use staticfiles to get the file content (and
to find files that are in multiple static directory.) (#142)2.1.0 (2015-12-23)Rewrite URL files to let it works with Django 1.9 (#147, #148)Add a CONTRIBUTORS file.2.0.6 (2015-11-12)Make sure jQuery is loaded both in the admin and for non-admin forms. (#141)2.0.5 (2015-09-09)Use static finders for development mode. (#131)2.0.4 (2015-08-07)Fix non-admin jQuery.2.0.3 (2015-08-06)Handle non-admin jQuery. (#108)2.0.2 (2015-07-26)Add Python3 support.2.0.1 (2015-07-24)Fix missing CHANGELOG.2.0.0 (2015-07-23)Starts supporting Django 1.8
Package: guenv
All rights reserved.Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of kouml nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: UNKNOWN
Platform: UNKNOWN
Provides-Extra: develop
Package: guerilla-transform-stack
guerilla-transform-stackguerilla_transform_stackis a Python package to manipulate Guerilla transform
stack as Python object.This package exposeTransformStack, a wrapper class around the Guerilla
transform stack of a scene graph node.UsageThe first step is to wrap the Guerilla node withTransformStackclass:>>>importguerilla>>>importguerilla_transform_stackasgts>>>node=guerilla.pynode('mynode')>>>node_ts=gts.TransformStack(node)>>>node_tsTransformStack('mynode')Then you can add, access and manipulate transforms:>>>node_ts.is_emptyTrue>>>euler=node_ts.add('euler')# Create an euler transform.>>>eulerTransformEuler('mynode|Euler')>>>node_ts['Euler']# Access transform from its name.TransformEuler('mynode|Euler')>>>target=node_ts.add('target')>>>target.is_on_top# New transform nodes are added on top.True>>>len(node_ts)# Get transform count.2>>>target.move_down()>>>target.move_up()>>>node_ts.topTransformTarget('mynode|Target')>>>euler_tmp=node_ts.add('euler')>>>euler_tmp.delete()# Remove transform.Transform stack object can be iterated (from bottom to top):>>>fortransforminnode_ts:...printtransform...TransformEuler('mynode|Euler')TransformTarget('mynode|Target')Original Guerilla node is accessible with thenodeproperty:>>>node_ts.node<guerilla.SceneGraphNode object at 0x7f34498eb490>
Package: guess
This module was ported from gauche charconv module.
Supported encoding is UTF-8, Shift_JIS, EUC-JP, ISO-2022-JPExample:>>> import guess
>>> s = '\x82\xa0\x82\xa2\x82\xa4\x82\xa6\x82\xa8'
>>> guess.guess(s)
'Shift_JIS'
>>> print s.decode('Shift_JIS')
あいうえお
Package: guessenc
guessencInfer HTML encoding from response headers & content.  Goes above and beyond the encoding detection done by most HTTP client libraries.Basic UsageThe main function exported byguessencisinfer_encoding().>>>importrequests>>>fromguessencimportinfer_encoding>>>resp=requests.get("http://www.fatehwatan.ps/page-183525.html")>>>resp.raise_for_status()>>>infer_encoding(resp.content,resp.headers)(<Source.META_HTTP_EQUIV:2>,'cp1256')This tells us that the detected encoding is cp1256, and that it was retrieved from a  HTML tag withhttp-equiv='Content-Type'.Detail on the signature ofinfer_encoding():definfer_encoding(content:Optional[bytes]=None,headers:Optional[Mapping[str,str]]=None)->Pair:...Thecontentrepresents the page HTML, such asresponse.content.Theheadersrepresents the HTTP response headers, such asresponse.headers.
If provided, this should be a data structure supporting a case-insensitive lookup, such asrequests.structures.CaseInsensitiveDictormultidict.CIMultiDict.Both parameters are optional.The return type is atuple.The first element of the tuple is a member of theSourceenum (seeSearch Processbelow).  The source indicates where
the detected encoding comes from.The second element of the tuple is either astr, which is the canonical name of the detected encoding, orNoneif no encoding is found.Where Do Other Libraries Fall Short?Therequestslibrary "[follows] RFC 2616 to the letter" in using the HTTP headers to determine the encoding of the response content.  This
means, among other things, usingISO-8859-1as a fallback if no charset is given, despite the fact that UTF-8 hasabsolutely
dwarfedall other encodings in usage on web pages.# requests/adapters.pyresponse.encoding=get_encoding_from_headers(response.headers)Ifrequestsdoes not find an HTTPContent-Typeheader at all, it will fall back to detection viachardetrather than looking in the
HTML tags for meaningful information.  There's nothing at allwrongwith this; it just means that therequestsmaintainers have chosen to
focus on the power ofrequestsas an HTTP library, not an HTML library.  If you want more fine-grained control over encoding detection,
tryinfer_encoding().This is not to single outrequestseither; there are other libraries that do the same dance with encoding detection;aiohttpchecks theContent-Typeheader, or otherwise
defaults to UTF-8 without looking anywhere else.Search ProcessThe functionguessenc.infer_encoding()looks in a handful of places to extract an encoding, in this order, and stops when it finds one:In thecharsetvalue from theContent-TypeHTTP entity header.In thecharsetvalue from a<meta charset="xxxx">HTML tag.In thecharsetvalue from a<meta>tag withhttp-equiv="Content-Type".Using thechardetlibrary.Each of the above "sources" is signified by a corresponding member of theSourceenum:classSource(enum.Enum):"""Indicates where our detected encoding came from."""CHARSET_HEADER=0META_CHARSET=1META_HTTP_EQUIV=2CHARDET=3COULD_NOT_DETECT=4If none of the 4 sources from the list above return a viable encoding, this is indicated bySource.COULD_NOT_DETECT.
Package: guessenv
This is a small program which tries to guess what environment variables will be needed by other Python programs.This tool should work on Python 2.7 and Python 3.3+Usageguessenv [-h] [-v] [-q] [-O] [-A] [-x EXCLUDE] [-X] files [files ...]By default, guessenv will walk through all the files and directories specified on the command line, look for
patterns which seem to be searching for an environment variable, and print out all of the "required" environment
variables (those accessed through something akin toos.environ[...]).If invoked with the-Oargument, it will also print out optional environment variables (accessed throughos.getenv(...)oros.environ.get(...).If invoked with the-Aargument, it will exit non-zero if any "required" environment variables are not currently
present in the environment.If invoked with the-vargument, it will print more verbose information about where variables were found.If invoked with the-qargument, it will print nothing (unless-Ais also passed and any variables are missing)The-xand-Xarguments allow you to exclude files or directories when doing recursive searches.LicenseThis work is licensed under the ISC license, a copy of which can be found inLICENSE.txt.
Package: guesser-game
TheNumber Guesser Gameis a python package that contains an easy funny game. Based on a few simple arithmetic operations, the computer will be able to "guess" a number.Install$pipinstallguesser-gameUsageOpen a Python console, import the module GuessMyNumber, create an instance of it and call its method play(). Now start to play and let this code guess the number you have in mind 😉>>fromguesser_gameimportGuessMyNumber>>>>my_game=GuessMyNumber()>>my_game.play()LicenseThis project is licensed under the MIT LicenseAuthorWendy Navarrete
Package: guessfilename
Usage:guessfilename.py [<options>] <list of files>This little Python script tries to rename files according to pre-defined rules.It does this with several methods: first, the current file name is analyzed and
any ISO date/timestamp and filetags are re-used. Secondly, if the parsing of the
file name did not lead to any new file name, the content of the file is analyzed.You have to adapt the rules in the Python script to meet your requirements.
The default rule-set follows the filename convention described onhttp://karl-voit.at/managing-digital-photographs/copyright:by Karl Voitlicense:GPL v3 or any later versionURL:https://github.com/novoid/guess-filename.pybugreports:via github or <tools@Karl-Voit.at>Options:-h,--helpshow this help message and exit-d,--dryrunenable dryrun mode: just simulate what would happen, do not
modify files-v,--verboseenable verbose mode-q,--quietenable quiet mode--versiondisplay version and exit
Package: guess-indian-gender
MotivationI was not able to find a open source library that guess gender from
indian names. So made one.PrerequisitesPython 3.7PipenvDevelopment - Setup instructionsClone this repository.cd to the repoActivate pipenvpipenv shellInstall dependenciespipenv installFire up a python shell and type the following.>>>fromguess_indian_genderimportIndianGenderPredictor>>>i=IndianGenderPredictor()>>>i.predict(name="adhi")# returns maleInstallationpip installguess-indian-genderAccuracyCurrently the accuracy is 0.88. Any contributions are welcome to
improve the accuracy.ChangelogWhen the last letter is considered as a feature for gender detection
the accuracy is 78%.When the last four letters was considered the accuracy became 88%.Todo[x] Convert to Pip package.[x] Convert to nice oops.[ ] Improve accuracy to 95%.Dataset creditshttps://github.com/mbejdaMale names -https://gist.github.com/mbejda/7f86ca901fe41bc14a63Female names -https://gist.github.com/mbejda/9b93c7545c9dd93060bdLicenseMIT. See license file for more info
Package: guessit-rest
GuessIt is a python library that extracts as much information as possible from a video filename.This is the REST WebService forGuessIt.Install with pipPython package is available onPyPI.$pipinstallguessit-restThen run guessit rest API using entry point.$guessit-restInstall from sources$gitclonehttps://github.com/guessit-io/guessit-rest$cdguessit-restThen configure a virtualenv withpyenvor any virtualenv manager you may like.$pyenvvirtualenv...Then install dependencies in the virtualenv.$pipinstall-e.Then run guessit rest API using main module.$pythonguessitrestRun with DockerAn automated build is available atDocker Hub.$dockerrun-p5000:80-itguessit/guessit-restUsageConnect your browser tohttp://localhost:5000/?filename=test.aviAPI Documentation is available onSwagger UIA test server is available onhttps://api.guessit.io. This server has a small API rate limit,
so if you really need a GuessIt REST API, you have to host it on your own server.usage: guessitrest [-h] [-l LISTENING_ADRESS] [-p LISTENING_PORT]

optional arguments:
  -h, --help            show this help message and exit
  -l LISTENING_ADRESS, --listening-adress LISTENING_ADRESS
                        Listening IP Adress of the HTTP Server.
  -p LISTENING_PORT, --listening-port LISTENING_PORT
                        Listening TCP Port of the HTTP Server.flask-restfulThis project currently use afork of flask-restful. Seeflask-restful/flask-restful#645.As a workaround, we use a copy of the forked flask-restul module to make it available from sources.You can still run REST API with original flask-restful, but using POST with multiple filenames on`/list/`resource is broken.LicenseGuessIt is licensed under theLGPLv3 license.
Package: guesslang
Guesslang detects the programming language of a given source code.
It supports more than50programminglanguagesand detects
the correct programming language with more than90% accuracy.Guesslang is an open sourcedeep learning software that have been trained withover a millionsource code files.You can use Guesslang as a command line interface tool or as a Python module:fromguesslangimportGuessguess=Guess()# Guess the language from codelanguage=guess.language_name("""
    % Quick sort

    -module (recursion).
    -export ([qsort/1]).

    qsort([]) -> [];
    qsort([Pivot|T]) ->
           qsort([X || X <- T, X < Pivot])
           ++ [Pivot] ++
           qsort([X || X <- T, X >= Pivot]).
    """)print(language)# --> ErlangGuesslang supports54of theworld’s most popularprogramming languages:AssemblyBatchfileCC#C++ClojureCMakeCOBOLCoffeeScriptCSSCSVDartDMDockerfileElixirErlangFortranGoGroovyHaskellHTMLINIJavaJavaScriptJSONJuliaKotlinLispLuaMakefileMarkdownMatlabObjective-COCamlPascalPerlPHPPowerShellPrologPythonRRubyRustScalaShellSQLSwiftTeXTOMLTypeScriptVerilogVisual BasicXMLYAMLFull documentation athttps://guesslang.readthedocs.io/en/latest/
Package: guess-language
Attempts to determine the natural language of a selection of Unicode (utf-8) text.Based onguesslanguage.cppby Jacob R Rideout for KDE which itself is based onLanguage::Guessby Maciej Ceglowski.Detects over 60 languages - all languages listed in thetrigramsdirectory plus Japanese, Chinese, Korean and Greek.guess_language uses heuristics based on the character set and trigrams in a sample text
to detect the language. It works better with longer samples and will be confused if
the sample text includes markup such as HTML tags.UsageThe main entry points all take a single string as input and return a language identifier.
The string must be Unicode or UTF-8 text. The language identifer can be the language name
in English, the two- or three-letter IANA language code, a language ID or a tuple containing
all three codes.The primary entry points, and the return values, are as follows:guessLanguage(txt) - IANA language code
guessLanguageTag(txt) - IANA language code (same as guessLanguage)
guessLanguageName(txt) - Language name in English
guessLanguageId(txt) - language ID
guessLanguageInfo(txt) - tuple of (IANA code, id, name)
Package: guess-language-fast
Slightly modified guess-language that’s faster.Attempts to determine the natural language of a selection of Unicode (utf-8) text.Based onguesslanguage.cppby Jacob R Rideout for KDE which itself is based onLanguage::Guessby Maciej Ceglowski.Detects over 60 languages - all languages listed in thetrigramsdirectory plus Japanese, Chinese, Korean and Greek.guess_language uses heuristics based on the character set and trigrams in a sample text
to detect the language. It works better with longer samples and will be confused if
the sample text includes markup such as HTML tags.UsageThe main entry points all take a single string as input and return a language identifier.
The string must be Unicode or UTF-8 text. The language identifer can be the language name
in English, the two- or three-letter IANA language code, a language ID or a tuple containing
all three codes.The primary entry points, and the return values, are as follows:guessLanguage(txt) - IANA language code
guessLanguageTag(txt) - IANA language code (same as guessLanguage)
guessLanguageName(txt) - Language name in English
guessLanguageId(txt) - language ID
guessLanguageInfo(txt) - tuple of (IANA code, id, name)Note: I (Kent Johnson) am no longer using or maintaining this code.
Phi-Long DO maintains a Python 3 version (with support for lib3to2) athttps://bitbucket.org/spirit/guess_language.
guess_language has also been ported to JavaScript (https://github.com/wooorm/franc) and R (https://github.com/MangoTheCat/franc).
Package: guess_language-spirit
Example usage>>> from guess_language import guess_language
>>> guess_language("Ces eaux regorgent de renégats et de voleurs.")
'fr'
>>> guess_language("Tienes que seguir tu corazón.")
'es'
>>> guess_language("いいえ！忍者がいます")
'ja'
>>> not guess_language("??")
TrueIf your text is less than 20 characters long,
you needPyEnchantand the appropriate dictionaries installed:>>> guess_language("Hello, World!")
'en'InstallationTo install the package for Python 3, use:$ ./setup.py installTo install the package for Python 2, use:$ python2 setup.py installTo install with pip, use:$ pip install guess_language-spiritOn Windows, you may use one of the MSI binary packages provided on thedownload page.PrerequisitesPython 3.2+(or 2.7)PyEnchant(optional)lib3to2(if installing for Python 2)This is a Python 3 version ofguess-languagewith further improvements.
Package: guess-logo
guess_logo猜测网址的logo链接
Detection of logo url from any website.How to install.pip3 install guess_logoHow to use.from guess_logo import GuessLogo


url = 'http://www.txdkj.com/'


logos = GuessLogo.guess(url)
print(logos)

# 调整logo大小
from guess_logo import Logo
height = 256
width = 512
source = 'demo/ifengLogo.png'
target = 'demo/ifengLogo_{}_{}.png'.format(width, height)
Logo.resize(source, target, width, height, bgcolor='transparent')


# 替换白色为透明
from guess_logo import ColorLogo
source = 'demo/logo.jpeg'
target = 'demo/logo.transparent.png'
ColorLogo.replace(source, target)