Saravanan666/pypi-org huggingface dataset:
Package: lantern-pinecone
Lantern client compatible with Pinecone APIInstallpipinstalllantern-pineconeSync from Pinecone to Lanternimportlantern_pineconefromgetpassimportgetpasslantern_pinecone.init('postgres://postgres@localhost:5432')pinecone_ids=list(map(lambdax:str(x),range(100000)))index=lantern_pinecone.create_from_pinecone(api_key=getpass("Pinecone API Key"),environment="us-east-1-aws",index_name="sift100k",namespace="",pinecone_ids=pinecone_ids,recreate=True,create_lantern_index=True)index.describe_index_stats()index.query(top_k=10,id='45500',namespace="")NOTE:If you passcreate_lantern_index=Falseonly data will be copied under the table of your index name (in this examplesift100k) and you can create an index later externally. Without the index most of the index operations will not be accessible via this client.Extract Metadata FieldsWhen copying from Pinecone we create a table in this structure:sql (id TEXT, embedding REAL[], metadata jsonb)If you are planning to use the index with raw sql clients, you may want to extract metadata into separate columns, so you could have more complex/nice looking queries over your metadata fields.
So if our metadata has this shape{ "title": string, "description": string }, we can extract it using this query:BEGIN;ALTERTABLEsift100kADDCOLUMNtitleTEXT,ADDCOLUMNdescriptionTEXT;-- Update the new columns with data extracted from the JSONB columnUPDATEsift100kSETtitle=metadata->>'title',description=metadata->>'description';-- Optionally drop the metadata columnALTERTABLEsift100kDROPCOLUMNmetadata;COMMIT;After doing this your index will most likely be uncomaptible with this python client, and you should use it via raw sql client likepsycopg2Index operationsimportosimportlantern_pineconeimportpandasaspdLANTERN_DB_URL=os.environ.get('LANTERN_DB_URL')or'postgres://postgres@localhost:5432'lantern_pinecone.init(LANTERN_DB_URL)# Giving our index a nameindex_name="hello-lantern"# Delete the index, if an index of the same name already existsifindex_nameinlantern_pinecone.list_indexes():lantern_pinecone.delete_index(index_name)importtimedimensions=3lantern_pinecone.create_index(name=index_name,dimension=dimensions,metric="cosine")index=lantern_pinecone.Index(index_name=index_name)df=pd.DataFrame(data={"id":["A","B"],"vector":[[1.,1.,1.],[1.,2.,3.]]})# Insert vectorsindex.upsert(vectors=zip(df.id,df.vector))index.describe_index_stats()index.query(vector=[2.,2.,2.],top_k=5,include_values=True)# returns top_k matcheslantern_pinecone.delete_index(index_name)
Package: lantern-smt
Lantern: safer than a torchLantern is a software package to support SMT analysis of affine
multiplexing neural networks using PyTorch and Z3.See:docs/lantern/for (generated) documentation.See:requirements.txtfor dependencies.An annotatedexample.pydemonstrates basic usage.Lantern was developed againsttorch==1.5.0andz3-solver==4.8.7.0.
Linear Real Arithmetic appears to be stable, but we have noticed some changes
to the floating point solvers as z3 continues to be developed.
Package: lantoolkit
一个小工具箱
功能如下：
提权
logo相关操作（无法使用）
文件相关操作
清屏
powershell引用
pip相关操作
ntp对时
v0.5更新日志
进一步解决setup.py问题
修复ntp对时
全新powershell引用
全新默认shell引用
使用纠错：
lantoolkit.sudopy()：
当你想要把一个带有其他变量的命令运行时
如：
a='1145141919810'
print(a)
当你要把“print(a)”提权运行时：
错误示范：
a='1145141919810'
lantoolkit.sudopy('print(a)')
运行过后会报错，因为lantoolkit.sudopy()在运行时会新建一个临时文件“temp.py”
当你把“print(a)”传入temp.py时，不会把a变量也传给"temp.py"
python找不到a变量，于是就报错了。
正确示范：
def homo():
a='1145141919810'
lantoolkit.sudopy(print(a))
lantoolkit.sudopy(homo((), 'main')
正确示范2:
lantoolkit.sudopy('''a='1145141919810'
print(a)''')
Package: lantrane
LantraneA python library for interacting with Trane thermostats over the local networkUsage ExampleYour thermostat for communicating, variable speed heat pump systems might have a port open that emits data every time the compressor speed changes if you can find the right port via nmap and telnet (usually port 30,000 or so), this example will listen on that port and give you data. The port may change when the device is updated though.fromlantraneimportTraneimportasynciotrane=Trane(args.ip,args.port)defread(data):print(data)trane.on_data(read)asyncio.run(trane.listen())Distributionpython3 setup.py bdist_wheel
python3 setup.py sdist
twine check dist/*
twine upload dist/*
Package: lantz-core
lantz-coreLantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface.  It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.This contains the lantz.core subpackage.For a longer description and docs, please visit the root of the project:https://github.com/lantzproject/lantzThe Lantz AuthorsAuthorsHernan E. Grecco <hernan.grecco@gmail.com>Martin Masip <martinmasip@gmail.com>
Pablo Jais <jaisp@df.uba.ar>
Martin Caldarola <caldarolamartin@gmail.com>
Federico Barabas <fede.barabas@gmail.com>Lantz Changelog0.5.3 (2019-05-15)Removed obselete access to _config_keys0.5.2 (2019-01-21)Migrated to pimpmyclass 0.4.20.5 (2018-12-31)Extracted Core from the main Lantz repo. Kept here:Driver, Feats, DictFeats, Action,
MessageBasedDriver, ForeignDriver,
Log capabilities,
Common errors.Added lantz-config commandChanged signals from PyQt to PySignal to remove PyQt dependency,.Moved a lot of Feat related code to pimpmyclassCreated mfeats module: Feats for MessageBasedDrivers.Added hooks to help simulating drivers.Created TypedFeat for non delegated Feats.0.3 (2015-02-05)Introduced MessageBasedDriver, a class to rule them all.Moved driversMoved old base classes (serial, usb, tcp, visa) to legacy package.Moved instrument drivers based on legacy classes to legacy package.Migrated instrument classes to MessageBasedDriver.Improved logging to avoid duplication and useless info.Frontend and Backend for application development.Implemented Chart block.Implemented Scan block.Implemented FeatScan block.Implemented Loop block.Implemented Layout block.Online documentation now shows the drivers classes.Stub classes to enable documentation building without required packages.Moved simulator from script to console-script.Changed sphinx theme to read the docs.Introducedstart_guihelper function to start an app with a ui file
and an instrument or instruments.Introducedstart_test_apphelper function to start the test panel.Introducedstart_gui_apptakes a backend and fronted and shows the app.Moved get-lantz script to a gist.Removed lantz-shell, equivalent functionality was contributed to PyVISA.Support simultaneous values and units in Feat.
(Issue #25)Use Qt import scheme from IPython.Helper functions for multiple initialization: initialize_many and finalize_many.GUI support for initialize_many and finalize_many.New instrument drivers.0.2 (2013-01-01)first public release.
Package: lantz-drivers
lantz-driversLantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface.  It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.This contains the lantz.drivers subpackage.For a longer description and docs, please visit the root of the project:https://github.com/lantzproject/lantzThe Lantz AuthorsAuthorsHernan E. Grecco <hernan.grecco@gmail.com>Martin Masip <martinmasip@gmail.com>
Pablo Jais <jaisp@df.uba.ar>
Martin Caldarola <caldarolamartin@gmail.com>
Federico Barabas <fede.barabas@gmail.com>Lantz-drivers Changelog0.5.2 (2019-01-21)Imported drivers from vascotenner drivers_developv branch.0.5 (2018-12-31)Extracted Drivers from Lantz 0.4.dev0. All specific drivers are kept here.Migrated to mfeats when possible.0.3 (2015-02-05)Introduced MessageBasedDriver, a class to rule them all.Moved driversMoved old base classes (serial, usb, tcp, visa) to legacy package.Moved instrument drivers based on legacy classes to legacy package.Migrated instrument classes to MessageBasedDriver.Improved logging to avoid duplication and useless info.Frontend and Backend for application development.Implemented Chart block.Implemented Scan block.Implemented FeatScan block.Implemented Loop block.Implemented Layout block.Online documentation now shows the drivers classes.Stub classes to enable documentation building without required packages.Moved simulator from script to console-script.Changed sphinx theme to read the docs.Introducedstart_guihelper function to start an app with a ui file
and an instrument or instruments.Introducedstart_test_apphelper function to start the test panel.Introducedstart_gui_apptakes a backend and fronted and shows the app.Moved get-lantz script to a gist.Removed lantz-shell, equivalent functionality was contributed to PyVISA.Support simultaneous values and units in Feat.
(Issue #25)Use Qt import scheme from IPython.Helper functions for multiple initialization: initialize_many and finalize_many.GUI support for initialize_many and finalize_many.New instrument drivers.0.2 (2013-01-01)first public release.
Package: lantz-ino
lantz-inoLantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface.  It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.This contains the lantz.ino subpackage.For a longer description and docs, please visit the root of the project:https://github.com/lantzproject/lantzThe Lantz AuthorsAuthorsHernan E. Grecco <hernan.grecco@gmail.com>Martin Masip <martinmasip@gmail.com>
Pablo Jais <jaisp@df.uba.ar>
Martin Caldarola <caldarolamartin@gmail.com>
Federico Barabas <fede.barabas@gmail.com>Lantz-ino Changelog0.5.2 (2019-01-21)Updated dependencies.0.5 (2018-12-31)New package for Arduino Lantz interaction.INODriver: A MessageBaseDriver derived class that specifies.
a way to exchange feats and dictfeats.INO mfeats: MessageBased Feats for Ino drivers.lantz-ino command line program.Automatic creation of arduino sketch template.Compilation and update of the sketch using arduino-cli.0.3 (2015-02-05)Introduced MessageBasedDriver, a class to rule them all.Moved driversMoved old base classes (serial, usb, tcp, visa) to legacy package.Moved instrument drivers based on legacy classes to legacy package.Migrated instrument classes to MessageBasedDriver.Improved logging to avoid duplication and useless info.Frontend and Backend for application development.Implemented Chart block.Implemented Scan block.Implemented FeatScan block.Implemented Loop block.Implemented Layout block.Online documentation now shows the drivers classes.Stub classes to enable documentation building without required packages.Moved simulator from script to console-script.Changed sphinx theme to read the docs.Introducedstart_guihelper function to start an app with a ui file
and an instrument or instruments.Introducedstart_test_apphelper function to start the test panel.Introducedstart_gui_apptakes a backend and fronted and shows the app.Moved get-lantz script to a gist.Removed lantz-shell, equivalent functionality was contributed to PyVISA.Support simultaneous values and units in Feat.
(Issue #25)Use Qt import scheme from IPython.Helper functions for multiple initialization: initialize_many and finalize_many.GUI support for initialize_many and finalize_many.New instrument drivers.0.2 (2013-01-01)first public release.
Package: lantz-qt
lantz-qtLantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface.  It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.This contains the lantz.qt subpackage.For a longer description and docs, please visit the root of the project:https://github.com/lantzproject/lantzThe Lantz AuthorsAuthorsHernan E. Grecco <hernan.grecco@gmail.com>Martin Masip <martinmasip@gmail.com>
Pablo Jais <jaisp@df.uba.ar>
Martin Caldarola <caldarolamartin@gmail.com>
Federico Barabas <fede.barabas@gmail.com>Lantz Changelog0.5.3 (2019-05-15)Added pinned protocol to Backend moveToThreadAdd option to show pretty / abbreviated units in widget.Fixed several bugs.0.5.2 (2019-01-21)Stabilized update_on_change.0.5 (2018-12-31)Extracted Qt from Lantz 0.4.dev0Updated to Pyqt5.Added logging capabilites to Frontend and Backend.0.3 (2015-02-05)Introduced MessageBasedDriver, a class to rule them all.Moved driversMoved old base classes (serial, usb, tcp, visa) to legacy package.Moved instrument drivers based on legacy classes to legacy package.Migrated instrument classes to MessageBasedDriver.Improved logging to avoid duplication and useless info.Frontend and Backend for application development.Implemented Chart block.Implemented Scan block.Implemented FeatScan block.Implemented Loop block.Implemented Layout block.Online documentation now shows the drivers classes.Stub classes to enable documentation building without required packages.Moved simulator from script to console-script.Changed sphinx theme to read the docs.Introducedstart_guihelper function to start an app with a ui file
and an instrument or instruments.Introducedstart_test_apphelper function to start the test panel.Introducedstart_gui_apptakes a backend and fronted and shows the app.Moved get-lantz script to a gist.Removed lantz-shell, equivalent functionality was contributed to PyVISA.Support simultaneous values and units in Feat.
(Issue #25)Use Qt import scheme from IPython.Helper functions for multiple initialization: initialize_many and finalize_many.GUI support for initialize_many and finalize_many.New instrument drivers.0.2 (2013-01-01)first public release.
Package: lantz-sims
lantz-simsLantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface.  It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.This contains the lantz.sims subpackage.For a longer description and docs, please visit the root of the project:https://github.com/lantzproject/lantzThe Lantz AuthorsAuthorsHernan E. Grecco <hernan.grecco@gmail.com>Martin Masip <martinmasip@gmail.com>
Pablo Jais <jaisp@df.uba.ar>
Martin Caldarola <caldarolamartin@gmail.com>
Federico Barabas <fede.barabas@gmail.com>Lantz Changelog0.5.2 (2019-01-21)Changed setup.py for correct deps and naming.0.5 (2018-12-31)Extracted lantz_sims from Lantz 0.4.dev0Provided a way to create simulated drivers on the fly.0.3 (2015-02-05)Introduced MessageBasedDriver, a class to rule them all.Moved driversMoved old base classes (serial, usb, tcp, visa) to legacy package.Moved instrument drivers based on legacy classes to legacy package.Migrated instrument classes to MessageBasedDriver.Improved logging to avoid duplication and useless info.Frontend and Backend for application development.Implemented Chart block.Implemented Scan block.Implemented FeatScan block.Implemented Loop block.Implemented Layout block.Online documentation now shows the drivers classes.Stub classes to enable documentation building without required packages.Moved simulator from script to console-script.Changed sphinx theme to read the docs.Introducedstart_guihelper function to start an app with a ui file
and an instrument or instruments.Introducedstart_test_apphelper function to start the test panel.Introducedstart_gui_apptakes a backend and fronted and shows the app.Moved get-lantz script to a gist.Removed lantz-shell, equivalent functionality was contributed to PyVISA.Support simultaneous values and units in Feat.
(Issue #25)Use Qt import scheme from IPython.Helper functions for multiple initialization: initialize_many and finalize_many.GUI support for initialize_many and finalize_many.New instrument drivers.0.2 (2013-01-01)first public release.
Package: lanutils
LanutilsSmall package to probe ip addresses and ports on a local network.Install with:pip install lanutilsUsage (assuming your local ip is 10.0.0.10 with prefix 24, you're connected via ethernet, you have a http server running on port 8000, and there are a few other devices on your network):>>> import lanutils
>>> lanutils.get_myip()
>>> [("10.0.0.10", 24, "Ethernet")]
>>> lanutils.ip_is_alive("10.0.0.10")
>>> True
>>> lanutils.ip_is_alive("10.0.0.11")
>>> False
>>> lanutils.enumerate_devices()
>>> ["10.0.0.7", "10.0.0.10", "10.0.0.133", "10.0.0.187"]
>>> lanutils.port_is_open("10.0.0.10", 8000)
>>> True
>>> lanutils.scan_ports("10.0.0.10", (7990, 8010))
>>> [8000]
>>> lanutils.get_available_port("10.0.0.10", (8000, 8005))
>>> 8001
Package: lanxinplus-openapi
关于此Python
SDK基于蓝信开放平台API构建蓝信开放平台，便于企业应用与蓝信集成，让协同与管理更加高效蓝信开放接口SDK，便捷调用服务端API，例如：认证授权、通讯录、消息通知、角色权限、媒体素材、组织管理、应用管理等具体可以访问蓝信开放平台API文档 看看运行环境Python >= 3.6安装方法通过pip安装官方发布的版本（以Linux系统为例）：pipinstalllanxinplus_openapi-也可下载源码包，执行安装命令：sudopythonsetup.pyinstall快速使用获取 APP_TOKEN# -*- coding: utf-8 -*-importlanxinplus_openapifromlanxinplus_openapi.apiimportauth_apiconfig=lanxinplus_openapi.Configuration(host="https://example.com/open/apigw",app_id="",app_secret="")withlanxinplus_openapi.ApiClient(config)asapi_client:lanxinplus_openapi.Configuration.set_default(config)try:authApi=auth_api.AuthApi(api_client)resp=authApi.v1_app_token_create("client_credential",config.app_id,config.app_secret)print(resp)exceptlanxinplus_openapi.ApiExceptionase:print("Exception when calling AuthApi->v1_apptoken_create_get:%s\n"%e)测试用例使用说明运行testnosetests-stest/test_auth_api.py:TestAuthApi.test_v1_app_token_create联系我们蓝信官方网站蓝信开放平台文档中心LicenseMIT License, seelicense file
Package: lanyocr
LanyOCRA general OCR to detect and recognize English texts in an image based on a combination ofEasyOCRandPaddleOCR.LanyOCR automatically merges text boxes into lines even for rotated texts.Getting StartedInstall dependenciespip install lanyocrRun examplePYTHONPATH=. python detect.py --merge_rotated_boxes true --merge_vertical true --image_path images/example1.jpgFaster version, a bit less accuratePYTHONPATH=. python detect.py --merge_rotated_boxes true --merge_vertical true --merge_boxes_inference true --image_path images/example1.jpgSwitch to different recognizerPYTHONPATH=. python detect.py --merge_rotated_boxes true --merge_vertical true --recognizer_name paddleocr_en_mobile --image_path images/example1.jpgRecognize other languagesPYTHONPATH=. python detect.py --merge_rotated_boxes true --merge_vertical true --recognizer_name paddleocr_french_mobile --image_path images/french_example1.jpgOutput image will be in outputs/output.jpgSupported LanguagesEnglish: paddleocr_en_server, paddleocr_en_mobileFrench: paddleocr_french_mobileLatin: paddleocr_latin_mobileNote: Some unicode characters cannot be visualized correctly by OpenCV, please find the text lines in the console log.Validate accuracyDownload ICDAR 2015 datasetbash datasets/download_icdar2015.shValidate accuracypython benchmark.pyOnline APIYou can try LanyOCR free onRapidAPITo Do[x] Abstract Class/Interface for each component
    [x] LanyOcrDetector: outputs locations of text boxes        
    [x] LanyOcrMerger: merge text boxes into text lines
    [x] LanyOcrRecognizer: convert text boxes/lines into text
    [x] LanyOcrAngleClassifier: estimate the angle of a text box/line

[ ] Multi-languages support
    [X] French        
    [X] Latin
    [ ] German

[ ] Inference using multi-models to improve accuracy
    [ ] Add interface to support voting policy

[ ] Expose flags to configure each component in OCR pipelineKnown issues[ ] Visualization step: some small texts are drawn in incorrect directionsLicenseThis project is licensed under theMIT License.CreditsSpecial thanks to authors and developers ofEasyOCRandPaddleOCRprojects.
Package: lanyrd
Python Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://lanyrd.readthedocs.org.FeaturesTODOInstallationAt the command line either via easy_install or pip:$pipinstalllanyrd$easy_installlanyrdUninstall$pipuninstalllanyrdGetting StartedTo use lanyrd in a project:importlanyrdCreditsTools used in rendering this package:Cookiecuttercookiecutter-pypackageHistoryNext ReleaseTODO0.1.0 (2015-01-11)First release on PyPI.
Package: lapa-authentication
lapa_authenticationAboutAuthentication serviceInstallationpip install lapa_authenticationEnvpython>=3.12.0Changelogv0.0.4bug fix - add "email_validator>=2.0.0" in dependencies.v0.0.3use lapa_commons to read config.v0.0.2move logger to configuration.py.remove unused dependencies.add lapa_database_helper.v0.0.1/register endpoint added.Before adding user into the authentication server. It will first check if the user's email-id is already present
in the database or not.If Yes -> Do not create entry in the database. Return message saying user already exists.If No -> Create entry in the database. Return message saying user created successfully.
Package: lapack4abaqus
lapack4abaqusCreatelapack.ffor Abaqus to include, by addingkto the name of each subroutine and function.InstallUse PyPI to installlapack4abaqus:pipinstalllapack4abaqusUsageRun the following script, then you will get the desiredlapack.fto include.fromlapack4abaqusimportgen_lapackgen_lapack(functions=["dgetrf","dgetri"],# list of desired funtions or subroutines)
Package: lapa-commons
lapa_commonsAboutLapa commons used for reading the configuration file.Installationpip install lapa_commonsEnvpython>=3.12.0UsageCreate sample config.ini[ENVIRONMENT]
log_level = INFO

[DATABASE]
Db_Host = localhost
Db_Port = 5432
Db_Name = my_database
Db_User = my_user
Db_Password = my_password

[API]
API_KEY = abcdef1234567890
BASE_URL = https://api.example.com/v1Sample code# import lapa_commons
from lapa_commons.main import read_configuration_from_file_path

# call the read_configuration_from_file_path() and provide file path
ldict_configuration = read_configuration_from_file_path('/home/lavsharma/python-project/temp/config.ini')Output{'API': {'API_KEY': 'abcdef1234567890', 'BASE_URL': 'https://api.example.com/v1'}, 'DATABASE': {'Db_Host': 'localhost', 'Db_Name': 'my_database', 'Db_Password': 'my_password', 'Db_Port': '5432', 'Db_User': 'my_user'}, 'ENVIRONMENT': {'log_level': 'INFO'}}Changelogv0.0.2bug fix when reading environment variables.v0.0.1configparser added in the dependency.Function read_configuration_from_file_path() added which reads the configuration from a filepath.Support for any number of sections in the configuration file.Environment section variables will be first checked in the OS, if not found in the OS then it will be read from the
configuration file.MODULE_NAME added in theinit.pyErrors are raised in the module instead of logging.