Saravanan666/pypi-org huggingface dataset:
Package: jdpay
# JDPAY京东支付------##OverviewThis is an unofficial python JingDong pay API, it contains 4 main classes:> * PayAccount> * PayRequest> * RefundRequest> * QueryRequest> * Notification> * DownloadBill------Installation------------Install using pip:```bashpip install jdpay```or you can refer to https://github.com/hereischen/JDPAY/distdownload the tar file.API---**PayAccount**It allows switching between differnt payment account methods such as debit card only (DO) or debit and credit card (DC).``` pythonfrom jdpay import PayAccountpay_account = PayAccount(DC)```pay acoount will be initialised to a serious settings that support both debit card and credit card.**PayRequest**Post payment data``` pythonfrom jdpay import PayRequestjd_pay = PayRequest(pay_account)form_data = jd_pay.post(pay_params)```**QueryRequest**This class handles paymment queries.``` pythonfrom jdpay import QueryRequestquery_request = QueryRequest(pay_account)```**RefundRequest**This class handles refund requests.``` pythonfrom jdpay import RefundRequestrefund_request = RefundRequest(pay_account)```**Notification**This class handls notifications send from JingDong.``` pythonreturn_dict, trade_dict = Notification(notification_account).get_notification(resp)```**DownloadBill**``` pythonbill = DownloadBill().get_bill(bill_date='2015-07-08', suffix='_0430')```------That's it!Changelog==============================1.1.6 - Auge.14, 2015------------------------------- a bug fixed in query fixed1.1.5 - Jul.17, 2015------------------------------- Added date_validation() in DownloadBill()1.1.4 - Jul.10, 2015------------------------------- Fixed a bug in Notification()1.1.3 - Jul.09, 2015------------------------------- Updated DownloadBill(object).get_bill() for bill downloading1.1.2 - Jul.08, 2015------------------------------- Added class DownloadBill(object) for bill downloading.1.1.1 - Jun.30, 2015------------------------------- Changed get_notification method.It will return a more detailed notification dictcontainning all the information provided.1.1 - Jun.26, 2015------------------------------- Changed verify_merchant_sign_parse_response method.It will raise exceptions if get date faild.and the return res will macth JD's logic.1.0 - Jun.15, 2015------------------------------- Initail commit
Package: jdProcessFileWatcher
jdProcessFileWatcherEffortlessly monitor and display real-time file access for any processWith jdProcessFileWatcher, you can monitor all the files accessed by a process. It allows you to start any program and observe in real-time which files it accesses through an easy-to-use GUI. Additionally, you have the option to connect to an already running process.TranslateYou can help translating jdProcessFileWatcher onCodeberg TranslateDevelopjdProcessFileWatcher is written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.
You can runjdProcessFileWatcher.pyto start jdProcessFileWatcher from source and test your local changes.
It ships with a few scripts in the tools directory that you need to develop.CompileUI.pyThis is the most important script. It will take all.uifiles injdProcessFileWatcher/uiand compiles it to a Python class
and stores it injdProcessFileWatcher/ui_compiled. Without running this script first, you can't start jdProcessFileWatcher.
You need to rerun it every time you changed or added a.uifile.BuildTranslations.pyThis script takes all.tsfiles and compiles it to.qmfiles.
The.tsfiles are containing the translation source and are being used during the translation process.
The.qmcontains the compiled translation and are being used by the Program.
You need to compile a.tsfile to a.qmfile to see the translations in the Program.UpdateTranslations.pyThis regenerates the.tsfiles. You need to run it, when you changed something in the source code.
The.tsfiles are contains the line in the source, where the string to translate appears,
so make sure you run it even when you don't changed a translatable string, so the location is correct.UpdateUnixDataTranslations.pyThis regenerates the translation files indeploy/translations. these files contains the translations for the Desktop Entry and the AppStream File.
It uses gettext, as it is hard to translate this using Qt.
These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file.
Make sure you run this when you edited one of these files.
You need to have gettext installed to use it.UpdateTranslators.pyThis uses git to get a list of all Translators and writes it tojdProcessFileWatcher/data/translators.json.
This is used to display the translators in the About Dialog.
You need git to run this script.WriteChangelogHtml.pyThis read the Changelog fromdeploy/page.codeberg.JakobDev.jdProcessFileWatcher.metainfo.xml, converts it to HTML and writes it tojdProcessFileWatcher/data/changelog.html.
This is used to display the Changelog in the About Dialog.
You needappstream-pythonto be installed to use this script.
Package: jdReplace
jdReplaceWith jdReplace you can replace a text in all files of a directorysjdReplace is a simple mass search and replace tool.
You set a directory, a text to replace, the replacement and click OK.
jdReplace will do the rest.InstallFlatpakYou can get jdReplace fromFlathubAURArch Users can get jdReplace from theAURpipYou can install jdReplace fromPyPIusingpip:pipinstalljdReplaceUsing this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdReplace from the Command Line.
Use this only, when nothing else works.From sourceThis is only for experienced Users and someone, who wants to package jdReplace for a Distro.
jdReplaceshould be installed as a Python package.
You can usepipor any other tool that can handle Python packages.
You need to havelreleaseinstalled to build the Package.
After that, you should runinstall-unix-datafiles.pywhich wil install things like the Desktop Entry or the Icon in the correct place.
It defaults to/usr, but you can change it with the--prefixargument.
It also applies the translation to this files.
You need gettext installed to runinstall-unix-datafiles.py.Here's a example of installing jdReplace into/usr/local:sudopipinstall--prefix/usr/local.
sudo./install-unix-datafiles.py--prefix/usr/localTranslateYou can help translating jdReplace onCodeberg TranslateDevelopjdReplaceis written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.
You can runjdReplace.pyto start jdReplace from source and test your local changes.
It ships with a few scripts in the tools directory that you need to develop.BuildTranslations.pyThis script takes all.tsfiles and compiles it to.qmfiles.
The.tsfiles are containing the translation source and are being used during the translation process.
The.qmcontains the compiled translation and are being used by the Program.
You need to compile a.tsfile to a.qmfile to see the translations in the Program.UpdateTranslations.pyThis regenerates the.tsfiles. You need to run it, when you changed something in the source code.
The.tsfiles are contains the line in the source, where the string to translate appears,
so make sure you run it even when you don't changed a translatable string, so the location is correct.UpdateUnixDataTranslations.pyThis regenerates the translation files indeploy/translations. these files contains the translations for the Desktop Entry and the AppStream File.
It uses gettext, as it is hard to translate this using Qt.
These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file.
Make sure you run this when you edited one of these files.
You need to have gettext installed to use it.
Package: jds6600
About the ProjectThe JDS6600 is a 2-channel DDS signal generator with a built-in frequency counter. It comes in a few flafours, one cam generate signals up to 60MHz, the lite version only up to 15MHz
The Signal generator can be controlled via a USB port, and via the control panel.
This module makes it easier to control the signal generator via the USB port. It abstacts most of
functions offered via the remote control.
The documentation I have found on the internmanufacturer's website (https://joy-it.net/de/products/JT-JDS6600), is not very clear and it seems that not all options which are available via manual control, are possible via the remote control.
I've also found out the the sgnal generator was available from another company, called Hangzou Junce Instruments.Getting startedPrerequisitesThis python package is only supporting Python 3. The only external dependency is pyserial.InstallationThe package can be installed with pip.pip install jds6600
pip install jds6600[test]Quick startOpen and close a connectionRemark: Your USB port may be different.>>> import jds6600
>>> fg = jds6600.JDS6600(port="/dev/ttyUSB3")
>>> fg.connect()
<jds6600.core.JDS6600 object at 0x7f04a951ac50>
>>> print(fg.get_channels())
(False, False)
>>> fg.close()Or using the with statement>>> import jds6600
>>> with jds6600.JDS6600(port="/dev/ttyUSB3") as fg:
...     print(fg.get_channels())
... 
(False, False)Available methods:>>> fg.get_channels()
(False, False)
>>> fg.set_channels(channel1=True, channel2=True)
'ok'
>>> fg.get_waveform(channel=1)
'sine'
>>> fg.set_waveform(channel=1, value='triangle')
'ok'
>>> fg.get_frequency(channel=1)
0.0
>>> fg.set_frequency(channel=1, value=1e3)
'ok'
>>> fg.get_amplitude(channel=2)
5.0
>>> fg.set_amplitude(channel=1, value=1.23)
'ok'
>>> fg.get_offset(channel=1)
0.0
>>> fg.set_offset(channel=1, value=0.5)
'ok'
>>> fg.get_dutycycle(channel=1)
50.0
>>> fg.set_dutycycle(channel=1, value=20.1)
'ok'ContributingIf you want to contribute to this project, you're mostly welcome! Just keep a few thing in mind, and it will go smooth.Fork the projectCreate a branch (git checkout -b myfeature)Check your code usingflake8andmypyCommit your changes (git commit -m "added a nice feature")Push your branch to github (git push origin myfeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.
Package: jd-scraper
TitleJd.com ScraperDescrptionWith jd.com Scraper you can scrape search results and extract the contents produced by the search result.In jd.com scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.It gives the every detail present inside website in the form of json data such as link of the item, price, details, product name etc.Run Scraperfromjd_scraperimport*link="https://item.jd.com/100017248432.html"data=run_jd_scraper(link)How it works?It takes URL of jd.com page with a search keyword to scrape the data.It generates the json data which contains the information of the jd.com search result.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: jd-sdk
python3 SDK1. dependenciesrsapsutilapschedulerwincertstore （when SKD is using in windows environment）2. how to use(1) use APIThe code fragment shows the basic use of an API, the main steps are first init an api,
and second to get the resultimport jd.api
import json

