Saravanan666/pypi-org huggingface dataset:
Package: pylibconfig2
pylibconfig2Pure python library for libconfig syntax. IO works via strings, and include
directives.UsageScalar types are pythons basic types str, int, long, float, bool. The libconfig
types Array, List, Group are implemented as ConfArray, ConfList, ConfGroup,
respectively. A config is setup from a string only, and represented as a string
automatically.The configConfig represents a libconfig configuration. The string representation is itself
readable as a config. Access works via attributes:>>> import pylibconfig2 as cfg
>>> c = cfg.Config("my_setting = 5;")
>>> str(c)
'my_setting = 5;'
>>> c.my_setting
5Or via lookup as in the original libconfig way (no exceptions are raised):>>> c = Config('my = {nested = {sett = (0, {ng = "rocks!"})}}')
>>> c.lookup('my.nested.sett.[1].ng')
'rocks!'
>>> c.lookup('my.nested.foo', 'bar')
'bar'Setting values should be done by path (but attribution is also possible):>>> c = Config('')
>>> c.setup('foo', 1)
True
>>> c.setup('bar', '{hello = "world"}')
True
>>> c.lookup('bar.hello')
'world'
>>> c.setup('a.nonexisting.group', '"returns False!"')
FalseThese functions are given for further convenience:keys()
values()
items()
get(key, default)
set(key, value)An arrayConfArray represents a libconfig array. Access works via the [] operator:>>> c = cfg.Config("my_array = [1, 2, 3];")
>>> c.my_array[1]
2A listConfList represents a libconfig list. Access works via the [] operator:>>> c = cfg.Config('my_list = (1.5, 2L, 0xee, "string");')
>>> c.my_list[1]
2LA groupConfGroup represents a libconfig group. Access works via attributes:>>> c = cfg.Config("my_group = {my_setting = 5;};")
>>> c.my_group.my_setting
5Again, these functions are given for convenience:keys()
values()
items()
get(key, default)
set(key, value)
Package: pylibcontainer
RequirementsPython 2.7 or 3.4+ (currently tested with 2.7, 3.4)InstallationsudopipinstallpylibcontainerExamplessudopylibcontainer\runhttp://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-minirootfs-3.7.0-x86_64.tar.gzBugs and Feature RequestsBug reports and feature requests are happily accepted via theGitHub
Issue Tracker.
Pull requests are welcome. Issues that don’t have an accompanying pull
request will be worked on as my time and priority allows.GuidelinesTestingTesting is done viapytest, driven bytox.Testing is as simple as:sudopipinstalltoxtoxRelease Checklist
Package: pylibCZIrw
pylibCZIrw - Python wrapper for libCZIThis project provides a simple and easy-to-use Python wrapper forlibCZI- a cross-platform C++ library intended for providing read and write access to CZI image documents.Important RemarksAt the moment,pylibCZIrwcompletely abstracts away the subblock concept, both in the reading and in the writing APIs.The core concept of pylibCZIrw is focussing on reading and writing 2D image planes by specifying the dimension indices and its location in order to only read or writewhat is really needed.It allows reading data via http/https-protocol enabling cloud storage scenarios.Example UsagefrompylibCZIrwimportcziaspyczifilepath="myimagefile.czi"# open the CZI document to read thewithpyczi.open_czi(filepath)asczidoc:# get the image dimensions as a dictionary, where the key identifies the dimensiontotal_bounding_box=czidoc.total_bounding_box# get the total bounding box for all scenestotal_bounding_rectangle=czidoc.total_bounding_rectangle# get the bounding boxes for each individual scenescenes_bounding_rectangle=czidoc.scenes_bounding_rectangle# read a 2D image plane and optionally specify planes, zoom levels and ROIsimage2d=czidoc.read(plane={"T":1,"Z":2,"C":0},zoom=1.0,roi=(0,0,50,100))The detailed usage can be inferred from this sample notebook:For more detailed information refer to the pylibCZIrw-documentation.html shipped with the source distribution of this package (see theDownload filessection).InstallationIn case there is no wheel available for your system configuration, you can:try to install from the provided source distributionFor Windows:try tokeep paths short on systems with maximum path lengthsmakeWin10 accept file paths over 260 charactersreach out to the maintainers of this project to add more wheelsDisclaimerThe library and the notebook are free to use for everybody. Carl Zeiss Microscopy GmbH undertakes no warranty concerning the use of those tools. Use them at your own risk.By using any of those examples you agree to this disclaimer.Version: 2023.11.20Copyright (c) 2023 Carl Zeiss AG, Germany. All Rights Reserved.
Package: pylibdmtx
Read and write Data Matrix barcodes from Python 2 and 3 using thelibdmtxlibrary.Pure pythonWorks with PIL / Pillow images, OpenCV / imageio / numpyndarrays, and raw bytesDecodes locations of barcodesNo dependencies, other than the libdmtx library itselfTested on Python 2.7, and Python 3.5 to 3.10The olderpydmtxpackage is stuck in Python 2.x-land.InstallationThelibdmtxDLLs are included with the Windows Python wheels.
On other operating systems, you will need to install thelibdmtxshared
library.Mac OS X:brew install libdmtxLinux:sudo apt-get install libdmtx0aInstall this Python wrapper; use the second form to install dependencies of theread_datamatrixandwrite_datamatrixcommand-line scripts:pip install pylibdmtx
pip install pylibdmtx[scripts]Example usageThedecodefunction accepts instances ofPIL.Image.>>> from pylibdmtx.pylibdmtx import decode
>>> from PIL import Image
>>> decode(Image.open('pylibdmtx/tests/datamatrix.png'))
[Decoded(data='Stegosaurus', rect=Rect(left=5, top=6, width=96, height=95)),
 Decoded(data='Plesiosaurus', rect=Rect(left=298, top=6, width=95, height=95))]It also accepts instances ofnumpy.ndarray, which might come from loading
