Saravanan666/pypi-org huggingface dataset:
Package: lxml-xpath-ipaddress
LXML Extension Library for IP addressThis library contains LXML extension functions that wrap the Python ipaddress library.With this library in place, you can do XPath expressions to find IP items within our XML data.  For
example:fromlxmlimportetreefromlxml_xpath_ipaddressimportip_ns# given "config" is an LXML XML structure, you can run the XPath to find all IPv4 network items:config=etree.parse('tests/config.xml')items=config.xpath('//*[ip:ip4-net(.)',namespaces=ip_ns)print(items[0].text)# >>> 10.10.0.0/16# Find all items that are in either the 172.18/16 or 101.10.201/24 subnetsitems=config.xpath('//*[ip:in-subnet(., "172.18.0.0/16") or ip:in-subnet(., "10.10.201.0/24")]',namespaces=ip_ns)print(items[0].text)# >>> 172.18.1.1Install$pipinstalllxml-xpath-ipaddressLXML Extension FunctionsEither IPv4 or IPv6ip-any(value)ip-net(value)ip-host(value)IPv4ip4-any(value)ip4-net(value)ip4-host(value)IPv6ip6-any(value)ip6-net(value)ip6-host(value)Subnet Checkingin-subnet(value, subnet-string)Python FunctionsThe library contains these functions as general purpose functions as well,
so that they can be used in other applications.  See the module doc-strings for use.
Package: lxparse
lxparse用于解析列表页链接和提取详情页内容的库A library for intelligently parsing list page links and details page contents项目背景现有2000个政企网站信源，要短时间实现动态监测。手写时即要查看网站类型又要分析数据接口，然后配置解析规则，人都看麻了。所以写一个自动提取列表页链接的方法。奈何国内的网站不止由一千个哈姆雷特开发，几乎不存在通用的解析方法，只能说尽量让列表页链接提取更便捷一些。lxparse中列表页解析借助了readability的主体抽取方法，详情页解析引用了gen的一些正则匹配方法。实现逻辑列表页1、提取列表页主体，删除html中的无关标签，主要以a标签聚焦程度为评估标准2、通过xpath规则筛选主体中存在的a标签，以h、ul/li、tr/td 为主，返回链接数组3、通过余弦公式计算数组中所有url的相似度，保留相似度较高的url，返回链接数组4、从数组中再次过滤，保留符合规则的链接详情页标题、作者、来源：以常见规则匹配，并筛选和评估最优解时间：以常见规则和正文内容匹配，经过处理和验证后返回时间格式正文：readability的主体抽取方法，返回带标签和格式化的正文内容使用方法安装： pip install lxparse调用：fromlxparseimportLxParselx=LxParse()list_html=""lx.parse_list(list_html)# 指定解析规则lx.parse_list(list_html,xpath_list='/div[@id="lx"]/a')detail_html=""lx.parse_detail(detail_html)# 指定解析规则,不声明则使用默认规则xpath_item={'xpath_title':'','xpath_source':'','xpath_date':'','xpath_author':'','xpath_content':'',}lx.parse_detail(detail_html,item=xpath_item)parse_detail 返回：测试代码demo文件中分别有列表页和详情页的解析示例将html保存本地后，经测试今日头条、新浪新闻、百度资讯、网易新闻、腾讯新闻等可正常解析。备注使用lxparse解析库解析时，如有解析异常的可手动指定解析规则。测试用例不多，如有问题麻烦提issues一起优化。或者关注公众号《Pythonlx》，获取群聊二维码，一起交流学习
Package: lx-taobaoke
taobaokeApiPython淘宝客接口支持所有环境python3  requests安装pip instatll lx_taobaoke使用方法# -*-coding: utf-8 -*-
from lx_taobaoke import ToaBaoKeApi

