Saravanan666/pypi-org huggingface dataset:
Package: jigna
JignaJigna is a bridge betweenTraitsand the HTML world to provide a UI toolkit for
traits models based on the powerful technologies of HTML, CSS and Javascript.It provides two-way data bindings between the traits model and the HTML
interface i.e. traits notifications automatically update the HTML UI and user
inputs on the UI seamlessly change model attributes in Python. Jigna usesAngularJS(orVue.js) for data bindings and one could think of it as an
equivalent of AngularJS where the model lives in Python instead of Javascript.
This gives us the power of Python and Traits for easily writing the application
logic and the flexibility and expressibility of HTML for the user interface.The HTML UI can be displayed both in the same Python process as well as
remotely, allowing us to view and manipulate a Traits-based-object from the web.Jigna can be used to create user interfaces in Qt using Qt’s webkit support or
on a browser. One needs to have Qt (PySide or PyQt) installed if one wants a Qt
based UI and requirestornadofor a web-based UI.With a web-based UI, the jigna dependencies are rather light requiring only
traits, tornado, and a recent web browser.Please note that Jigna currently is only tested with Qt4 and Qt5 support will be
added later.InstallationJigna can be installed withpip:$ pip install jignaThis will not pull in any Qt requirements but will requiretornadoas it is
easy to install.  The test requirements can be installed via:$ pip install jigna[test]This will install, PySide, nose, mock, coverage, andseleniumif you do not
already have them.To install Jigna from the sources you may do the following:git clone git@github.com:enthought/jigna.git
cd jigna
pip install -r requirements.txt
python setup.py install # or python setup.py developThis does not include pyside or pyqt so you will have to install that as well.TestingTo run the tests, you can simply do the following from the project’s root
directory:nosetestsYou must make sure you have the required packages installed, and can install
these via:pip install -r requirements.txtThis does not install pyside since that is a heavy dependency. You may install
it using your package manager or via pip.ExamplesThere are several examples to play with in theexamplesdirectory. Each
example demonstrates one particular feature of jigna. Start with the simplest
one by running:python ex1_simple_view.pyThis requires Qt so if you are only interested in Web UI examples, you may run
the following examples:ex3_simple_view_web.pyex7_model_updates_web.pyex20_mayavi_webgl_demo.py– this requires Mayavi to be installed.
Package: jig-py
jig-pyPython のソースコードを解析し、設計を支援するためのツールです。現在はまだ開発中のアルファ版です。対応している機能は以下の通りです。JupyterLabのNotebook上でモジュール依存関係を分析するためのJigモジュール提供jig コマンドによるモジュール依存関係の画像出力解析対象はPython 3のみ対応しています。
互換性のない機能の変更や廃止などがありえます。使い方pipによるインストール。$ pip install jig-pyまた、Graphvizを別途インストールする必要があります。JupyterLab Notebook 上での利用方法はクイックスタートを参照してください。
手元のJupyterLabで実行する際には、 quick_start.ipynb ファイルを開いてください。
Package: jijbench
JijBench: An Experiment and Benchmark Management Library for Mathematical OptimizationJijBench is a Python library designed for developers working on research and development or proof-of-concept experiments using mathematical optimization. Positioned similarly to mlflow in the machine learning field, JijBench provides features such as saving optimization results, automatically computing benchmark metrics, and offering visualization tools for the results.Primarily supporting Ising optimization problems, JijBench plans to extend its support to a wide range of optimization problems, such as MIP solvers, in the future.InstallationJijBench can be easily installed using pip.pipinstalljijbenchDocumentation and SupportDocumentation:https://jij-inc.github.io/JijBench/Tutorials will be provided in the future. Stay tuned!How to ContributeSeeCONTRIBUITING.mdCopyright (c) 2023 Jij Inc.
Package: jijmodeling-transpiler
JijModeling TranspilerJijModeling Transpilerprovides the feature to transpile mathematical models created by JijModeling to other formats such asPyQUBOorLP files.The library is located on the public PyPI server and is available free of charge to users, but it is obfuscated. You cannot do reverse engineering.Users can install this library and use it as a subpackage ofjijmodelinglikefrom jijmodeling import transpiler.
Package: jijmodeling-transpiler-quantum
JijModeling-Transpiler-QuantumJijModeling-Transpiler-Quantumis a transpiler from model written inJijModelingto quantum optimization algorithms on variaous quantum platform.QiskitQURI-PartsQiskitQiskitis an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.Installationpipinstall"jijmodeling-transpiler-quantum[qiskit]"Quantum Approximate Optimization Algorithm (QAOA)importjijmodelingasjmimportjijmodeling_transpilerasjmtimportjijmodeling_transpiler_quantumasjtq# Create modelproblem=jm.Problem("model")...# Modeling ...# Compilecompiled_instance=jmt.compile_model(problem,instance_data,fixed_vars)# Transpile to QAOA of qikitqaoa_builder=jtq.qiskit.transpile_to_qaoa(compiled_instance)QURI-PartsQURI Partsis an open source library suite for creating and executing quantum algorithms on various quantum computers and simulators.pipinstall"jijmodeling-transpiler-quantum[quri-parts]"Quantum Approximate Optimization Algorithm (QAOA)importjijmodelingasjmimportjijmodeling_transpilerasjmtimportjijmodeling_transpiler_quantumasjtq# Create modelproblem=jm.Problem("model")...# Modeling ...# Compilecompiled_instance=jmt.compile_model(problem,instance_data,fixed_vars)# Transpile to QAOA of qikitqaoa_builder=jtq.quri.transpile_to_qaoa(compiled_instance)ContributingSetuppipinstallpoetry
poetryinstall--all-extras
poetryshellTestpytesttests
Package: jijzept
JijZept Quick StartHow to get started with JijZeptThe minimal sample code as follows:importjijmodelingasjmimportjijzeptasjzx=jm.BinaryVar('x')y=jm.BinaryVar('y')problem=jm.Problem('sample_problem')problem+=-x*ysampler=jz.JijSASampler(config='config.toml')response=sampler.sample_model(problem,{})print(response)Write a configuration file for connecting to JijZept inconfig.tomland put it in theconfigargument of the Sampler constructor.The configuration file should be written in TOML format as follows.[default]url="***"token="****"Copy and paste the assigned API endpoint into theurland your token intotokenin the configure file.またデフォルトでは同期モードになっているため、APIに投げて計算が終わるで待ってから解を得ることになります。同期モードをオフにして非同期でJijZeptを使うには以下の手順で答えを得ることができます。async mode非同期モードでAPIを使いたい場合は、.sample_*の引数で、async=Falseにして同期モードをオフにする必要があります。サンプルコードimportjijmodelingasjmimportjijzeptasjzfromjijzept.responseimportAPIStatusx=jm.BinaryVar('x')y=jm.BinaryVar('y')problem=jm.Problem('sample_problem')problem+=-x*ysampler=jz.JijSASampler(config='config.toml')response=sampler.sample_model(problem,{},sync=False)ifresponse.status==APIStatus.SUCCESS:print(response)elifresponse.status==APIStatus.PENDING:print('Solver status: PENDING')else:print('Error')非同期モードでも.sample_*の返り値は同期モードと同じくJijModelingResponseクラスです。
ですが、解が入っていない可能性があります(非同期モードでも一度だけ解を取りに行っているので計算時間が短いと解をもっている可能性もあります)。解を取りに行くためのコードがresponse=response.get_result()です。また.get_resultは返り値をもつ非破壊メソッドです。計算が終了したかどうかはget_resultの返り値の.status変数で確認することができます。fromjijzept.responseimportAPIStatusifresponse.status==APIStatus.SUCCESS:print(response)elifresponse.status==APIStatus.PENDING:print('Solver status: PENDING')else:print('Error')
Package: jijzeptlab-cognitoauthenticator
JijZeptLab Cognito AuthenticatorThis is a relatively simple authenticator for small or medium-sizedJupyterHubapplications. Signup and authentication are implemented as native to JupyterHub without relying on external services.NativeAuthenticator provides the following features:New users can signup on the system;New users can be blocked from accessing the system awaiting admin authorization;Option of enforcing password security by disallowing common passwords or requiring a minimum password length;Option to block users after a set number of failed login attempts;Option of open signup without need for initial authorization;Option of asking more information about users on signup (e-mail).Option of requiring users to agree with given Terms of Service;Option of protection against scripting attacks via reCAPTCHA;Option for users with an org-internal e-mail address to self-approve via secure link;DocumentationThe latest documentation is always on readTheDocs, availablehere.Running testsTo run the tests locally, you can install the development dependencies like so:pipinstall-rdev-requirements.txtThen run tests with pytest:pytestPyPi Upload:python-mbuild
twineuploaddist/*Add Documentneed enviroment
COGNITO_REGION : Using Cognito Reagion.
COGNITO_CLIENT_ID : Using Cognito ClientId.
COGNITO_USERPOOL_ID : Using Cognito UserPoolId.
Package: jijzeptlab-mathjax
jijzeptlab_mathjaxA JupyterLab extension.RequirementsJupyterLab >= 3.0InstallTo install the extension, execute:pipinstalljijzeptlab_mathjaxUninstallTo remove the extension, execute:pipuninstalljijzeptlab_mathjaxContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the jijzeptlab_mathjax directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstalljijzeptlab_mathjaxIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedjijzeptlab-mathjaxwithin that folder.Testing the extensionFrontend testsThis extension is usingJestfor JavaScript code testing.To execute them, execute:jlpm
jlpmtestIntegration testsThis extension usesPlaywrightfor the integration tests (aka user level tests).
More precisely, the JupyterLab helperGalatais used to handle testing the extension in JupyterLab.More information are provided within theui-testsREADME.Packaging the extensionSeeRELEASE
Package: jijzeptlab-themes
jijzeptlab_themesA JupyterLab extension.RequirementsJupyterLab >= 3.0InstallTo install the extension, execute:pipinstalljijzeptlab_themesUninstallTo remove the extension, execute:pipuninstalljijzeptlab_themesContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the jijzeptlab_themes directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstalljijzeptlab_themesIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedjijzeptlab_themeswithin that folder.Testing the extensionFrontend testsThis extension is usingJestfor JavaScript code testing.To execute them, execute:jlpm
jlpmtestIntegration testsThis extension usesPlaywrightfor the integration tests (aka user level tests).
More precisely, the JupyterLab helperGalatais used to handle testing the extension in JupyterLab.More information are provided within theui-testsREADME.Packaging the extensionSeeRELEASE
Package: jikan4
jikan4A Python wrapper for theJikan API V4Installationpipinstalljikan4UsageBasic Usagefromjikan4.jikanimportJikanjikan=Jikan()anime=jikan.get_anime(1)search=jikan.search_anime("tv","naruto")Async Usageimportasynciofromjikan4.aiojikanimportAioJikanasyncdefmain():jikan=AioJikan()anime=awaitjikan.get_anime(1)search=awaitjikan.search_anime('tv','naruto')jikan.close()if__name__=='__main__':asyncio.run(main())
Package: jikanpy-v4-alpha
jikan-api-clientNOTE: Docs are partly autogenerated -- this is all placeholder for nowA client library for accessing Jikan APIUsageFirst, create a client:fromjikan_api_clientimportClientclient=Client(base_url="https://api.example.com")Now call your endpoint and use your models:fromjikan_api_client.modelsimportMyDataModelfromjikan_api_client.api.my_tagimportget_my_data_modelfromjikan_api_client.typesimportResponsemy_data:MyDataModel=get_my_data_model.sync(client=client)# or if you need more info (e.g. status_code)response:Response[MyDataModel]=get_my_data_model.sync_detailed(client=client)Or do the same thing with an async version:fromjikan_api_client.modelsimportMyDataModelfromjikan_api_client.api.my_tagimportget_my_data_modelfromjikan_api_client.typesimportResponsemy_data:MyDataModel=awaitget_my_data_model.asyncio(client=client)response:Response[MyDataModel]=awaitget_my_data_model.asyncio_detailed(client=client)Things to know:Every path/method combo becomes a Python module with four functions:sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut the async instead of blockingasyncio_detailed: Likesync_detailedby async instead of blockingAll path/query params, and bodies become method arguments.Any endpoint which did not have a tag will be injikan_api_client.api.defaultBuilding / publishing this ClientThis project usesPoetryto manage dependencies and packaging. Here are the basics:Update the metadata in pyproject.toml (e.g. authors, version)If you're using a private repository, configure it with Poetrypoetry config repositories.<your-repository-name> <url-to-your-repository>poetry config http-basic.<your-repository-name> <username> <password>Publish the client withpoetry publish --build -r <your-repository-name>or, if for public PyPI, justpoetry publish --buildIf you want to install this client into another project without publishing it (e.g. for development) then:If that projectis using Poetry, you can simply dopoetry add <path-to-this-client>from that projectIf that project is not using Poetry:Build a wheel withpoetry build -f wheelInstall that wheel from the other projectpip install <path-to-wheel>
Package: jike
Jike Metro 🚇 是即刻镇的地铁工程，旨在提高即友的出行游览效率。安全提醒：Jike Metro 🚇 目前是地下工作，非官方授权，随时可能翻车，给果果 🐈 买小鱼干可保平安。图片来源:即刻九号工友“果果”和小伙伴们Jike Metro 🚇 简易乘车指南>>>c=jike.JikeClient()>>>c.get_my_profile()User(id='58cf99696a34ae0015b9f5d5',screenName=挖地道的)>>>my_collection=c.get_my_collection()>>>my_collection[0]OfficialMessage(id='55dd572f41904d0e00fc58f8',content=即刻果果:分享一只曾经的童星（已光速成长）)>>>news_feed=c.get_news_feed()>>>news_feed[0]OfficialMessage(id='5ac347a30799810017977041',content=DeepMind发布新架构让AI边玩游戏边强化学习)>>>ceo=c.get_user_profile(username='82D23B32-CF36-4C59-AD6F-D05E3552CBF3')>>>ceoUser(screenName=瓦恁)>>>c.create_my_post(content='Jike Metro 🚇 released!',link='https://github.com/Sorosliu1029/Jike-Metro')True更详细的乘车指南请移步 👉Jike Metro 🚇 乘车指南Jike Metro 🚇 乘车体验Jike Metro 🚇 目前支持：获取自己的收藏，查看自己的用户信息流式获取首页消息和动态获取某个用户的用户信息、发布的动态、创建的主题、关注的主题、TA关注的人和关注TA的人获取某条消息/动态的评论获取某个主题下的精选和广场发布个人动态（可带图、带链接、带主题），删除个人动态点赞、收藏、评论、转发某条消息/动态在浏览器中打开某条消息的原始链接根据关键词搜索主题根据关键词搜索自己的收藏获取即刻首页的推荐关注主题列表（不限于首页显示的5个）Jike Metro 🚇 现在支持 Python 3.4-3.6Jike Metro 🚇 入口可通过 pip 安装 Jike Metro 🚇$pipinstalljike注意安全，小心行驶，不要影响其他即友的出行。Jike Metro 🚇 基础设施Jike Metro 🚇 基于：即刻Web版requestsqrcode
Package: jikoku
JikokuFlexible and extendable Python utility for generating working timetables from general schedule data.Basic Usage Examplefromjikoku.modelsimportStop,Servicefromjikoku.schedulerimportschedulefromdatetimeimporttime,timedelta# Define a simple service and return servicestarts=time(hour=8)ends=time(hour=9,minute=30)first=Service("a_service",starts,ends,[Stop("Teufort",starts),Stop("Badlands",ends)])first_return=Service("a_return_service",starts,ends,[Stop("Badlands",starts),Stop("Teufort",ends)])# Copy those services throughout the dayall_services=[first+timedelta(hours=i)foriinrange(4)]+([first_return+timedelta(hours=i)foriinrange(4)])# Schedule the servicesgenerated_schedule=schedule(all_services)print(generated_schedule)"""prints the following:train-ZT4bwn09:00:00 - 10:30:00: Teufort => Badlands11:00:00 - 12:30:00: Badlands => Teuforttrain-eP9nMb08:00:00 - 09:30:00: Badlands => Teufort10:00:00 - 11:30:00: Teufort => Badlandstrain-hVGMEI08:00:00 - 09:30:00: Teufort => Badlands10:00:00 - 11:30:00: Badlands => Teuforttrain-jzVbxj09:00:00 - 10:30:00: Badlands => Teufort11:00:00 - 12:30:00: Teufort => Badlands"""Have a look atthe documentationfor more examples, including real word schedules from JR & SNCF!InstallationJikoku is available on PyPI. Install via using (preferably in a virtual environment) via:pipinstalljikokuContributingPull requests, feature requests or other ideas always welcome.
To get a local development environment setup, you will needPoetryinstalled. Then:gitclonehttps://github.com/TakeoIschiFan/JikokucdJikoku
poetryinstallNote: use `poetry install --with docs if you want to compile the documentation websiteTo get logging working, add a.envfile in the root directory which contains the following variablesPYTHONPATH="jikoku:tests"
DEBUG="true"
Package: jikuai
jikuai PackageThis is a simple tools package for AI.
0.08介绍AI训练小工具
目前的功能是通过把不同目录的分类数据集写成train.txt文件，以便PaddleClas使用。软件架构目标是极简实现功能，不用其它任何非python官方自带的库。安装教程直接使用pip install jikuai进行安装使用说明PaddleClas数据集生成想把数据集列表放在哪里，就在哪个目录下执行下面的命令。这里我们生成数据集列表文件在~/ ,以notebook cell单元格格式为例：%cd ~/
from jikuai.dataset import Dataset
dataset = Dataset("work/data/螺栓质量检测-训练集") # 参数为数据集所在的位置，是分类目录的上一级目录
dataset.paddleclasout(0.8) # 生成训练集和测试集列表，参数为两者划分的比例值这样就会在~/目录，生成train.txt和eval.txt两个文件。使用PaddleClas分类训练的时候，在yaml配置文件中设置这两个文件参数即可。dataset.paddleclasout可跟的参数为：
字符串 "train" ：output train.txt文件
字符串 "eval"  ：output eval.txt文件
数字或字符串数字：会根据该数值划分训练集和验证集，也就是ouput train.txt文件和eval.txt文件。数字和字符串数字的范围在[0, 1]之间，比如0.8或“0.8”表示训练集占比80%，测试集占比20% 。npy数据集拆分安装jikuai
pip install jikuai在python环境下使用：
from jikuai.database import npysplit
npysplit("train.npy", "train_label.npy", 0.8)
即可将该数据集拆分为训练集和验证集。为了简便，输出文件名写死为：
train.npy train_label.npy val.npy val_label.npy参与贡献Fork 本仓库新建 xxx 分支提交代码新建 Pull Request附录本项目下一步的计划有两点：
1 增加对PaddleSeg和PaddleDetection等数据集的输出支持
2 增加模糊参数功能，即用户可以用类似“取xxx目录数据集输出成为PaddleClas格式训练文件，8:2划分训练集和验证集”这样的参数达到目的。提交到pypi步骤：先按照提示生成readme.txt setup.cfg等文件，然后进行build：
先安装build模块：
python3 -m pip install --upgrade build
然后对该目录进行build：
python3 -m build
经过实践，比如版本号的设置，setup.py文件比setup.cfg起效。这样就有了两个文件在dist目录里：
(base) laiweilideMacBook-Air:jikuai skywalk$  ls dist/
jikuai-0.0.1-py3-none-any.whl	jikuai-0.0.1.tar.gz然后安装上传模块：
python3 -m pip install --user --upgrade twine
然后就上传：
python3 -m twine upload --repository pypi dist/*最终执行命令：
python3 -m pip install --upgrade build
python3 -m build
python3 -m twine upload --repository pypi dist/*
Package: jilkpw-py
Jilk.pw Python WrapperOverviewAboutjilkpw_pyis a small python module for connecting toJilk.pw's Public API. This can help if you would like to embed items from your Discord Server into anything that binds with Python.What is Jilk.pwJilk.pw is a Discord Server list to help you discover top Discord Servers; with the awesome public Discord Server List!DocumentationInstallingTo installjilkpw_py, please simply input the following command into your terminal:pip3installjilkpw_pyPlease note that on some systems, python3 may be bound to onlypip& notpip3.UsingTo usejilkpw_py, please open your preffered IDE/text editor and input the following:Get a specific listingfromjilkpw_pyimportJilkpwWrapper# Import the classwrapper_name_here=JilkpwWrapper()# Initating an object under `jilkpw_py`dict_output=wrapper_name_here.find(478363034990149634)# Returns a dict for the given guild_id or throws an exeptionprint(dict_output)# Print the output to screenGet all listingsfromjilkpw_pyimportJilkpwWrapper# Import the classwrapper_name_here=JilkpwWrapper()# Initating an object under `jilkpw_py`dict_output=wrapper_name_here.all()# Returns a dict of all servers on jilkpw or throws an exeptionprint(dict_output)# Print the output to screenNoteThis will give a basic implamentation ofjilkpw_pybut as you can see below, there are various errors you have to catch (hint: try/except around thedict_output = wrapper_name_here.find(478363034990149634)line).ExceptionsHTTP ErrorsNotFound: Jilk.pw could not find the guild_id you passed inBadRequest: A request to Jilk.pw was not handled properly & was abortedNotAuthed: For whatever reason, you are not authorized to use Jilk.pw's public apiWebMoved: Jilk.pw has movedWebTimeout: Request to Jilk.pw timed out, please try again laterUriTooLong: The URI is too long for the server to processMiscError: HTTP response code isx(not incl 200 or previously used)Misc ErrorsCannotMain: If you try to run the module directlyscOwez, 2019.Licensed under Apache