images usingOpenCV.>>> import cv2
>>> decode(cv2.imread('pylibdmtx/tests/datamatrix.png'))
[Decoded(data='Stegosaurus', rect=Rect(left=5, top=6, width=96, height=95)),
 Decoded(data='Plesiosaurus', rect=Rect(left=298, top=6, width=95, height=95))]You can also provide a tuple(pixels, width, height)>>> image = cv2.imread('pylibdmtx/tests/datamatrix.png')
>>> height, width = image.shape[:2]
>>> decode((image.tobytes(), width, height))
[Decoded(data='Stegosaurus', rect=Rect(left=5, top=6, width=96, height=95)),
 Decoded(data='Plesiosaurus', rect=Rect(left=298, top=6, width=95, height=95))]Theencodefunction generates an image containing a Data Matrix barcode:>>> from pylibdmtx.pylibdmtx import encode
>>> encoded = encode('hello world'.encode('utf8'))
>>> img = Image.frombytes('RGB', (encoded.width, encoded.height), encoded.pixels)
>>> img.save('dmtx.png')
>>> print(decode(Image.open('dmtx.png')))
[Decoded(data=b'hello world', rect=Rect(left=9, top=10, width=80, height=79))]Windows error messageIf you see an uglyImportErrorwhen importingpylibdmtxon
Windows you will most likely need theVisual C++ Redistributable Packages for
Visual Studio 2013.
Installvcredist_x64.exeif using 64-bit Python,vcredist_x86.exeif
using 32-bit Python.LimitationsFeel free to submit a PR to address any of these.I took the bone-headed approach of copying the logic inpydmtx’sdecodefunction (inpydmtxmodule.c); there might be more oflibdmtx’s functionality that could usefully
be exposedI exposed the bare minimum of functions, defines, enums and typedefs neede to
reimplementpydmtx’sdecodefunctionContributorsVinicius Kursancew (@kursancew) - first implementation of barcode writingJoseph Weston (@jbweston) - support forlibdmtx0.7.5Licensepylibdmtxis distributed under the MIT license (seeLICENCE.txt).
Thelibdmtxshared library is distributed under the Simplified BSD license
(seelibdmtx-LICENCE.txt).
Package: pylibec
erasure code library for python概述pylibec模块是使用Python编写纠删码支持模块。工程主页:https://github.com/zoumingzhe/pylibec下载地址:https://pypi.python.org/pypi/pylibec法律许可: MITlicense, (C) 2021ZouMingzhe<zoumingzhe@qq.com>安装通过pip命令安装pylibec模块：pip install pylibec如果已经安装pylibec模块，可以通过pip命令更新：pip install--upgradepylibec更多安装信息请查阅安装文档。文档API（应用程序接口）文档、用法和例程可查阅documentation目录下的文档。.rst后缀文件可以在任何文本编辑器中查看或者使用Sphinx转换成HTML或PDF格式例程例程存放在工程文件的examples目录下。测试单元测试存放在工程文件的test目录下。支持本项目由ZouMingzhe<zoumingzhe@qq.com> 创建并维护。为了完善pylibec模块的功能，欢迎您贡献代码至:https://github.com/zoumingzhe/pylibec语言简体中文English
Package: pylibfdt
This tree contains a copy of libfdt from the upstream dtc project for thepurposes of pypi.org packaging. Other than changes to the packaging files,changes should be made upstream. The upstream sources are here:git://git.kernel.org/pub/scm/utils/dtc/dtc.gitTo install this you will need to install swig and Python development files.On Debian distributions:sudo apt-get install swig python3-devThe module can be installed with pip:pip install libfdtor via setup.py:./setup.py install [--user]
Package: pylibffm
pylibffmpylibffm is a wrapper around libffm to allow using scipy and numpy arrays as input.
pylibffm requires SSE and openmp.InstallingIf you're running python 3.7~3.11 on linuxpipinstallpylibffmOtherwisegitclone--recurse-submoduleshttps://github.com/Sinacam/pylibffmcdpylibffm
make
pipinstall.Currently, the distribution is incredibly hacky and cannot be pip installed from source.
Windows build support is lacking, but code should be correct.DocumentationThe API consists oftrainloadModelModel.saveModel.predictmake_bintrain_with_binUsehelpor read their docstring for their usage.Diff with libffmTo be deterministic, set openmp threads to 1. For pylibffm, doOMP_NUM_THREADS=1python<script>.pyFor libffm, run with-s 1(the default). This should yield identical models.
Package: pylibfinder
pylibfinderpylibfinder is a Python library that allows you to spot a keyword as a function inside the Python standard library.
It provides a convenient way to search for functions that match a given keyword within the standard library modules.
With pylibfinder, you can easily identify the modules and functions that are available in Python and gain insights
into their usage and availability. This library is designed to assist developers in finding relevant functions and understanding the Python standard library better.InstallationFor stable versionpip install pylibfinderFor developementgit clonehttps://github.com/Agent-Hellboy/pylibfindercd pylibfinder
make changes in funcfinder.c
compile it usinggcc -shared -o funcfinder.so -fPIC -I /usr/include/python3.12 funcfinder.cit will generate a funcfinder.so
open repl and testExample>>>importfuncfinder>>>funcfinder.get_module('literal')[{'Module':'ast','Function':'literal_eval'},{'Module':'re._compiler','Function':'_get_literal_prefix'}]>>>ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Package: pylibftdi
pylibftdi is a minimal Pythonic interface to FTDI devices usinglibftdi.Features:No dependencies beyond standard library and alibftdiinstall.Supports parallel and serial devicesSupport for multiple devicesFile-like interface wherever appropriateCross-platformLimitations:The API might change prior to reaching a 1.0 release.UsageThe primary interface is theDeviceclass in the pylibftdi package; this
gives serial access on relevant FTDI devices (e.g. the UM232R), providing a
file-like interface (read, write).  Baudrate is controlled with thebaudrateproperty.If a Device instance is created withmode='t'(text mode) then read() and
write() can use the givenencoding(defaulting to latin-1). This allows
easier integration with passing unicode strings between devices.Multiple devices are supported by passing the desired device serial number (as
a string) in thedevice_idparameter - this is the first parameter in both
Device() and BitBangDevice() constructors. Alternatively the device ‘description’
can be given, and an attempt will be made to match this if matching by serial
number fails.Examples>>> from pylibftdi import Device
>>>
>>> with Device(mode='t') as dev:
...     dev.baudrate = 115200
...     dev.write('Hello World')The pylibftdi.BitBangDevice wrapper provides access to the parallel IO mode of
operation through theportanddirectionproperties.  These provide an
8 bit IO port including all the relevant bit operations to make things simple.>>> from pylibftdi import BitBangDevice
>>>
>>> with BitBangDevice('FTE00P4L') as bb:
...     bb.direction = 0x0F  # four LSB are output(1), four MSB are input(0)
...     bb.port |= 2         # set bit 1
...     bb.port &= 0xFE      # clear bit 0There is support for a number of external devices and protocols, including
interfacing with HD44780 LCDs using the 4-bit interface.History & MotivationThis package is the result of various bits of work using FTDI’s
devices, primarily for controlling external devices.  Some of this
is documented on the codedstructure blog, codedstructure.blogspot.comSeveral other open-source Python FTDI wrappers exist, and each may be
best for some projects. Some aim at closely wrapping the libftdi interface,
others use FTDI’s own D2XX driver (ftd2xx) or talk directly to USB via
libusb or similar (such aspyftdi).The aim for pylibftdi is to work with libftdi, but to provide
a high-level Pythonic interface.  Various wrappers and utility
functions are also part of the distribution; following Python’s
batteries included approach, there are various interesting devices
supported out-of-the-box - or at least there will be soon!PlansAdd more examples: SPI devices, knight-rider effects, input devices, MIDI…Perhaps add support for D2XX driver, though the name then becomes a
slight liability ;)LicenseCopyright (c) 2010-2023 Ben Bass <benbass@codedstructure.net>pylibftdi is released under the MIT licence; see the file “LICENSE.txt”
for information.All trademarks referenced herein are property of their respective
holders.
libFTDI itself is developed by Intra2net AG.  No association with
Intra2net is claimed or implied, but I have found their library
helpful and had fun with it…
Package: pylibgal3
InstallTo install this libary, just do the usual Python setup:# tar -xvzf libgal3-.tar.gz
# cd libgal3-# python setup.py installThat’s it for install.  You should be able to import the libg3 library after
that:(In your python script)
import libg3DocumentationSeehttp://stuffivelearned.org/doku.php?id=programming:python:libgal3for documentation info.Bug ReportsPlease post bug reports on github at:https://github.com/crustymonkey/pylibgal3/issues
Package: pylibgen
pylibgenPython interface to Library Genesis. Only the LibGen/Sci-Tech database is supported.This project is largely unmaintained as of the 2.0.2 release.I am willing to make or accept pull requests for small maintenance releases if they are trivial, but any changes required due to major/breaking changes with libgen's internals will not be implemented.Installationpylibgen is well-tested on Python 3.6 - 3.7, and can be installed viapip install pylibgen.Usage>>>frompylibgenimportLibrary>>>l=Library()>>>ids=l.search('stallman essays')>>>ids['112887','310297','688326','1594161','1610379']>>>book1,book2,*_=l.lookup(ids)>>>book1.__dict__{'id':'112887','title':'Free software, free society: selected essays of Richard M. Stallman','author':'Richard M. Stallman, Lawrence Lessig, Joshua Gay, Laurence Lessig','year':'2002','edition':'First Printing, First Edition','pages':'230','identifier':'9781882114986,1882114981','extension':'pdf','filesize':'2210323','md5':'861C055B960E7F36D95164CAB34E0E97'}>>>book2.__dict__{'id':'310297','title':'Free Software Free Society: Selected Essays of Richard Stallman','author':'Richard Stallman','year':'2010','edition':'2nd Edition','pages':'278','identifier':'0983159203,9780983159209','extension':'pdf','filesize':'1597349','md5':'6C3C2593BBB5D77154D50DFDDC0EA669'}>>>book1.get_url(filehost='b-ok.org')'http://b-ok.org/md5/861C055B960E7F36D95164CAB34E0E97'Support Library Genesis!Book.get_url(filehost='...')will return the standard filehost gateway url.There is no functionality to bypass any intermediate advertisement pages, and this behavior is intended because Library Genesis is a service worth supporting.Development SetupYou'll need python 3.6, python 3.7, andtox. It's recommended to usepyenvto install + manage python versions and executable modules. An example:$ pyenv install 3.6.8
$ pyenv install 3.7.3
$ pyenv global 3.7.3 3.6.8  # puts both pyenv-managed python3.6 and python3.7 on the PATH for tox
$ python3.7 -m pip install tox  # python will be resolved to 3.7.3 by pyenv's shim, this is just being explicitTo run pre-commit hooks and tests for all supported python versions (make sure you're not in a virtualenv before running this):$ toxTo enter the version-specific virtualenv created above (you'll need this to commit withpre-commithooks):$ source .tox/py37/bin/activateTo only create the tox virtualenvs without running any (test) commands:$ tox --notestDisclaimerUsepylibgenresponsibly and at your own risk. The author(s) are not responsible or liable for any piracy, copyright infringement, or other offences committed by anyone using this software. Please consider supporting your favorite authors by purchasing their works!
Package: pylib-helpers
pylib-helpersHelpers for logging, sleeping, and other common functional work done across projectsRetryHandlerSamples can be found here in thetestsExample usage:fromsomelibimportClientErrorfromhelpersimportLogger,RetryHandler,SleeperLOGGER=Logger()SLEEPER=Sleeper()def_client_error(err_obj):err_msg=str(err_obj)if"Recoverable"notinerr_msg:raiseerr_objelse:LOGGER.print_error(err_msg)SLEEPER.normal_sleep()@RetryHandler((ClientError),max_retries=10,wait_time=0,err_callbacks={"ClientError":(_client_error,{})},).wrapdefdo_the_thing(data):pass
Package: pylibics
Table of ContentsIntroductionLimitations and known bugsInstallation instructionsWindowsLinuxUsageRelease ChangesIntroductionThe Image Cytometry Standard (ICS) is a file format for images, primarily in
microscopy imaging. The file format has been described byDean1990. ICS
files allow to store further information on the imaging system along with the
actual image (e.g aperture, light setting, microscope, and camera). Moreover,
the file format allows to store several integer format, floating point images as
well as complex valued images.The librarylibicsis a C library to read an write ICS image files. This
module wraps the functions provided by libics to Python. Actual image data are
returned as numpy arrays. Numpy array in turn can be written to ICS image files.Limitations and known bugsIcs data written as version 2.0 is brokenAccessing ics history entries with the iterator interface
seems not to work properlyCompression appears to be not workingInstallation instructionsYou can download thesource code packageto compile everything yourself or
you can use easy_install to install the precompiled package (py2.6, win32 and
linux, x86_64). To compile the package please follow the instructions provided
in the README file.WindowsInstalling with easy_install is done by calling from the windows command
prompt (C:>):C:> easy_install pylibicsLinuxInstalling with easy_install is done by calling from the command prompt:> easy_install pylibicsUsagePlease see theproject homepagefor usage examples. Also refer to the
examples provided in the source package.Release Changes1.5.2b1, Released 2010-11-23Basic support for libics
Package: pylibiio
libiio: Python BindingsThis package contains the python bindings for libiio, a library for interfacing with Linux IIO devices.libiio is used to interface to the Linux Industrial Input/Output (IIO) Subsystem. The Linux IIO subsystem is intended to provide support for devices that in some sense are analog to digital or digital to analog converters (ADCs, DACs). This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs, Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity Sensors, Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital Synthesis), PLLs (Phase Locked Loops), Variable/Programmable Gain Amplifiers (VGA, PGA), and RF transceivers. You can use libiio natively on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target from a host Linux, Windows or MAC over USB or Ethernet or Serial.Library License :Tests/Examples License :Latest Release :Downloads :Scans :Release docs:Issues :Support:If you have a question about libiio and an Analog Devices IIO kernel driver please ask on :. If you have a question about a non-ADI devices, please ask it ongithub.RequirementsTo use these bindings naturally you need the core library they depend upon, libiio. This is not packaged with the pypi release but there are a number of options:If you want to just use libiio, we suggest using thelatest release.If you think you have found a bug in the release, or need a feature which isn't in the release, try the latestuntestedbinaries from the master branch and check out thedocumentationbased on the master branch. We provide builds for a few operating systems. If you need something else, we can most likely add that -- just ask.Installing the bindingsTo install these bindings there are a few methods. If you already have the library itself and just need the bindings, pip is the most convenient method:(sudo)pipinstallpylibiioIf you do not want to use pip, then installation is dependent on your operating system.Linux / macOSFor Linux and macOS the python bindings need to be installed through source if not using pip. For v0.20 and beyond this requires the-DPYTHON_BINDINGS=ONflag during the cmake configuration. Further documentation is locatedhere.WindowsOnly pip installation is supported.SupportIf you have a question about libiio or the python bindings and an Analog Devices IIO kernel driver please ask on :. If you have a question about a non-ADI devices, please ask it ongithub.If you use it, and like it - please let us know. If you use it, and hate it - please let us know that too. The goal of the project is to try to make Linux IIO devices easier to use on a variety of platforms. If we aren't doing that - we will try to make it better.Feedback is appreciated (in order of preference):Github trackersfor bugs, improvements, or feature requestsAnalog Devices web forumsfor general help on libiio and/or ADI Linux IIO driversThe IIO mailing listfor questions about other Linux IIO drivers, or kernel-specific IIO questionsUseful resourcesAbout IIOAPI DocumentationLibiioLibiio internals
Package: pylibimp
Python utility for keeping track of packages that were imported and isolating imports.Installpip install pylibimpExampleNormal Import Hook to save an imports dependent modulesimportpylibimpwithpylibimp.SaveBuiltinsImportHook()asimp:importpylibimpimporturllib3modules=imp.get_modules()assert'pylibimp'inmodulesassert'urllib3'inmodulesImport a module but keep the original systemimportsysimportpylibimpmodules=sys.modules.copy()withpylibimp.original_system():importurllib3assert'urllib3'notinmodules
Package: pylibinjection
Pylibinjection is a wrapper for the Libinjection library (https://github.com/client9/libinjection).RequirementsPython 2.5 or laterPython-dev (Python header files)Optional cython$ apt-get install python-devInstallation$ pip install pylibinjectionUsage$ python
>>> import pylibinjection
>>> pylibinjection.detect_sqli("anything' OR 'x'='x';")DevelopersPylinjection embeds libinjection as a submodule, which means that you must clone the repo with the–recursiveoption:$ git clone --recursive https://github.com/glastopf/pylibinjection.gitLicense informationCopyright (C) 2013 Angelo Dell’Aera <buffer@antifork.org>License: GNU General Public License, version 2 or later; see COPYING.txt included in this archive for details.