Saravanan666/pypi-org huggingface dataset:
Package: kspies
KSPiesKohn-Sham Python-based inversion Evaluation SoftwareDocumentaiton:https://ssnam92.github.io/KSPies/index.htmlDOI for Code:https://doi.org/10.25351/V3.KS-PIES.2020This package simplifies evaluating Kohn-Sham inversion potentials and densities for use in the quantum chemistry.
In addition to documentation of the scientific code, this site includes information on installation, setup, use, and examples of use to equip quantum chemists and physicists with this useful toolkit.
Please let us know if you have further questions, suggestions, or ideas.InstallationPrerequisitesPython 3.6 or higherNumpy 1.8.0 or higherScipy 1.4.1 or higherPySCF 1.6.6 or higheropt_einsum 3.2.0 or higherLAPACK(for Fortran)Installation
Using pip:pip install kspiesNote this does not downloads compiled Fortran binary directly.
User can compilekspies/kspies_fort.f90to utilize much faster Fortran subroutine forwyandutil.
Example compile command is introduced inkspies/compile.sh
Package: kspl
SPL KConfig GUIKConfig GUI for Software Product Lines with multiple variants.InstallationInstall this via pip (or your favourite package manager):pip install ksplStart developingThe project uses Poetry for dependencies management and packaging.
If you do not have Poetry installed, you can run theboostrap.ps1script.
This will install Python and Poetry as configured inscoopfile.json.Set-ExecutionPolicy-ExecutionPolicyBypass-ScopeCurrentUser-Force.\bootstrap.ps1To install the development dependencies in a virtual environment, type:poetryinstallThis will also generate apoetry.lockfile, you should track this file in version control. To execute the test suite, call pytest inside Poetry's virtual environment viapoetry run:poetryrunpytestCheck out the Poetry documentation for more information on the available commands.For those usingVS Codethere are tasks defined for the most common commands:install development dependenciesrun testsrun all checks configured for pre-commitgenerate documentationSee the.vscode/tasks.jsonfor more details.Committing changesThis repository usescommitlintfor checking if the commit message meets theconventional commit format.Contributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: ksp-price-notifier
KSP-Price-NotifierUse to get notified for change of price in KSP.Installationpipinstallksp-price-notifierUsagejust give it the uin (can be found the link, ashttps://ksp.co.il/web/item/109332).
target price the the path to chromedriver:ksp-price-notifier1093325990result:The price is lower than the target price, it is now 5549
Go and buy! https://ksp.co.il/web/item/109332In-Code usagefromksp_price_notifierimportGetPriceFromKSPgetter=GetPriceFromKSP()getter.get_price(109332)>4690
Package: ksp.py
ksp.pyDocumentationAn API wrapper for KSP.The documentation is not done yet.FeaturesFetch full product data easily (includes stock, tags, price, etc)Look for queries easily.
(MORE COMING SOON)InstallationInstalling ksp.py is very easy.python-mpipinstallksp.pyExamplesSimple product stock viewer.importtimeimportkspclient=ksp.Client(ksp.Languages.ENGLISH)cache=[]whileTrue:product=client.get_product(...)ifproductandproduct.stock:available_branches=[branchforbranch,statusinproduct.stock.items()ifstatus]forbranchinavailable_branches:ifbranchnotincache:print(f"Branch '{branch}' has been resupplied!")forbranchincache:ifbranchnotinavailable_branches:print(f"Branch '{branch}' ran out of stock!")cache=available_branchestime.sleep(2)TODOAdd async support.Known IssuesCurrently, None!Incase you do find bugs, please create an issue or a PR.SupportDocumentation
Package: ksqldb
KSQLdb for PythonProject OverviewA Python wrapper for the KSQLdb REST APIInstallationpip install ksqldbClient configurationfromksqldbimportKSQLdbClientclient=KSQLdbClient('http://localhost:8088')It can also be configured with Basic authentication:fromksqldbimportKSQLdbClientclient=KSQLdbClient('http://localhost:8088',api_key="<KEY>",api_secret="<SECRET>")Usageclient.get_properties()Returns KSQLdb propertiesclient.get_properties()client.ksql(ksql_string, stream_properties=None)For a full list of statement options make sure to check KSQLdb API:/ksql endpointExamples of executing KSQL statements:client.ksql("show topics;")client.ksql("show streams;")client.ksql("show tables;")client.ksql("describe <STREAM_NAME> extended;")client.query_sync(query_string, stream_properties=None, timeout=10)Runs a querysynchronously.
Can't be used withEMIT CHANGESqueries.Examples of executing KSQL queries:client.query_sync("select * from STREAM_NAME;")# To get data from beginning of stream use:client.query_sync("select * from STREAM_NAME;",stream_properties={"ksql.streams.auto.offset.reset":"earliest"})client.query_async(query_string, stream_properties=None, timeout=10)Runs a queryasynchronously.To test this in python shell can usepython -m asyncioExamples of executing KSQL async queries:asyncforxinclient.query_async("select * from STREAM_NAME emit changes;",timeout=None):print(x)# To get data from beginning of stream use:asyncforxinclient.query_async("select * from STREAM_NAME emit changes;",stream_properties={"ksql.streams.auto.offset.reset":"earliest"},timeout=None):print(x)close_query(query_id)Usually you don't need to close a sync query, but should be done forasyncones.client.close_query("QUERY_ID")inserts_stream(stream_name, rows)Inserts data into a stream.rows=[{"col1":"val1","col2":2.3,"col3":True},{"col1":"val1","col2":2.3,"col3":True},]client.inserts_stream("STREAM_NAME",rows)
Package: ks-realpython-reader
Real Python Feed ReaderThe Real Python Feed Reader is a basicweb feedreader that can download the latest Real Python tutorials from theReal Python feed.For more information see the tutorialHow to Publish an Open-Source Python Package to PyPIon Real Python.InstallationYou can install the Real Python Feed Reader fromPyPI:pip install realpython-readerThe reader is supported on Python 2.7, as well as Python 3.4 and above.How to useThe Real Python Feed Reader is a command line application, namedrealpython. To see a list of thelatest Real Python tutorialssimply call the program:$ realpython
The latest tutorials from Real Python (https://realpython.com/)
 0 How to Publish an Open-Source Python Package to PyPI
 1 Python "while" Loops (Indefinite Iteration)
 2 Writing Comments in Python (Guide)
 3 Setting Up Python for Machine Learning on Windows
 4 Python Community Interview With Michael Kennedy
 5 Practical Text Classification With Python and Keras
 6 Getting Started With Testing in Python
 7 Python, Boto3, and AWS S3: Demystified
 8 Python's range() Function (Guide)
 9 Python Community Interview With Mike Grouchy
10 How to Round Numbers in Python
11 Building and Documenting Python REST APIs With Flask and Connexion – Part 2
12 Splitting, Concatenating, and Joining Strings in Python
13 Image Segmentation Using Color Spaces in OpenCV + Python
14 Python Community Interview With Mahdi Yusuf
15 Absolute vs Relative Imports in Python
16 Top 10 Must-Watch PyCon Talks
17 Logging in Python
18 The Best Python Books
19 Conditional Statements in PythonTo read one particular tutorial, call the program with the numerical ID of the tutorial as a parameter:$ realpython 0
# How to Publish an Open-Source Python Package to PyPI

Python is famous for coming with batteries included. Sophisticated
capabilities are available in the standard library. You can find modules for
working with sockets, parsing CSV, JSON, and XML files, and working with
files and file paths.

However great the packages included with Python are, there are many
fantastic projects available outside the standard library. These are most
often hosted at the Python Packaging Index (PyPI), historically known as the
Cheese Shop. At PyPI, you can find everything from Hello World to advanced
deep learning libraries.

[... The full text of the article ...]You can also call the Real Python Feed Reader in your own Python code, by importing from thereaderpackage:>>> from reader import feed
>>> feed.get_titles()
['How to Publish an Open-Source Python Package to PyPI', ...]
Package: ksrpc
ksrpcKeep Simple RPC。免注册远程过程调用项目背景团队里常常需要通过平台下载各数据，但只有一套账号。通常的方案如下：一个账号大家共用。最简单粗暴账号还能登录平台的其它功能，不便于分享账号可能有在线数上限，会导致互踢不同成员可能重复下载相同数据，同一成员也可能反复下载相同数据由IT团队将数据提前下载过来。人力成本最高IT团队需要提前规划部署，并向研究团队推广不同数据需要IT团队针对性的提前准备下载，时效性一般有些数据只是临时少量需要，需求变化快如果搭建一套服务，客户端不需账号，基本不用改动代码，是否解决多成员分享问题？所以这个项目就是为了API转发，只是后来发现本质上是RPC目标及特性不修改第三方API源代码，实现客户端免登录新接口与原接口一致，基本不用改动代码数据缓存功能，减少下载次数。针对有数据有限额、调用次数有限制等情况跨语言，能将大量Python的数据API转成HTTP服务，由其它语言调用既支持同步调用，又支持异步调用应用场景数据缓存转发源代码保护。核心代码不提供，只向外暴露服务远程控制。可调os、sys等库与其它RPC的区别免注册就可以向外自动暴露所有API不得不添加函数白名单与黑名单功能添加了简易版的token认证功能所有API都自动暴露，但并不是所有API都能正常使用。例如：输入与输出无法序列化和反序列化部分API使用方法特殊，也可能无法使用数据量太大，序列化、网络传输都不太现实可先选择不同的通讯方式，目前提供的方式有：HTTP、WebSocket出于数据版权保护，默认添加了IP地址校验开关，限制只在内网使用多人使用时，少数人超量使用，所以又添加了数据量限额功能服务端安装安装ksrpc库pip install ksrpc[server] -ihttps://mirrors.aliyun.com/pypi/simple--upgrade直接运行python -m ksrpc, 观察提示的config.py文件路径编辑config.py文件，进行ksrpy的功能管理。如权限配置等ENABLE_SERVER = True再次运行python -m ksrpc或对应目录下运行python run_app.py确保服务器上防火墙已经开放对应端口客户端安装安装ksrpc库pip install ksrpc[client] -ihttps://mirrors.aliyun.com/pypi/simple--upgrade编辑examples目录下的demo_http.py和demo_websocket.py中对应的服务地址运行demo_http.py和demo_websocket.py，检查是否运行正常示例直接可替代的。如tests目录下的：os、numpy、pandas、akshare等客户端没有安装相应包的情况下，IDE无法自动补全需要服务端进行登录等一类处理的。如server目录下的，jqdatasdk、tushare、WindPy等客户端参数无法序列化，需要特殊处理的。如hack目录下的jqdatasdk、WindPy等需要客户端安装第三方库，IDE的自动补全功能正常fromksrpcimportRpcClientfromksrpc.connections.httpimportHttpxConnectionconn=HttpxConnection('http://127.0.0.1:8000/api/file')conn.timeout=Nonemath=RpcClient('math',conn,async_local=False)math.cache_get=Truemath.cache_expire=86400# 模块中变量获取方法。加了括号print(math.pi())print(math.pow(2,3))# 创建客户连接fromksrpcimportRpcClientfromksrpc.connections.httpimportHttpxConnectionconn=HttpxConnection('http://127.0.0.1:8000/api/file')conn.timeout=Noneclient=RpcClient('tushare',conn,async_local=False)client.cache_get=Trueclient.cache_expire=86400# 对原版库进行定制处理，需要已经安装了原版库fromksrpc.hack.tushareimporthackhack(client)# 原版代码可都保持不变importtushareaststs.set_token('TUSHARE_TOKEN')pro=ts.pro_api()df=pro.trade_cal(exchange='',start_date='20210901',end_date='20211231')print(df)df=pro.daily(ts_code='000001.SZ,600000.SH',start_date='20180701',end_date='20180718')print(df)部分支持转发的库AkShare(已测)TuShare方法一方法二(已测)rqdatac(已测)jqdatasdk(缺账号，未测)Wind(缺账号，未测)其它...跨语言开发文档跨语言示例代码在lang目录下跨语言开发文档声明此库仅供学习交流，请在数据提供方的授权范围内使用。请勿向第三方转发数据反弹RPC(反向RPC)/中继服务如果提供服务的机器在内网，无法搭建服务，也无法直接访问怎么办？参考Reverse Shell的概念，本项目提供了Reverse RPC功能公网服务器上安装pip install ksrpc[server]，修改配置，运行python run_app.py，记下公网IP内网服务器上安装pip install ksrpc(如果网络受限，可下载whl文件本地安装)，修改rpc_reverse.py中为公网IP，运行python rpc_reverse.py。此代码可粘贴到Notebook中运行观察内网脚本是否能连接公网服务器个人电脑上安装pip install ksrpc[client]，编辑examples/demo_reverse.py中为公网IP，运行，观察结果注意地址不同，内网被控端连接公网IP下的/client, 个人电脑连接公网IP下的/admin，并且要用完全一样的房间号默认情况下，config.py中的ENABLE_RELAY = True已经开启参考项目开发到一定阶段后才发现与rpyc这个免注册暴露函数的功能类似，大家也可以去学习一下https://github.com/tomerfiliba-org/rpyc
Package: kss.base
KSS enables you write rich Ajax applications without having to code
Javascript. It does this by using a CSS like resource, this is called
a KSS file. All that you as a developer need to do is write files like
these and implement server side Python.This Python package contains the Javascript engine and the server side
infrastructure. The package forms the base for ingegration with
specific web development frameworks. To see if there is support for
your framework go to the KSS website.
Package: ks-session-manager
Session converter from Telethon session + json to Pyrogram and vice versaExamplesFrom telethon to pylogramimportasyncioimportloggingfromks_session_manager.converterimportConverterAPI_ID=123456API_HASH=""PHONE_NUMBER=""asyncdefmain():converter=awaitConverter.from_telethon(PHONE_NUMBER,workdir="./telethon_sessions_path")try:awaitconverter.export_pylogram_session()exceptFileExistsErrorase:# Already exportedlogging.warning(e)client=awaitconverter.get_pylogram_client()asyncwithclient:me=awaitclient.get_me()print(me)if__name__=='__main__':logging.basicConfig(level=logging.INFO)asyncio.run(main())Telethon sessions revisionimportasyncioimportloggingfromks_session_manager.revisorsimportTelethonRevizorasyncdefmain():revizor=TelethonRevizor(threads=20,# How many revisions to run simultaneouslydry_run=False# If True, revisions will not actually connect to Telegram, only logs will be printed)awaitrevizor.revise_all_in_path("./telethon_sessions_path",limit=20)if__name__=='__main__':logging.basicConfig(level=logging.INFO)asyncio.run(main())
Package: kss.plugin.cacheability
KSS plugin package “kss.plugin.cacheability”DocumentationThis plugin enables to use cacheable (GET) KSS reguests.
This feature will be supported in the future directly
by kss.Usage:css:event {
    action-client: cacheability-serverAction;
    cacheability-serverAction-url: actionName;
}The future syntax for this will be:css:event {
    action-server: actionName method(GET);
}LimitationBecause currently the action runs as a client action in
the eyes of KSS, entire forms cannot be marshalled to the
server action. (kssSubmitForm, etc. does not work.)kss.plugin.cacheability installationBy handWhen you’re reading this you have probably already runeasy_install kss.plugin.cacheability. Find out how to install setuptools (and
EasyInstall) here:http://peak.telecommunity.com/DevCenter/EasyInstallCopy the file calledkss/plugin/cacheability/kss.plugin.cacheability-configure.zcmlin the/path/to/instance/etc/package-includesdirectory.Using buildoutSimply addkss.plugin.cacheabilityto your buildout’s eggs list and add it
to the zcml section of your instance config.From within your own packageYou can addkss.plugin.cacheabilityto theinstall_requiresof your
package’s setup.py. Also add a<zcml:includepackage="kss.plugin.cacheability"/>to your configure.zcml.Changelog for kss.plugin.cacheability0.2.1 (2009-01-27)Missing strip() ruined the version string, resulting in a0.2-release
instead of0.2. Re-releasing. [reinout]0.2 (2009-01-27)Documentation updates. Including documentation in the long description.
[reinout]0.1.2 (2008-11-13)Fix the url construction for server actions. This will get rid of the double
// before the action name.  [ree]0.1 (2008-07-02)Initial go at using GET requests so that they can be cached on the
server. [ree]Initial package structure.  [ree]
Package: kss.plugin.jsmath
KSS plugin package “kss.plugin.jsmath”Installation and SetupRead INSTALL.txtDocumentationkss.plugin.jsmath enables the use of thejsMath librarywith KSS.jsMath has its own markers for marking the beginning and end of
the formulas in your text content. In addition, this component
provides a KSS action, that needs to be executed on the nodes,
within which you want the conversion to be enabled. This action
will activate the conversion on the selected areas only.For example the following rule activates conversion inside all
nodes that are marked with the “mathcontent” CSS class:.mathcontent:load {
    action-client: jsmath-activate;
}You can use this, for example, to enable seamless conversion of
the view of any of your widgets. In Zope, you can activate
this for certain fields of certain or all content types, with
a properly choosen selector.Since the conversion only affects the view results, the mechanism
works all the same, independently if the field is edited as a
text area input, or with an editor (like kupu). In the editor,
you are able to edit the LaTeX markup directly.MarkupjsMath offers more variants for marking your content, these are
controllable by parameters on the action. According to defaults,
putting the formula between the markers\(and\)works out
of the box:\( \textstyle \sqrt{x+2}\quad \underline 4\quad \overline{x+y}\quad x^{\underline n}\quad x^{\overline{m+n}} \quad \sqrt{x^2+\sqrt{\alpha}} \)The markers only become active in the areas that you select with
KSS.Dynamic loadingjsMath has a mechanism for loading its large javascript
dynamically, on demand. The package uses this mechanism combined
with custom code that helps dynamic loading integrate with KSS.The following javascript files:/++resource++jsmath/jsMath.js
/++resource++jsmath/plugins/tex2math.jswill be loaded dynamically, if you selected any conversion with
KSS in your page. This will cause a little delay before the first
conversion takes place but makes sure that the large javascript
is only loaded when needed. The works seamlessly in practice,
because the loading and the conversion takes place asynchronously
and it does not block access to the page from the browser.However, it is also possible to include these resources
statically in the page header, as well. In this case the
resources will be used at once and will not be loaded
dynamically. You may choose this method, if you find it increases
overall performance on your site.Browser compatibilityjsMath is famous for working on all browsers including all the
ones that are supported by KSS. However if you find that the
plugin fails in your browser, please report the bug so that we
can attempt to fix it.CaveatsSince the conversion happens on client side, you will not be able
to use the same mechanism to convert your pages to PDF, on the
server side.Download
Package: kss.plugin.timer
IntroductionThis package provides a timer plugin for KSS. The plugin will manage starting,
stopping and displaying a timer through KSS actions, with parameters for
formatting the time display.Changelog for kss.plugin.timer1.1 (2012-09-12)Moved to github:https://github.com/zestsoftware/kss.plugin.timer[maurits]1.0 (2010-09-23)Nothing changed yet.0.2 (2009-01-07)Made slightly nicer README.txt file, and added README.txt and HISTORY.txt
to package information, as ‘long_description’. [simon]Copied format parameters to the update event, so that timers that weren’t
started on this page can still be formatted. [simon]Fixed nasty problem where the timer got restarted after performing a server
action. [maurits]Added support for preventdefault on the timer events ‘start’, ‘stop’ and
‘reset’ - a bit awkward since preventing the defaults on those events
actually means preventing the click defaults on the nodes for which the
events are registered, but that’s a consequence of the strange event
implementation in timer. [guido_w]Fixed problem that made that only one timer could run at the same time,
added an option to automatically start a timer, optionally with a start time
(severely abusing kssattr for this… it seems like it makes sense
though). [guido_w]Added ‘reset’ event, fixed problem with clicking the start button multiple
times, added rudimentary unit tests (using jsbase’s py.test support, hacked
to work with ‘plain’ unittest). [guido_w]Added support for two seperate ‘displayformat’ config vars: one for when the
time hasn’t passed an hour, and one for when it has. Also fixed a set of
bugs in padding (pad when X < 9 instead of 10?!?) and second display (was
showing the total number of seconds for %S instead of the number of seconds
in the current minute). [guido_w]
Package: kss.plugin.yuidnd
KSS plugin for the yahoo drag/drop libraryKSS plugin that integrates the yahoo drag-and-drop library. Makes dragging and
dropping a snap. It allows multiple drop targets.CreditsJean-Paul LadageGuido WesdorpBalasz ReeChangelog for kss.plugin/yuidnd1.1 (2012-09-12)Moved to github:https://github.com/zestsoftware/kss.plugin.yuidnd[maurits]1.0 (2010-09-23)No changes recorded.0.7 (2008-09-16)No changes recorded.0.6 (2008-06-27)No changes recorded.
Package: ks.sqltools
ks.sqltools===========ks.sqltools package is a collection of sql-related products, providingextremely simple way to work with sql.* Sat Nov 10 2007 Andrey Orlov <cray@neural.ru> 1.0.2- Paths fixed for any relocated modules* Wed Nov 7 2007 Andrey Orlov <cray@neural.ru> 1.0.1- first official releaseDetailed Documentation
Package: kstocks
kstocksKorean Stock Module⚠ 해당 프로젝트는 AGPL-3.0 License 입니다 ⚠Download$pipinstallkstocksExampleexample.pyContributeFind a bug and tell it on the Issue tab or to! Tim23#9999on discordYou can also Pull a requestLog1.0 Initial Release
Package: kstreams
Kstreamskstreamsis a library/micro framework to use withkafka. It has simple kafka streams implementation that gives certain guarantees, see below.Documentation:https://kpn.github.io/kstreams/InstallationpipinstallkstreamsYou will need a worker, we recommendaiorunpipinstallaiorunUsageimportaiorunfromkstreamsimportcreate_engine,ConsumerRecordstream_engine=create_engine(title="my-stream-engine")@stream_engine.stream("local--kstream")asyncdefconsume(cr:ConsumerRecord):print(f"Event consumed: headers:{cr.headers}, payload:{cr.value}")asyncdefproduce():payload=b'{"message": "Hello world!"}'foriinrange(5):metadata=awaitstream_engine.send("local--kstreams",value=payload)print(f"Message sent:{metadata}")asyncdefstart():awaitstream_engine.start()awaitproduce()asyncdefshutdown(loop):awaitstream_engine.stop()if__name__=="__main__":aiorun.run(start(),stop_on_unhandled_errors=True,shutdown_callback=shutdown)FeaturesProduce eventsConsumer events withStreamsPrometheusmetrics and custom monitoringTestClientCustom Serialization and DeserializationEasy to integrate with anyasyncframework. No tied to any library!!Yield events from streamsOpentelemetry InstrumentationMiddlewaresStore (kafka streams pattern)Stream JoinWindowingDevelopmentThis repo requires the use ofpoetryinstead of pip.Note: If you want to have thevirtualenvin the same path as the project first you should runpoetry config --local virtualenvs.in-project trueTo install the dependencies just execute:poetryinstallThen you can activate thevirtualenvwithpoetryshellRun test:./scripts/testRun code formatting with ruff:./scripts/formatCommit messagesWe useconventional commitsfor the commit message.The use ofcommitizenis recommended. Commitizen is part of the dev dependencies.czcommit