Saravanan666/pypi-org huggingface dataset:
Package: libipld
Python IPLDThis project aims to speed upThe AT Protocol SDKby using Rust for the heavy lifting. Only atproto related parts are implemented first.Code snippet:importlibipld# Decode a CIDprint(libipld.decode_cid('bafyreig7jbijxpn4lfhvnvyuwf5u5jyhd7begxwyiqe7ingwxycjdqjjoa'))# Output: {'hash': {'size': 32, 'code': 18, 'digest': b'\xdfHP\x9b\xbd\xbcYOV\xd7\x14\xb1{N\xa7\x07\x1f\xc2C^\xd8D\t\xf44\xd6\xbe\x04\x91\xc1)p'}, 'version': 1, 'codec': 113}# DAG CBORprint(libipld.decode_dag_cbor(b'\xa2aa\x0cabfhello!'))# Output: {'a': 12, 'b': 'hello!'}print(libipld.encode_dag_cbor({'a':12,'b':'hello!'}))# Output: b'\xa2aa\x0cabfhello!'# multibaseprint(libipld.decode_multibase('ueWVzIG1hbmkgIQ'))# Output: ('u', b'yes mani !')print(libipld.encode_multibase('u',b'yes mani !'))# Output: ueWVzIG1hbmkgIQFeaturesDecode DAG CBOR (decode_dag_cbor(bytes) -> dict,decode_dag_cbor_multi(bytes) -> list[dict])Encode DAG CBOR (encode_dag_cbor(obj) -> bytes)Decode CID (decode_cid(str) -> dict)Decode CAR (decode_car(bytes) -> tuple[dict, dict[str, dict]]). Returns a header and blocks mapped by CID.Decode Multibase (decode_multibase(str) -> tuple[str, bytes]). Returns base and data.Encode Multibase (encode_multibase(str, bytes) -> str). Accepts base and data.Note: stub file will be provided in the future.RequirementsPython 3.7 or higher.InstallingYou can install or upgradelibipldviapipinstalllibipldContributingContributions of all sizes are welcome.LicenseMIT
Package: libit
LibitFast and easy converted and generated utils for bitcoin , ethereum and tron wallet in pythoninstall & usewindowspip install libitlinux & macpip3installlibitgenerated and convert base utils key for wallet information and public , private datahow tobytes to wiffromlibitimportbytes_wifseed_bytes=b"Bytes data (32 bytes)"# wif compressedwif_compress=bytes_wif(seed_bytes,True)wif_decompress=bytes_wif(seed_bytes)bytes to addressfromlibitimportbytes_addrseed_bytes=b"Bytes data (32 bytes)"# compressedcaddr=bytes_addr(seed_bytes,True)# uncompresseduaddr=bytes_addr(seed_bytes)bytes to ethereum addressfromlibitimportbytes_ethseed_bytes=b"Bytes data (32 bytes)"eth_addr=bytes_eth(seed_bytes)wif to address:convert wif key to compressed and uncompressed address walletimportlibitwif_str="Wif Data String"# compressedcaddr=libit.wif_addr(wif,True)# uncompresseduaddr=libit.wif_addr(wif)private key to wifconvert private key (hex) to wif compressed and uncompressedimportlibitpvk_hex="hex private key"# compressedwif_compress=libit.pvk_to_wif(pvk_hex,True)# uncompressedwif_decompress=libit.pvk_to_wif(pvk_hex)private key to decimalimportlibitpvk="hex private key"decimal=libit.pvk_to_decimal(pvk)private key to addressimportlibitpvk="hex private key"compress_addr=libit.privatekey_addr(pvk,True)uncompress_addr=libit.privatekey_addr(pvk)
Package: libjpathgen
libjpathgenA fast 2D cubeature library written in C++, with Python bindings.InstallationIf you're simply looking for python, runpip install libjpathgen.Else, to install the C++ library runpipinstallgit+https://github.com/iwishiwasaneagle/libjpathgen.gitcdlibjpathgen
cmake\-Bbuild-DCMAKE_BUILD_TYPE=Release\..
cmake\--buildbuild\--targetinstallDependenciescubpackppEnsurecubpackpp>=1.0.0is installed from source.Eigen3Please see theofficial documentation.libgeosThe minimum supported version of libgeos is3.11.1. This means that it must be built from source inubuntu 20.4as
evenppa:ubuntugis/ubuntugis-unstablecannot help here (3.10.2is the maximum installable viaapt).pybindThe minimum version of pybind11 depends on the version of python. It is advised to either install from source or
using pip (pip install "pybind11[global]>=2.11.0").WARNING:Ubuntu 22.04only ships withpybind11@v2.9.1.Pythonpybind11-dev3.102.9.03.112.10.03.122.11.0Run testsCatch2>=v3.4.0is required (seeCI.yml)cmake-Bbuild\-DJPATHGEN_ENABLE_UNIT_TESTING=ON\-DCMAKE_BUILD_TYPE=Debug
cmake--buildbuild-j$(nproc)ctest--test-dirbuildWith coverageAdd-DJPATHGEN_ENABLE_CODE_COVERAGE=ONto the initial cmake call.lcov--capture--directorybuild--output-filecoverage.info
lcov--removecoverage.info--output-filecoverage.info'/usr/*''*/test/*''*/extern/*''*/geos/*'genhtmlcoverage.info-obuild/html
firefoxbuild/html/index.html
Package: libjson2csv
libjson2csv========*Converts nested json object to csv and csv back to json*This package provides functionality to convert valid nested json objects/files to csv and vice versa.Written in python 3Usage-----To convert json to csv```usage: python -m libjson2csv.json_2_csv [--m] <json_in_file_path> [<csv_out_file_path>]```To convert csv to json```usage: python -m libjson2csv.csv_2_json <csv_in_file_path> [<json_out_file_path>]```If the output file path is not provided the output will be dumped to STDOUT.Specifications--------------Scripts expects a valid json.* JSON can be a valid nested object or a list.* Script will convert each item of the list to a corresponding row in the csv.* If JSON is dictionary the outputted csv will contain single row.Example:*Converts JSON*```json{"key_1_1": "val_1_1_1","key_1_2": ["val_1_2_1","val_1_2_2","val_1_2_3"],"key_1_3": [{"key_1_3_2_1": "val_1_3_2_1_1"}, {"key_1_3_2_1": "val_1_3_2_1_2"}, {"key_1_3_2_1": "val_1_3_2_1_3"}],"key_1_4": {"key_1_4_2_1": "val_1_4_2_1_1"},"key_1_5": {"key_1_5_2_1": [{"key_1_5_2_3_1": "val_1_5_2_3_1_1"}]}}```*TO*Without `--m` flag|key_1_1 | key_1_2[0] | key_1_2[1] | key_1_2[2] | key_1_3[0].key_1_3_2_1 | key_1_3[1].key_1_3_2_1 | key_1_3[2].key_1_3_2_1 | key_1_4.key_1_4_2_1 | key_1_5.key_1_5_2_1[0].key_1_5_2_3_1||----|----|----|----|----|----|----|----|----||val_1_1_1 | val_1_2_1 | val_1_2_2 | val_1_2_3 | val_1_3_2_1_1 | val_1_3_2_1_2 | val_1_3_2_1_3 | val_1_4_2_1_1 | val_1_5_2_3_1_1|With `--m` flag|*key_1_2|key_1_1|key_1_3[0].key_1_3_2_1|key_1_3[1].key_1_3_2_1|key_1_3[2].key_1_3_2_1|key_1_4.key_1_4_2_1|key_1_5.key_1_5_2_1[0].key_1_5_2_3_1||----|----|----|----|----|----|----||val_1_2_1;val_1_2_2;val_1_2_3|val_1_1_1|val_1_3_2_1_1|val_1_3_2_1_2|val_1_3_2_1_3|val_1_4_2_1_1|val_1_5_2_3_1_1|`--m` stores a simple list in  a single column with items separated by a semicolon.0.1.0 (2017-04-15)------------------- Initial version.
Package: lib-kaasknak
InstallationTo install this package it is best to use pip3.In order to install this package type:pip3 install lib-kaasknakUsageIn order to use the package import lib in your python editor of choice.The commands that can be used are:ElementZ(input) which gives the Z-value of the corresponding element.ElementN(input) which gives the name of the element corresponding to this Z-value.NatComp(input) which gives the isotopes in nature and their fractions.Exampleimportliba=lib.ElementZ("Gd")b,c=lib.NatComp("Gd")print(a)print(b)print(c)64[152, 154, 155, 156, 157, 158, 160][0.002, 0.0218, 0.148, 0.2047, 0.1565, 0.2484, 0.2186]SidenoteIf the element has no natural occuring isotopes it will return a list with one 0 in it. If the element only has traces of an isotope occuring in nature it will return the mass numbers of these traces. In both cases the fractions list will contain a single 0.Data is gather from the wikipedia page for every individual element.
Package: libkg
LibKGPython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://libkg.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-10-25)First release on PyPI.
Package: libkosciuszko
libkosciuszkokosciuszko is a simple vault for storing secrets on GNU/Linux. It is heavily inspired byencnote.This lib implements all basic features. See alsokosciuszko-utilsfor CLI interfaces.RationaleAll existing approaches to storing arbitrary secrets on Linux are shit. kosciuszko is a general purpose vault which supercedes all existing approaches. It uses standard technologies and so can easily be implemented in e.g. shell or any arbitrary language.MethodUnsecured secrets are stored in a directory. This directory is then folded into a squashfs, and then encrypted with a GPG key.
To access secrets, the process is simply reversed.UsageImport withpython3 -m pip install --user libkosciuszko. Create a kosciuszko object withgpg_id = "example@example.com"	# Email, key name, key ID etc
store = "example.kos"			# Filename
kosciuszko = Kosciuszko(gpg_id, store)There are several core methods.kosciuszko.new() 					# Initialise a new store
ls = kosciuszko.list() 				# List contents of a store, either in machine friendly or user-friendly formats (detailed=True flag)
kosciuszko.addfile(filename, data) 	# Add a file called filename, containing data `data` (bytes)
kosciuszko.getfile(filename) 		# Retrieve file called filenameHomepagehttps://git.sr.ht/~happy_shredder/libkosciuszkoLicenseGPLv3+
Package: libkubeselector
# libkubeselector
K8s selector expand library
Kubernites selector lib warapper for python# Usage## Installing:` pip install libkubeselector `# Developing## Depends:golang 1.13+## Building:` python3.7 setup.py bdist_wheel `## Publishing:Build the manylinux distributionalternatively, rename platform tag tomanylinux1_x86_64Upload` twine upload dist/* `
Package: libLAS
libLAS is a C/C++ library for reading and writing the very commonLASLiDARformat. TheASPRS LAS formatis a sequential binary format used to
store data from LiDAR sensors and by LiDAR processing software for data
interchange and archival.libLAS’ initial development was supported in 2007-2008 by theIGSBof the
Iowa DNR for use in its state-wideLIDARproject.  Ongoing support for
libLAS is provided by a number of organizations including theU.S. Army Cold Regions Research and Engineering Laboratory.Pre-requisitesThe Python bindings require the libLAS base C and C++ libraries be installed.
Obtain a source copy of the library fromhttp://liblas.org/download.htmland
follow the compilation instructions athttp://liblas.org/compilation.htmlto
build and install the library.News02/02/2011libLAS 1.6.0 adds a number of new features:Compression/decompression support viaLASzipOctree indexingTiling support vialasblockLoading data toOracle Point Cloudvialas2ociHorizontal and vertical reprojectionXML summary output vialasinfoUpdates to the Python API include support for manipulating raw point data,
rescaling support through manipulation ofpoint.header, and a number of
additions to bring things in line with the libLAS C++ API.NotesThe Windows builds provided by PyPI include statically-linkedLASzipsupport,
but do not provide coordinate system support viaGDALorlibgeotiff.
Because the Windows binaries provideLASzipsupport, which is LGPL, they
should be considered LGPL as well.If you need coordinate system support, or fully-featuredtools, obtain an
install viaOSGeo4W.OSGeo4Wdoes include its own Python 2.5, however,
which may what you need, but libLAS’ bindings are not tied to any specific
Python version (they usectypes), and you should be able to piece together
a system that way.DocumentationAtutorialandclass documentationare provided.LicenselibLAS is available under the terms of theBSD License.
SeeLicensefor a copy.
Package: libleipzig
libleipzig-pythonprovides a wrapper to the web services provided by theDeutscher Wortschatzproject of the University of Leipzig.Deutscher
Wortschatzis a German database of text corpora and can be utilized to analyze
and contextualize words in the thesaurus.libleipzigcurrently supports all
public service calls. These do not require authentication and are providedfree
of chargefor private or scientific purposes. Supplying authentication credentials and fetching from different corpora is supported too.Example>>> from libleipzig import *
>>> r = Baseform(u"Schlangen")
>>> r
[(Grundform: u'Schlange', Wortart: u'N'),
 (Grundform: u'Schlangen', Wortart: u'S')]