app_tions = [
    # 第一个
    {
        'appkey': 23565473,
        'secret': '781bec497f0a825ddfa4be2f91654318'
    },
    # 第二个
]
# 佣金授权码信息，可添加多个，随机使用
commission_tions =  [
    {
        'adzone_id': '80502883',
        'site_id': '24092591',
        'session': '700001007331678779fc503b567d7ff4afef59135766e1001f5ceb5c8ec9eed7d9e88ba2891351154',
    },
]
"""
item_id : 淘宝ID
activity_id： 优惠券ID
"""
taobaoke = ToaBaoKeApi(app_tions, commission_tions)
# 获取优惠券信息
result = taobaoke.get_coupon_api(item_id=589351083986, activity_id="287beee1c8eb4432a36aecfdf4ed3e7a")
# 获取佣金信息
# result = taobaoke.get_commission_api(item_id=589351083986)
# 获取商品类别信息
# result = taobaoke.get_category_api(item_id=560376846858)
print(result)
Package: lxtree
lxtreePackage to draw tree structures (tree linux command style)Basic usageBuild the tree structure usingTreeNodes. ATreeNodecan contain otherTreeNodes
to represent the tree. When builded you car get a string representation of it,
or get string of a sub-tree using some child as root.Code samplesfromlxtreeimportTreeNode# Creating rootroot=TreeNode('root')# Adding a list of nodesroot.children=[TreeNode('branch1'),TreeNode('branch3')]# Insert noderoot.insert_child(TreeNode('branch2'),1)# Appending to a branch 1 by indexroot[0].append_child(TreeNode('branch11'))# Using index to assign children to branch11root[0][0]=[TreeNode('leaf111'),TreeNode('leaf112')]# Use `set_children` to add nodes as argvroot[1].set_children(TreeNode('leaf21'),TreeNode('leaf22'),TreeNode('leaf23'))# Print treeprint(root)Creating all structure at onceroot=TreeNode('root').set_children(TreeNode('branch1').append_child(TreeNode('branch11').set_children(TreeNode('leaf111'),TreeNode('leaf112'))),TreeNode('branch2').set_children(TreeNode('leaf21'),TreeNode('leaf22'),TreeNode('leaf23')),TreeNode('branch3'))print(root)Creating the tree from a dicttree_data={'root':{'branch1':{'branch11':{'leaf111':None,'leaf112':None}},'branch2':{'leaf21':None,'leaf22':None,'leaf23':None},'branch3':None}}print(TreeNode.tree_from_dict(tree_data))Output
Package: lxzbiotools
Project descriptionlxzbiotoolsis a bioinformatics data processing tools.Featurescds2pepConvert cds file to pepexcel2txtConvert file format form excel to txtfa2fqChange fasta file to fastq filefq2faChange fastq file to fasta filegenstatsOne or more genome informatics statisticsgfa2faConvert gfa file to fasta filegffSimplify gff3 file for WGD event analysisgffstatVarious information statistics of genome annotation file gfflengthGet the length of each sequencesrdsRead a multi-FASTA file sequence and remove duplicatesparallelParallelized running tasksextseqExtract sequences by sequence name or keywordm2ofaConvert multi-line fasta to one-line fastamovefileRandomly allocate files to a specified number of foldersQuickStartInstallpip3 install lxzbiotoolsUpdatepip3 install -U lxzbiotoolsUse$lxzbiotools--helpUsage:lxzbiotools.py[OPTIONS]COMMAND[ARGS]...Version update content2022-10-05version0.5.5addgffstat(Various information statistics of genome annotation file gff)2022-09-22version0.5.4addmovefile(Randomly allocate files to a specified number of folders)Bug reportIssues and bugs report tolixingzee@gmail.comgithub:https://github.com/lxingze/lxzbiotools
Package: lyberry-api
LyBerry ApiThis is a python library that helps to interface with lbrynet in an simple way so that making LBRY clients is easy.Installpipinstalllyberry-apiUsecreate a lbrynet connectionimportlyberry_apilbry=lyberry_api.LBRY_Api()get a channelchannel=lbry.resolve('@mybeansarebaked')get their latest publicationpub=next(channel.pubs_feed)get the latest commentcomment=next(pub.comments_feed)LicenseCopyright (C) 2022 MyBeansAreBakedThis 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, seehttps://www.gnu.org/licenses/.
Package: lyberry-dmenu
LyBerry dmenuA simple LBRY client usinglyberry_apianddmenu. Thedmenu wrapperfrom PyPI is an optional dependency, but LyBerry dmenu comes with a minimal emulation of the package.UsageTo install the latest version from Codeberg, runpython3 -m pip install git+https://codeberg.org/vertbyqb/lyberry_dmenu.git.To install from PyPI, runpython3 -m pip install lyberry_dmenu.To install from the cloned repository (can be useful for development), runpython3 -m pip install ..To run without installing, runpython3 ./src/start.py.Follow the prompts to find a claim. When you select a claim it will open it in your default player, which you can configure with lyberry_api's config file. (e.g.~/.config/lyberry/conf.toml).CopyrightCopyright (C) 2022 VertbyqbThis 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, seehttps://www.gnu.org/licenses/.Parts of this program (theLyBerry_Dmenu.open_external()function insrc/lyberry_dmenu/lyberrydmenu.py) are copied fromLyBerry QT, which is Copyright (C) 2022 MyBeansAreBaked and is available under the same license.
Package: lyberry-qt
LyBerryA Qt LBRY client that uses the LyBerry ApiStatusYou can't do everything you can do in LBRY Desktop, but many essential features are in place:Following FeedWatch Videos (in configurable external video player)Read ArticlesRead / Write / Reply to Comments (on configurable comment server)Basic searchInstallationFirstinstall a recent version of Python 3.Then install the package with pip:pip install lyberry-qtGet more info from Python about installing packages:https://packaging.python.org/en/latest/tutorials/installing-packages/UsageRun the app:lyberry-qtLyBerry depends on the lbrynet daemon. This is provided bythe official LBRY Desktop application, so if that is open in the background LyBerry should just work, and will share the logged in accounts.You can instead run the daemon alone; get more info about that here:https://github.com/lbryio/lbry-sdk#installation. LyBerry is designed to work with the daemon over the network, so you could leave this running on a homeserver for good uptime seeding content. (Note: Don't expose the lbrynet api to the open Internet!)Videos will try to open inmpvby default. This option can be changed with theplayer_cmdsetting, found on the settings page. On windows, you will want to changempvtompv.exe. You could also use VLC, or another video player if you wish.You can also change settings in conf.toml in your relevant config directory. (eg on linux edit ~/.config/lyberry/conf.toml)If some thumbnails are not showing you may need to install a Qt image format library on your system. Search for this using your package manager.HelpJoin my space on matrix! I am happy to help you getting started, and I welcome feedback and discussion.LyBerry Matrix channel:#lyberry:thebeanbakery.xyzContributingSharing my project is the best way to support it! If you can contribute code too, that would be awesome!
Read CONTRIBUTING.md for more info on getting set up. Do join my matrix room too.Otherwise, I would greatly appreciate any donations with Monero (XMR), a secure and private currency for the internet:openalias: thebeanbakery.xyz87uvs847voZW4QzLqCb3prfSeTjVgxo8PKCAGmeYQTKYd58yU7FD9PJY2eoDXW7y4jNozfHW3bq6SC6MZaB6Qgcz9Cib1DSYou can also support my channel on LBRY, where I sometimes post updates:lbry://@MyBeansAreBaked:bI put more frequent low effort updates onlbry://@MyBeansAreBaking#3LicenseCopyright (C) 2022 MyBeansAreBakedThis 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, seehttps://www.gnu.org/licenses/.
Package: lycanthropy
lycanthropyA micro library to convert between snake_case and CamelCaseimport lycanthropy
print lycanthropy.camel_to_snake('snakeCase')
print lycanthropy.snake_to_camel('camel_case')
print lycanthropy.snake_to_pascal('pascal_case')

