Saravanan666/pypi-org huggingface dataset:
Package: jdeskew
Document Image Skew EstimationTo my love, JennaTable of ContentsDocument Image Skew EstimationInstallationpipHow-to-useusing pythonDockerusing cogDownload PaperPerformance Comparison on DISE 2021DISE 2021 DatasetReproducibility and Evaluation CodeCitationTable of contents generated with markdown-tocInstallationpippipinstalljdeskewHow-to-useusing pythonfromjdeskew.estimatorimportget_angleangle=get_angle(image)fromjdeskew.utilityimportrotateoutput_image=rotate(image,angle)Dockerhttps://hub.docker.com/r/phamquiluan/jdeskew/tags# buildDOCKER_BUILDKIT=1dockerbuild-tjdeskew.# rundockerrun-p8000:80jdeskew# testcurl-v-Ffile=@sample.pnglocalhost:8000/predictusing coghttps://github.com/replicate/cogcogbuild--debug
cogpredict-iinput=@skew.png# Output:# Running prediction...# {#   "angle": -0.12520868113522532# }Download PaperLink1:https://ieeexplore.ieee.org/document/9897910Link2:https://www.researchgate.net/publication/364320913_ADAPTIVE_RADIAL_PROJECTION_ON_FOURIER_MAGNITUDE_SPECTRUM_FOR_DOCUMENT_IMAGE_SKEW_ESTIMATIONPerformance Comparison on DISE 2021CE: Correct Estimation rateWE: Worst ErrorAEDTOP80CEWEFredsDeskew10.820.090.54109PypiDeskew16.590.240.2141Koo, Hyung Il et al.0.220.090.489.43CMC-MSU0.270.110.4323.2LRDE-EPITA-a0.140.060.6610.61Our (1024)0.110.070.671.13Our (1500)0.090.050.781.13Our (2048)0.080.040.841.13Our (3072)0.070.040.861.13Our (4096)0.080.040.831.18DISE 2021 DatasetThis datasets are built upon three other datasets: DISEC 2013, RVL-CDIP, RDCL 2017. So I urge you to respect their LICENSE.Dataset NameURLDISE 2021 (45 degree)https://drive.google.com/file/d/1a-a6aOqdsghjeHGLnCLsDs7NoJIus-Pw/view?usp=sharingDISE 2021 (15 degree)https://drive.google.com/file/d/1BLiuu-j28dbuPFi4n3C0KuV6vXGmB0qS/view?usp=sharingReproducibility and Evaluation CodeCheck thereproduce.ipynbfileCitationL. Pham, H. Hoang, X.T. Mai, T. A. Tran, "Adaptive Radial Projection on Fourier Magnitude Spectrum for Document Image Skew Estimation", ICIP, 2022.@inproceedings{pham2021dise,
  title={Adaptive Radial Projection on Fourier Magnitude Spectrum for Document Image Skew Estimation},
  author={Luan Pham, Hao Hoang, Toan Mai, and Tuan Anh Tran},
  booktitle={2022 29th International Conference on Image Processing (ICIP)},
  year={2022},
  organization={IEEE}}
Package: jd-flask-uploads
jd-flask-uploads作为 flask-uploads 的替代品，因为 flask-uploads 在 Pypi上没有更新版本，从github上源码安装不太方便。安装pip install jd-flask-uploads用法from jd_flask_uploads import UploadSet, IMAGES

# Upload Sets
# An “upload set” is a single collection of files. You just declare them in the code:
photos = UploadSet('photos', IMAGES)


# And then you can use the save method to save uploaded files and path and url to access them. For example:

@app.route('/upload', methods=['GET', 'POST'])
def upload():
    if request.method == 'POST' and 'photo' in request.files:
        filename = photos.save(request.files['photo'])
        rec = Photo(filename=filename, user=g.user.id)
        rec.store()
        flash("Photo saved.")
        return redirect(url_for('show', id=rec.id))
    return render_template('upload.html')

@app.route('/photo/<id>')
def show(id):
    photo = Photo.load(id)
    if photo is None:
        abort(404)
    url = photos.url(photo.filename)
    return render_template('show.html', url=url, photo=photo)模块内方法说明函数、对象名称类型说明UploadSet对象文件上传主对象configure_uploads函数配置本上传对象，在 Flask App 创建之后patch_request_class函数配置 Flask App 内置测试服务的文件上传大小限制extension函数返回文件扩展名lowercase_ext函数返回文件扩展名（小写格式）addslash函数url、路径后添加反斜杠 '/'，若存在则不添加