jd.setDefaultAppInfo("your appKey", "your appSecret") # only need to init one time
# get a api you need to use
a = jd.api.AreaProvinceGetRequest('the domain this SDK will send request to', 80)
a.param = 'a'
f = a.getResponse("your access_token")
print(json.dumps(f, ensure_ascii=False))The Example show a simple use of the SDK, in python, we just declare the fist level vars of xxxRequesst,
so for some complex structures, we didn't specify for you, you can constuct the field with json by you self, then
then use  xxxRequesst.xxx = json to set the request param.(2) securityfrom jd.security.tde_client.tde_client import TdeClientCache, TdeClient
tcc = TdeClientCache()
ins = tcc.instance("the domain this SDK will send request to", "access_token", "app_key", "app_secret")
# encryption
ciphertext = ins.encrypt_string('16612341234')
print(ciphertext)
# judge if the text is encrypted
if TdeClient.is_encrypt_data(ciphertext):
    # decryption
    print(ins.decrypt_string(ciphertext))
Package: jdTextEdit
jdTextEditjdTextEdit is a powerful texteditor with a lot of features.SyntaxhighlightingHighly customizableDifferent encodings are supportedThe session can be savedUser interface in German and EnglishSpell CheckingPortable modePluginsupportBookmarksMacrosSupport for.editorconfigView the DocumentationInstallationWindowsDownload a Windows Binary fromSourceForge. It includes a Python interpreter and all needed libs.FlatpakjdTextEdit is onFlathubArch/ManjarojdTextEdit is in theArch User Repository.HaikujdTextEdit can be installed with HaikuDepot.pipAll Systems with has a Python interpreter and pip installed can install jdTextEdit with pip.pip install jdTextEdit
Package: jd-tools
jd-toolsJD 工具包。安装pip install jd-tools示例from jd_tools import *

