Saravanan666/pypi-org huggingface dataset:
Package: dekogen
DekoGenWhat is it?dekogen is simple tool to avoid big unreadable HTTP requests. It's provide ability to create requests builders and
response wrappers to keep match between code and OpenAPI specs.AboutMain points:1. Maintain compliance between code and OpenAPI spec2. Do not describe requests and responses manually3.  Use:request_body = Configuration() \
    .number("10") \
    .settings(Settings()
          .required_protocol("33-11-JRTF")
          .element_per_second(34)
          .related_grants("785-56-IU", "89-551-11-JRT")
          .body) \
    .bodyInstead of:request_body = {"configuration": {"number": 10,
                                  "settings": {"required_protocol": "33-11-JRTF", "element_per_second": 34,
                                               "related_grants": ["785-56-IU", "89-551-1-JRT"]}}}4. Parse responses with autocompleteDependenciesinflection: 0.3.1
PyYAML: 6.0
Click: 7.1.2See the full installation instructions for recommended and optional dependencies.Installationpip install dekogenLicenseMITDiscussion and DevelopmentAll contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.Getting startedCode generationVia command line:Help:dekogen_cmd -hCommands help:dekogen_cmd <command from help list> -hSample:dekogen_cmd generate-all-python -f ~/sample-api-specs.yaml -o ~/resultsVia python code:Read data from:from dekogen.spec_reader import SpecReader

file_path = '/home/name/sample-api-specs.yaml'
spec_reader = SpecReader
spec_data = spec_reader.read_yaml(file_path=file_path)Generate responses:from dekogen.spec_codegen import PythonResponsesGenerator

output_path = '/home/name/output_dir'
py_req_generator = PythonResponsesGenerator(spec_data=spec_data, file_path=output_path)
py_req_generator.generate()Generate requests:from dekogen.spec_codegen import PythonRequestsGenerator

output_path = '/home/name/output_dir'
py_req_generator = PythonRequestsGenerator(spec_data=spec_data, file_path=output_path)
py_req_generator.generate()Usage:To add autocomplete for responses just pass response.body (dict) into related Response() object initializationresponse = client.request(...)
body = NameOfTheView(response.data)Create scalable and readable structures for requests using direct import of generated files and classes.
Package: dela
DelaInstallationpip install --user delaFeaturesGetting all todos against a markdown files collectionDates supportTags supportFlexible filtersFlexible SortingFrontmatter supportExamplesdelalist# By default prints all todos with [~], [n] and [ ] checkboxesdelalist-s=' ,s'# prints todos only with statuses [ ] and [s]delalist--today# prints only todos with default statuses with a date equal or earliear then todaydelalist-t=#tag # prints only todos that have tag #tagdelalist-u-s='~,n, ,s'#prints todos with given status including upcoming onesHelpCLI to list todos from markdown files and obsidian vaults.

Usage:
  dela -h | --help
  dela --version
  dela list [-v] [--today|--upcoming] [--all|--statuses=<str>] [--tags=<str>] [--sort_by=<str>] [--format=<str>] [<glob>]