snake_case
camelCase
PascalCase

print lycanthropy.morph_dict({'snake_key': None}, lycanthropy.snake_to_camel)

{'snakeKey': None}
Package: lyceum
Un paquet Python utile pour la programmation en lycée.Free software: ISC licenseDocumentation: “https://benabel.frama.io/lyceum-py”.TODO:[ ] passer à pdm au lieu de flint:https://pdm.fming.dev/[ ] passer à myst au lieu de rst[ ] distribuer sous forme d’un module unique grâce à [stickytape](https://github.com/mwilliamson/stickytape):stickytape lyceum/__init__.py –add-python-path . –output-file lyceum.py[ ] Tester graphviz wasm pour le dessin des arbresFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: lychorhyce
LyChoRhyceThe LyChoRhyce program reads LCR-formatted song text files and generates
beatiful HTML files, ready to be printed or converted into PDF files.The LCR formatLCR (Lyrics, Chords and Rhythm) is a textual format for describing songs in a
simpler way than sheet music. You write text like this:Scarborough Fair

Authors = Simon & Garfunkel
Meter = 3/4
Key = Em

---

Verse 1 =
| Em~ Are ` ` you | going ` ` to | D~ Scar- ` \ bo- ` rough | Em~ Fair? ` ` |
| G~ ` Par- ` sley, | Em~ sage, ` ` rose- | G~ ma- ` A~ ry ` and | Em~ thyme ` ` |
| ` ` Re- | mem- ` ` ber | G~ me ` ` to | one ` who ` lives | D~ there ` ` |
| Em~ she ` ` once | D~ was ` ` a | true ` love ` of | Em~ mine ` ` |and it gets converted to this:The output is similar to popularCRD song sheets,
and the source text and operations are similar to theChordProformat. The main added value is the rhythmic information: it shows measure
boundaries (the black vertical lines) and beat boundaries (the grey lines).Then again, the rhythmic information is optional. We could have only measures but not beats:or no rhythm information at all, and we are back to CRD and ChordPro:TheTime in Music Notationarticle has a fuller comparison of the main music notations.Other featuresThe format also has the following features:arbitrary fields in the song headersong sections (verse, chorus etc.) with title and descriptionmultiple songs in one fileoptional column layoutpage layout in PDF and printCopyrightThe LyChoRhyce program is copyright (c) 2021 Nicola 'teknico' Larosa.
Licensed under GPLv3 only, see the LICENSE.md file for details.The LCR format documentation byNicola 'teknico' Larosais licensed under the Creative CommonsAttribution-ShareAlike 4.0 Internationallicense.
Package: lychpy
LychPyLychPy is an unofficial Python wrapper forLychee, a fast, async, stream-based link checker written in Rust. It allows you to use Lychee's functionality in your Python projects.:warning:Important Notice:This project is still in development, and not ready for usage. Please check back later.Table of ContentsInstallationUsageCreditsLicenseInstallationTBD.
Please ensure that you have the Lychee binary installed on your system. Follow theinstallation instructionsprovided by the Lychee project.Usageimportlychpyresult=lychpy.check(["https://example.com"])# Print the resultprint(result)CreditsThis Python wrapper is built on top of theLycheeproject. All credits for the link checking functionality go to the original authors and contributors of Lychee.LicenseLychPy is licensed under the MIT License. See theLICENSEfile for more information.Lychee is licensed under either ofApache License, Version 2.0, (LICENSE-APACHE orhttps://www.apache.org/licenses/LICENSE-2.0)MIT license (LICENSE-MIT orhttps://opensource.org/licenses/MIT)at your option.
Package: lychrel
LychrelThis is a collection of python functions which implements famous mathematical problems, and it is named after
thelychrel numbers.Under the hood lychrel is implemented in rust thanks toPyO3.User guide and documentation:lychrel.readthedocs.ioAny contribution is welcome!Implemented algorithmsLychrel numbers: find first palindrome of the reverse-and-add procedure and determine if a number is
alychrel candidate.Generalized fibonacci sequences: also known asLucas Sequence.Read out and loud: Given a number, this function compute the sequence of digits resulting from reading out loud
the number, grouping together multiples of the same digit if any. E.g.read_out_loud(3211) == 131221because the
number3211is read as "one 3, one 2 and two 1s".Kaprekar's routine: an iterativealgorithmthat, with each
iteration, takes a natural number in a given number base, creates two new numbers by sorting the digits of its number
by descending and ascending order, and subtracts the second from the first to yield the natural number for the next
iteration.Collatz conjecture: also known as3n+1 problem, implements an
iterator given a starting number. E.g.list(collatz(5)) == [5, 16, 8, 4, 2, 1].Getting startedLychrelis available onPyPi, to install it just type on your favourite shell:pipinstalllychrelInstall from sourceIf you want to install lychrel from source code,
clone this repo and
create avirtual environmentwith python 3.7+ using your favourite tool (conda, virtualenv, etc.),
then follow these steps:1. Install dev requirementspipinstall-rrequirements-dev.txt2. Build the packagematurindevelopFor optimal performances add the--releaseoption:maturindevelop--releaseExamplesCheck whether a number is a lychrel candidate:fromlychrelimportis_lychrel_candidateassertis_lychrel_candidate(196)assertnotis_lychrel_candidate(197)Check out the tests for more examples.
Package: lycium
lycium介绍python 公共库软件架构软件架构说明安装教程xxxxxxxxxxxx使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request特技使用 Readme_XXX.md 来支持不同的语言，例如 Readme_en.md, Readme_zh.mdGitee 官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解 Gitee 上的优秀开源项目GVP全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目Gitee 官方提供的使用手册https://gitee.com/helpGitee 封面人物是一档用来展示 Gitee 会员风采的栏目https://gitee.com/gitee-stars/
Package: lydian
LYDIANLYDIAN is a distributed (python) apps platform. It has apps for Traffic Generation, Resource Monitoring, Vulnerability Scan.It is based on Distributed System principles. It uses RPC for communication across nodes, Local Database for persistence and Daemon services for resiliency.LYDIAN has its own in-built simple TCP/UDP client and servers for Traffic Generation and it also offers simple integration with other 3rd party tools such as IPERF. It recognizes the collection of nodes (to and from where traffic needs to be generated) as a "Cluster" and nodes can be attached and detached to cluster at any time during the operation.InstallationLYDIAN is available as Python package and can be installed on Primary nodes usingpipas following.pip install lydianUsageLYDIAN is simple to use. Below are some examples for different capabilities which are available.Running Trafficimporttimeimportuuidfromlydian.apps.podiumimportget_podiumPASSWD='MY_PASSWORD'# Password for SSH access to nodes.VM0_IP='a.b.c.d'VM1_IP='w.x.y.z'podium=get_podium()podium.add_hosts(VM0_IP,password=PASSWD)podium.add_hosts(VM1_IP,password=PASSWD)DUMMY_RULE={'reqid':'%s'%uuid.uuid4(),'ruleid':'%s'%uuid.uuid4(),'src':VM0_IP,'dst':VM1_IP,'protocol':'TCP','port':9465,'connected':True}# Ask the tool to register your intent.podium.register_traffic([DUMMY_RULE])Packet Capturefromlydian.apps.podiumimportget_podiumfromlydian.utils.ssh_hostimportHostVM_IP='1.2.3.4'# Delete any old PCAP file at endpointwithHost(VM_IP,user='root',passwd='PASSWD')ashost:host.req_call('rm -rf /tmp/test_pcap.pcap')# Also remove any local filetry:os.remove('/tmp/test_pcap.pcap')exceptFileNotFoundError:passpodium=get_podium()# Prepare the node (if not done already)podium.add_host(VM_IP,password=PASSWD)# Start Packet Capturepodium.start_pcap(VM_IP,pcap_file_name='test_pcap.pcap',interface='eth0')time.sleep(10)podium.stop_pcap(vm1,pcap_file_name='test_pcap.pcap')# Download file locally.withHost(VM_IP,user='root',passwd='PASSWD')ashost:host.get_file('/tmp/test_pcap.pcap')# Copy PCAP file locallyhost.req_call('rm -rf /tmp/test_pcap.pcap')# remove remote file.# Run any tool on this file like tcpreplay/ wireshark on this file or simply check# that file exists.assertos.path.exists(os.path.join('/tmp','test_pcap.pcap'))Generating Traffic from IPERFfromlydian.apps.podiumimportget_podiumpodium=get_podium()# Prepare the nodes (if not done already)podium.add_hosts([VM1_IP,VM2_IP],password=PASSWD)result=podium.run_iperf3(src_ip,dst_ip)result_dict=json.loads(result)Try it yourself.With Lydian, there comes a demo file, which can be used to perform a quick 1 minute test to see things in action. Below are the steps, you can follow to try it yourself. Please note that it creates / overwrites log file/var/log/lydian/lydian.log.mkdir-p/tmp/LYDIANcdLYDIANvirtualenv-ppython3.pipinstalllydianpython-mlydian.tests.demo-u'root'-p'ep_password'-e20.20.11.120.20.11.2Repository & LicenseLYDIAN is an Open Source Software (OSS) hosted athttps://github.com/vmware/distributed-apps-platform. Check LICENSE.txt for applicable licenses.https://github.com/vmware/distributed-apps-platformRequirementsPython 3.6.8+Share and enjoy!
Package: lyft-bikes
Lyft Bike Share DataPython client for Lyft bike share data.FeaturesSupport forcitieswith Lyft bike shareHistorical tripsLive station and bike / scooter availabilityApplying pricing to tripsUnlock FeesMinute RatesInstallationInstall frompip$pipinstalllyft-bikesDocumentationThe documentation is hosted onGitHub Pages.DevelopmentThe development environment was created withpoetry. Thepyproject.tomlfile is the main configuration file for the project.poetryinstall.ContributingIf you would like to contribute or find some issue in the code, pleaseopen an Issueor a PR on GitHub. Thanks!
Package: lyft-dataset-sdk
Lyft Dataset SDKWelcome to the devkit for theLyft Level 5 AV dataset! This devkit shall help you to visualise and explore our dataset.Release NotesThis devkit is based on a version of thenuScenes devkit.Getting StartedInstallationYou can use pip to installlyft-dataset-sdk:pipinstall-Ulyft_dataset_sdkIf you want to get the latest version of the code before it is released on PyPI you can install the library from GitHub:pipinstall-Ugit+https://github.com/lyft/nuscenes-devkitDataset DownloadGo tohttps://level5.lyft.com/dataset/to download the Lyft Level 5 AV Dataset.The dataset is also availible as a part of theLyft 3D Object Detection for Autonomous Vehicles Challenge.Tutorial and Reference ModelCheck out thetutorial and reference model README.Dataset structureThe dataset contains of json files:scene.json- 25-45 seconds snippet of a car's journey.sample.json- An annotated snapshot of a scene at a particular timestamp.sample_data.json- Data collected from a particular sensor.sample_annotation.json- An annotated instance of an object within our interest.instance.json- Enumeration of all object instance we observed.category.json- Taxonomy of object categories (e.g. vehicle, human).attribute.json- Property of an instance that can change while the category remains the same.visibility.json- (currently not used)sensor.json- A specific sensor type.calibrated_sensor.json- Definition of a particular sensor as calibrated on a particular vehicle.ego_pose.json- Ego vehicle poses at a particular timestamp.log.json- Log information from which the data was extracted.map.json- Map data that is stored as binary semantic masks from a top-down view.Withthe schema.Data Exploration TutorialTo get started with the Lyft Dataset SDK, run the tutorial usingJupyter Notebook.ContributingWe would be happy to accept issue reports and pull requests from the community.For creating pull requests follow ourcontributing guide.