Saravanan666/pypi-org huggingface dataset:
Package: jsend2
jsend-pythonThis is a package to response jsend-like formatrequirementspipinstalldjangodjangorestframeworkInstallationpipinstallgit+https://github.com/Visapick-Team/jsend-python.gitResponseDjangosettings.pyINSTALLED_APPS=[..."jsend2",]REST_FRAMEWORK={# jsend2 limit/offset pagination"DEFAULT_PAGINATION_CLASS":"jsend2.django.utils.JSendLimitOffsetPagination",# jsend2 response"DEFAULT_RENDERER_CLASSES":["jsend2.django.utils.JSendRenderer",],}output{"status":"faild","message":"Any message","data":{...},"code":"-100","total":100,"offset":12}status: strrequiredAPI status as a string, standard values aresuccess,failanderror.message: stroptionalDefault is None andnotincluded in response.data: AnyrequiredThe original result of API response.code: intoptionalDefault is None andnotincluded in response.total: intoptionalTotal objects retrieved if the result is paginated.count: intoptionalObject's count in the data if the result is paginated.offset: intoptionalObject's offset if the result is paginated.``FastAPImain.pyfromfastapiimportFastAPIfromfastapi_paginationimportadd_paginationfromrouterimportrouterapp=FastAPI()app.include_router(router)add_pagination(app)router.pyfromfastapiimportAPIRouterfromfastapiimportQueryfrompaginationimportPaginationfromresponseimportResponserouter=APIRouter()single Object@router.get("/user",response_model=Response[UserOut],response_model_exclude_none=True)asyncdefget_user(user_id:int=Query(ge=0)):user:UserOut=find_user(user_id)returnResponse(data=user,status="success"# default 'success')Paginated@router.get("/users",response_model=Pagination[UserOut],response_model_exclude_none=True)asyncdefget_users():response=paginate(users)response.status="success"# default 'success'returnresponseException HandlingDjangosettings.pyREST_FRAMEWORK={# jsend2 exception handler"EXCEPTION_HANDLER":"jsend2.django.exception.jsend_exception_handler",}FastAPImain.pyfromfastapiimportFastAPI,HTTPExceptionfromapiimportrouterfromsrc.jsend2.jfast.exceptionimportExceptionMiddlewareapp=FastAPI()app.include_router(router)ExceptionMiddleware(app)
Package: jsendit
This is a way simple library to help you format JSend messages.Project Featuresjsenditautomated unit tests you can run withpytestaSphinxdocumentation
projectGetting StartedThe project’s documentation contains a section to help youget
startedas a developer or user of the library.Development PrerequisitesIf you’re going to be working in the code (rather than just using the
library), you’ll want a few utilities.GNU MakePandocResourcesBelow are some handy resource links.Project DocumentationSphinxis a tool that
makes it easy to create intelligent and beautiful documentation,
written by Geog Brandl and licnsed under the BSD license.pytesthelps you write
better programs.[GNU Make] is a tool which controls the generation of executables and
other non-source files of a program from the program’s source files.AuthorsPat Daburu-Initial work-githubSee also the list ofcontributorswho
participated in this project.LicenseMIT LicenseCopyright (c) patdaburuPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: jsepp
## JSEPP
### dbutils
#### MySQLConn
1. __init__(host: str, user: str, password: str, db: str, port: int)
2. excute_one(comm)
3. excute_all(comm)
4. insert_confirm(comm)
5. insert(comm)
6. confirm()
7. rollback()
#### MongoConn
1. __init__(user:str, password:str, host:str, port:int, db:str)
2. fetch_one(tablename:str, filter: dict)
3. update_one(tablename:str, filter:dict, data:dict)
4. insert_one(tablename:str, data:dict)
Package: jserr
JSErr
Django app to log javascript errors.Updates
February 7, 2013:
added tracking for ip address, browser, browser version, os and if cookies are enabled
Prerequisites
PyYAML:http://pypi.python.org/pypi/PyYAML/Setup
Add jserr to apps list in your settings.py file.INSTALLED_APPS = [ …, ‘jserr’, …, ]Sync database../manage.py syncdbIn your template file add jserr template tag, likely before any javascript files that you want to track.…. {% load jserr %} … {% jserr %}Add the following to your urls.py file.url(r’^jserr/’, include(‘jserr.urls’)),Done :)Note: only tracks errors when not in debug mode (DEBUG = False)
Package: jservicepy
jServicePyAPI wrapper for jService (comes with a commmand-line game implementation!)A wrapper forjServiceand a small command-line based version of Jeopardy using said wrapper with ANSI escape codes.ExamplesAPIfromjservicepyimportjServicejeopardy=jService()# <- If you're running your own instance, put your base URL in hereclues=jeopardy.clues()forclueinclues:print(clue.question+':',clue.answer,'| $'+str(clue.value))CLIpython -m jservicepy -h
usage: jServicePy [-h] [-c NUMBER] [-r NUMBER] [-v]