Options:
  -h --help                     Show this screen
  -v --verbose                  Enable logging
  --version                     Show version.

  -s=<str> --statuses=<str>     Filter by status [default: ~,n, ]
  -t=<str> --tags=<str>         Filter by tag (#work, #home, etc)

  --today                       Show only tasks due today or earlier
  -u --upcoming                 Show future tasks
  -a --all                      Show all todos

  --sort_by=<key>               Sort by given key or comma-separated keys

  --format=<string>             Format result with given template string.


Todo statuses:
    Todo status is a symbol placed in the square buckets ([x], [ ], [~], etc). You can use
    whatever you want, `dela` doesn't have eny presets, except default `--status=~,n, `,
    which you can overwrite.


Upcoming Tasks:

    If a task has a date in future, it's hidden by default. To see such tasks in the output,
    add the `--upcoming` flag.


Sorting:

    By default todos are sorted by `--status` value according to the order of given statuses,
    and then by date to place todos with dates to the top of the list (due date sounds important,
    right?). You can sort todos by passing an attribute name to the  `--sort_by` flag.
    Possible values are:

    - title
    - date
    - status
    - tags
    - file


Formatting output:

    You can use your own template with the `--format` flag. Unicode colors are supported:

    For example:

        dela list --format='- [$status] $file: $title'

    Next variables are supported:

    - $title
    - $date
    - $status
    - $tags
    - $file
    - $line

Frontmatter Support:

    You can use frontmatter to override file-level todo states, it can be useful in the next cases:
        - Automatically consider all todos in `todos_done.md` as done
        - To set `date` as `today` automatically if a todo is placed in `today.md`
        - To automatically set per-file tags

    To achieve this, you can add a frontmatter in a manner like below:

    ```
    ---
    dela:
        date: today # it's a specific keyword. Standard dates in a YYYYmmdd format also supported
        status: 'x' # override status for all todos in the file
        tags: # append per-file tags
            - per_file_tag
    ---
    ```
Package: delalyra-django-polls
Poll is a Django app to conduct web-based polls. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “poll” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "poll",
]Include the poll URLconf in your project urls.py like this:path("poll/", include("poll.urls")),Runpython manage.py migrateto create the poll models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/poll/to participate in the poll.
Package: delatore
Monitor and report status of customer service monitoring scenariosBot commandsTelegram bot accepts following commands:/statusBot reply to the message with last status(-es) retrieved from given
sourceStatus has following syntax:/status <source> [detailed_source] [history_depth]If some argument contains spaces, it should be surrounded by quotes,
either'...'or"..."AWX SourceStatus command for AWX source has following syntax:/status awx [template_name] [history_depth]Examples:/status awx— return last job status for allscenarios/status awx 'Buld test host'— return last job status for AWX
template which called ‘Buld test host’/status awx 'Scenario 1.5' 3— return status of last 3 jobs for
AWX template which calledScenario 1.5
Package: delaunay
What?This is a pure python library for finding the
delaunay triangulation on given pointsets.
Maybe one day voronoi tessellation will be added, since its based on
thequad-edge datastructure,
which makes finding the dual to each representations
easy.Installation && UsageEither clone this repository or install via
pip:pip install delaunayAn example usage looks like this:fromrandomimportseed,uniformfromdelaunay.quadedge.meshimportMeshfromdelaunay.quadedge.pointimportVertexfromdelaunay.delaunayimportdelaunayif__name__=="__main__":seed(123123123)N=44# number of verticesvertices=[Vertex(uniform(0,100),uniform(0,100))forvinrange(N)]m=Mesh()# this object holds the edges and verticesm.loadVertices(vertices)end=N-1delaunay(m,0,end)# computes the triangulation# populates a list of [org, dest], values for further manipulationlines=[]forqeinm.quadEdges:ifqe.orgisnotNone:lines+=[[[qe.org.x,qe.dest.x],[qe.org.y,qe.dest.y]]]# plotting, for example:# import matplotlib.pyplot as plt# fig, ax = plt.subplots()# for line in lines:#     start, end = line#     ax.plot(start, end)# plt.show()How?In their paper'Primitives for the Manipulation
of General Subdivisions and the Computation of Voronoi Diagrams'[0]
from 1985, L. Guibas & J. Stolfi propose a divide-and-conquer-algorithm
with all the rigor one can hope for.
The algorithm runs in O(n log(n)), which should be fine,
but for really huge sets R. Dwyers modification [1] of the
original algo from 1986 should provide a significant
improvement. For now i'll stick with the first one
mentioned, but later maybe this work will progress.Why?In comparison with scipy[2] this library is
consirably more lightweight. Of course scipy's delaunay is
based on QHull[3], a library written in c, which means it
runs ~40 times faster than a python implementation [4].References[0] Guibas, Leonidas and Stolfi, Jorge
'Primitives for the Manipulation of General Subdivisions and the Computation of Voronoi'
In: ACM Trans. Graph.4.2 (Apr.1985), pp. 74–123. issn: 0730-0301 doi:10.1145/282918.282923[1] -Dwyer's Algorithm[2] -Scipy Delaunay Implementation[3] -QHull Delaunay Implementation[4] -V-hill's Delaunay Implementation
Package: delaunayextrapolation
DelaunayExtrapolationExplanationDelaunay三角形分割を利用した内挿法です。点群をまず準備します。それをDelaunay三角形分割します。点群に含まれない任意の点が、点群の構成する三角形のどれに含まれているかを割り出します。さらに、三角形の中での相対位置(混合比)を算出します。scipy.spatial.Delaunayを利用すれば内挿は容易にできますが、三角形に含まれない点にまで外挿することができないので、Delaunayクラスを拡張しました。「三角形分割」と書いていますが、3次元以上でも問題なく動くはずです。Installation$pipinstalldelaunayextrapolationExampletest.pyに使用例があります。Known Issues一点ずつしか内挿できません。多数の点を同時に内挿できると良いですよね。
Package: delaunay-triangulation
InstallingPython 3.6 or higher is requiredother than that it's just as simple aspip install delaunay-triangulationFeaturesGeometry Math Classes - typing.pyStandardLineA line in a coordinate grid described in standard form (ax + by = c).CoordinateA single x or y coordinate that doesn't have a specific value yet.VertexA Vertex - a point in 2D space described by an x and y value.EdgeAn Edge - a line(AB) in 2D space described by 2 verticesTriangleA Triangle represented as 3 vertices a, b, cCircleA Circle described by its center and its radiusCalculation Methods - triangulation.pyscatter_verticeshelper method to scatter random vertices on a specified plane.get_super_triangleget super triangle from verticesdelaunaythe crux of this package. A method to Delaunay Triangulate a list of vertices using the Bowyer-Watson algorithm.Basic usagefromdelaunay_triangulation.triangulateimportscatter_vertices,delaunaywidth=1920height=1080spacing=250scatter=0.75vertices=scatter_vertices(plane_width=width,plane_height=height,spacing=spacing,scatter=scatter)# delete_super_shared is True by default but can be turned off if you need to fill a plane completelytriangles=delaunay(vertices=vertices,delete_super_shared=False)You are now free to do with those triangles what ever you may desire!
Package: delaware
It might be nice if it were easy to get data about company registrations.
Much information is available through theGeneral Information Name Searchsite, and the present program queries this website for information.Installing the workerThe present program is separated intoworker,manager, andreadercomponents. This is done so that many different workers can be run at once,
coordinated by a single manager.You probably just need to install the worker and run it; by default, it will
receive its directions from a manager running on one of Tom’s computers.
It will periodically contact the manager for directions, and it will query
Delaware’s General Information Name Search accordingly.Two ways of installing are explained below.Standalone installationFor most peopleInstalling with PipFor people who know what Python and Pip and terminals areStandalone installationI am going to make a package withPyInstallerand put directions here as to how to install it. So this installation method
isn’t available yet.Installing with PipIf you are used to using a terminal and already have Python and Pip installed,
you can just run this command.pip install delawareIf that gives you an error about permissions, try this command.sudo pip install delawareRunningOnce you’ve installed the program, type this into a terminal.delawareIt’ll ask you a few questions the first time you run it, but you can totally
ignore it after that.How it worksWhen you rundelaware, you are running theworkerprogram. Tom is
running themanagerprogram. When it starts, your worker contacts Tom’s
manager for directions.Why would I make such a complicated program?I’ve told that some people much difficulty in acquiring the data, and I
made the present program to deal with the most annoying of difficulties.
The difficulty is, supposedly, that the website only allows a single IP
address to make so many requests. One person told me that the limit was
a few hundred requests per IP address, and another person told me that
the limit was 3000 requests.Having used the site myself, I don’t think that such a limit exists;
I haven’t managed to hit any of these limits myself, and the Delaware
Division of Corporations told me that there is no limit. So maybe this
complicated thing wasn’t necessary, but I already wrote it.But in case there is a limit, the idea is that we can get a bunch of
different people each to download a small piece of the data, staying
within the limits for each IP address.If errors come upIf the program stops running, please send the error message to_@thomaslevine.com. Also, please don’t delete the~/.delawaredirectory,
as it contains files that can be helpful for figuring out what went wrong.
Package: delay_decorator
A python Function / Method delay executing system base on function Decorators.Auto delay the Function execution for a certain period time.
The new function will replace the older one and reset the countdown of the delay time.GitHub:https://github.com/bazookapb/delay_decorator.git特点兼容各种版本的python，包括python2和python3的个版本；使用方便：一个装饰器放到方法的头部即可延时执行该方法；MIT 授权协议；安装说明代码对 Python 2/3 均兼容全自动安装：easy_install delay_decorator或者pip install delay_decorator/pip3 install delay_decorator半自动安装：先下载https://pypi.python.org/pypi/wrapcache/，解压后运行
python setup.py install手动安装：将 delay_decorator 目录放置于当前目录或者 site-packages 目录通过 import delay_decorator 来引用
Package: delayed-assert
Python-Delayed-AssertDelayed aka. Soft asserts for pythonFew features:- No Dependenices on any other framework/library.
- Should work with any testing framework.
- Can be use as decorator or context manager.InstallationInstall via pippipinstalldelayed-assertInstall from masterpipinstallgit+https://github.com/pr4bh4sh/delayed-assertUsesSeeexample_unittest.pyfor usage.Using assertion library with lambdaPass the assertion call asexpect(lambda:self.assertListEqual([4,5,6,2,5],[7,8]))While I've tested only with unittest asserttion,It should be able to use any assertion library.Keep in mind that, Python does not support statement inside lambda, soexpect(lambda:assert1==1)won't work as it is not a valid lambda expression in pythonCurrent possible usesdeftestSomething(self):delayed_assert.expect(1==1)# will succeeddelayed_assert.expect(1==2)# will fail but won't stop executiondelayed_assert.expect(3==2,"Value don't match")# will fail but won't stop executiondelayed_assert.expect(3==3)# will succeed# will stop execution and show the stack trace of 2nd assertiondelayed_assert.assert_expectations()deftestLambdas(self):expect(lambda:self.assertEqual(3,4))# will fail but won't stop executionexpect(lambda:self.assertListEqual([4,5,6,2,5],[7,8]))# will fail but won't stop executionassert_expectations()@delayed_assert.assert_all()deftestDecorator(self):expect('five'=='Six','String do not match')expect([5,2]==[3,4],'List item do not match')expect([3,4]==[3,4],'This message wont be printed')# No need to call delayed_assert.assert_expectations() when decorator is useddeftestContextManeger(self):withdelayed_assert.assert_all():expect('four'=='Six','String do not match')expect([5,2]==[3,4],'List item do not match')expect([3,4]==[3,4],'This message wont be printed')# No need to call delayed_assert.assert_expectations() when using context maneger is usedCredit :http://pythontesting.net/strategy/delayed-assert/
Package: delayedsparse
## Delayed Sparse MatrixEfficient sparse matrix implementation for various "Principal Component Analysis".And demo usages of the efficient implementation for* Correspondence Analysis(CA)* Principal Component Analysis (PCA)* Canonical Correlation Analysis (CCA)To compare with existing methods, you can execute demo.sh.```sh>>> bash  demo.sh```This library is effective when the input matrix size ls large.But, in order to demonstrations, the demo programs use only a small matrix.You can test more large matrix by setting SIZE variable in demo-*.shWhen the input matrix size is large,the program of this library will finish within in few minutes,but the existing methods take hours.You can find more general description about CA and PCA inhttps://github.com/MaxHalford/prince## Installation**Via PyPI**```sh>>> pip install delayedsparse```**Via GitHub for the latest development version**```sh>>> pip install git+https://github.com/niitsuma/delayedsparse```## Requirements```sh>>> pip3 install sklearn```In order to execute demo.sh, you need install /usr/bin/time and orange library```sh>>> apt-get install time>>> pip3 install orange```## License@2018 Hirotaka Niirtsuma.You can use these codes olny for self evaluation.Cannot use these codes for commercial and academical use.* pantent pending* https://patentscope2.wipo.int/search/ja/detail.jsf?docId=JP225380312* Japan patent office:patent number 2017-007741## AuthorHirotaka Niitsuma.@2018 Hirotaka Niirtsuma.
Package: delay-proxy
[![DOI](https://zenodo.org/badge/144040707.svg)](https://zenodo.org/badge/latestdoi/144040707)# delay-proxyAn HTTP proxy in Python 2.7 that introduces network delays to the response from a server.The network delays (in milliseconds) follow a random [Gamma distribution](https://en.wikipedia.org/wiki/Gamma_distribution) with parametersalphaandbeta.## Download and Install
Download or clone this repository. Execute the following command in thedelay-proxyfolder.` [sudo] python setup.py install `## Execution and Parameters
To start a proxy, execute the following command:`run-delay-proxyport server alpha beta randomseed [buffsize] `port: Listening port for the proxy (int).server: IP address and port of the server (ip:port).alpha: Alpha parameter for gamma distribution (int).beta: Beta parameter for gamma distribution (float).randomseed: Seed for the delays in the proxy (int). Using the same seed allows to reproduce the sequence of delays.buffsize:  Buffersize that specifies the size of the data chunks sent to the client (int).## Example of UsageIn the following example, the proxy listens in the port8005and contacts the serverhttp://127.0.0.1:5000/db.
The response from the server is sent to the client with network delays (in milliseconds) that follow a Gamma distribution with parametersalpha = 10andbeta = 3.0. The seed used for generating the delays is1.` # Delaying the answer from a server.run-delay-proxy8005http://127.0.0.1:5000/db10 3.0 1 `In the following example, the answer from the server is partitioned in chunks of size1024characters.
Each chunk from the server is sent to the client with the network delays as specified in the previous example.` # Delaying chunks of the answer from a server.run-delay-proxy8005http://127.0.0.1:5000/db10 3.0 1 1024 `## How to Cite
Use the DOI provided in this README.
Package: delay-srt
delay_srtDelays the subtitles in a SubRip (.srt) file by a given amount of time.InstallationInstall Python.Python 3.11 or later should work for sure; when in doubt, just get the latest version. Older versions may work as well, but you're on your own with those.Install delay_srtThe following command should work for most people:pip install ogg4osuIf you want/need something more specialised, I'm sure you already know what you need to do differently.UsageJust run the program through Python (with the-mflag) in your command line of choice, and give it the path to the file you want to delay and the delay in milliseconds. For example, the following command will delayexample.srtby 1 second:python -m delay_srt example.srt 1000Note that depending on your environment, you may need to use thepython3command instead.
Package: delb
delbis a library that provides an ergonomic model for XML encoded text
documents (e.g.TEI-XML) for the Python programming language.
It fills a gap for the humanities-related field of software development towards
the excellent (scientific) communities in the Python ecosystem.For a more elaborated discussion see theDesignchapter of the documentation.FeaturesLoads documents from various source types. This is customizable and
extensible.XML DOM types are represented by distinct classes.A completely type-annotated API.Consistent design regarding names and callables’ signatures.Shadows comments and processing instructions by default.Querying with XPath and CSS expressions.Development statusYou’re invited to submit tests that reflect desired use cases or are merely of
theoretical nature. Of course, any kind of proposals for or implementations of
improvements are welcome as well.Related Projects & Testimonialssnakesistis an eXist-db client that usesdelbto expose database
resources.Kurt Raschkenoted in 2010:In a DOM-based implementation, it would be relatively easy […]
But lxml doesn't use text nodes; instead it uses [text] and [tail]
properties to hold text content.
Package: delbot
DelbotA service status blog for SaaS applicationsQuickstartInstall Delbot:pipinstalldelbotRun it:pythonmanage.pymigrate
pythonmanage.pyrunserverRunning testsDoes the code actually work?coveragerun--sourcedelbotmanage.pytestCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackage
Package: delcechfiltr
Delaunay-Čech filtrationsThis package provides functions for computing the smallest enclosing ball
radius (miniball radius) of sets of three points in two and three dimensions and
four points in three dimensions.These are used to produce Delaunay-Čech filtrations, which can be used to
compute Čech persistence diagrams of points in two and three dimensions.Wrappers are provided for computing Čech persistence diagrams withgudhifor points in two and three dimensional space.InstallationThesetuptools,numpy,scipy, andgudhiPython packages are
prerequisites for using this package.The last one can be installed withcondarunning>>> conda install -c conda-forge gudhiYou'll also needpybind11,cmakeand aC++compiler in order to install this
package. It is recommended to install bothpybind11andcmakeviaconda.>>> conda install -c anaconda cmake
>>> conda install -c conda-forge pybind11Finally run the following command to build and install this Python package>>> pip install delcechfiltrIf the command above fails to build this package, tehn you might want to clone
this repository to a directorydelcechfiltr/on your computer and run>>> cd /<path>/<to>/<cloned>/<repo>/delcechfiltr/
>>> python setup.py installwhich outputs more information on the errors causing the build to fail.Windows.After installingconda, run the above commands within anAnaconda prompt. For the C++ compiler installVisual Studio community.Basic usageimportnumpyasnpimportdelcechfiltr.dgmsn,d=20,3np.random.seed(0)pts=np.random.rand(n,d)dgm_H0_cech1,dgm_H1_cech1=delcechfiltr.dgms.cech(pts,persistence_dim_max=False)dgm_H0_cech2,dgm_H1_cech2,dgm_H2_cech2=delcechfiltr.dgms.cech(pts,persistence_dim_max=True)dgm_H0_delcech1,dgm_H1_delcech1=delcechfiltr.dgms.delcech_3D(pts,persistence_dim_max=False)dgm_H0_delcech2,dgm_H1_delcech2,dgm_H2_delcech2=delcechfiltr.dgms.delcech_3D(pts,persistence_dim_max=True)