Package: jdhp-distutils-demo
=============DistutilsDemo=============Copyright (c) 2015,2016 Jeremie DECOCK (http://www.jdhp.org)Description===========This snippet was written to test distutils and PyPI.It is inspired by `this tutorial`_.Dependencies============- Python >= 3.0Install=======This demo can be installed with Python Distutils by entering the following commandin a terminal::python3 setup.py install.. _install:Installation============Gnu/Linux---------You can install, upgrade, uninstall this demo with these commands(in a terminal)::pip install --pre jdhp-distutils-demopip install --upgrade jdhp-distutils-demopip uninstall jdhp-distutils-demoOr, if you have downloaded the source code::python3 setup.py installWindows-------You can install, upgrade, uninstall this demo with these commands(in a `command prompt`_)::py -m pip install --pre jdhp-distutils-demopy -m pip install --upgrade jdhp-distutils-demopy -m pip uninstall jdhp-distutils-demoOr, if you have downloaded the source code::py setup.py installMacOSX-------You can install, upgrade, uninstall this demo with these commandscommands (in a terminal)::pip install --pre jdhp-distutils-demopip install --upgrade jdhp-distutils-demopip uninstall jdhp-distutils-demoOr, if you have downloaded the source code::python3 setup.py installUsage=====Usage::from jdhp_distutils_demo import row_your_boatrow_your_boat.sing()License=======This demo is distributed under the `MIT License`_.. _this tutorial: http://sametmax.com/creer-un-setup-py-et-mettre-sa-bibliotheque-python-en-ligne-sur-pypi/.. _MIT License: http://opensource.org/licenses/MIT
Package: jdhp-pyai
Copyright (c) 2014,2015,2016,2017 Jeremie DECOCK (http://www.jdhp.org)Web site:http://www.jdhp.org/software_en.html#pyaiOnline documentation:http://pyai.readthedocs.orgSource code:https://github.com/jeremiedecock/pyaiIssue tracker:https://github.com/jeremiedecock/pyai/issuespyai on PyPI:https://pypi.python.org/pypi/jdhp-pyaiDescriptionThis is a set of open source frameworks for Artificial Intelligence
(mostly machine learning and optimization).This contains (among others):a blackbox non linear noisy optimization framework;a machine learning framework;a multistage optimization and Markov Decision Process framework
(Markov Decision Processes).Note:This project is still in beta stage, so the API is not finalized yet.DependenciesPython >= 3.0NumpyMatplotlibInstallationGnu/LinuxYou can install, upgrade, uninstall PyAI with these commands (in a
terminal):pip install --pre jdhp-pyai
pip install --upgrade jdhp-pyai
pip uninstall jdhp-pyaiOr, if you have downloaded the PyAI source code:python3 setup.py installWindowsYou can install, upgrade, uninstall PyAI with these commands (in acommand prompt):py -m pip install --pre jdhp-pyai
py -m pip install --upgrade jdhp-pyai
py -m pip uninstall jdhp-pyaiOr, if you have downloaded the PyAI source code:py setup.py installMacOSXYou can install, upgrade, uninstall PyAI with these commands (in a
terminal):pip install --pre jdhp-pyai
pip install --upgrade jdhp-pyai
pip uninstall jdhp-pyaiOr, if you have downloaded the PyAI source code:python3 setup.py installDocumentationOnline documentation:http://pyai.readthedocs.orgAPI documentation:http://pyai.readthedocs.org/en/latest/api.htmlExample usageTODOBug reportsTo search for bugs or report them, please use the PyAI Bug Tracker at:https://github.com/jeremiedecock/pyai/issuesLicenseThis project is provided under the terms and conditions of theMIT License.
Package: jdhp-setuptools-demo
==============SetuptoolsDemo==============Copyright (c) 2015,2016 Jeremie DECOCK (http://www.jdhp.org)Description===========This snippet was written to test setuptools and PyPI.It is inspired by `this tutorial`_.Dependencies============- Python >= 3.0Install=======This demo can be installed with Python Setuptools by entering the followingcommand in a terminal::python3 setup.py install.. _install:Installation============Gnu/Linux---------You can install, upgrade, uninstall this demo with these commands(in a terminal)::pip install --pre jdhp-setuptools-demopip install --upgrade jdhp-setuptools-demopip uninstall jdhp-setuptools-demoOr, if you have downloaded the source code::python3 setup.py installWindows-------You can install, upgrade, uninstall this demo with these commands(in a `command prompt`_)::py -m pip install --pre jdhp-setuptools-demopy -m pip install --upgrade jdhp-setuptools-demopy -m pip uninstall jdhp-setuptools-demoOr, if you have downloaded the source code::py setup.py installMacOSX-------You can install, upgrade, uninstall this demo with these commandscommands (in a terminal)::pip install --pre jdhp-setuptools-demopip install --upgrade jdhp-setuptools-demopip uninstall jdhp-setuptools-demoOr, if you have downloaded the source code::python3 setup.py installUsage=====Usage::from jdhp_setuptools_demo import row_your_boatrow_your_boat.sing()License=======This demo is distributed under the `MIT License`_.. _this tutorial: http://sametmax.com/creer-un-setup-py-et-mettre-sa-bibliotheque-python-en-ligne-sur-pypi/.. _MIT License: http://opensource.org/licenses/MIT
Package: jdhp-tictactoe
Copyright (c) 2016 Jérémie DECOCK (www.jdhp.org)Web site:http://www.jdhp.org/software_en.html#tictactoe-pyOnline documentation:http://jdhp-tictactoe-py.readthedocs.orgSource code:https://github.com/jeremiedecock/tictactoe-pyIssue tracker:https://github.com/jeremiedecock/tictactoe-py/issuesTicTacToe on PyPI:https://pypi.python.org/pypi/jdhp-tictactoeDescriptionPlay the classic Tic-Tac-Toe game.Note:This project is still in beta stage, so the API is not finalized yet.DependenciesPython >= 3.0InstallationGnu/LinuxYou can install, upgrade, uninstall TicTacToe with these commands (in a
terminal):pip install --pre jdhp-tictactoe
pip install --upgrade jdhp-tictactoe
pip uninstall jdhp-tictactoeOr, if you have downloaded the TicTacToe source code:python3 setup.py installWindowsYou can install, upgrade, uninstall TicTacToe with these commands (in acommand prompt):py -m pip install --pre jdhp-tictactoe
py -m pip install --upgrade jdhp-tictactoe
py -m pip uninstall jdhp-tictactoeOr, if you have downloaded the TicTacToe source code:py setup.py installMacOSXYou can install, upgrade, uninstall TicTacToe with these commands (in a
terminal):pip install --pre jdhp-tictactoe
pip install --upgrade jdhp-tictactoe
pip uninstall jdhp-tictactoeOr, if you have downloaded the TicTacToe source code:python3 setup.py installDocumentationOnline documentation:http://jdhp-tictactoe-py.readthedocs.orgAPI documentation:http://jdhp-tictactoe-py.readthedocs.org/en/latest/api.htmlExample usageTODOBug reportsTo search for bugs or report them, please use the TicTacToe Bug Tracker at:https://github.com/jeremiedecock/tictactoe-py/issuesLicenseThis project is provided under the terms and conditions of theMIT License.
Package: jd-HTMLTestRunner
jd-HTMLTestRunnerjd-HTMLTestRunner for Python3 unittest安装pip install jd-HTMLTestRunner示例from jd_HTMLTestRunner import HTMLTestRunner

suite = unittest.TestLoader().discover(".", "test_*.py")
file = open(r"test01.html", "wb")
runner = HTMLTestRunner(stream=file, title="我的测试报告")
runner.run(suite)
file.close()模块内方法说明函数、对象名称类型说明HTMLTestRunner对象主测试执行对象
Package: jdict
jdictDictionary extended with convenience methods that depend heavily on dictionaries being ordered by insertion order.Requirementsjdict requires Python 3.6+. It will raise an Exception if imported with a lower version.jdict has no dependencies, except for the following methods which require pandas:series,datarow, anddatacol.InstallationFor now you have to get the source and install withpip install -e .Usage>>>fromjdictimportjdict>>>j=jdict(x=3,y=4,z=5)>>>j.x3>>>j.first('x',3)>>>j.first_key'x'>>>j.value_list[3,4,5]>>>j.list[('x',3),('y',4),('z',5)]>>>j.last('z',5)>>>j.pop_last()('z',5)>>>j{'x':3,'y':4}and so on. For more about the usage, see the tests.Running testsRun the following commandspip install pytest(if you don't have pytest)pip install pandas(if you don't have pandas)pip install -e .(if you haven't done so already)pytest
Package: jdiff
jdiffjdiffis a lightweight Python library allowing you to examine structured data.jdiffprovides an interface to intelligently compare--via key presense/absense and value comparison--JSON data objectsOur primary use case is the examination of structured data returned from networking devices, such as:Compare the operational state of network devices pre and post changeCompare operational state of a device vs a "known healthy" stateCompare state of similar devices, such as a pair of leafs or a pair of backbone routersCompare operational state of a component (interface, vrf, bgp peering, etc.) migrated from one device to anotherHowever, the library fits other use cases where structured data needs to be operated on.InstallationInstall from PyPI:pip install jdiffIntelligent ComparisonThe library provides the ability to ask more intelligent questions of a given data structure. Comparisons of data such as "Is my pre change state the same as my post change state", is not that interesting of a comparison. The library intends to ask intelligent questionslike:Is the route table within 10% of routes before and after a change?Is all of the interfaces that were up before the change, still up?Are there at least 10k sessions of traffic on my firewall?Is there there at least 2 interfaces up within lldp neighbors?Technical OverviewThe library heavily relies onJMESPathfor traversing the JSON object and finding the values to be evaluated. More on thathere.jdiffhas been developed around diffing and testing structured data returned from Network APIs and libraries (such as TextFSM) but is equally useful when working or dealing with data returned from APIs.DocumentationDocumentation is hosted on Read the Docs atjdiff Documentation.
Package: jdk4py
jdk4pyA packaged JDK for Python.InstallJava is made easy to install as a single Python package:pipinstalljdk4pyor as a Conda package:condaconfig--addchannelshttps://conda.atoti.io
condainstalljdk4pyUsage>>>fromjdk4pyimportJAVA,JAVA_HOME,JAVA_VERSION>>>JAVA_HOMEPosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime')>>>JAVAPosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime/bin/java')>>>JAVA_VERSION(21,0,2)>>>fromsubprocessimportcheck_output>>>some_java_options=["-Xmx16G","-Xms2G"]>>>check_output([str(JAVA),"-jar","HelloWorld.jar",*some_java_options])b"Hello, World!"Versioningjdk4py's version contains 4 numbers:The first 3 numbers are the Java version.The fourth isjdk4pyspecific: it starts at 0 for each Java version and then increases.
Package: jdla-basic
Basic Operations Python Packagejdla_basic is a python module that provides access to basic operation functions.InstallationUse the package managerpipto install jdla_basic.pipinstalljdla_basicUsagefromjdla_basicimportbasic_operationsa=1b=2addition=basic_operations.addition(a,b)subtraction=basic_operations.substraction(b,a)multiplication=basic_operations.multiplication(b,a)division=basic_operations.division(b,a)modulus=basic_operations.modulus(b,a)print(f"{a}+{b}={addition}")print(f"{b}-{a}={subtraction}")print(f"{a}*{b}={multiplication}")print(f"{b}/{a}={division}")print(f"{b}%{a}={modulus}")ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
Package: jdMinecraftLauncher
jdMinecraftLauncherjdMinecraftLauncher is a OpenSource Minecraft Launcher written in Python. You need Java and a Mojang Account to use this programm.This program usesminecraft-launcher-libto install and start Minecraft.You needPythonto run jdMinecraftLauncher.TranslateYou can translate jdMinecraftLauncher onWeblateInstallationWindowsYou can find a prebuild portable version onSourceforge.LinuxYou can install jdMinecraftLauncher fromFlathub. Users of Arch basee systems can also install it from theAUR.From sourceInstall all needed dependencies before the first run:pip install -r requirements.txtAfter that, run jdMinecraftLauncher.py with Python.
Package: jdmn-python-runtime
jdmn-python-runtimeHow to install> pip install jdmn-python-runtimeSDLCCheck-out projectCreate a venv (see below) if you do not have one alreadyMake changesRun tests (see below) and fix errorsRun linters (see below) and fix errorsMake sure the test coverage is decent (e.g. around 70-75%)Commit changesHow to create a venv> ci/make_env.batHow to run tests> tox -e py310or> python -m pytest --cov=jdmn tests/How to run pylint> tox -e pylintHow to run flake8> tox -e flake8How to build the wheel> tox -e buildHow to publish the wheeltwine upload --repository testpypi --skip-existing dist/*
Package: jdMrpackInstaller
jdMrpackInstallerInstall Modrinth modpacksWith jdMrpackInstaller you can install modpacks that you've downloaded from Modrinth (.mrpack) with just a few clicks in an easy to use GUI.
That means you no longer need a special launcher to use your favourite modpack.InstallFlatpakYou can get jdMrpackInstaller fromFlathubAURArch Users can get jdMrpackInstaller from theAURpipYou can install jdMrpackInstaller fromPyPIusingpip:pipinstalljdMrpackInstallerUsing this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdMrpackInstaller from the Command Line.
Use this only, when nothing else works.From sourceThis is only for experienced Users and someone, who wants to package jdMrpackInstaller for a Distro.
jdMrpackInstallershould 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 jdMrpackInstaller into/usr/local:sudopipinstall--prefix/usr/local.
sudo./install-unix-datafiles.py--prefix/usr/localTranslateYou can help translating jdMrpackInstaller onCodeberg TranslateDevelopjdMrpackInstalleris written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.
You can runjdMrpackInstaller.pyto start jdMrpackInstaller 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: jdocdb
jdocdbA simple and lightweight JSON mock database for small projectscreate a new database:db = jdocdb.newDB("dbname")access an existing database:db = jdocdb.DB("dbname")get the value of the database:print(db.value()) #value in the form of a dictset the value of the database:db.set("hello": "world") #this rewrites the whole database fileupdate stuff to the datbase file:db.update({"newkey": "newvalue"})delete item from the database file:x.delete("unwantedkey")format the data in a database:db.format()Change Log0.0.1first release
Package: jdodata
用户名密码申请请联系wukehao@jddatatech.com。环境要求python >= 3安装python -m pip install jdodata使用# 登陆
from jdodata import OpenDataClient
client = OpenDataClient(username="test", password="test") # 账号密码请联系 wukehao@jddatatech.com 索取.

params = {
    "fund_code": "510080"
}

ret = client.ApiStockpediaFundNet_value.get(params=params)

ret = client.ApiFund_assistantFundNet_value.get(params={"fund_code": "510080"})
Package: jdog
Just another Data Offline Generator (JDOG) 🐶🗎Full documentation.JDOG is a Python library which helps generate a sample data for your projects.JDOG can also be run as CLI tool.For generating a sample data, the data scheme is provided.SchemeTheschemeis provided in JSON format with special placeholders.In the output, the placeholders are replaced with some generated data.Any valid JSON isvalidscheme.How to use it?Install itpython -m pip install jdogPrepare a scheme{
  "{{range(people,4)}}": {
    "name": "{{name}}",
    "age": "{{age}}",
    "address": {
      "city": "{{city}}"
    },
    "car": "{{option(mustang,{{empty}})}}"
  }
}Use itfrom jdog import Jdog

def main():
    jdog = Jdog()
    scheme = ... # your loaded scheme

    # parse scheme
    jdog.parse_scheme(scheme)

    # generate instance
    result = jdog.generate()

    print(result) # result is JSONAnd the example result:{
    "people": [
        {
            "name": "Brandi Young",
            "age": 39,
            "address": {
                "city": "Jamietown"
            },
            "car": "mustang"
        },
        {
            "name": "Michelle Best",
            "age": 70,
            "address": {
                "city": "Port Dustin"
            },
            "car": ""
        },
        {
            "name": "Donald Hernandez",
            "age": 79,
            "address": {
                "city": "East Julieshire"
            },
            "car": "mustang"
        },
        {
            "name": "Kaitlyn Cook",
            "age": 3,
            "address": {
                "city": "Rachelton"
            },
            "car": "mustang"
        }
    ]
}CLIPackage can be used as cli tool.Usage: jdog [OPTIONS] SCHEME

Accepts SCHEME and generates new data to stdin or to specified OUTPUT

Options:
  -p, --pretty           Output as pretty JSON.
  -s, --strict           Raise error when no matching placeholder is found.
  -l, --lang TEXT        Language to use.
  --lang-help            Displays available language codes and exit.
  -o, --output FILENAME  Output file where result is written.
  --help                 Show this message and exit.By default, CLI tool does not save output to file, just print results to standard output.👍 JDOG is using awesome packageFakerwhich is used to generate random data.CONTRIBUTINGLICENSE
Package: jd-page-parser
Currently only support book pages. All fields use same encoding ‘utf-8’.Category fields:
* name - Category name
* url - Category url
* children - Subcategories.Book list fields:
* links - A list of links in {‘title’: ‘’, ‘url’: ‘’} format
*  next_page_uri- Next page uriBook detail fields:
* title - Book title
* author - Book authors, delimited by comma
* images - Image url list
* detail - Detail key-value pairsContentjd_page_parser.category_parsers.BookCategoryParserjd_page_parser.product_list_parsers.BookListParserjd_page_parser.detail_parsers.BookDetailParserInstallationThe simplest way is to install it viapip:pip install jd-page-parserRun Testpip install -r requirements-dev.txttox