Play Jeopardy in your terminal! Powered by @sottenad's jService
[https://github.com/sottenad/jService] (v1.0)

optional arguments:
  -h, --help            show this help message and exit
  -c NUMBER, --categories NUMBER
                        Answer questions from a NUMBER of random categories.
  -r NUMBER, --random NUMBER
                        Answer a NUMBER of random questions
  -v, --version         show program's version number and exitApplication Programming Interfacte Documentationclass jServiceinitInitialize jService.Args:baseURL (str, optional): Base URL to send requests to; use if you are making calls to your own instance of jService. Defaults to "https://jservice.io".categoriesGet a list of categories.Args:count (int, optional): Amount of categories to return, limited to 100 at a time. Defaults to 1.
offset (int, optional): Offsets the starting ID of categories returned. Useful in pagination. Defaults to 0.Returns:list: A list of Category dataclasses.categoryGet a category.Args:id (int): The ID of the category to return.Returns:Category: A dataclass containing the cateory ID, title, number of clues, and list of clues for the category.cluesGet a list of clues.Args:value (int, optional): The value of the clue in dollars.category (int, optional): The id of the category you want to return.min_date (datetime, optional): Earliest date to show, based on original air date.max_date (datetime, optional): Latest date to show, based on original air date.offset (int, optional): Offsets the returned clues. Useful in pagination.Returns:list: A list of Clue dataclasses.randomGet random clues.Args:count (int, optional): Amount of clues to return, limited to 100 at a time. Defaults to 1.Returns:list: A list of Clue dataclasses.
Package: js.expect
js.expectIntroductionThis library packagesexpect.jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.expect) are published to some URL.How to use?You can importexpectfromjs.expectandneedit where you want
these resources to be included on a page:>>> from js.expect import expect
>>> expect.need()CHANGES0.3.1 (2015-08-12)Initial release.
Package: js.extjs
js.extjsIntroductionThis library packagesExtJSforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.extjs) are published to some URL.How to use?You can import various resources fromjs.extjsandneedit where you want
these resources to be included on a page. The two basic resource sets that you’ll
probably need are these>>> from js import extjs
>>> extjs.basic.need()You can also include individual resources>>> from js.extjs import extjs, ux, locale
>>> extjs.js.need()
>>> extjs.css.need()
>>> extjs.all.need()
>>> ux.all.need()You can also import themes>>> from js.extjs import theme
>>> theme.gray.need()
>>> theme.access.need()
>>> theme.neptune.need()Or import a single ux element>>> ux.BoxReorderer.need()
>>> ux.CellDragDrop.need()
>>> ux.DataTip.need()
>>> ux.DataViewTransition.need()
>>> ux.FieldReplicator.need()
>>> ux.GMapPanel.need()
>>> ux.GroupTabPanel.need()
>>> ux.GroupTabRenderer.need()
>>> ux.IFrame.need()
>>> ux.LiveSearchGridPanel.need()
>>> ux.PreviewPlugin.need()
>>> ux.ProgressBarPager.need()
>>> ux.RowExpander.need()
>>> ux.SlidingPager.need()
>>> ux.Spotlight.need()
>>> ux.TabCloseMenu.need()
>>> ux.TabReorderer.need()
>>> ux.TabScrollerMenu.need()
>>> ux.ToolbarDroppable.need()
>>> ux.TreePicker.need()Import different locales>>> locale.ext_lang_af.need()
>>> locale.ext_lang_bg.need()
>>> locale.ext_lang_ca.need()
>>> locale.ext_lang_cs.need()
>>> locale.ext_lang_da.need()
>>> locale.ext_lang_de.need()
>>> locale.ext_lang_el_GR.need()
>>> locale.ext_lang_en_AU.need()
>>> locale.ext_lang_en_GB.need()
>>> locale.ext_lang_en.need()
>>> locale.ext_lang_es.need()
>>> locale.ext_lang_et.need()
>>> locale.ext_lang_fa.need()
>>> locale.ext_lang_fi.need()
>>> locale.ext_lang_fr_CA.need()
>>> locale.ext_lang_fr.need()
>>> locale.ext_lang_gr.need()
>>> locale.ext_lang_he.need()
>>> locale.ext_lang_hr.need()
>>> locale.ext_lang_hu.need()
>>> locale.ext_lang_id.need()
>>> locale.ext_lang_it.need()
>>> locale.ext_lang_ja.need()
>>> locale.ext_lang_ko.need()
>>> locale.ext_lang_lt.need()
>>> locale.ext_lang_lv.need()
>>> locale.ext_lang_mk.need()
>>> locale.ext_lang_nl.need()
>>> locale.ext_lang_no_NB.need()
>>> locale.ext_lang_no_NN.need()
>>> locale.ext_lang_pl.need()
>>> locale.ext_lang_pt_BR.need()
>>> locale.ext_lang_pt_PT.need()
>>> locale.ext_lang_pt.need()
>>> locale.ext_lang_ro.need()
>>> locale.ext_lang_ru.need()
>>> locale.ext_lang_sk.need()
>>> locale.ext_lang_sl.need()
>>> locale.ext_lang_sr_RS.need()
>>> locale.ext_lang_sr.need()
>>> locale.ext_lang_sv_SE.need()
>>> locale.ext_lang_th.need()
>>> locale.ext_lang_tr.need()
>>> locale.ext_lang_ukr.need()
>>> locale.ext_lang_vn.need()
>>> locale.ext_lang_zh_CN.need()
>>> locale.ext_lang_zh_TW.need()CHANGES4.2.1.883 (2015-08-07)Updated to newest ExtJs 4 version.Include locale from extjsUse Tox for running tests3.3.1 (2011-01-21)Initial release.
Package: jsf
jsfUsejsfalong with fake data generators to provide consistent and meaningful fake data for your system.Main FeaturesProvides out of the box data generation from any JSON schema 📦Extendable custom data providers using any lambda functions 🔗Multi level state for dependant data (eg multiple objects sharing value, such as children with same surname) 🤓Inbuilt validation of fake JSON produced ✅In memory conversion from JSON Schema to Pydantic Models with generated examples 🤯Seamless integration withFastAPI🚀Installation$pipinstalljsf---> 100%UsageBasic 😊fromjsfimportJSFfaker=JSF({"type":"object","properties":{"name":{"type":"string","$provider":"faker.name"},"email":{"type":"string","$provider":"faker.email"},},"required":["name","email"],})fake_json=faker.generate()Results in ...{'name':'Jesse Phillips','email':'xroberson@hotmail.com'}From JSON file 📁fromjsfimportJSFfaker=JSF.from_json("demo-schema.json")fake_json=faker.generate()Or run straight from thecommandline...Native installpipinstalljsf[cli]jsf--schemajsf/tests/data/custom.json--instancewow.jsonDockerdockerrun-v$PWD:/datachallisa/jsfjsf--schema/data/custom.json--instance/data/example.jsonFastAPI Integration 🚀Create a file main.py with:fromjsfimportJSFfromfastapiimportFastAPIapp=FastAPI(docs_url="/")generator=JSF.from_json("custom.json")@app.get("/generate",response_model=generator.pydantic())defread_root():returngenerator.generate()Run the server with:$uvicornmain:app--reloadINFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)INFO:     Started reloader process [28720]INFO:     Started server process [28722]INFO:     Waiting for application startup.INFO:     Application startup complete.Navigate tohttp://127.0.0.1:8000and check out your endpoint. Notice the following are all automatically created:Schema with descriptions and examplesExample responseData generation by clicking "try it out"Partially supported featuresstringcontentMediaType- only a subset of these are supported, however they can be expanded withinthis fileCreditsThis repository is a Python port ofjson-schema-fakerwith some minor differences in implementation.LicenseMIT License
Package: js.fanstatictools
js.fanstatictoolsIntroductionThis library provides some javascript helpers for use withfanstatic.Get URLs of resources from within JavascriptWhen you need to load other (fanstatic) resources inside your javascript, you
may want to calculate the URL to the fanstatic library the resource is defined
in. Using relative URLs does not work, because they are calculated relative to
the windows URL, not to the URL of the current script, which can be different.After including the js.fanstatictools.lib_url fanstatic resource, you are able
to call fanstatictools.get_library_url(‘name_of_your_library’), which returns
the url. Add the filename of the resource to the end and you are done.How to use?You can importurlfromjs.fanstatictoolsandneedit where you want
these resources to be included on a page:>>> from js.fanstatictools import lib_url
>>> lib_url.need()CHANGES0.1 (2013-05-15)Initial release.
Package: jsfiddle
⛔ Deprecated ⛔This repo has been deprecatedInstallation$[sudo]pipinstalljsfiddleRelated projectsjsfiddle-build.py- buildbuild.htmlfile from jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdpython-readme-generator
Package: jsfiddle-build
Installation$[sudo]pipinstalljsfiddle-buildHow it worksjsfiddle github repo:.
├── build.html          generated
├── demo.html           required
├── demo.css            optional
├── demo.js             optional
├── demo.details        optionaljsfiddle github gist:.
├── build.html          generated
├── fiddle.html         required
├── fiddle.css          optional
├── fiddle.js           optional
├── fiddle.manifest     optionalbuild.html:<html><head><title>{title}</title>{resources}<styletype="text/css">{css}</style><scripttype="text/javascript">window.onload=function(){{js}}</script></head><body>{html}</body></html>Examples$find.-name"*.html"!-name"build.*"|xargspython-mjsfiddle_buildpaths with spaces:OSspeedcommandanyslowfind . -name "*.html" ! -name "build.*" -exec python -m jsfiddle_build {} \;Linuxfastfind . -name "*.html" ! -name "build.*" -print0 | xargs -d '\n' python -m jsfiddle_buildmacOSfastfind . -name "*.html" ! -name "build.*" -print0 | xargs -0 python -m jsfiddle_buildRelatedjsfiddle-build.py- buildbuild.htmlfrom jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdLinksDisplay fiddle from a Github repositoryDisplay fiddle from Gistreadme42.com
Package: jsfiddle-factory
Installation$[sudo]pipinstalljsfiddle-factoryHow it worksdetox folder names - replace spaces, etcinitdemo.css,demo.js,demo.html,demo.detailsin every empty dirupdatedemo.detailsresourcesfromresources.txt(if exists)createbuild.htmlfor every jsfiddle dircreateREADME.mdfor every jsfiddle dirExamples$python-mjsfiddle_factory.Relatedjsfiddle-build.py- buildbuild.htmlfrom jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdreadme42.com
Package: jsfiddle-generator
Installation$[sudo]pipinstalljsfiddle-generatorHow it worksjsfiddle github repo files:.
├── demo.html
├── demo.css
├── demo.js
├── demo.detailsjsfiddle github gist files:.
├── fiddle.html
├── fiddle.css
├── fiddle.js
├── fiddle.manifestExamplescreatedemo.css,demo.js,demo.detailsin every dir withdemo.html:$find.-name"demo.html"-execpython-mjsfiddle_generator.repo{}\;create jsfiddle repo files in every empty dir:find . -not -path '*/\.*' -type d -links 2 -exec python -m jsfiddle_generator.repo {} \;paths with spaces:OSspeedcommandanyslowfind ... -exec python -m jsfiddle_generator.repo {} \;Linuxfastfind ... -print0 | xargs -d '\n' python -m jsfiddle_generator.repomacOSfastfind ... -print0 | xargs -0 python -m jsfiddle_generator.repoRelatedjsfiddle-build.py- buildbuild.htmlfrom jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdLinksDisplay fiddle from GistDisplay fiddle from a Github repositoryreadme42.com
Package: jsfiddle-github
Installation$[sudo]pipinstalljsfiddle-githubRelatedjsfiddle-build.py- buildbuild.htmlfrom jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdLinksGithub Integration - JSFiddle Docsreadme42.com
Package: jsfiddle-readme
Installation$[sudo]pipinstalljsfiddle-readmeClassesclass__doc__jsfiddle_readme.ReadmeREADME.md class. methods:render,save(path)Executable modulesusage__doc__python -m jsfiddle_readme path ...generate jsfiddle README.mdExamplesgenerate multiple README.md files$find.-name"demo.html"|xargspython-mjsfiddle_readmeRelated projectsjsfiddle.py- jsfiddle helperjsfiddle-build.py- build html file from jsfiddle filesjsfiddle-generator.py- jsfiddle files generatorjsfiddle-readme.py- generate jsfiddleREADME.mdLinksDisplay fiddle from a Github repositorypython-readme-generator
Package: jsfiddle-readme-generator
Installation$[sudo]pipinstalljsfiddle-readme-generatorExamplesgenerate multiple README.md files$find.-name"demo.html"-execpython-mjsfiddle_readme_generator{}\;paths with spaces:OSspeedcommandanyslowfind . -name "demo.html" -exec python -m jsfiddle_readme_generator {} \;Linuxfastfind . -name "demo.html" -print0 | xargs -d '\n' python -m jsfiddle_readme_generatormacOSfastfind . -name "demo.html" -print0 | xargs -0 python -m jsfiddle_readme_generatorRelatedjsfiddle-build.py- buildbuild.htmlfrom jsfiddle filesjsfiddle-factory.py- jsfiddles mass productionjsfiddle-generator.py- jsfiddle files generatorjsfiddle-github.py- jsfiddle github integration helperjsfiddle-readme-generator.py- generate jsfiddleREADME.mdLinksGithub Integration - JSFiddle Docsreadme42.com
Package: jsfileupload
# jsfileuploadFileUpload Widget using the Jupyter Notebook Server API.The widget is able to upload large files by uploading them in chunks.
The files will only be uploaded into the file system, not into the notebook itself.
That means that file contents will not be directly available over the widget,
but will have to be read into the notebook separately.## InstallationYou can install usingpip:` pip install jsfileupload `or from this GitLab directly` pip installgit+https://gitlab.version.fz-juelich.de/jupyter4jsc/j4j_extras/jsfileupload.git`Or if you use jupyterlab:` pip install jsfileupload jupyter labextension install@jupyter-widgets/jupyterlab-manager`If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:` jupyter nbextension enable--py[--sys-prefix|--user|--system]jsfileupload `
Package: js.fineuploader
js.fineuploaderIntroductionThis library packagesFine Uploaderforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.fineuploader) are published to some URL.How to use?You can importfineuploaderfromjs.fineuploaderandneedit where
you want these resources to be included on a page:>>> from js.fineuploader import fineuploader
>>> fineuploader.need()Or if you want the jQuery plugin version:>>> from js.fineuploader import jquery_fineuploader
>>> jquery_fineuploader.need()With either version you might also want the CSS:>>> from js.fineuploader import fineuploader_css
>>> fineuploader_css.need()CHANGES5.14.0Update to Fine Uploader 5.14.0.Test against Python 3.3, 3.4, 3.5 and 3.6 with tox and on TravisCI.Add a script to update from npm automatically.3.3.0Initial release.
Package: js.flat_ui
IntroductionThis library packagesFlat-UIforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.flat_ui) are published to some URL.How to use?You can importflat_uifromjs.flat_uiandneedit where you want
these resources to be included on a page:>>> from js.flat_ui import flat_ui
>>> flat_ui.need()

