Saravanan666/pypi-org huggingface dataset:
Package: libhoney
libhoney-pyPython library for sending events toHoneycomb, a service for debugging your software in production.Usage and ExamplesFor tracing support and automatic instrumentation of Django, Flask, AWS Lambda, and other frameworks, check out ourBeeline for Python.ContributionsFeatures, bug fixes and other changes to libhoney are gladly accepted. Please
open issues or a pull request with your change. Remember to add your name to the
CONTRIBUTORS file!All contributions will be released under the Apache License 2.0.ReleasesYou may need to install thebump2versionutility by runningpip install bump2version.To update the version number, dobump2version [major|minor|patch|release|build]If you want to release the version publicly, you will need to manually create a tagv<x.y.z>and push it in order to
cause CircleCI to automatically push builds to github releases and PyPI.
Package: libhttprequests
pytoolsCode samples regarding the module Pytools from DevPro PlatformSupported Python version 3Implemented LibsInstallingUseful CommandsVirtual EnvironmentPyPi Local LibPublish at PyPiImplemented Libs:Requests: HTTP for Humans™Installingpython3 -m venv .venvsource .venv/bin/activatepip install -r requirements-dev.txtCheck for Code Quality following PEP8, execute:flake8Useful Python commandsCreate and activate venvpython3 -m venv .venvsource .venv/bin/activateInstall PyPi local Lib[^1]pip install -e "path to setup.py inside the lib"E.g. pip install -e ./pytoolsValidate installationpython3from libhttprequests.github_api import get_github_avatarget_github_avatar('mauriciodoerr')Publish at PyPipython3 setup.py sdistpip install twinetwine upload dist/*[^1]: List Classifiers for PyPi can be found athttps://pypi.org/pypi?%3Aaction=list_classifiers
Package: libhum
LibhumLibhum is a Python library and set of utilities to extract and compareelectricity frequency signals(ENF).The library uses GPU accelaration (CUDA or OpenCL) to accurately match ENF signals in seconds.On an Apple Macbook Air M1, the library is able to match an 1 hour signal over a 10 years history in
about 20 seconds.Setuppip install libhumCompute ENFUse thecompute_enfcommand to extract the main ENF from an audio or video file to an.enffile:libhum compute_enf samples/target.ogg target.enf --plotBy default, the library is looking for an ENF signal in the 50 Hz band. Use the-f/--frequencyoption to use a different frequency.Match ENFsUse thematch_enfcommand to find the best matches between two signals:libhum match_enf samples/reference.enf samples/target.enf --plotThe default backend is using Numpy and is considerably slower than the OpenCL or CUDA backends which
rely on GPU accelaration. Append the--backend=cudaor--backend=opencloption to use a
GPU-accelerated backend.Special thanksSome of the signal processing algorithms used by the library originate from Robert Heaton'sENF matching library.LicenseSeeLICENSEfile for details.BibTeX CitationIf you use Libhum in any scientific publication, please use the following BibTex citation:@software{Javaux_Libhum,
    author = {Javaux, Raphael},
    license = {LGPL-3.0},
    title = {{Libhum}},
    url = {https://github.com/RaphaelJ/libhum},
    year={2024},
}
Package: libhwp
libhwprust로 작성된 python hwp 리더 라이브러리본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.hwp-rs와 libhwp를 공개합니다APIfind_allhwphwp.sections[i]hwp.sections[i].paragraphs[i]
등에서 사용할 수 있습니다.find_all('tag', recursive=Boolean)이며 recursive는 기본적으로 True입니다.지원되는 tagparagraph: 문단table: 표caption: 캡션equation: 수식footnote: 각주endnote: 미주header: 머리말footer: 꼬리말예fromlibhwpimportHWPReaderhwp=HWPReader('<파일 경로>')# 모든 문단 출력 (표, 캡션 포함)forparagraphinhwp.find_all('paragraph'):print(paragraph)# 표 내용 출력 (표 안의 표 포함)fortableinhwp.find_all('table'):forcellintable.cells:forparagraphincell.paragraphs:print(paragraph)# 표 내용 출력 (표 안의 표 무시)fortableinhwp.find_all('table',recursive=False):forcellintable.cells:forparagraphincell.paragraphs:print(paragraph)# 표 안의 표 내용 출력 방법 2fortableinhwp.find_all('table'):forcellintable.cells:forparagraphincell.paragraphs:print(paragraph)# paragraph에서도 recursive 하게 찾을 수 있다forpinparagraph.find_all('paragraph'):print(p)# 수식 내용 출력forequationinhwp.find_all('equation'):print(equation.script)# eg. f(x)= logx+sinx# 문서에 사용된 파일 저장forfileinhwp.bin_data:withopen(file.name,'wb')asf:f.write(file.data)
Package: libi8x-python
Infinity is a platform-independent system for executables and shared
libraries to expose functionality to debug, monitoring, and analysis
tooling.In Infinity, executable and shared library files containInfinity
notesin addition to their regular contents.  Each Infinity note
contains a function encoded in a platform-independent instruction
set that note-consuming tools can load and execute.libi8x is a C library that allows programs to access and execute
Infinity functions.  This package provides Python bindings for the
libi8x C library.RequirementsYou must have the libi8x C library installed on your system to build
and use this package.  Please seelibi8x’s READMEfor details.InstallationThe easiest way to install libi8x-python is to use pip:pip install -U --user libi8x-pythonor:sudo pip install -U libi8x-pythonIf you don’t have pip please refer toinstalling pip.  Hint: try
one of these commands:sudo apt-get install python-pip
sudo yum install python-pipThe latest development versions of libi8x and libi8x-python are
available fromGitLab.libi8x-python requires Python 2.7 or newer.Licenselibi8x is licensed under the terms of the GNU Lesser General Public
License, eitherversion 2.1of the License, or (at your option)
any later version.DocumentationRight now there’s no documentation for libi8x aside from this
file.  This is being worked on!ContributingThe Infinity project homepage ishttps://infinitynotes.org/.  Future
work is planned and coordinated onhttps://infinitynotes.org/roadmap.
For help or to report bugs please emailinfinity@sourceware.org.
Package: libiap
libiapPlease usepip install libicainsteadhttps://pypi.org/project/libica/https://github.com/umccr-illumina/libicaAlpha Modules Deprecation Note🙋‍♂️ only applicable to early adopter and/or existing user ofalphamodules inlibiap<=0.4.0Thesealphamodules directly under top level package (i.e.libiap.libwes,libiap.libgds, ...) are deprecated inlibica-0.5.0.If you are still using thesealphamodules then you can still depend onlibiap-0.4.0alongside withlibica-0.5.0.However, there won't be side-by-side backward compatibility withlibiap-0.4.0for all future releases oflibica-0.6.0onwards.LicenseMIT License and DISCLAIMER
Package: libido
Explore Python source code to find dependenciesUsepip showif you want to access the explicit dependencies of a python package.But, if you have a set of python files and want to know what they are importing, libido is a way to go.Installation & usagepip install libido
libido mod.py pak/*.py pak2/OptionsThere is some options. Seelibido --help.Most interestings may be--python-versionto provide the python version of the code (because stdlib is not the same accross python versions),--all-depsto list all deps, including the one from stdlib (default is only the non-stdlib one),--show-globsto show for each dependencies which input glob needs it,
or--porcelainfor a parsable output.How does it works ?Libido parses the source code withredbaronfind all import lines,
and compare list of imported modules with historical records provided bystdlibsto decide which imported packages belong to the stdlib.Yes, these packages exists. That's so cool. Please send your thanks to the author of redbaron and stdlibs.
Package: libify
LibifyLibify makes it easy to import notebooks in Databricks. Notebook imports can also be nested to create complex workflows easily. Supports Databricks Runtime Version 5.5 and above.InstallationClick theClustersicon in the sidebarClick a cluster name (make sure the cluster is running)Click theLibrariestabClickInstall NewUnderLibrary Source, choosePyPIUnderPackage, writelibifyClickInstallTypical UsageAfter installing the package, add the following code snippets to the notebooks:In theimportee notebook(the notebook to be imported), add the following cell at theendof the notebook. Make sure thatdbutils.notebook.exitis not used anywhere in the notebook and that the last cell contains exactly the following snippet and nothing else:importlibifylibify.exporter(globals())In theimporter notebook(the notebook that imports other notebooks), first importlibify:importlibifyand then use the following code to import the notebook(s) of your choice:mod1=libify.importer(globals(),'/path/to/importee1')mod2=libify.importer(globals(),'/path/to/importee2')Everything defined inimportee1andimportee2would now be contained in the namespacesmod1andmod2respectively, and can be accessed using the dot notation, e.g.x=mod1.function_defined_in_importee1()Databricks Community Cloud WorkaroundDatabricks Community Cloud (https://community.cloud.databricks.com) does not allow calling one notebook from another notebook, but notebooks can still be imported using the following workaround. However, both of the following steps will have to be run each time a cluster is created/restarted.Run step 1 from above (Typical Usage). Make a note of the output of the last cell (only the part marked below):In theimporter notebook, calllibify.importerwith theconfigparameter as the dictionary obtained from the previous step:importlibifymod1=libify.importer(globals(),config={"key":"T5gRAUduh9uSbhHIrj2c9R4UbrXUt2WiA4aYIpl3gGo=","file":"/tmp/tmpmcoypj24"})
Package: libigl
libigl Python BindingsThis repository contains the source code for the libigl Python bindings. These bindings are fully compatible with NumPy and SciPy and offer a convenient interface similar to functions in those libraries.These bindings are still under active development and should still be considered alpha quality. We encourage users to post issues so we can improve the bindings!Installationpython -m pip install libiglIf you wish to install the current development code, you can compile the library from scratch. Clone this repo and issuepython -m pip install ./Help/DocumentationA tutorial on how to use the bindings can be foundhereA function reference can be foundhereCompiling and modifying the bindiingsAfter installing numpy & scipy and then cloning this repository, you can compile the bindings from scratch by running:python setup.py developorpython setup.py build --debug developfor debug compilation. This command will make the packageiglavailable for import in the
current shell.To run the tests:python setup.py testorpython tests/test_basic.pyand if developing and trying to run from this directory. You could use:PYTHONPATH=. python tests/test_basic.pyLicenseLike libigl, the wrapper source code is licensed under MPL2. Code included via
the copyleft and restricted sub-directories may have more restrictive licenses.
Package: libigor
IntroductionAbout the projectDependenciesOptional dependenciesInstallationDocumentationModulesReferenceIntroductionAbout the projectigoris a collection of general purpose python libraries focused on
web development.DependenciessixdateutilOptional dependenciesdocutils- For reStructuredText support.django- For django helpers.google-appengine-python- For appengine helpers.webob, wsgiref- For WSGI.jinja2- For template responses in WSGI.memcache- For caching helpers.InstallationThe package can be installed using pip:$ pip install libigorDocumentationModulesjsobjJSON supportFunction groupsPlugin systemReferenceNo reference documentation available yet (I’m working on this). Please check
the module documentation for code examples, you should have a pretty good
understanding how to use the code once you analyze those.
Package: libimagequant-integrations
Python libimagequant IntegrationsThis library provides helper functions for converting between objects in theunofficial Python libimagequant bindings libraryand "image" objects in various popular Python libraries.If you'd like to add support for integration with more libraries, pull requests
are welcome!Install with pip:python3 -m pip install libimagequant_integrationsAPI DocumentationThis package contains the following submodules, for converting to/from the
indicated classes:libimagequant_integrations.PIL(for Pillow'sPIL.Image.Image*)libimagequant_integrations.PySide2(forPySide2.QtGui.QImage)libimagequant_integrations.PySide6(forPySide6.QtGui.QImage)libimagequant_integrations.PyQt5(forPyQt5.QtGui.QImage)libimagequant_integrations.PyQt6(forPyQt6.QtGui.QImage)libimagequant_integrations.skimage(for scikit-image numpy arrays†)libimagequant_integrations.png(for PyPNGpng.Readerandpng.Writer‡)I suggest you import using (for example)import libimagequant_integrations.PyQt5 as liq_PyQt5, to avoid typing an
excessive amount. :)Each submodule contains two functions, used to convert to and from thelibimagequant.Imageclass:to_liq(image: OtherImageClass, attr: libimagequant.Attr) -> libimagequant.Image

from_liq(result: libimagequant.Result, image: libimagequant.Image) -> OtherImageClass(ReplaceOtherImageClasswith the appropriate other image class.)You can checklibimagequant_integration's version number usinglibimagequant_integrations.VERSIONandlibimagequant_integrations.VERSION_STR, which are in the same format as the
version number constants in thelibimagequantbindings library itself. The
version numbers follow semantic versioning. They begin with 1.0.0, and do not
track libimagequant's version numbers at all.*While Pillow claims to support images with RGBA palettes, this feature seems
extremely buggy, almost to the point of being completely unusable. Therefore,
thefrom_liq()function discards the alpha channel and returns an image with
a RGB palette. If you do need the alpha channel information, you can obtain it
manually from thelibimagequant.Imageobject.†Giveto_liq()an RGBA image (numpy array of shape(y, x, 4), with
uint8-type elements) as its "image" argument.from_liq()returns two numpy
arrays: one with pixel data (shape(y, x, 1), uint8-type elements), and one
with the RGBA color palette (shape(n, 4), uint8-type elements).‡Giveto_liq()apng.Readeras its "image" argument.from_liq()returns apng.Writerand abytesobject; you can save the image using the Writer'swrite_array()method with thebytesdata provided.LicenseLicensed under the GNU GPL v3. See theLICENSEfile for the full license
text.
Package: libimgsmlr
libimgsmlrImplement the feature extraction function of theimgsmlrextension, in
languages such as:c(so file),Python. Other languages should
probably call dynamic libraries to adapt.When using thePostgreSQLextensionimgsmlr, I found that the
feature extraction functions provided byimgsmlrare all PostgreSQL
functions. This poses a problem, as the files need to be uploaded to and
stored in the database during testing. This is generally not possible in
service development, where text is usually stored separately in the file
system, and only paths andpattern,signatureare stored in the
database. Therefore, it is necessary to implement the feature extraction
functions used by the service development language.DependsThis library depends on the gd library. Please install it yourself first.On Mac OSX:brew install gdOn Linux:yum install-ygd-develInstallationpip install --global-option=build_ext libimgsmlrErrorsIf the following error is encountered on Mac OSX.fatal error: 'gd.h' file not found
#include "gd.h"The solution is to set the environment variable first:export CFLAGS="-I$(brew --prefix gd)/include"
export LFDLAGS="-L$(brew --prefix gd)/lib"Examplesfromlibimgsmlrimportimg2pattern,pattern2signature,shuffle_patternif__name__=="__main__":importargparseparser=argparse.ArgumentParser(description="libimgsmlr test")parser.add_argument('filename',help='image (jpeg/png/gif) file')args=parser.parse_args()print("filename:%s"%(args.filename))filename=args.filenamecontent=open(filename,"rb").read()try:pattern=img2pattern(content)pattern2=shuffle_pattern(pattern)print("pattern:%s"%(pattern2.as_array()))signature=pattern2signature(pattern)print("signature:%s"%(signature))exceptValueErroraserr:print("ERROR: img2pattern(%s) failed!%s"%(filename,err))LICENSEMIT
Package: libindic-soundex
Soundex is phonetic algorithm for indexing names by sound as pronounced in
English.LibIndic’s soundex module implements Soundex algorithm for Engish as
well as a modified version of soundex algorithm for Indian languages.Details on how Soundex is implemented can be found at
[Santhosh’s blog](http://thottingal.in/blog/2009/07/26/indicsoundex/)InstallationPython 3 is required. Using withvenvis recommended$pipinstalllibindic-soundexUsagefromlibindic.soundeximportSoundexinstance=Soundex()instance.soundex(u"കൃത്രിമം")u'\u0d15PKPBN00'instance.compare(u"വിദ്യാർഥി",u"വിദ്യാർദി")1instance.compare(u"മോര്",u"മുതിര")-1instance.compare(u'ಬೆಂಗಳೂರು',u'बॆंगळूरु')2
Package: libindic-utils
This package provides common functions needed by LibIndic web application
itself and modules which are hosted byLibIndic. There are 2 submodules
provided by this packagecharmap - provides character mapping for Indic and other languageslangdetect - module provides language detecting capabilitiesAlso provides a decorator servicemethod, this should be used by
modules which want to expose their methods via JSONRPC modulesInstallationPython 3 is required. Using withvenvis recommended$pipinstalllibindic-utilsUsagefromlibindic.utilsimportget_languageget_language(u'অ')# 'bn_IN'
Package: libinfilect
LibInfilectUtility library for internal usage @ InfilectInstallationUsepip install --upgrade libinfilectto install the latest version.ContributionFeel free to add your modules to this library so that it can be used by all team members and maximise code reusability. Make sure to follow these guidelines while contributing.Document your code. Try to follow standard documentation practices mentionedhere.Test your code thoroughly.Provide sample usage examples/quickstart guide in documentation. I have provided an example below for the interface module.InterfaceInterface repo that contains all the helper functions for creating interfaces betweenbackend servers and frontend clients. This contains creation and maintenance of TCP sockets.If you are writing a server side module, you will use the Server class as follows.from libinfilect import interface
import json

server_socket = interface.Server(ip='0.0.0.0',port=4242)
server_socket.create_socket()

while True:
	query = server_socket.start_listening()
	query = json.loads(query.decode('utf-8'))
	result = do_your_machine_learning_thing_and_produce_results(query)
	server_socket.respond(json.dumps(result))The server socket will be automatically closed once server_socket object goes out of contextIf you are witing client side module, you will use the Client class as follows.from libinfilect import interface
import json

client_socket = interface.Client(ip='127.0.0.1',port=4242)
results = client_socket.send_query_and_await_results(json.dumps({"query_key":"query_value"}))This will take care of adding newline character for socket delimiter so no need to add extra newlines.
Package: libinfinitton
lib-infinittonCross platform library to useInfinitton screen keyboard.Install$pipinstalllibinfinittonThis uses a native library to connect to the usb port and at this time it is required that you
install this manually if it is not already present. The installation procedures for different operating systems
are shown onpyhidapi github page.On linux it might be necessary to add the53-infinitton.rulesto the/etc/udev/rules.d/directory to avoid having to run as root.Example#!/usr/bin/env pythonimportlibinfinittonimporttimeif__name__=="__main__":defdown(button):print('down:%s'%button)defup(button):print('up:%s'%button)libinfinitton.Infinitton.is_present(0,0)infinitton=libinfinitton.Infinitton()infinitton.on('down',down)infinitton.on('up',up)infinitton.clear_all_keys()# infinitton.fill_color(0, 255, 0, 0)infinitton.fill_image_path(0,'folder.png')time.sleep(60)infinitton.disconnect()In this example an icon is show on the first key (top-left). And for a duration of 60 seconds the keyboard will listen to key-presses.
On each press, at the time of down and up the key number is printed.To view all available methods check thedocumentation page.Licenselibinfinittonis released under the MIT license.libinfinitton is based on a nodejs based version.The project owners are not affiliated with iDisplay Technology Co., Ltd, the creator of the Infinitton device.
Package: libinjection-python
Libinjection-pythonLibinjection-python is a wrapper based on Cython for theLibinjection library.Libinjection Version: v3.10.0(Released on 22 May 2017)RequirementsPython 2.7 or 3.4+Cython module (install via pip)Installationpip install libinjection-pythonUsageCheck for SQL Injection>> import libinjection
>> libinjection.is_sql_injection("http://testphp.vulnweb.com/main.php?SmallClass=' union select * from news where 1=2 and ''='")
{'is_sqli': True, 'fingerprint': 'sUEok', 'token_vector': [{'pos': 0, 'len': 31, 'count': 0, 'type': 115, 'str_open': 0, 'str_close': 39, 'val': b'http://testphp.vulnweb.com/main'}, {'pos': 49, 'len': 5, 'count': 0, 'type': 85, 'str_open': 0, 'str_close': 0, 'val': b'union'}, {'pos': 55, 'len': 6, 'count': 0, 'type': 69, 'str_open': 0, 'str_close': 0, 'val': b'select'}, {'pos': 62, 'len': 1, 'count': 0, 'type': 111, 'str_open': 0, 'str_close': 0, 'val': b'*'}, {'pos': 64, 'len': 4, 'count': 0, 'type': 107, 'str_open': 0, 'str_close': 0, 'val': b'from'}, {'pos': 69, 'len': 4, 'count': 0, 'type': 110, 'str_open': 0, 'str_close': 0, 'val': b'news'}, {'pos': 0, 'len': 0, 'count': 0, 'type': 0, 'str_open': 0, 'str_close': 0, 'val': b''}, {'pos': 0, 'len': 0, 'count': 0, 'type': 0, 'str_open': 0, 'str_close': 0, 'val': b''}]}Check for Cross Site Scripting>> libinjection.is_xss("http://testphp.vulnweb.com/index.php?name=guest<script>alert('attacked')</script>")
{'is_xss': True, 'flag': 0}LicenseCopyright (c) 2021 wzhvictorLicensed under the GNU General Public License v3.
Package: libinsdb
LibinsdbA library to interface Python scripts with anInstrumentDBdatabase.DocumentationThe manual is available athttps://libinsdb.readthedocs.io/en/latest/.To build a copy of the documentation locally, runpoetry install --with docsto install the additional dependencies needed to update the documentation and then runpoetry run make -C docs htmlThe index will be available in the folderdocs/_build/html/.
Package: libinsitu
IntroductionThis repository holds python code/tools to transform in-situ irradiation data to NetCDF and load / manipulate
the result files locally or other the OpenDAP protocol.InstallationThis code is available as a PIP package :pip install libinsituDocumentationThe full documentation of Python & CLI API is available here :https://libinsitu.readthedocs.io/en/latest/ResourcesThe scientific paper explaining this workA proposed convention for NetCDF encoding of in-situ dataOur Thredss (TDS) server holding in-situ data of hundred of stations, encoded with this libraryA web interface to explore this data, with map & time seriesCopyright & LicenceThis library is copyrighted byO.I.E center / Mines-Paristech.The code is distributed under theBSD type 2 licenceContactFor comment & discussions around this work, please join the mailing listsolar-insitu@groupes.mines-paristech.fr
Package: libinsitu-dev
IntroductionThis repository holds python code/tools to transform in-situ irradiation data to NetCDF and load / manipulate
the result files locally or other the OpenDAP protocol.InstallationThis code is available as a PIP package :pip install libinsituDocumentationThe full documentation of Python & CLI API is available here :https://libinsitu.readthedocs.io/en/latest/ResourcesThe scientific paper explaining this workA proposed convention for NetCDF encoding of in-situ dataOur Thredss (TDS) server holding in-situ data of hundred of stations, encoded with this libraryA web interface to explore this data, with map & time seriesCopyright & LicenceThis library is copyrighted byO.I.E center / Mines-Paristech.The code is distributed under theBSD type 2 licenceContactFor comment & discussions around this work, please join the mailing listsolar-insitu@groupes.mines-paristech.fr