>>> r[0].Grundform
u'Schlange'
>>> help(Baseform)
Help on function Baseform in module libleipzig.protocol:
Baseform(*vectors, **options)
    Baseform(Wort) -> Grundform, Wortart
        Return the lemmatized (base) form.
>>>
Package: liblinker
This utility creates an organized album -> artist -> track directory
structure from a given folder containing music files. If you…Want to organize your massive torrent folder while keeping everything
seedingWant to merge multiple music folders into one locationDon’t have permission to move the original filesWant to keep iTunes files or other junky application files out of
your original library (use liblinker -> point iTunes/whatever at the
output directory)This is for you.Supported formats:MP3, FLAC, Wave, MP4 (M4A/AAC)Requires Python 3.4+Hard links are used when possible, otherwise symlinks are used.Usageliblinker IN_DIR OUT_DIR [--silent] [--mode=link]

--mode=
    link: Creates links to the source files in the target directory. This is the default behavior.
    copy: Copies source files to the target directory, keeping original files.
    move: Moves source files from the source directory to the target directory.

--silent: All output will be suppressed except for error messages.
Package: liblip
liblipLiblip is a library for multivariate scattered data interpolationThe Lipschitz interpolant possesses a number of desirable features, such as continuous dependence on the data, preservation of Lipschitz properties and of the range of the data, uniform approximation and best error bounds. On the practical side, construction and evaluation of the interpolant is com- putationally stable. There is no accumulation of errors with the size of the data set and dimension.In addition to the Lipschitz constant, the user can provide information about other properties of f, such as monotonicity with respect to any subset of variables, upper and lower bounds (not necessarily constant bounds). If the data are given with errors, then it can be smoothened to satisfy the required properties. The Lipschitz constant, if unknown, can be estimated from the data using sample splitting and cross-validation techniques. The library also provides methods for approximation of locally Lipschitz functions.There are two alternative ways to compute the interpolant: fast and explicit.The fast method involves a preprocessing step after which the speed of evaluation is proportional to the logarithm of the size of the data set.The second alternative is to use the explicit evaluation method, which does not require any preprocessing. We recommend this method for most applications, as it provides more flexibility with smoothing and incorporating other properties of f.DocumentationUser ManualInstallationTo install type:$pipinstallliblipUsage of the libraryimportliblipasllFollow these steps in your Python code to use the library:Initialize resourcesUse library function(s)Free resourcesExample how to initialize resourcesdim=3<br>npts=1500<br>x,XData,YData=ll.init(dim,npts)<br>Example how to free resourcesll.free()<br>Usage of library functionsTo use a library function follow these steps:Initialize input arrays.Initialize input parameters.Call liblip function.Evaluate output parameters.Exampleimportliblipaslldim=3npts=1500x,XData,YData=ll.init(dim,npts)# to be continuedll.free()ParametersInput parameters:See input parameter list in user manualOutput parameters:See output parameter list in user manualTestTo unit test type:$test/test_procedural.py
Package: liblistenbrainz
liblistenbrainzliblistenbrainzis a simple Python library for theListenBrainz Web API.liblistenbrainz will help you start getting data from and submitting data toListenBrainzvery quickly.Here's an example of getting the listening history of a ListenBrainz user::importliblistenbrainzclient=liblistenbrainz.ListenBrainz()listens=client.get_listens(username='iliekcomputers')forlisteninlistens:print("Track name:",listen.track_name)print("Artist name:",listen.artist_name)Here's another quick example of how to submit a listen to ListenBrainz::importliblistenbrainzimporttimeauth_token=input('Please enter your auth token: ')listen=liblistenbrainz.Listen(track_name="Fade",artist_name="Kanye West",release_name="The Life of Pablo",listened_at=int(time.time()),)client=liblistenbrainz.ListenBrainz()client.set_auth_token(auth_token)response=client.submit_single_listen(listen)More detailed documentation is available
atRead The Docs.Featuresliblistenbrainz provides easy access to all ListenBrainz endpoints, handles
ratelimits automatically and supports the ListenBrainz authorization flow.For details on the API endpoints that can be used via liblistenbrainz, take
a look at theListenBrainz API Documentation.InstallationInstall or upgrade liblistenbrainz with:pip install liblistenbrainz --upgradeSupportYou can ask questions about how to use liblistenbrainz on IRC (freenode #metabrainz).
You can also email me atiliekcomputers [at] gmail [dot] com.If you have found a bug or have a feature request, let me know by opening an issue (or a pull request).Licenseliblistenbrainz - A simple client library for ListenBrainz
Copyright (C) 2020 Param Singh <iliekcomputers@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: liblistloader
liblistloaderLibrary for loading word lists from files. Built forlibnamegenFeaturesEasy to useImported as moduleAlways tested before releaseOfficially supports latest two versions of Python 3Included word listsliblistloader.desiquintans_nounlist:The Great Noun Listby desiquintans.comHow to InstallRun the commandpip install liblistloader. If you want to specify a specific Python version to use for pip, use a command such aspip3orpip3.8.DocumentationAPITo import a single list, typeimport liblistloader.[word list]. Then, you can get a list, each item being a word in the word list, by typingliblistloader.[word list].words.WARNING! These lists are VERY long! For example, desiquintans_nounlist is 6,801 words long! Therefore,liblistloader.desiquintans_nounlist.wordsreturns a list with 6,801 items in it. I would not recommend the following code for your sanity:importliblistloader.desiquintans_nounlistforwordinliblistloader.desiquintans_nounlist.words:print(word)Output (total 6,801 lines):ATM
CD
SUV
TV
aardvark
abacus
abbey
abbreviation
abdomen
...Import all noun lists and pick a random word from a few:importrandomimportliblistloaderprint("desiquintans_nounlist: "+random.choice(liblistloader.desiquintans_nounlist.words))Output (will vary because a random word is being picked):desiquintans_nounlist: velocityLicenseliblistloaderis licensed under the GPLv3 license. For more information, please refer toLICENSE.
Package: libloader
Quickly and easily load shared libraries from various platforms. Also includes a libloader.com module for loading com modules on Windows.Home-page: UNKNOWN
Author: Christopher Toth
Author-email:q@q-continuum.netLicense: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries
Package: libmake
A python library for implementingmakefile.pyscripts.Run withpymake!# makefile.pyimportshutilimportlibmakefromlibmakeimportrule_varsasrmakefile=libmake.Makefile()@makefile.add_rule("ciao.html",["come.md","va.scss"])deftest_rule():# fp = first_prerequisite# t = targetshutil.copy(str(r.fp),str(r.t))print("Ciao, come va?")if__name__=="__main__":libmake.run_make(makefile)Non-goalsThe goal of this package it's not:to provide any pre-builtMakefileto deliver an alternative build-system for compiled languagesFor the second one there is alreadymake, and other tools specific for more
recent languages.Instead...Makefile's logic it's useful for projects' tasks automation further than
compiling code, e.g.:compiling templates and contentsdefine project's specific commandsuseful also for collaboration (and to save working patterns anyhow)UsageDefine amakefile.pyusing building blocks provided, then run it as a script
with targets (so dopython makefile.py args...in place ofmake args...).Seetests/makefile.pyfor an example makefile definition, and runtests.pyto show its output.
Package: libmath
libMathA library for math in Python.Featuresadd(num1, num2) - Adds two numbers togethertake(num1, num2) - Takes num2's value from num1's valuedivide(num1, num2) - Divides num1 with num2multiply(num1, num2) - Multiplies num1 with num2.sqrt(num) - Calculates the square root from a numberVariablespi - Pi.e - E.infinity - Inf.Oh, and the first number in the version number is a full release, the second number in the version number is a half release and the last number is a small release.
Package: libMcPhase
libMcPhaselibMcPhase is a fork of theMcPhaseprojectintended to be a partial rewrite of
the code as a Python library.McPhase was originally developed as a series of C, C++, Perl and Basic programs.
The C/C++04 codes used theMATPACKandLAPACKlinear algebra libraries.libMcPhase will update the code to C++11 and use theEigenheader library instead of MATPACK/LAPACK.PyBind11is used as the python binding.Initially only the single-ion calculation modulesso1ion,ic1ionandclusterwill be ported to C+11.
Package: libmediainfo-cffi
This library provides a convenient CFFI wrapper forlibmediainfo, a lightweight library that displays information about video and audio files.
Supported attributeshere.QuickstartEasy enough:fromlibmediainfo_cffiimportMediaInfodata=MediaInfo.read_metadata(path)You can also pass options, e.g. if you want JSON output:fromlibmediainfo_cffiimportMediaInfodata=MediaInfo.read_metadata(path,Inform='JSON')Differences between this andpymediainfoThe main difference is that this library uses the API mode of CFFI, while pymediainfo uses the ABI mode. Libmediainfo_cffi approach is safer and faster but it’s a bit more complicated to debug, since you need to wrap the C++ mediainfo library in C to comunicate with Python.On the other hand pymediainfo is more tested, Python only (but needs libmediainfo installed, while with this library you don’t) andsupports Python 2(while this library doesn’t and won’t) and has better crossplatform capabilities (since, again, it uses ABI mode).Installationpip install libmediainfo_cffiDevelopmentDownload the source, launchmake setupand start tinkering.Note: the .cpp and .h file in the libmediainfo_cffi directory are not used directly, but read as strings and fed to CFFI. They are useful only for IDE code hinting. Don’t try to compile them with CMake, it won’t work.LicensesCopyright (c) 2019 Alessandro CerrutiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.This product usesMediaInfolibrary, Copyright (c) 2002-2019MediaArea.net SARL.