>>> from js.flat_ui import (
...     flat_ui,
... )
Package: js.fontawesome
js.fontawesomeIntroductionThis library packagesFont Awesomeforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.fontawesome) are published to some URL.How to use?This package supports two flavours of Font Awesome:SVG with JSYou can importfontawesome_jsfromjs.fontawesomeandneedit
where you want these resources to be included on a page:>>> from js.fontawesome import fontawesome_js
>>> fontawesome_js.need()There are also resources for the icon subsets provided by Font Awesome:fa_brands_jsfa_regular_jsfa_solid_jsfa_v4_shims_jsprovides the BBB shim for version 4 of Font Awesome.Web Fonts with CSSYou can importfontawesome_all_cssfromjs.fontawesomeandneedit
where you want these resources to be included on a page:>>> from js.fontawesome import fontawesome_all_css
>>> fontawesome_all_css.need()There are also resources for the icon subsets provided by Font Awesome:fa_brands_cssfa_regular_cssfa_solid_cssCHANGES5.0.6 (2018-02-02)Initial release.
Package: js.forkit
js.forkitIntroductionThis library packagesforkit.jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.forkit) are published to some URL.How to use?You can importforkitfromjs.forkitandneedit where you want
these resources to be included on a page:>>> from js.forkit import forkit
>>> forkit.need()CHANGES0.2Initial release.
Package: js.fotorama
js.fotoramaIntroductionThis library packagesFotorama Slideshowforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.fotorama) are published to some URL.How to use?You can import Fotorama fromjs.fotoramaandneedit
where you want these resources to be included on a page:>>> from js.fotorama import fotorama
>>> fotorama.need()CHANGES4.2.1 (2013-07-29)Initial release.