Saravanan666/pypi-org huggingface dataset:
Package: jw.tustep
.. contents::.. Note!-----Update the following URLs to point to your:- code repository- bug tracker- questions/comments feedback mail(do not set a real mail, to avoid spams)Or remove it if not used.- Code repository: http://svn.somewhere.com/...- Questions and comments to somemailing_list- Report bugs at http://bug.somewhere.com/..Change history**************Changelog=========1.0 (xxxx-xx-xx)----------------- Created recipe with ZopeSkel[Plone Foundation]Detailed Documentation**********************Introduction============This is a full-blown functional test. The emphasis here is on testing whatthe user may input and see, and the system is largely tested as a black box.We use PloneTestCase to set up this test as well, so we have a full Plone siteto play with. We *can* inspect the state of the portal, e.g. usingself.portal and self.folder, but it is often frowned upon since you are nottreating the system as a black box. Also, if you, for example, log in or setroles using calls like self.setRoles(), these are not reflected in the testbrowser, which runs as a separate session.Being a doctest, we can tell a story here.First, we must perform some setup. We use the testbrowser that is shippedwith Five, as this provides proper Zope 2 integration. Most of thedocumentation, though, is in the underlying zope.testbrower package.>>> from Products.Five.testbrowser import Browser>>> browser = Browser()>>> portal_url = self.portal.absolute_url()The following is useful when writing and debugging testbrowser tests. It letsus see all error messages in the error_log.>>> self.portal.error_log._ignored_exceptions = ()With that in place, we can go to the portal front page and log in. We willdo this using the default user from PloneTestCase:>>> from Products.PloneTestCase.setup import portal_owner, default_password>>> browser.open(portal_url)We have the login portlet, so let's use that.>>> browser.getControl(name='__ac_name').value = portal_owner>>> browser.getControl(name='__ac_password').value = default_password>>> browser.getControl(name='submit').click()Here, we set the value of the fields on the login form and then simulate asubmit click.We then test that we are still on the portal front page:>>> browser.url == portal_urlTrueAnd we ensure that we get the friendly logged-in message:>>> "You are now logged in" in browser.contentsTrue-*- extra stuff goes here -*-Contributors************Plone Foundation, AuthorDownload********
Package: jwtxploiter
jwtXploiterA tool to test security of JSON Web Tokens.
Test a JWT against all known CVEs;Tamper with the token payload: changes claims and subclaims values.Exploit known vulnerable header claims (kid, jku, x5u)Verify a tokenRetrieve the public key of your target's ssl connection and try to use it in a key confusion attack with one option onlyAll JWAs supportedGenerates a JWK and insert it in the token headerAnd much, much more!WikiRead the wiki!wikiInstallationN.B. Cloning the repository should be avoided except for development purposes!
N.B. Deb package has to be considered betaWith rpm:wget http://andreatedeschi.uno/jwtxploiter/jwtxploiter-1.2.1-1.noarch.rpmsudo rpm --install jwtxploiter-1.2.1-1.noarch.rpmor, if previous version is installed on your machinesudo rpm --upgrade jwtxploiter-1.2.1-1.noarch.rpmWith pip:sudo pip install jwtxploiterWith deb:wget http://andreatedeschi.uno/jwtxploiter/jwtxploiter_1.2.1-1_all.debsudo dpkg -i jwtxploiter_1.2-1_all.debCloing the repo:git clone https://github.com/DontPanicO/jwtXploiter.git./install.shN.B. python3-pip package is required to install dependencies, be sure to have it installed.Who this tool is written for?Web Application Penetration Tester / Bug Bounty HuntersThis tool has been written with the aim of become a key part of pentesters toolkit.Devs who need to test the secuirty of JWTs used in their applicationsCTF PlayersNot For StudentsSince this tool automates lot of stuff, without force the user to know what's happening under the hood, it won't
help you to understand the vulnerabilities it exploits.To KnowFor attacks that generates a jwks file, you could find it in the current working directory. Remeber to deletes such files
in order to avoid conflicts.For jku/x5u injection that needs to merge two urls (the server vulnerable url and your one), the HERE keyword is required.For redirect attacks the keyword should replace the redirect url, e.g.http://app.com/foo?redirect=bar&some=thing-->http://app.com/foo?redirect=HERE&some=thingFor jku/x5u injections via HTTP header injection attacks, the HERE keyword sould be appended to the vulnerable parameter,
without replacing its value, e.g.http://app.com/foo?param=value-->http://app.com/foo?param=valueHEREAlso, in such cases, be sure to pass the server url and your one as comma separated values.'/.well-known/jwks.json' is automatically appended to your url in jku/x5u attacks. So make sure to place the jwks file under
this path on your server.If you don't want that happen, use the --manual option, but this option is compatible only with --jku-basic and --x5u-basic
so, you will need to manually craft the url and pass it to those options, even for attacks that exploit Open Redirect or
HTTP header injection.Look at the wiki for a detailed documentation.
Package: jw.util
This package contains various utility modules:versiona module for version management: incrementing/decrementing specific levels of a version, parsing and a utility to
update versions in a file.filea module to do stuff on whole files. At the moment, the only thing in it is a class for backing up a file by
renaming it with various strategies for renaming previous “backups”: adding a simple suffix or adding a numbered
suffixconfigurationa module for handling configurations from a YAML source and a class for simplifying access to a configuration treepython3hella module with helpers to mitigate Python3 hell
Package: jwxml
DEPRECATED: This package is obsolete. See PYSIAF (https://pysiaf.readthedocs.io/) instead for XML SIAF parsing code, and WebbPSF (https://webbpsf.readthedocs.io/) for JWST mirror file XML parsing code.jwxml is no longer actively developed and its use should be phased out.Note: This is probably mostly useful internally at STScI.Miscellaneous XML support helper code related to some JWST configuration files, mostly optics and wavefront sensing related.So far this provides support for reading in and interacting with:The so-called SIAF (Science Instrument Aperture Files)Wavefront control SUR (Segment Update Request) filesMore functionality may be added ad hoc as needed; no overall long term development master plan is implied.SIAFScience Instrument Aperture Files contain detailed focal plane and pointing models for the science instruments. They are maintained in the JWST PRD (Project Reference Database). Snapshots taken from the PRD are bundled with jwxml, but care should be taken to ensure one is using the latest files from the PRD directly.For a file obtained from the PRD:siaf=jwxml.SIAF(filename='/your/path/to/NIRCam_SIAF_2016-01-28.xml')To use the bundled SIAF:siaf=jwxml.SIAF('NIRCam')To check which PRD version is in use:print(jwxml.PRD_VERSION)
Package: jx-dataapi-e8
嘉迅网关数据接口封装包（jx-dataapi-e8）主要功能数据查询用量计算网关采集设置告警设置封装功能异常值处理缺失值处理设备变比处理特殊协议解析处理更换表计、更换网关编号数据衔接处理通用用量计算主动/被动监控告警设置使用说明安装包pip install jx-dataapi-e8使用包# 云端版
from dataapi_e8 import DataApi

api = DataApi('https://e8api.xjiaxun.com/api','appid','appsecret')
ret = api.get_latest(devs='E80142003_0101')


# 本地版
from dataapi_e8 import DataApiLocal

api = DataApiLocal('http://127.0.0.1:8000/api','appid','appsecret')
ret = api.get_latest(devs='E80142003_0101')初始化参数说明：baseurl 接口地址appid 接口appidappsecret 接口appsecretconfigObj 接口配置文件，如下class Config(object):

    # 设备更换信息配置
    E8API_CHANGE_CONFIG = {
        'E81022180_0101': {
            # 网关编号更换情况
            'wg':  [
                {
                    "mid": "E81022180_0102", # 网关编号
                    "tm": 0 # 采集时间
                },{
                    "mid": "E81022180_0101",
                    "tm": 1590447603
                }
            ],
            # 表计更换情况
            'meter': [
                {
                    "tm": 1590447603, # 更换时间
                    "vals": {
                        "ImpEp": [  # 需要衔接的属性
                            28, # 更换前数值
                            47  # 更换后数值
                        ]
                    }
                }
            ]
        }
    }
    # 接口数据开始时间配置
    E8API_BEG_CONFIG = {
        'E81022180_0101': 1590426063
    }
    # 需要补值的参数
    E8API_FILL_ATTR_CONFIG = ['ImpEp']debug 启动调试模式timeout 接口调用超时时间开放接口详见接口文档打包上传python3 setup.py sdist build

twine upload ./dist/*
Package: jxdb
JXDB - JSON Database LibraryYou can find JXDB, a powerful JSON database library, on PyPI (Python Package Index) atpypi.org/project/jxdb. JXDB allows you to easily store and manipulate JSON data in your Python projects.FeaturesSimple and intuitive interface for working with JSON data.Supports data encryption using AES for secure storage.Provides efficient methods for data retrieval, modification, and deletion.Supports searching and filtering based on key-value pairs.Lightweight and easy to integrate into your projects.LicenseJXDB is released under the OpenSociety license. You can find the license details atccic.eu.org/opensociety.html. The OpenSociety license grants you the freedom to use, modify, and distribute JXDB according to the terms specified in the license.InstallationYou can install JsonDB using pip:pip install jxdbUsageJsonDBJsonDB is a simple JSON-based database that provides methods for managing key-value data and performing operations like encryption and decryption.Methodsopen(filename, password)Opens the database from a file with the specified filename and password. It decrypts the data and loads it into memory.save(filename, password)Saves the database to a file with the specified filename and password. It encrypts the data and writes it to the file.get(key)Retrieves the value associated with the specified key from the database.set(key, value)Sets the value for the specified key in the database.delete(key)Deletes the value associated with the specified key from the database.concept(data)Searches for values that contain the specified data in their keys and returns a list of matching values.keyconcept(data)Searches for keys that contain the specified data and returns a list of matching keys.keys()Returns a list of all keys in the database.values()Returns a list of all values in the database.items()Returns a list of all items (key-value pairs) in the database.clear()Clears the entire database, removing all key-value pairs.count()Returns the number of items in the database.delete_by_value(data)Deletes values that contain the specified data from the database.delete_by_key(key)Deletes values associated with keys that contain the specified key from the database.Usage# Example usage of JsonDB# Create an instance of JsonDBdb=JsonDB()# Open the database from a filedb.open("data.json","password")# Perform operations on the databasevalue=db.get("key")db.set("new_key","new_value")db.delete("key")concept_results=db.concept("data")keyconcept_results=db.keyconcept("key")keys=db.keys()values=db.values()items=db.items()db.clear()count=db.count()db.delete_by_value("data")db.delete_by_key("key")# Save the database to a filedb.save("new_data.json","password")
Package: jx-elasticsearch
jx_elasticsearchBranchStatusmasterdevThis library implementsJSON Query Expressionsatop an Elasticsearch.ContributionNew, or old, versions of Elasticsearch should be added by copying thees52subdirectory, and altering the implementation to deal with the differences.There are two directories in theActiveData git historythat may help for old versions.es09for Elasticsearch version 0.9.x (with MVEL scripting)es14is for any version 1.x variant of Elasticsearch (with Groovy scripting)Both of these directories are too old to be used directly, but they do have code templates for their respective scripting language, and they do have other hints about how to construct queries with the limitations of the older versions.
Package: jxl2txt
jxl2txt is a Python script to convert Trimble JobXML files to various kinds of text using XSLT stylesheets.InstallationTo install from the Python Package Index:$pip install jxl2txtTo install from Anaconda Cloud:If you are starting from scratch the first thing to do is install the Anaconda Python distribution, add the necessary channels to obtain the dependencies and install jxl2txt.$condaconfig--appendchannelsconda-forge$condainstalljxl2txt-cmrahnisTo install from the source distribution execute the setup script in the jxl2txt directory:$python setup.py installExamplesTo doLicenseBSDDocumentationLatesthtml
Package: jxl-decode
jxl_decodeA pure python JPEG XL decoder. It is currentlyveryincomplete.Installationjxl_decode can be installed fromPyPI.pipinstalljxl_decodeI am aiming to make this decoder as portable as possible. As such it will
ideally have minimal dependencies outside of the standard library. I may use a
dependency for PNG output, if I don't write one myself.RequirementsRecentPython 3(developed with 3.11, but may work
with some older versions)Development RequirementsPyTestUsageWe are a long way away from it, but this is how I intend the decoder to work
from the command line:jxl_decodeinput_file.jxl[output_file.png]Roadmap/To DoAdd tests (and possibly some more useful methods) to Bitstream class.Decide on internal representation of image data (NumPy array?)Define external interfaces by decoding PPM image.PNG output of decoded images.Decode JPEG images.Start on JPEG XL support.LicenceThis software is available under theMIT Licence.
Package: jx-libcollection
libcollectioncommon data structuresstackResizingArrayStackLinkedStackqueueLinkedQueueSimpleLinkedQueueResizingArrayQueueFixedCapacityArrayQueueSearchSequentialSearchKVStoreBinarySearchKVStoreSeparateChainingHashKVStoreLinearProbingKVStoreBSTKVStoreSortbubble sortquick bubble sortselection sortquick selection sortrecursive selection sortinsertion sortshell sortmerge sortquick sortheap sortPriority queuefixed size min priority queuefixed size max priority queuemin priority queuemax priority queueUnion Findquick find union findquick union union findweighted union findunion find
Package: jxlpy
JXLPyThis module introduces reading and writing support for JPEG XL directly from Python 3.JXLPy is based on JPEG XL implementation inimagecodecsbut doesn't it require Numpy and any external dependencies besides Cython andlibjxl.It also provides support for Pillow via plugin.This project is still in alpha stages and needs testing. It may contain bugs!Install via PIP$pipinstalljxlpyBuild it yourselfMake sure you are using Python 3.x and pip for that versionBuild and install libjxl according to instructionshereInstall patchelf and auditwheel$sudoapt-getinstallpatchelf
$pipinstallauditwheelFor Pillow plugin, make sure that Pillow is installed(optional)$pipinstall---upgradepillowClone this repository$gitclonehttps://github.com/olokelo/jxlpy
$cdjxlpyBuild wheels$pipwheel.Use auditwheel to put necessary libraries into your wheel$exportLD_LIBRARY_PATH=/usr/local/lib
$python-mauditwheelrepair--platlinux_x86_64jxlpy-*.whlInstall newly created wheel$cdwheelhouse
$pipinstalljxlpy-*.whlNow you should be good to go :)You can run examples to check if everything works correctlyInstallation steps were tested on Ubuntu 20.04Support statusFeatureStatusImportanceNotesReading and writing non-animated 8 bit RGB/RGBA imageDone--Creating lossless imagesDone--Reading animationsDone--Pillow pluginPartialHighAnimation seeking?Creating animationsFailedMedium-Reading HDR imagesNeeds testingMedium-Writing HDR imagesNot startedLow-Reading and writing floating point imagesNot startedLow-Support EXIF metadataFailedHighIt seems like there's no API for thatSupport for other colorspacesNot startedLow-Support for lossless JPEG recompressionNot startedMedium-Support for progressive and responsive modeFailedMediumAgain... no high level API?Installing on WindowsNeeds testingLow-
Package: jxwechattool
基于redis对wechat中access_token、qr_code、jsapi_ticket的cache$pipinstalljxwechattoolVersion update0.1.0 添加WJSTicket0.0.1 添加WAccessToken, WQRCodeGetting Started#!/bin/python2# coding=utf-8importloggingimportWAccessToken,WQRCode,WJSTicketlogging.basicConfig(level=logging.DEBUG)access_token_handler=WAccessToken(app_id=APP_ID,app_secret=APP_SECRET)logging.warn(("access_token",access_token_handler.get_access_token()))qr_handler=WQRCode(access_token_handler)logging.warn(("qr ur",qr_handler.get_qrcode_url_by_m("c-8")))logging.warn(("info ",qr_handler.get_qrcode_info_by_scene_id(80)))jsapi_ticket_handler=WJSTicket(access_token_handler)logging.warn(("jsapi_ticket",jsapi_ticket_handler.get_jsapi_ticket()))
Package: jy
jyTools to control JS from Python.(jystands for "Js pY" or "Js python proxY".)To install:pip install jyExampleSay you have thetest01.js(whose contents are displayed in the next subsection).from jy import add_js_funcs
js = add_js_funcs("./test01.js")js has two methods called bar and fooassert sorted([x for x in dir(js) if not x.startswith('_')]) == [
    'add_one', 'bar', 'foo', 'obj', 'prop', 'with_arrow_func', 'with_let'
]They mirror the signatures of the underlying JS functionsfrom inspect import signature
assert str(signature(js.foo)) == "(a, b='hello', c=3)"
assert str(signature(js.bar)) == "(green, eggs='food', and=True, ham=4)"Calling this function returns a string
(the code to call the underlying JS function)assert js.foo(1, 'hi', 5) == 'foo(1, "hi", 5)'Notice that you can use positional or keyword arguments
Also, notice that though "prop" is the name ofjs's attribute,
the function call string does indeed use the original full reference:func.assigned.to.nested.propassert js.prop('up') == (
    'func.assigned.to.nested.prop("up")'
)Notice that the python (signature) defaults are applied before translating to JSassert js.bar(42) == 'bar(42, "food", true, 4)'
alt_js = add_js_funcs(test01_js_code, apply_defaults=False)You can opt not to do this by specifyingapply_defaults=FalseThis will result in only injecting those inputs you specify in the js call string,
which will have the effect of letting JS apply its defaults, what ever they arealt_js = add_js_funcs(test01_js_code, apply_defaults=False)
assert alt_js.bar(42) == 'bar(42)'AppendixThetest01.jsfile's contents// "test01.js" file// Straight function definitionfunctionfoo(a,b="hello",c=3){returna+b.length*c}// Straight function definitionfunctionbar(green,eggs='food',and=true,ham=4){if(and)returneggs.length*ham}// global callable variableadd_one=function(x){returnx+1}// does the presence of a let break the parser?letwith_let=function(x){returnx+2}// with arrow func// (also testing if const breaks the parse)constwith_arrow_func=(y,z=1)=>y*z// function assigned to a nested propertyfunc.assigned.to.nested.prop=function(x){returnx+3}// function nested in some other function, assigned to a variablevarobj=(function(exports){functionbar(name){returnname+"__"}})
Package: jyhelper
一些常用的类、方法介绍一些常用的类、方法，不定时更新软件架构db 数据库操作模块
 timeHelper 时间相关方法
 file 文件操作相关方法
 common 一些常用的方法
 feishuRobot 飞书机器人发送消息安装教程安装
pip install jyhelper
更新
pip install jyhelper -U使用说明fromjyhelperimportdbfromjyhelperimporttimeHelperfromjyhelperimportcommonfromjyhelperimportfilefromjyhelperimportfeishuRobotdbIns=db(host='',user='root',password='',port=3306,db='')forrowindbIns.table('table').select():print(row)print(common.explodeList([1,2,3],2))print(timeHelper.getDate())file.readTxtFile(filePath='')
Package: jyk-logging
jyk-loggingjyk logging utilsInstallation$ pip install jyk-loggingGetting StartedCasesimportlogging
fromjyk.loggingimportinitConsoleLogging,initLogging,LogRootPath,FormatterMode# case 1: initConsoleLogging(level=logging.INFO, mode=FormatterMode.BRIEF)initConsoleLogging()# case 2: initLogging(name, level=logging.INFO, mode=FormatterMode.INTACT):LogRootPath.set('var/log/jyk')initLogging('test.log')APIdefinitConsoleLogging(level=logging.INFO,mode=FormatterMode.BRIEF):"""Initializes logging only to console.Args:level: logging.level"""definitLogging(name,level=logging.INFO,mode=FormatterMode.INTACT):"""Initializes logging.Args:level: logging.level"""classFormatterMode(object):BRIEF="brief"INTACT='intact'ifmode==FormatterMode.INTACT:formatter=logging.Formatter("%(asctime)s[%(name)s]%(levelname)s:%(message)s")else:formatter=logging.Formatter("[%(name)s]:%(message)s")Running the tests$cdjyk-logging
$pytest-sChangelog1.0.32021-04-19 release1.0.22020-04-22 releaseBugFixfix encoding1.0.12019-10-19 releaseFeaturesadd initConsoleLoggingadd initLoggingadd LogRootPathadd FormatterModeTODOsadd color apiAuthorskongkong Jiang-Initial work-jykerLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: jyk-timer
jyk-timerjyk time utilsInstallation$ pip install jyk-timerRunning the tests$cdjyk-timer
$pytest-sChangelog0.2.02021-03-26 change api0.1.02020-07-15 releaseAuthorskongkong Jiang-Initial work-jykerLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: jymysql
InstallationInstallthis module in a usual way{OPTIONAL }`Activate longpolling <https://odoo-development.readthedocs.io/en/latest/admin/longpolling.html>`__{Additional notes if any}Configuration{Instruction how to configure the module.}Enable technical featuresOpen menu{Menu} >> {Submenu} >> {Subsubmenu}Click[{Button Name}]Usage{Instruction for daily usage. It should describe how to check that module works. What shall user do and what would user get.}
* Open menu{Menu} >> {Submenu} >> {Subsubmenu}* Click[{Button Name}]Uninstallation{Optional section for uninstallation notes. Delete it if you don’t have notes for uninstallation.}
Package: jyquickhelper
jyquickhelper: javascript extensions for notebooksHelpers for Jupyter notebooks.
Example to run from a notebook:from jyquickheler import add_menu_notebook
add_menu_notebook()A menu is displayed:first section of level 2section section of level 2…It helps rendering javascript:from jyquickhelper import RenderJS
css = ["https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.21/c3.min.css"]
RenderJS(script, css=css, libs = [
                dict(path="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",
                     name="d3", exports="d3"),
                dict(path="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.21/c3.min.js",
                     name="c3", exports="c3", deps=["d3"])])Seec3.ipynb.
Or visualizing JSON:from jyquickhelper import JSONJS
JSONJS(dict(name="xavier", city="Paris"), html_only=True, show_to_level=3)Seenb_json.ipynb.Links:GitHub/jyquickhelperdocumentationBlogHistorycurrent - 2021-01-01 - 0.00Mb0.0.0 - 2021-01-01 - 0.00Mb9: remove raise … (…) from e in setup.py (2018-06-16)1: [won’t fix] use pytablewriter + jsgrid instead of qgrid (2018-06-16)7: add notebook on vis.js (2018-03-26)6: investigate a way to use local javascript (2018-03-26)5: add a function to show diagram in notebooks based on viz.js (2018-03-26)4: add a notebook on vizjs (2018-03-07)3: add notebook on mermaid (2018-03-06)2: fix c3, morris, treant (2018-03-06)
Package: jython-sikuli-server
#sikuliserver.py
##Aka robotframework-sikuliserver
Jython script to run a robot remote library exposing the Sikuli API (and popen).
You will need Sikuli and java to already be installed.The main documentation lives on this project’s [Github Page](http://alistair-broomhead.github.com/robotframework-sikuliserver/docs/html/)Quick links:[Running the server](http://alistair-broomhead.github.com/robotframework-sikuliserver/docs/html/Running_The_Server.html)[Connecting a client](http://alistair-broomhead.github.com/robotframework-sikuliserver/docs/html/Connecting_A_Client.html)[Using from RobotFramework](http://alistair-broomhead.github.com/robotframework-sikuliserver/docs/html/Using_From_RobotFramework.html)[API docs](http://alistair-broomhead.github.com/robotframework-sikuliserver/docs/html/SikuliServer.html)