print(JdTools.trim("  12b   "))

dd = JdTools.str_to_datetime('2022-09-10 8:10:15')
print(dd)

输出
12b
2022-09-10 08:10:15模块内方法说明函数、对象名称类型说明dc_gen_code函数生成单据编号， 例如 0001-XH-181008-001dc_records_changed函数修改记录（全量）， 判断在原纪录基础上的删、改、增情况。start_end_time函数返回 日期 tm(today, this-month, ...) ，对应的开始和结束日期start_end_time_ex函数返回 日期 tm，对应的开始和结束日期，带时间段描述name_list函数提取列表元素中的特定名称，过滤空值和重复值，返回字符串sum_list函数提取列表元素 some_list 中的现金券总面值sum_ticket函数提取列表元素 some_list(数组中数组) 中的现金券总面值humanize_date_delta函数将时间差转换为友好格式，如“7天”，“3个月”，“2年”JdCalendar对象日历，计算 本周、上周、本月、上月的起止日期JdTools对象主工具类，类型转换、日期转换、转decimal等JdDate对象日期相关工具函数JdImage对象图片处理公共类JdList对象列表求索引JdPath对象目录处理类， 反斜杠替换为斜杠等aes_decrypt函数AES_GSM 解密， 腾讯相关推送接口数据解密用Core对象http/https post/get 请求发送对象jd_concat函数字符串拼接，网关 + 路径，去除多余斜杠(/)jd_create_key函数生成随机 keyget_nonce函数生成随机字符串aes_gcm_encrypt函数AES_GCM加密aes_gcm_decrypt函数AES_GCM解密aes_cbc_encrypt函数AES_CBC加密 zero paddingaes_ecb_encrypt函数AES_ECB加密数据aes_ecb_decrypt函数AES-AES_ECB解密数据generate_map函数将 子表记录，根据主表id，缓存到 map表  1:Ngenerate_map_ex函数将 记录，根据 主表id，缓存到 map表   1:1cyt_map函数将记录，根据 args 提供的 key，缓存到 map表gen_key函数生成key， 为 generate_map, cyt_map 使用notify_decrypt函数AES_GSM 解密， 腾讯相关推送接口数据解密用is_windows_os函数是否 Windows 操作系统get_hostname函数获取主机名称get_ip函数获取IPTimeMeasure对象测量时间对象timeit函数测量函数执行时长装饰器move_file函数移动文件copy_file函数拷贝文件zip_dir函数压缩指定文件夹make_dirs函数创建多级目录logger对象日志对象jd_config_logger函数配置日志对象jd_set_logger_file_handler函数配置日志对象文件名JdRsa对象RSA 对象jd_decrypt函数RSA 解密remove_rsa_public_header函数移除 RSA 公钥数据头部remove_rsa_private_header函数移除 RSA 私钥数据头部JdCheck对象输入参数校验， 用于 web 请求参数校验JdThreadPool对象线程池AvatarDirMgr对象文件上传管理器Avatar对象单文件上传路径处理对象修改记录修改记录
Package: jdTranslationHelper
jdTranslationHelperWith jdTranslationHelper you can translate your programs. The translation files are .lang files which has ths format:key=Hello World
test=This is a testThe files are in a folder named after the language code e.g. en_GB.langHere is a example how to use this API:fromjdTranslationHelperimportjdTranslationHelpertranslations=jdTranslationHelper()translations.loadDirectory("/home/User/translations")print(translatios.translate("test"))If we place the above en_GB.lang file in /home/User/translations, it will print This is a test. You can create files for any language.You can also call jdTranslationHelper with arguemnts:lang=The language which should be loaded. If not specified, it will use the system language.defaultLanguage=The language that will be usesd, if there is no file with the system language. Default is en_GB.translate takes this argument:default: That will be returned, if the given key doesn't exists.You can get alls Strings with getStrings().
Package: jdutable
jdutableCommand line table data visualisation tool.Installation>pip(3)install(-U)jdutableandfromjdutableimportTableWriterInstantiationtable=TableWriter()MethodsAdd datadefset_header(self,header:list[str])... to add a list of strings as the header of the table.defset_footer(self,footer:list[str])... to add a list of strings as the footer of the table.defappend(self,line:list[str])... to add a line of strings to the content of the table.defappend_bulk(self,data:list[list[str]])... to add multiple lines to the content of the table.deffrom_csv(self,filename:Path,header:bool=False,footer:bool=False,sep:str=",")... to import a csv file. The parameter are:filename: path to the csv file to importheader: boolean to tell if csv file contains a headerfooter: boolean to tell if csv file contains a footersep: string defining what the csv delimiter isParametersdefset_uppercased(self,state:bool)... to print the header and footer with uppercased letters.defset_border(self,state:bool)... to show a border around the table.defset_alignment(self,alignment:strorlist[str])... to define alignment guide for each column. Alignement can be a single string defining alignment for all columns, or a list of strings specifying the alignment guide for each column. To align to the:left: either "<", "left" or "l"center: either "^", "center" or "c"right: either ">", "right" or "r"defset_center_separator(self,separator:str)... to change the table lines intersection character.defset_column_separator(self,separator:str)... to change the table vertical lines character.Displaydefrender(self,file=sys.stdout)... to render the table using previously specified content, header/footer and parameters.fileparameter can be add to write the table to a file, or a different standard output.Resetdefreset_header(self)... to reset the header to an empty list.defreset_body(self)... to reset the body to an empty list.defreset_footer(self)... to reset the footer to an empty list.defreset_content(self)... to reset header, body, and footer to an empty list.ExampleLet's use the following content, that is in fileassets/example.csv:Date, Description, Amout
1/1/2014, Domain name, $10.98
1/1/2014, January Hosting, $54.95
1/4/2014, February Hosting, $51.00
1/4/2014, February Extra Bandwidth, $30.00
, Total, $146.93Heres an example code to render this file:frompathlibimportPathfromjdutableimportTableWritertable=TableWriter()table.from_csv(Path("assets/example.csv"),header=True,footer=True)table.set_uppercased(False)table.set_border(True)table.set_alignment(["left","<","r"])table.set_center_separator("-")table.set_column_separator("|")table.render()This shows the following result in the command line:---------------------------------------------------! Date     ! Description               !    Amout !---------------------------------------------------! 1/1/2014 !  Domain name              !   $10.98 !! 1/1/2014 !  January Hosting          !   $54.95 !! 1/4/2014 !  February Hosting         !   $51.00 !! 1/4/2014 !  February Extra Bandwidth !   $30.00 !---------------------------------------------------Total                       $146.93----------------------------------------
Package: jdutimer
jdutimerSingleton implementation of a timer. This package allows you to measure and summarize executions time.Installation> pip(3) install (-U) jdutimerMethodsdefadd(self,func,*args)... to measure the execution time of function.defpack(self,title)... to put all previous measured functions in a block with a given title.defshow_block(self,id=-1,unit="ms")... to show execution time of a given block. The id can either be an integer, or a string. Display unit (s, ds, cs, ms) can be modified.defshow(self,unit="ms")... to show all execution time blocks. Display unit (s, ds, cs, ms) can be modified.defrename(self,old,new)... to rename a given block. old can be the id or the name of the block to rename, new has to be a string.Example usageThis snippet :fromjdutimer.timerimportTimerdeffoo(str):print(str)defbar(num):print(num)timer=Timer()timer.add(foo,"Hello World!")timer.add(bar,42)timer.pack("Display")timer.show()Shows this in the console :Hello World!42Displayfoo        0.04msbar        0.01ms0.04ms-----TOTAL      0.04ms
Package: jdvv
Jupyter-Dash-VTK-Viewer (jdvv)Intro and MotivationThere are an ever growing number of 3d visualization tools in python and for jupyter. In my opinionVTKbyKitwareprovides the most complete set of tools for this purpose. The learning curve is a bit steep and the syntax isn't always particularly pythonic (often the underlying C++ bleeds through) but it is top notch. For those wanting a bit more user friendly and pythonic "batteries included" approach, have a look atPyVista.The motivation for this small vtk-viewer is to make viewing vtk objects easier fromwithinjupyter lab. PyVista and VTK both offer a great viewer that can be launched external to jupyter lab in a QT window and this works great. The purpose of this package is to provide a similar experience within jupyter lab by taking advantage of thedash-vtksuite of components.TL;DRView VTK (or PyVista) objects either inline or in a separate tab within Jupyter Lab. A handful of controls are provided.Quickstartpip install jdvvA Basic examplefromjdvvimportviewerimportpyvistaaspv# make a simple vtk objectcyl=pv.Cylinder()# give it a name to be used in the viewer controlscyl.name="my cylinder"# view inlineviewer.inline(cyl)# view in a new tab within juptyer labviewer.tab(cyl)# view externally in a separate browser tabviewer.external(cyl)Featuresview inline, tab without needing to leave Jupyter Lab or view as an external browswer tabview multiple objects, separate controls for eachControlsvisibility on/offcolor & oppacity for objects with no associated dataSelect color map, set min/max and opacity for object with attached arrayschange point sizeselect surface representation (wireframe, surface, volume)Change background colors
Package: je-api-testka
APITestkaDocumentationAPITestka Doc Click Here!Project Kanbanhttps://github.com/orgs/Integration-Automation/projects/2/views/1\API requests automation.Data comparison for each Request.API request in pure CLI mode.Detailed reports on Requests and Responses.HTTP/HTTPS support.SOAP/XML support.JSON support.Generate JSON/HTML/XML report.APITestka script.1 sec / thousands requests.OS Independent.Mockserver support.Remote Automation support.Project & Template support.httpx Client(NEW)httpx sync/async request.http/2 request support.installpip install je_api_testkaRequirespython 3.9 or laterArchitecture Diagram
Package: je-api-testka-dev
APITestkaDocumentationAPITestka Doc Click Here!Project Kanbanhttps://github.com/orgs/Integration-Automation/projects/2/views/1\API requests automation.Data comparison for each Request.API request in pure CLI mode.Detailed reports on Requests and Responses.HTTP/HTTPS support.SOAP/XML support.JSON support.Generate JSON/HTML/XML report.APITestka script.1 sec / thousands requests.OS Independent.Mockserver support.Remote Automation support.Project & Template support.httpx Client(NEW)httpx sync/async request.http/2 request support.installpip install je_api_testkaRequirespython 3.9 or laterArchitecture Diagram
Package: je-auto-control
AutoControlDocumentationAutoControl Doc Click Here!Project Kanbanhttps://github.com/orgs/Integration-Automation/projects/2/views/1\Powerful and useful GUI Automation.Image recognition.Coordinate-based.Mouse automation.Keyboard automation.Locate image less than 0.5 sec.AutoControl script.Generate JSON/HTML/XML report.Remote Automation support.1 sec / thousands keyboard event.1 sec / thousands mouse event.Open another process support.Shell command support.Screenshot support.OS Independent.Project & Template support.NOTICEWe don't support Unix/Linux Wayland GUI NowMay be future featureinstall# make sure you have install cmake libssl-dev (on linux)
pip install je_auto_controlInforequirementPython 3.9 or laterpip 19.3 or laterDev envwindows 11osx 11 big surubuntu 20.0.4Test onWindows 10 ~ 11osx 10.5 ~ 11 big surubuntu 20.0.4raspberry pi 3B and 4BHow to set dev environmentClone repo on GitHub or download source codePrepare a python venvRun command "pip install --upgrade pip"Run command "pip install -r dev_requirements.txt"Architecture Diagram