Saravanan666/pypi-org huggingface dataset:
Package: deform_foundation
# Deform templates in FoundationThis is a python package to replace Deform's default templates with templates designed to use Foundation's nice features(particularly with forms and form errors).## Dependencies1. [Zurb's Foundation 4.x](http://foundation.zurb.com/)2. [Garlic.js](http://garlicjs.org/)Garlic.js isn't *necessary* for operation, but it does provide nice functionality for your users by saving the formstate to localStorage in the event they accidentally hit the back button or their browser crashes. It's easy to includeon your site:<html lang="en"><head><script src="//cdnjs.cloudflare.com/ajax/libs/garlic.js/1.2.0/garlic.min.js"></script></head><body></body></html>## InstallationWith your virtualenv activated: `pip install deform-foundation`; this will install the templates. You now need to includethe "sub-app" into your primary load point for Pyramid. I do this inside of my project's `__init__.py` files towards thebottom:config.include('deform_foundation')return config.make_wsgi_app()## March 25th, 2013Presently, I've only cleaned up the default form.pt template to remove unnecessary messages when the form is in anexceptional state and to provide the inter-field form error messages better styled.All form field error messages use Foundation's form error message styling.
Package: deform_jinja2
deform_jinja2===========Jinja2 templates for deform using the uni-form modelTo run the `deformdemo <http://deformdemo.repoze.org>`_ application using the``deform_jinja2`` renderer:- Create a virtualenv::$ virtualenv2.6 --no-site-packages envHeretofore, the ``env`` directory created above will be referred to as$VENV- Clone the deformdemo GitHub repository::$ git clone git://github.com/Pylons/deformdemo.git- cd to the deformdemo checkout and ``setup.py develop`` it into yourvirtualenv$ cd deformdemo$ $VENV/bin/python setup.py develop- Use the deform_jinja2 ``demo.ini`` file to run a demo app server via ``pasterserve``:$ $VENV/bin/paster demo.ini- The demo app will be running on port 8521.  See the ``README.rst`` in thedeformdemo checkout for instructions about how to run the selenium tests.
Package: deform_markdown
Markdown Widget for DeformDeform widget usingsimpleMDEto edit TextArea fields.Free software: ISC licenseCode:https://github.com/liqd/deform_markdownDocumentation:https://deform_markdown.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.8 (2016-06-22)Fix: wheel release is missing static files0.2.7 (2016-06-07)gardening docs0.2.6 (2016-06-07)Fix again: travis deployment not working0.2.5 (2016-06-05)gardening travis config0.2.4 (2016-06-05)gardening docs and travis config0.2.3 (2016-06-05)Fix: travis deployment not working0.2.2 (2016-06-05)Fix: sphinx does not build docs0.2.1 (2016-06-05)Fix: wrong repro name in travis config0.2.0 (2016-06-05)inital release
Package: deform-treepy
deform_treepy is a deform widget for inputting a tree of words.InstallationAdddeform_treepyininstall_requiresin yoursetup.py.
and editproduction.iniin your Pyramid application to add:pyramid.includes =
    ...
    deform_treepyContributeIssue Tracker:https://github.com/ecreall/deform_treepy/issuesSource Code:https://github.com/ecreall/deform_treepyLicenseThe project is licensed under the AGPLv3+.Changelog1.0.1 (2016-09-15)Fix README and setup.cfg for translations.1.0 (2016-09-15)Initial version
Package: deform_widget_dynatree
deform_widget_dynatreeDynatreeis a JavaScript dynamic tree view plugin for jQuery with support for
persistence, keyboard, checkboxes, drag’n’drop, and lazy loading.deform_widget_dynatreeexposes some of its features as a widget for thedeformform generation library.REST APIdeform_widget_dynatreedepends on a REST API you have to implement on the
server side.  This API only needs to implement a single method that responds to
GET requests with 2 optional parameters:keyKey of the node for wich children are requested.modeCan be eitherrootorbranch.Ifmodeisbranchonly the children of the requested node have to be
returned (as a list of JSON objects):[
      'child1': {
          'key': '1',
          'title': 'One',
      },
      'child2': {
          'key': '2',
          'title': 'Two',
      },
  ]

