Saravanan666/pypi-org huggingface dataset:
Package: lcov-cobertura
lcov to cobertura XML converterThis project does as the name implies: it converts code coverage report files inlcovformat toCobertura's XML report format so that CI servers likeJenkinscan aggregate results and determine build stability etc.Coverage metrics supported:Package/folder overall line and branch coverageClass/file overall line and branch coverageFunctions hitLine and Branch hitsQuick usageGrab it rawand run it with python:pythonlcov_cobertura.pylcov-file.dat-b/--base-dir- (Optional) Directory where source files are located. Defaults to the current directory-e/--excludes- (Optional) Comma-separated list of regexes of packages to exclude-o/--output- (Optional) Path to store cobertura xml file.Defaults to ./coverage.xml-d/--demangle- (Optional) Demangle C++ function names.Requires c++filtpythonlcov_cobertura.pylcov-file.dat--base-dirsrc/dir--excludestest.lib--outputbuild/coverage.xml--demangleWithpip:pipinstalllcov_coberturaCommand-line usagelcov_coberturalcov-file.dat-b/--base-dir- (Optional) Directory where source files are located. Defaults to the current directory-e/--excludes- (Optional) Comma-separated list of regexes of packages to exclude-o/--output- (Optional) Path to store cobertura xml file.Defaults to ./coverage.xml-d/--demangle- (Optional) Demangle C++ function names.Requires c++filtlcov_coberturalcov-file.dat--base-dirsrc/dir--excludestest.lib--outputbuild/coverage.xml--demangleUsage as a Python moduleUse it anywhere in your python:fromlcov_coberturaimportLcovCoberturaLCOV_INPUT='SF:foo/file.ext\nDA:1,1\nDA:2,0\nend_of_record\n'converter=LcovCobertura(LCOV_INPUT)cobertura_xml=converter.convert()print(cobertura_xml)Environment SupportPython 3.8+ is supported. The last release with Python 2.x support isversion 1.6.ContributionsThis project is made possible due to the efforts of these fine people:Eric WendelinBjörge DijkstraJon ScheweYury V. ZaytsevSteve ArnoldLicenseThis project is provided under theApache License, Version 2.0.
Package: lcov-cobertura-fix
Converts code coverage report files in lcov format to Cobertura’s XMLreport format so that CI servers like Jenkins can aggregate results and
determine build stability etc.>>> from lcov_cobertura import LcovCobertura
>>> LCOV_INPUT = 'your lcov input'
>>> converter = LcovCobertura(LCOV_INPUT)
>>> cobertura_xml = converter.convert()
>>> print(cobertura_xml)
Package: lc-power-match-baluns
lc-power-match-balunsDescriptionThis repository implements calculations for four-element power matching LC-baluns.
These four-element networks provide common-mode rejection in addition to power matching for arbitrary complex impedances at the design frequency.InstallationTo install the Python package (required for using the Jupyter notebook), runpython3 -m pip install lc-power-match-baluns.
Alternatively, runpip install .in the root directory of this repository.To use the Jupyter notebook, the requirements athttps://lcapy.readthedocs.io/en/latest/install.htmlmust also be installed.UsageThis repository can be used interactively through thelc_power_match_baluns.ipynbJupyter notebook.This repository also implements a Python packagelc_power_match_baluns, which can be used to interact with the baluns programmatically.DerivationsNotebooks relating to the derivation procedure for the baluns are located in thederivationsdirectory.ExperimentData and notebooks relating to the experimental verification of the baluns are located in theexperimentdirectory.Authors and acknowledgmentThis repository was created by Rasmus Jepsen for the Technical University of Denmark (DTU) to supplement the research article "Four-Element LC-Baluns for Power Matching Arbitrary Impedances" by Rasmus Jepsen, Jan Henrik Ardenkjær-Larsen, and Vitaliy Zhurbenko (submitted).This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 856432).LicenseA copy of the GNU Lesser General Public License version 2.1 is available in the LICENSE file.lc-power-match-baluns
Copyright © 2023 Technical University of Denmark (developed by Rasmus Jepsen)This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.This library 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
Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Package: lcppolicy_cracklib
Cracklib password policy plugin for LdapCherryDoc:Documentation on ReadTheDocDev:Source code on GitHubPyPI:Package on PypiLicense:MITAuthor:Pierre-Francois Carpentier - copyright © 2015InstallFrom pypi:pipinstalllcppolicy_cracklibFrom sources:$pythonsetup.pyinstallConfigureEnable moduleTo enable this module, setppolicy.moduletolcppolicy_cracklibin section[ppolicy]ofldapcherry.iniParametersThis plugin takes the following parameters inldapcherry.ini(all the parameters are optional):ParameterSectionDescriptionValuesCommentmin_lengthppolicyMinimum length of passwordintegerDefault: 0min_upperppolicyMinimum number of upper case charactersIntegerDefault: 0min_digitppolicyMinimum number of digit charactersIntegerDefault: 0min_lowerppolicyMinimum number of lower case charactersIntegerDefault: 0min_otherppolicyMinimum number of non alphanumeric
charactersIntegerDefault: 0dict_pathppolicyPath to dictionaryPathDefault: default cracklib dictionary
usually ‘/var/cache/cracklib/cracklib_dict’.If pointing, for example, to/path/dict,
then/path/dict.hwm,/path/dict.pwdand/path/dict.pwimust exist.Example[ppolicy]# password policy moduleppolicy.module='lcppolicy_cracklib'# minimum password length (optional default: 0)min_length=10# minimum number of upper case characters (optional default: 0)min_upper=1# minimum number of lower case characters (optional default: 0)min_lower=2# minimum number of digits (optional default: 0)min_digit=1# minimum number of non alphanumeric characters (optional default: 0)min_other=1# path to dictionary (optional)dict_path='/var/cache/cracklib/cracklib_dict'Custom dictionaryTo build custom cracklib dictionaries:Get one or many word list files (for example here:http://www.winedt.org/Dict/).If necessary, encode it to UTF-8.Generate the cracklib dictionary.example:# Just create a work directory$mkdirdict/$cddict/# Recover and unzip the word list$wgethttp://www.winedt.org/Dict/unicode/fr.zip$unzipfr.zip# UTF-8 encoding$file*fr.dic:Little-endianUTF-16Unicodetextfr.txt:ASCIItext,withCRLFlineterminatorsfr.zip:Ziparchivedata,atleastv2.0toextract$iconv-fUTF-16-tUTF-8fr.dic>fr2.dic# Create the dictionary$catfr2.dic|cracklib-packermydict# Result$lsmydict*mydict.hwmmydict.pwdmydict.pwiWarningMost distributions already provide dictionaries and a cron script
to update cracklib dictionary (see ‘apt-cache search ‘dictionary’ | egrep ‘^w’’
and ‘/etc/cron.daily/cracklib-runtime’ in Debian/Ubuntu for example)
Package: lc-pytools
zippython setup.py sdist builduploadtwine upload dist/*upgradepython -m pip install --upgrade lc_pytoolslc_pytoolslinear_algebra1、detalgorithm1、dijkstrahow to use itdijkstra(Map, n)from heapq import *
n = 3
INF = float('inf')
Map = [
    [],
    [[2, 2], [3, 4]],
    [[3, 1]], 
    []
]

def dijkstra(Map, n) :
    dist = [INF for _ in range(n + 1)]
    mark = [0 for _ in range(n + 1)]
    heap = []
    dist[1] = 0
    heappush(heap, [dist[1], 1])
    while heap :
        d, t = heappop(heap)
        if mark[t] : continue
        mark[t] = 1
        if t == n : break
        # new
        for e, s in Map[t] :
            if mark[e] : continue
            if dist[e] > dist[t] + s :
                dist[e] = dist[t] + s
                heappush(heap, [dist[e], e])
    if dist[n] == INF : return -1
    else: return dist[n]
    
if __name__ == "__main__":
    res = dijkstra(Map, n)
    print(res)
Package: lcr-api
LCR APIA Python API for Leader and Clerk Resources for the LDS Church. I've only tested it with Python 3.5+.The following calls are supported, which correspond to a page in LCR:Birthday listMembers moved outMembers moved inMember listCalling listThere is one additional call supported:Individual photo – Gets the photo for an individual. This is the same call that LCR uses to show a picture when you go to a member's page.More calls will be supported as I have time. Pull requests are welcomed!DisclaimerThis code is rough around the edges. I don't handle any cases where a person using this code doesn't have permissions to access the reports, so I don't know what will happen.InstallTo install, runpip3 install lcr-apiUsagefromlcrimportAPIasLCRlcr=LCR("<LDS USERNAME>","<LDS PASSWORD>",<UNITNUMBER>)months=5move_ins=lcr.members_moved_in(months)formemberinmove_ins:print("{}:{}".format(member['spokenName'],member['textAddress']))To DoAdd more testsSupport more reports and calls
Package: lcr-api-2
LCR APIForked from:https://github.com/philipbl/LCR-API.  Updated in PIP as lcr-api-2 to pull the new version that works.A Python API for Leader and Clerk Resources for the LDS Church. I've only tested it with Python 3.5+.The following calls are supported, which correspond to a page in LCR:Birthday list (birthday_list)Members moved out (members_moved_out)Members moved in (members_moved_in)Member list (member_list)Calling list by organization (callings)Members with callings list (members_with_callings_list)Recommend Status (recommend_status)Individual Photo (individual_photo)Ministering List (ministering)Access Table (access_table)More calls will be supported as I have time. Pull requests are welcomed!DisclaimerThis code is rough around the edges. I don't handle any cases where a person using this code doesn't have permissions to access the reports, so I don't know what will happen.InstallTo install, runpip3 install lcr-api-2UsagefromlcrimportAPIasLCRlcr=LCR("<LDS USERNAME>","<LDS PASSWORD>",<UNITNUMBER>)months=5move_ins=lcr.members_moved_in(months)formemberinmove_ins:print("{}:{}".format(member['spokenName'],member['textAddress']))To DoAdd more testsSupport more reports and calls
Package: lcreg
lcreg- Efficient registration of large 3D imagesRigid and affine registration of large scalar 3D images is an import step for both medical and non-medical image processing. The distinguishing feature oflcregis its capability to efficiently register 3D images even if they do not fit into system memory.lcregis based on the optimisation of the local correlation similarity measure [1] using a novel image encoding scheme fostering on-the-fly image compression and decompression [2].Tutorials, samples andbcolzbinariesThelcreg tutorialprovides a step by step guide for the installation and practical application of the software and is complemented by sample data and configuration files (156 MB). Furthermore, binary installers for thebcolzpackage have been created in order to support the installation oflcregwith recent Python versions. These ressources can be downloaded fromhere.Please give feedbackPlease send comments, questions and general feedback to the email address of the project which islcreg@hs-augsburg.deor use the corresponding functionality of the ResearchGateproject page.AcknowledgementsMany thanks to Karl-Heinz Kunzelmann for his support, many helpful
discussions and for making dental test images available.
This work benefited from the use ofITK-SNAP,bcolz,numpyscipyandcython. The University of Applied Sciences, Augsburg, in particular the Faculty of
Computer Science supported this project by granting sabbatical leaves.
Special thanks to Gisela Dachs, Andreas Gärtner, Evi Köbele,
Stefan König, Dominik Lüder, Thomas Obermeier and Sigrid Podratzky for acquiring test images and for keeping computers up and running.References[1] T. Netsch,  P. Rösch,  A. v. Muiswinkel and J. Weese:Towards  Real-Time  Multi-Modality  3-D  Medical  Image  Registration.Eight IEEE International Conference on Computer Vision, ICCV (2001) 718-725,DOI: 10.1109/ICCV.2001.937595[2] P. Rösch and K.-H. Kunzelmann:Efficient 3D rigid Registration of Large Micro CT Images.International Journal of Computer assisted Radiology and Surgery13 (Suppl. 1)(2018) 118–119,DOI 10.1007/s11548-018-1766-y
Package: lcs2
lcs2lcs2is a Python package which helps find the longest common subsequence of a pair of sequences and compute their diff.Installationpip install lcs2ReferenceThe package provides the following functions:FunctionSignatureResultlcsIterable[T], Iterable[T] -> list[T]Longest common subsequence (LCS)lcs_indicesIterable[T], Iterable[T] -> list[tuple[int, int]]Indices of the LCSlcs_lengthIterable[T], Iterable[T] -> intLength of the LCSdiffIterable[T], Iterable[T] -> list[tuple[list[T], list[T]]]Differing segments of the sequences based on the LCSdiff_rangesIterable[T], Iterable[T] -> list[tuple[range, range]]Ranges of indices of the differing segmentsCallinglcs_length(a, b)is somewhat more efficient thanlen(lcs(a, b)).Sample Usagefromlcs2importdiff,diff_ranges,lcs,lcs_indices,lcs_lengtha='Hello, world!'b='Foobar'print(lcs(a,b))# ['o', 'o', 'r']print(lcs_indices(a,b))# [(4, 1), (8, 2), (9, 5)]print(lcs_length(a,b))# 3print(diff(a,b))# [(['H', 'e', 'l', 'l'], ['F']),# ([',', ' ', 'w'], []),# ([], ['b', 'a']),# (['l', 'd', '!'], [])]print(diff_ranges(a,b))# [(range(0, 4), range(0, 1)),# (range(5, 8), range(2, 2)),# (range(9, 9), range(3, 5)),# (range(10, 13), range(6, 6))]
Package: lcsb-pbin
LCSB-PBINSmall library to send a paste on the LCSB private bin.This one is a bit modified and does not allow paste to be sent without authentication.Installpip install lcsb_pbinUsageimportlcsb_pbinlink=lcsb_pbin.paste("https://privatebin.lcsb.uni.lu","""# Headerlorem ipsum""","lums-username","lums-password",paste_password='passw0rd',formatter="markdown",opendiscussion=True,burnafterreading=False,expire="1month",debug=False,)print(link)
Package: lcs-client
python-lcs-clientA client for server side Python applications to interact with LCS, the HackRU backend.
The general idea is for this to be used with a JSON based web API.
For every request to your API, you would ask for a LCS token.Alternatively you could have your own tokens, and have the user pass in
the password again but this will be annoying for the user if they already
logged into the HackRU frontendDocumentationDocumentation for this clientDocumentation for LCSInstallationpipinstalllcs_clientDevelopment setupCreate virtual environment locallyvirtualenv-ppython3envORpython3-mvenvenvActivate the virtual environmentsourceenv/bin/activateInstall the required dependencies (prod and dev) into the virtual environmentpipinstall-e.[dev]Installing lcs_client (after making local code changes)Run the following in terminal:pipinstall-e.This will install the package as if you installed it from PyPi so that you can perform testing using the package
rather than the local fileRunning testsRun the following command from terminal:pytestGenerating documentationPre-requisite:[Perform Development setup](#Development setup)Run the following from terminal (which will use the configuration withinpdoc-markdown.yml):pydoc-markdownThe generated documentation is withinlcs_client.mdEdit the README.md as required according to the changes madeRunning the example web applicationpipinstall-rexample_requirements.txt
pythonexample_api.pyRelease on PyPiPre-requisites:[Perform Development setup](#Development setup)Ensure version changes are appropriately reflected using semantic versioning inlcs_client/__init__.pyandsetup.py(as well as any other source files)Ensure documentation is up to date by following the steps within [Generating documentation](#Generating documentation)Ensure code has been committed to the GitHub repo with a tag and commit message that include the version numberInstall wheel to build and twine to upload packagepipinstall-e.[build]Build the source archive and wheel for packagepythonsetup.pysdistbdist_wheelExamine the archive to ensure it includes the expected filesCheck for common errorstwinecheckdist/*Upload to TestPyPi and ensure correctnesstwineupload--repositorytestpypidist/*If it errors out about not having permissions to upload, simply change the name within setup.py and restart from step 2Upload the new releasetwineuploaddist/*
Package: lc-sdk-python
LiveChat Platform API SDK for Python3This Software Development Kit written in Python3 helps developers build external backend apps that extend LiveChat features. The SDK makes it easy to use Agent Chat API, Customer Chat API and Configuration API.DocumentationFor protocol documentation of LiveChat APIs, please go toLiveChat Platform Docs.For internal documentation of the SDK, please check:Technical documentation.Installationpippipinstalllc-sdk-pythonUsageUsage examples can be found here:examplesFeedback​If you find any bugs or have trouble implementing the code on your own, please create an issue or contact us via e-mail:apiteam.qa@livechat.com.About LiveChatLiveChat is an online customer service software with live support, help desk software, and web analytics capabilities. It's used by more than 32,000 companies all over the world. For more info, check outLiveChat.
Package: lcss
LCSSCSS pre-processor written in Python with limited set of features. It's simple and fast.The key point is to use as much of native CSS as possible and create as less complexity overhead as possible without compromising productivity.ConceptCSS already supports variables, imports and nesting. What CSS really missing is mixins and bundling - these are provided by LCSS.LCSS also provides SCSS-like nesting in case if native nesting doesn't meet your needs.VariablesNative CSS variables -https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties.:root{--font-mod:10px;--font-size-main:calc(var(--font-mod)+6px);/* 16px */}details{font-size:var(--font-size-main);}ModulesNative CSS imports -https://developer.mozilla.org/en-US/docs/Web/CSS/@import.mybtn.lcss:.mybtn{cursor:pointer;}main.lcss:@import'mybtn';body{font-size:16px;}NestingCSS supports nesting -https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector.
However it's not 100% equals to SCSS-like nesting we are used to.Native nesting example:.parent{font-size:22px;a{font-size:16px;&:hover{font-weight:900;}}}This code is equals to:.parent{font-size:22px;}.parenta{font-size:16px;}.parenta:hover{font-weight:900;}Non-native nesting example:style.lcss:.parent{&__inner{font-size:22px;&:hover{font-weight:900;}}}This will be transpiled to:.parent__inner{font-size:22px;}.parent__inner:hover{font-weight:900;}The main difference is that with native nesting you're not able to use&to concatenate selectors as strings.You can choose preferred nesting method withNATIVE_NESTING (True/False)config parameter.MixinsMixins in LCSS are simple python functions.mixins.py:defbg(path):returnf'''\background-image: url({path});background-position: center;background-repeat: no-repeat;background-size: contain;'''style.lcss:.box{.card{padding:10px;@mixinbg('bg.webp');}}The result will be the following::.box.card{padding:10px;background-image:url(bg.webp);background-position:center;background-repeat:no-repeat;background-size:contain;}To make mixins file available, import it in lcss_config.py (see config example below).BundlingLCSS automatically replaces all imports with the content.InstallationpipinstalllcssCommand line usageYou can use lcss without config file:lcssstyle.lcss>style.css
lcssstyle.lcssmixins_dir>style.cssmixins_dir- directory containingmixins.pyfile.\ConfigurationTo use lcss with config file you should createlcss_config.py(default one is created automatically by callinglcss) in current working directory and then calllcsswithout arguments.Example lcss_config.py:importos# Mixins in lcss are just a python functions.# Store mixins in mixins.py file and import it here:importmixinsBASE_DIR=os.path.dirname(os.path.abspath(__file__))# Specify source and output files.FILES=[{'in':os.path.join(BASE_DIR,'style.lcss'),'out':os.path.join(BASE_DIR,'style.css'),},]# If native nesting is disabled, SCSS-like one will be used instead.NATIVE_NESTING=FalseMore examplesYou can find some examples intestsdirectory -https://github.com/SergeiMinaev/lcss/tree/dev/tests:pipinstalllcss
gitclonegit@github.com:SergeiMinaev/lcss.gitcdlcss
lcsstests/nesting_1.lcss
lcsstests/mixins_1.lcss./tests
Package: lcsscaseapi
A wrapper around thecase-repository APIcurrently hosted at lcsscaseapi.duckdns.org (if this changes you need to chang the domain name inlcsscaseapi/constants.py).Any use of the wrapper begins by initializing an LCSSClient object (defined inlcsscaseapi/client.py). This requires supplying a valid username and password. After this, requests can be made using methods of the object, and will return objects of types specified inlcsscaseapi/types.py.Warning: Do not write the username and password supplied to the LCSSClient object in code that is committed to a repository. Fetch these details instead from environmental variblaes. Otherwise anyone reading your repository can access the APITesting uses pytest and requests-mocker and tests are located in thetests/directory.Publishing to PypiTo publish new versions, change the version number in setup.cfg, generate a new distribution and upload it to twine. See here:https://packaging.python.org/tutorials/packaging-projects/To be precise, runpython3 -m build. Then runtwine upload dist/*.