If ``mode`` is ``root`` the result must contain the children of the
requested node (same as with ``branch``) as well as all parent nodes with
their siblings::

  [
      'child1': {
          'key': '1',
          'title': 'One',
          'children': [
              'subchild1': {
                  'key': '11',
                  'title': 'Sub One',
                      'children': [
                          'subchild11': {
                              'key': '111',
                              'title': 'Subsub One',
                          },
              },
              'subchild2': {
                  'key': '12',
                  'title': 'Sub Two',
              },
          ],
      },
      'child2': {
          'key': '2',
          'title': 'Two',
      },
  ]CHANGES0.1Initial release.
Package: deform_widget_jquery_option_tree
This package makesjQuery Option Treeavailable as adeform form librarywidget.  jQuery Option Tree converts a JSON option tree into dynamically
created <select> elements allowing you to choose one nested option from the
tree.Currently only one feature for a very specific use case is implemented,
hierarchical browsing from a data structure like this:key     value
---     -----
1       Option 1
11      Suboption 1.1
111     Subsubption 1.1.1
112     Subsubption 1.1.2
12      Suboption 1.2
2       Option 2
21      Suboption 2.1
22      Suboption 2.2
3       Option 3This is suitable for hierarchical selections from standards likeISCO08orNACE Rev. 2The implementation currently requires the data to be exposed by a REST service
with 2 endpoints that are reachable via a common base URL (thejson_urloption of the widget):json_url has to return the top level key/value pairsjson_url with the GET parameterìdhas to return the child elements
for the given id.json_url + ‘/<id>/lineage’ has to return the lineage of IDs from root to
leaf for the given <id>.Examples:json_url = '/api/classifications/nace_rev2'

# GET call to '/api/classifications/nace_rev2'
# has to return a structure like this:
{
    A: "LAND- UND FORSTWIRTSCHAFT, FISCHEREI",
    B: "BERGBAU UND GEWINNUNG VON STEINEN UND ERDEN",
    C: "VERARBEITENDES GEWERBE/HERSTELLUNG VON WAREN"
}

# GET call to '/api/classifications/nace_rev2?id=A'
# has to return a structure like this:
{
    A01: "Landwirtschaft, Jagd und damit verbundene Tätigkeiten",
    A02: "Forstwirtschaft und Holzeinschlag",
    A03: "Fischerei und Aquakultur"
}

# GET call to '/api/classifications/nace_rev2/Q8690/lineage'
# has to return a structure like this:
["Q", "Q86", "Q869", "Q8690"]See the included demo application for details.ContributionsContributions are welcome, especially if you want to add support for
more generic data structures and/or configurable options for the plugin.Changes0.2.1Fix JS error when initializing empty field.0.2Change Javascript to allow better configurationMove the fanstaticneed()call to the serialize method.0.1Initial release.
Package: deframed
What the …Deframed is a non-framework for web programming. In fact it is the very
antithesis of a web framework.Huh?The basic idea of building web pages, these days, is to delegate as much as
possible to the client. The problem is that if you don’t want to do that,
but still like to offer a single-page site to your user, you’re on your
own.Why?Well, maybe Javascript is a truly annoying language. To you, anyway. Maybe
your site logic is Secret Sauce and shouldn’t end up in the browser. Maybe
your API shouldn’t be exposed to the outside world. Maybe you want to tell
the browser what to display. Maybe you just want to build a Web UI that
behaves like any other UI, i.e. read events from the user and tell the
screen what to display, period end of story.Whatever your reason, DeFramed’s purpose is to make sure that you won’t
have to deal with programming on the browser side. No more than absolutely
necessary, anyway.Principle of operationClientDeFramed displays a generic initial page and starts a small Javascript
handler that connects to a web socket on your server. It then proxies a
handful of DOM manipulation functions and exports a few calls which your
user-facing interface elements can use to send events or data to the
server.There’s also basic support for a client-side spinner, a simple way to show
alerts if/when the connection breaks, templating (with Mustache) so you
don’t need to send redundant data, and rudimentary access to local data to
store the equivalent of a cookie and to stash templates on the client. Oh
yes, and some rudimentary DOM manipulation, like adding a class to some
element.DeFramed also auto-adds “onclick” handlers to each button and “onsubmit”s
to each form (assuming they have an ID and no existing handler), so you
don’t have to.Note the absence of anything that could be interpreted as client-side
logic, which is why DeFramed is a non-framework.ServerIf there is zero client-side logic, the server needs to handle everything.
(Which it has to do anyway.) Thus, DeFramed includes classes to support all
of this.The DeFramed server is based on Quart-Trio, thus it natively supports async
operations. It uses Trio instead of asyncio: cleanly shutting down a
complex asyncio application is a debugging exercise nobody should undergo.
You can ignore the async stuff, but as soon as you call out to a database
you probably don’t want to.Each client’s events are processed sequentially, though it’s easy to run a
background task – which is guaranteed to get terminated when the client
disconnects or times out.
Package: defrostir
defrostsplit broken icecast recordings into separate mp3sMIT-Licensed, 2019-06-01, ed @ irc.rizon.net,github,pypifeaturessilence detection-- finds the best part to split atmp3 parser-- clean splits at frame boundariesicy-meta parser-- extract artist/title from inband metadatadynamic recalibration to recover from server glitchescharset detection-- UTF8, latin-1, shift-jis and friends, all goodID3 tags-- uses mutagen to write aritst/title into the filestimestamping-- the date/time that the song was played livesupport for other input formats:loopstream recordinginstallationget the latest release from pypi:python3 -m pip install --user -U defrostiror the latest commit from github:python3 -m pip install --user -U https://github.com/9001/defrost/tarball/hovudstraumusagefrom an internet radio station:wget -U MPlayer --header "Icy-MetaData: 1" -S "https://stream.r-a-d.io/main.mp3"
# wait until the show is over, then abort the download
python3 -m defrostir main.mp3from a loopstream recording:python3 -m defrostir -i ls Loopstream-2021-10-02_22.53.44.mp3notesversionsx.y.1havechardetas a dependency, whilex.y.2havecharset-normalizer(preferred) and are otherwise identical;setup.py rlswill produce both to avoid a pypi package selection bug
Package: defsent
DefSent: Sentence Embeddings using Definition SentencesPretrained checkpointscheckpointSTS12STS13STS14STS15STS16STS-BSICK-RAvg.defsent-bert-base-uncased-cls67.6180.4470.1277.576.3475.2571.7174.14defsent-bert-base-uncased-mean68.2482.6272.878.4476.7977.571.6975.44defsent-bert-base-uncased-max65.3282.0073.0077.3875.8476.7471.6774.57defsent-bert-large-uncased-cls67.0382.4171.2580.3375.4373.8373.3474.8defsent-bert-large-uncased-mean63.9382.4373.2980.5277.8478.4173.3975.69defsent-bert-large-uncased-max60.1580.7071.6777.1975.7176.9072.5773.55defsent-roberta-base-cls66.1380.9672.5978.3378.8578.5174.4475.69defsent-roberta-base-mean62.3878.4270.7974.6077.3277.3873.0773.42defsent-roberta-base-max64.6178.7670.2476.0779.0278.3474.5474.51defsent-roberta-large-cls62.4779.0769.8772.6277.8779.1173.9573.56defsent-roberta-large-mean57.872.9869.1872.8476.5079.1774.3671.83defsent-roberta-large-max64.1181.4272.5275.3780.2379.1673.7675.22
Package: defspec
defspecCreate the OpenAPI spec and document fromdataclass,attrs,msgspec, etc.Why not ...[!NOTE]
There are also lots of other projects can generate the OpenAPI document or even validate the data. This project isnotintended to replace them.This project is a legacy of a private initiative. During the development, I discovered that usingmsgspeccould elegantly define and generate the API schema. The OpenAPI component can be utilized to generate the API documentation for various projects. As a result, I made the decision to extract it and transform it into a public project.You can use this project as a low-level component or a drop-in module when you don't want to introduce too many other dependencies.InstallationpipinstalldefspecExamplesflask:examples/flaskfalcon:examples/falconYou can run the above examples and open the OpenAPI document in your browser:swagger:http://127.0.0.1:8000/openapi/swaggerredoc:http://127.0.0.1:8000/openapi/redocscalar:http://127.0.0.1:8000/openapi/scalarUsagefromdataclassesimportdataclassfromtypingimportListfromdefspecimportOpenAPI@dataclassclassUser:name:strage:intopenapi=OpenAPI()openapi.register_route("/",method="get",summary="Hello World")openapi.register_route("/users",method="post",summary="Get all the user info",response_type=List[User])# get the OpenAPI specprint(openapi.to_dict())# get the OpenAPI spec byteswithopen("openapi.json","wb")asf:f.write(openapi.to_json())# serve as a HTTP serveropenapi.serve_as_http_daemon(port=8000,run_in_background=True)
Package: defter
Project Defter App"Defter, easier and quicker to develop your GUI Apps using Python in the built-in browser."MIT LicenseCopyright (c) 2021 BarryWangAuthor's GitHub:https://github.com/BarryWangQwQDefter URL:https://github.com/BarryWangQwQ/defterREADME:https://github.com/BarryWangQwQ/Defter/blob/main/README.md
Package: deftimer
AlphaDeftimer is now alpha stage.Throw me issues!EnvironmentsPython: >=3.6, <4Requirementspip install pathlibTry deftimer with docker$ cd <parent dir of deftimer>
$ docker build -t deftimer .
$ docker run --rm deftimerdeftimerquick startIt allows you to calculate run time of each functions. See USAGE.md for (more information)[https://github.com/hakumizuki/deftimer/blob/main/USAGE.md]timer = Timer()
@timer.use_timer
def do_something():
    ...

do_something() # this prints the resultsdocumentTimer(user='', description='')Initialize a Timer instance first.You will use the instance to decorate a function, use other methods.timer = Timer()

@timer.use_timer
def something():
    ...@timer.use_timer(detail=True)decoratorThis decorator allows the function to be inspected by a timer instance.paramsdetail:  It shows full results when detail is True.timer.pause() & timer.resume()You will sandwitch a process to omit the process from timer counting.The process time occured between pause&resume will not be counted as a result.@timer.use_timer
def something():
    timer.pause()
    time.sleep(5)
    timer.resume()The result will be 0 sec.timer.block(name=None, exclude=True)context managerparamsname:     You can name the block. The name will show up in results.exclude:  You can choose whether or not you exclude the process time that took to run the block from results.@timer.use_timer
def something():
    with timer.block(name='sleep_2sec_1'):
        time.sleep(2)timer.stop()Use this when you want to stop the timer.@timer.use_timer
def something():
    timer.stop()
    # any process after stop() will be excluded from results.Results(TBD)Below is an example of full results.-----------------------------------------
Result                --> 4.0531158447265625e-06 s
Whole program ran in  --> 4.0531158447265625e-06 s
Paused                --> 0 s, 0times
Blocks                --> 0 blocks: []
Paused + Blocked      --> 0 s
-----------------------------------------coming soon...File exporting (JSON, CSV)Average calculationTest deftimer$ docker run --rm deftimer python -m unittestNote: It might fail depending on your pc spec.AuthorTaichi Masuyamamontanha.masu536@gmail.comI always welcome your ideas!Thanks for visiting my repo :)License"deftimer" is underMIT license
Package: deftree
DefTree is a python module for modifyingDefolddocuments.InstallpipinstalldeftreeDependenciesYou need to install the backport of the standard library typing module if you are running Python versions older than 3.5pipinstalltypingExample UsageChanging an atlas extrude border settingimportdeftreetree=deftree.parse(path)# parse the document into a DefTreeroot=tree.get_root()# returns the root from the treeroot.set_attribute("extrude_borders",2)# sets the attribute "extrude_boarders" to 2tree.write()# writes the file to the parsed files pathAPIYou can find theAPIonreadthedocs.ContributingPlease take a look at thecontributingguidelines if you’re interested in helping!More informationAround the web, the initial post onforum.defold.com, the package onPyPiand of course the repo ongithub.
Package: defusedcsv
If your Python application offers CSV export of user-generated data, that user-generated data might contain malicious
payloads that might trigger vulnerabilities in the spreadsheet software of the user that downloads the file (i.e. MS
Excel or LibreOffice).This library tries to mitigate that by prepending all cells starting with@,+,-,=,|or%with an apostrophe'and additionally replacing all|characters in these cells with\|. This will of course change the resulting
CSV files, but Excel will not display the'character to the user.Tested with Python 3.8 to 3.10.UsageThis library acts as a drop-in replacement for the standard library’scsvmodule. You can use it by just replacingimport csvwithfrom defusedcsv import csvin your code.Useful LinksCSV Injection Software Attack | OWASP FoundationComma Separated Vulnerabilities | Context Information SecurityCSV Injection Mitigations & Dangers | ZeroSec - Adventures In Information SecurityLicenseThe code in this repository is published under the terms of the Apache License.
See the LICENSE file for the complete license text.This project is maintained by Raphael Michel <mail@raphaelmichel.de>. See the
AUTHORS file for a list of all the awesome folks who contributed to this project.
Package: defusedivision
defusedivision is a terminal based multiplayer (and singleplayer)
implementation of minesweeper.Your goal is to correctly flag all the mines on the minefield without setting
off any of the mines. By default, the controls are:Arrow keys to move your cursor
‘f’ key to flag a cell as containing a mine
‘enter’ key to probe that cellIf you probe a cell and that cell doesn’t contain any mines, then that cell is
revealed and will display a number in the center. That number indicates the
number of mines that are ‘touching’ that cell, either directly above, below, to
the left or right, or any of the four diagonals. If a cell doesn’t contain any
mines, then all surrounding cells without mines are recursively revealed to the
player.Play minesweeper!Play minesweeper by launching defusedivision and selecting ‘Singleplayer’. Just
like that, you’re playing!
Package: defvar
defvarLike Emacs Lisp defvar, but for PythonWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through thetestsand commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpip3 install -U defvarOr develop locally:git clone https://github.com/shawwn/defvar ~/defvar
cd ~/defvar
python3 setup.py developUsageimportdefvarprint('TODO')LicenseMIT. SeeLICENSEfile.ContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: defweb
DEFWEBDefweb is an enhancement of the standard http.server of python3.
Defweb supports https and file uploads and can function as a SOCKS 4, 5 or HTTP proxy.
Defweb can act as an TCP reverse proxy and can perform TLS MITM / TLS Interception.InstallingInstalling the package via pypi:pip install defwebOptionsusage:defweb[-h][-bBIND][-pPORT][-v][--log-levelLOG_LEVEL][-dDIR][-iSERVERNAME][-s][-r][--sign][--keyKEY][--certCERT][--proxy][--proxy_socks_only][--proxy_http_only][--rotate_user_agents][--ip-limitCIDR][-uUSER:PASSWORD][--rev_proxy][--rev_proxy_tls][-ca][-piPROXIED_IP][-ppPROXIED_PORT][-ptls][-mMIDDLEWARES]optionalarguments:-h,--helpshowthishelpmessageandexitGeneraloptions:-bBINDiptobindto;defaultsto127.0.0.1-pPORTporttouse;defaultsto8000-v,--versionshowversionandthenexit--log-levelLOG_LEVELDEBUG,INFO(default),WARNING,ERROR,CRITICAL

Webserveroptions:-dDIRpathtouseasdocumentroot-iSERVERNAMEservernametosendinheaders-s,--secureusehttpsinsteadofhttp,if--keyand--certareomittedcertificateswillbeautogenerated-r,--recreate_certre-createthegeneratedsslcertificate--signwhenusingautogeneratedcerts(-swithout--keyor--cert),shouldtheybesignedornot--keyKEYkeyfiletouseforwebserver--certCERTcertificatefiletouseforwebserver

Proxyoptions:--proxystartproxyforSOCKS4,SOCKS5&HTTP(S)--proxy_socks_onlystartproxyonlyforSOCKS4,SOCKS5--proxy_http_onlystartproxyonlyforHTTP(S)--rotate_user_agentsgeneraterandomuseragentforeachHTTPrequest(onlyHTTPsupported)--ip-limitCIDRlimitproxytoonlyacceptconnectionscomingfromthisCIDRrange-uUSER:PASSWORDusercredentialstousewhenauthenticatingtotheproxyserver

ReverseProxyoptions:--rev_proxystartreverseTCPproxy--rev_proxy_tlsaddTLSsupporttothereverseTCPproxy-cawhethertosetupownCAandsignthecertificatesusedbythe--rev_proxy_tlsoption-piPROXIED_IPprovidetheipoftheserviceweareproxyingfor-ppPROXIED_PORTprovidetheportoftheserviceweareproxyingfor-ptlswhethertheserviceweareproxyingforusesTLS-mMIDDLEWAREScommaseperatedmiddlewarestouseUsagepython3-mdefweb.mainUploadDefweb facilitates uploading files to the document root via the PUT command.Example for 'curl' and wget (the -k switch (curl) and--no-check-certificate (wget) is needed because Defweb uses self signed
certificates by default).curl-XPUT--upload-filefile.txthttps://localhost:8000-k
wget-O---method=PUT--body-file=file.txthttps://localhost:8000/somefile.txt--no-check-certificate