Saravanan666/pypi-org huggingface dataset:
Package: dvg-debug-functions
DvG_debug_functionsProvides functions for neatly printing debug information to the terminal
output, well-suited for multithreaded programs.Supports PyQt5, PyQt6, PySide2 and PySide6.Github:https://github.com/Dennis-van-Gils/python-dvg-debug-functionsPyPI:https://pypi.org/project/dvg-debug-functionsInstallation:pip install dvg-debug-functionsAPIFunctionsprint_fancy_traceback(err=None, back: int = 3, show_full_paths: bool = False)Print the exception or the current regular call-stack traceback to the
terminal, using ANSI color codes that mimic the IPython command shell.Args:err (Exception|str|None, optional):Whenerris of typeException, then an exception traceback will
be printed. Whenerris of another type, then the current regular
call-stack traceback will be printed.Default:Noneback (int, optional):Depth of the traceback to print.Default:3show_full_paths (bool, optional):Shows the full filepath in the traceback when True, otherwise just
the filename.Default:FalseExample output:dprint(str_msg: str, ANSI_color: str = None)‘Debug’ print a single line to the terminal with optional ANSI color
codes. There is a lot of overhead using this print statement, but it is
particularly well-suited for multithreaded PyQt programs where multiple
threads are each printing information to the same terminal. Thedprint()function ensure that each line sent to the terminal will remain as a
continious single line, whereas a regularprint()statement will likely
result in the lines getting mixed up.The line will be terminated with a newline character and the terminal output
buffer is forced to flush before and after every print. In addition, if
PyQt5 is present in the Python environment, then a mutex lock will be
obtained and released again for eachdprint()execution.tprint(str_msg: str, ANSI_color: str = None)Identical todprint(), but now prepended with atime.perf_counter()timestamp.ClassesclassANSI:NONE=""RED="\033[1;31m"GREEN="\033[1;32m"YELLOW="\033[1;33m"BLUE="\033[1;34m"PURPLE="\033[1;35m"# aka MAGENTAMAGENTA="\033[1;35m"CYAN="\033[1;36m"WHITE="\033[1;37m"Changelog2.4.0 (2022-09-13)Neater support for PyQt5, PyQt6, PySide2 and PySide6Migrated from travis to Github actions2.2.0 (2022-09-13)Added support for PyQt5, PyQt6, PySide2 and PySide62.1.1 (2020-07-18)Added flagshow_full_pathstoprint_fancy_traceback()2.1.0 (2020-07-17)Improvedprint_fancy_traceback()2.0.0 (2020-07-02)DvG module filenames changed to lowercase1.1.2 (2020-06-08)Code style: black1.1.1 (2020-06-06)Extended README1.1.0 (2020-06-04)Addedtprint(…)0.0.1 (2020-05-13)First release on PyPI.
Package: dvg-pid-controller
DvG_PID_ControllerPID controller with integral-windup & derivative-kick prevention and bumpless
manual-to-auto-mode transfer.Github:https://github.com/Dennis-van-Gils/python-dvg-pid-controllerPyPI:https://pypi.org/project/dvg-pid-controllerInstallation:pip install dvg-pid-controllerBased on C++ code by:/******************************************************************************
* Arduino PID Library - Version 1.2.1
* by Brett Beauregard <br3ttb@gmail.com> brettbeauregard.com
*
* This Library is licensed under the MIT License
******************************************************************************/More information:http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/http://playground.arduino.cc/Code/PIDLibraryPorted to Python by Dennis van Gils.Modifications:Code refactoring.P_ON_M mode has been removed.Made the proportional, integrative and derivative terms accessible.Made the last error accessible.Added optional argumentdifferential_inputto have the PID controller
regulate a specific difference with respect to the main argumentcurrent_input. The specific difference that will be regulated is set bysetpoint.
Contributor:https://github.com/antonverburg.Changelog2.1.1 (2023-02-27)Deprecatedrequires.io2.1.0 (2021-12-04)Made the last error accessibleAdded optional argumentdifferential_inputto have the PID controller
regulate a specific difference with respect to the main argumentcurrent_input. The specific difference that will be regulated is set bysetpoint.
Contributor:https://github.com/antonverburg.2.0.2 (2021-12-04)(yanked, should have been minor version increment instead of patch)2.0.1 (2021-12-03)(yanked, should have been minor version increment instead of patch)2.0.0 (2020-07-02)DvG module filenames changed to lowercase1.0.1 (2020-06-29)Fixed Readme typo1.0.0 (2020-06-29)First release on PyPI
Package: dvg-pyqt-controls
DvG_PyQt_controlsMishmash of PyQt/PySide stylesheets and custom controls that I personally use
in many of my projects.Supports PyQt5, PyQt6, PySide2 and PySide6.Github:https://github.com/Dennis-van-Gils/python-dvg-pyqt-controlsPyPI:https://pypi.org/project/dvg-pyqt-controlsInstallation:pip install dvg-pyqt-controlsChangelog1.4.0 (2023-03-20)Adjusted theSS_GROUPBOXstylesheet: Groupbox title is now vertically
aligned to be centered with the top line, regardless of the Qt lib. Nothing
changes for PyQt5/PySide2, and fixes PyQt6/PySide6.Added functione8()to calculate the pixel width that is necessary to fitNnumber of ‘8’s in the suppliedfont. In analogy to the ‘em’ font-metric,
but now focused on displaying numeric values.1.3.0 (2023-02-27)Neater support for PyQt5, PyQt6, PySide2 and PySide61.2.0 (2022-09-13)Added support for PyQt5, PyQt6, PySide2 and PySide61.1.0 (2022-01-21)Vamped up styles conformDvG_Arduino_lock-in_amp v2.0projectAdded hover effectsAdded SS_GROUP_RECT, SS_HOVER & SS_TABSAdded PyQtGraph color definitions1.0.0 (2020-08-11)First release on PyPI
Package: dvg-pyqtgraph-monkeypatch
DvG_PyQtGraph_MonkeypatchMonkeypatch for pyqtgraph==0.11.0 resulting in superior OpenGL performance in contrast to more recent 0.11.1 to 0.12.3This monkeypatch is safe to import and will only get applied when it detects the
correct PyQtGraph versionpyqtgraph == 0.11.0. For other versions it will
not affect anything at all. Also, when not using OpenGL in experimental mode,
nothing changes.Github:https://github.com/Dennis-van-Gils/python-dvg-pyqtgraph-monkeypatchPyPI:https://pypi.org/project/dvg-pyqtgraph-monkeypatchInstallation:pip install dvg-pyqtgraph-monkeypatchReason for monkeypatchThis patch is intended for PyQtGraph with OpenGL acceleration enabled as such:import pyqtgraph as pg
import OpenGL.GL as gl  # pylint: disable=unused-import
pg.setConfigOptions(useOpenGL=True)
pg.setConfigOptions(enableExperimental=True)
pg.setConfigOptions(antialias=True)Above code will enable OpenGL acceleration within PyQtGraph and adds
anti-aliasing to the chart curves. However, from versions0.11.0to0.12.2it will not draw the linewidth of the curves correctly and they remain at 1
pixel width, regardless of the set linewidth. This patch fixes the linewidth
issue.Why do I fix the PyQtgraph version for this monkeypatch to0.11.0? Several
reasons:0.11.0draws the axis tick labels at the borders of thepyqtgraph.PlotWidgetnicely, without cutting them off mid-way of the
label itself. From0.11.1and up the tick labels will be cut off when
they are at the border. That can be very confusing when reading the graph.The most recent version at time of writing (0.12.3) actually has fixed
the linewidth issue. However, the previous problem on the tick labels still
applies.It appears that0.11.0has superior plotting performance in frames per
second / CPU load in contrast to0.12.0and up. This was confirmed and
tested in another of my projectshttps://github.com/Dennis-van-Gils/DvG_Arduino_lock-in_amp.
There is a different method used to render the graphs in OpenGL in these
more recent PyQtGraph versions.UsageYou only have to import the module into your Python code after you have imported
PyQtGraph. That’s all. The patch will then be applied automatically.import dvg_monkeypatch_pyqtgraph  # pylint: disable=unused-importChangelog2.0.0 (2022-01-20)Turned into a separate PyPi package with proper documentation.1.0.0 (?)First but unreleased version. Was bundled together with every separate
project instead.
Package: dvg-qdeviceio
DvG_QDeviceIOHassle-free PyQt/PySide interface for multithreaded data acquisition and communication with an I/O device.It will manage many necessary components for proper multithreading – creation
and handling of the threads, workers, signals and mutexes –for you, reducing
it to just a few simple method calls of a QDeviceIO class instance to get set up
and going.Supports PyQt5, PyQt6, PySide2 and PySide6.Documentation:https://python-dvg-qdeviceio.readthedocs.ioGithub:https://github.com/Dennis-van-Gils/python-dvg-qdeviceioPyPI:https://pypi.org/project/dvg-qdeviceioInstallation:pip install dvg-qdeviceioChangelog1.2.0 (2023-02-27)Deprecatedrequires.ioandtravisRaiseImportErrorinstead of generalException1.1.2 (2022-10-26)Minor refactor of mechanism to support PyQt5, PyQt6, PySide2 and PySide61.1.1 (2022-09-14)Forgot to bump requirementdvg-debug-functions~=2.2to ensure support for
PyQt5, PyQt6, PySide2 and PySide61.1.0 (2022-09-13)Added support for PyQt5, PyQt6, PySide2 and PySide61.0.0 (2021-07-02)Stable release, identical to v0.4.00.4.0 (2021-05-09)Fixed buggyworker_DAQpause and unpause routines inCONTINUOUSmode0.3.0 (2020-07-23)Updated start & stop machinery WorkersRemoved unneccesary lambdasRevamped DAQ rate calculation. Init argcalc_DAQ_rate_every_N_itergot removed.0.2.2 (2020-07-17)Traceback will be printed whenDAQ_functionraises an internal error.IntroducedWorker_###._has_finishedto prevent hang when closing workers twice.0.2.1 (2020-07-15)Added documentation0.2.0 (2020-07-07)quit_worker_###(): Added check to see if thread was already closed, due to alost_connectionevent. This prevents an hanging app during quit.Changed name of enum classDAQ_triggertoDAQ_TRIGGER0.1.2 (2020-07-04)Proper use ofsuper(), now passing**kwargsonto subclassQtCore.QObject()0.1.1 (2020-07-02)Worker_DAQnow stores all init arguments, some as _private0.1.0 (2020-07-02)DvG module filenames changed to lowercaseNearing full release status0.0.12 (2020-06-29)INTERNAL_TIMER: Already instantiate theQTimerincreate_worker_DAQ(), instead of instart_worker_DAQ()Changed defaultDAQ_timer_typefromCoarseTimertoPreciseTimerAdded more Sphinx documentation0.0.11Skipped (I screwed up the versioning)0.0.10 (2020-06-22)Major: Changed nameWorker_sendtoWorker_jobsand similarAdded more Sphinx documentation0.0.9 (2020-06-17)Moved theWorker_###()classes outside ofQDeviceIOand into module rootAdded documentation using Sphinx and Read the docsChanged from MarkDown to ReStructuredText0.0.8 (2020-06-09)Addedpause_DAQ,unpause_DAQ(),wake_up_DAQ()Changed many attribute and method namesCode style: black0.0.6 (2020-06-07)Addedstart(), renamedquit_all_workers()toquit()Addedsend(),add_to_send_queue(),process_send_queue()0.0.5 (2020-06-06)Implemented smooth start and stop machinery to the workers0.0.1 (2020-05-25)First release on PyPI
Package: dvg-randomizer
NAMEdvg-randomizer - gui to randomize your squadron for DVG Air Leader gamesDESCRIPTIONDan Verssen Games (DVG) publishes awesome boardgames putting you in command of
a squadron for a given campaign. One of the modes is to have a random squadron,
and this app just does that: it provides a way to easily randomize your
squadron according to available planes & pilots. It can also generate a
logsheet to use for the game.As of today, the soft supports:Hornet Leader: Carrier Air Operation, with the Cthulhu conflict
expansion and the expansion #1Phantom Leader, with the expansion #1Israeli Air Force Leader, with its expansion #1Corsair LeaderZero Leader, with its China expansionStuka Leader, with all expansions (East Front 1&2, Mediterranean 1&2,
Spanish Civil War, What if)INSTALLJust install via pip:pip install dvg-randomizerOnce installed, launch the app via the dvg-randomizer script:dvg-randomizerSUPPORTThe homepage for this program ishttps://github.com/jquelin/dvg-randomizer,
where you will be able to find the source code and a bug tracker.AUTHORJérôme Quelinjquelin@gmail.comCOPYRIGHT AND LICENCEThis software is copyright (c) 2022 by Jerome Quelin.This is free software; you can redistribute it and/or modify it under
the terms of the GNU GPLv3 license - see LICENSE and COPYING files.
Package: dvha-edit
DVHA DICOM EditorSimple DICOM tag editor built withwxPythonandpydicomExecutablesprovided, which require no installationCreate templates for routine tag editingSearch for DICOM tags by keywordDynamically define new DICOM tag values based on:File pathsInitial DICOM tag valuesDICOM compliant UIDsLookup DICOM prefixesSet entropy source for UID generationMaintain cross-file UID linksRandomly generated numbersSource-Code InstallationTo install via pip:pip install dvha-editIf you've installed via pip or setup.py, launch from your terminal with:dvhaeditIf you've cloned the project, but did not run the setup.py installer, launch DVHA DICOM Editor with:python dvhaedit_app.pyDynamic Value SettingUsers can dynamically define new DICOM tag values based on file path or initial DICOM tag values.Available FunctionsFile path / Tag Value:file[n]: the nthcomponent of the file pathval: DICOM tag valueEnumeration:fenum[n]: an iterator based onfile[n]venum: an iterator based onvalDICOM UIDfuid[n]andvuid: same asfenum/venum, except the enumeration value is replaced with a
DICOM compliant UIDRandom Numberfrand[n]andvrand: same as DICOM UID functions except the value is a random integerExamplesFor a directory/some/file/path/ANON0001/containing filesfile_1.dcm,file_2.dcm:Directory:NOTE: file extensions are removedsome_string_*file[-1]*some_string_file_1some_string_file_2*file[-2]*_AnotherStringANON0001_AnotherStringANON0001_AnotherStringFile Enumeration:some_string_*fenum[-1]*some_string_1some_string_2*fenum[-2]*_AnotherString1_AnotherString1_AnotherStringValue Enumeration:NOTE: Assume these two files have the same StudyInstanceUID but different SOPInstanceUIDs*file[-2]*_*venum*used with SOPInstanceUID tagANON0001_1ANON0001_2*file[-2]*_*venum*used with StudyInstanceUID tagANON0001_1ANON0001_1MultiValue TagsSome DICOM tags point to multiple values (i.e., MultiValue pydicom class). As of
DVHA DICOM Editor v0.6, a new DICOM tag value can be interpreted as a list if it begins
with[, ends with], and uses,(comma-space) as a separator (this is the same
format as python'sstrrepresentation of a list). Do not add quotes to make an item a string.
All value typing is handled by pydicom.ExampleThe DICOM tagImageOrientationPatient(0020, 0037) is a list of 6 integers. If you want
this orientation to be head first-supine (HFS), it's value should be set to[1, 0, 0, 0, 1, 0].=========================== =======================
Orientation                 ImageOrientationPatient
=========================== =======================
Feet First Decubitus Left   [0, 1, 0, 1, 0, 0]
Feet First Decubitus Right  [0, -1, 0, -1, 0, 0]
Feet First Prone            [1, 0, 0, 0, -1, 0]
Feet First Supine           [-1, 0, 0, 0, 1, 0]
Head First Decubitus Left   [0, -1, 0, 1, 0, 0]
Head First Decubitus Right  [0, 1, 0, -1, 0, 0]
Head First Prone            [-1, 0, 0, 0, -1, 0]
Head First Supine           [1, 0, 0, 0, 1, 0]
=========================== =======================
https://arxiv.org/ftp/arxiv/papers/1406/1406.0014.pdf Table 1
Package: dvh-analytics
DVH Database for Clinicians and ResearchersDVH Analytics is a software application to help radiation oncology departments build an in-house database of
treatment planning data for the purpose of historical comparisons and statistical analysis. This code is still in
development. Please contact the developer if you are interested in testing or collaborating.The application builds a SQL database of DVHs and various planning parameters from DICOM files (i.e., Plan, Structure,
Dose). Since the data is extracted directly from DICOM files, we intend to accommodate an array of treatment planning
system vendors.
Package: dvha-stats
A library of prediction and statistical process control tools. Although based
on work inDVH Analytics, all tools in this
library are generic and not specific to radiation oncology. See
ourdocumentationfor advanced uses.What does it do?Read data from CSV, supply as numpy array or dictBasic plottingSimple one-variable plots from dataControl Charts (Univariate, Multivariate, & Risk-Adjusted)Heat Maps (correlations, PCA, etc.)Perform Box-Cox transformationsCalculate Correlation matricesPerform Multi-Variable Linear RegressionsPerform Principal Component Analysis (PCA)Other informationFree software:MIT licenseDocumentation:Read the docsTested on Python 3.6, 3.7, 3.8Dependenciesscipynumpyscikit-learnregressorsmatplotlibPTableBasic Usage>>>fromdvhastats.uiimportDVHAStats>>>s=DVHAStats("your_data.csv")# use s = DVHAStats() for test data>>>s.var_names['V1','V2','V3','V4','V5','V6']>>>s.show('V1')# or s.show(0), can provide index or var_nameMultivariate Control Chart (w/ non-normal data)>>>ht2_bc=s.hotelling_t2(box_cox=True)>>>ht2_bc.show()Principal Component Analysis (PCA)>>>pca=s.pca()>>>pca.show()
Package: dvidtools
dvidtoolsPython tools to fetch data fromDVIDservers.Find the documentationhere.Want to query a neuPrint server instead? Check outneuprint-python.What candvidtoolsdo for you?get/set user bookmarksget/set neuron annotations (names)download precomputed meshes, skeletons (SWCs) and ROIsget basic neuron info (# of voxels/synapses)get synapsesget connectivity (adjacency matrix, connectivity table)retrieve labels (TODO, to split, etc)map positions to body IDsmesh or skeletonize sparsevolsdetect potential open ends (based on a script byStephen Plaza)InstallMake sure you havePython 3(3.6 or later),pip. Then run this:pip3installdvidtoolsTo install the dev version straight from Github:pip3installgit+https://github.com/flyconnectome/dvid_tools@masterOptional dependenciesNecessary dependencies will be installed automatically.If you plan to use the tip detector with classifier-derived confidence, you
will also needsciki-learn:pip3installscikit-learnFor from-scratch skeletonization you need to installskeletor:pip3installskeletorExamplesPlease see thedocumentationfor examples.TestingFor testing you need to have two environment variables set:DVID_TEST_SERVERandDVID_TEST_NODE. These should point to a DVID server/node that contain
the Janelia hemibrain dataset. Then run:$pytest-v
Package: dvipy
DVIpy is a library for reading TeX’s DeVice Independent (DVI) files. It is also
a library for running TeX as a “daemon” process, whereby it is given input and
responds with a list of glyphs and their positions. Virtual fonts are treated
transparently: that is, DVIpy just responds with the glyphs from the font
files.This module should currently be useful for anyone wishing to do some form of
semi-interactive TeX work. It was written as part of a currently unreleased and
unnamed graphics package, the backend to a publication-oriented plotting
package.Installation should be as usual:$ python setup.py installPython 3 is not currently supported, due to changes in file locking which I
have as yet been unable to fix.TeX ‘styles’ can be placed in ~/.local/share/dvipy/templates/${name}.texA style is a tex file – see the example in the src/dvipy/templates directorySee examples/ for the singular example. Due to the ‘backend’ nature of DVIpy,
there is quite a lot of wrangling with cairo to actually make it use freetype.DVIpy is released under the GPLv2, and comes with ABSOLUTELY NO WARRANTY. You
should have received a copy of the license (usually in the file LICENSE) with
this software.
Package: dvis
DVIS: 3D Visualizations made easyVisualize your data with just one line of codePython -> Browser💻 Usagefromdvisimportdvisdvis("mesh.obj")# load filedvis(point_cloud,vs=0.03)# point cloud with specific voxel sizedvis(bboxes,'bbox',c=3,name='my_boxes')# show colored boxesdvis(np.array([0,0,0,1,2,3]),'vec')# vector from origin to (1,2,3)dvis(transform,'transform')# display transformationdvis(img,'img')# display an image using visdomCheck out more examples in./examplespython examples/meshes.py
python examples/point_clouds.py
python examples/...News0.8.8.0: Bumped dependencies version, custom port supportdvis(port=<PORT>) # set port the client is sending on
dvis(vis_port=<PORT>) # set the port for visdom0.8.7.0: CLI for server: To start the server, use rundvis-server [--no_visdom]0.8.6.0: Histogram support using plotlydvis(array, "hist", mi=0.1,ma=0.8, nbins=10, name="Example histogram")0.8.4.0: Label and range image support, auto-format for imgdvis(label_img [fmt='xyl']) # visualizses img of labels
dvis(depth_map [fmt='xyr', cm='jet']) # visualizes an image of continuous values using cv2 color map
dvis(heat_map [fmt='xyr', cm='hot'])🚀 Getting started1. Install thedvispackage:Via pypi:pip install dvisor from source:git clone git@github.com:SirWyver/dvis.git
cd dvis
pip install .2. Start the web server# From the dvis repository folder:
dvis-serveror manuallycd server
python server.pyVerify you can openhttp://localhost:5001/and see something like this:Optionally, also startvisdomto display images/videos/charts:visdom -p 4999The visdom server should be accessible athttp://localhost:4999/.Try out the clientimportnumpyasnpfromdvisimportdvisdvis(np.random.rand(1000,6),s=0.03)# sends randomly colored 1000x3 point cloud to the 3d serverdvis("static/icon.png","img")# sends an image to the 2d serverVerify you can see a colored point cloud📖  DocumentationFor an overview of available commands check out thedocumentationShotcutsShortcutDescriptionEditorwTranslateeRotaterScalezUndofFocusDVISvShow/hide selected object1-5Toggle layer 1-50Toggle all layersShift + 0-5Show layer 0-5 add.gShow/hide grid & axes helpernNext keyframebPrevious keyframe.Next frame,Previous frametSwitch camera[Download screenshot
Package: dvm
The Discrete Voter ModelThe Discrete Voter Model is a method of ecological inference that grew out ofHakeem Angulu'sundergraduatethesisfor the departments of Computer Science and Statistics at Harvard College.This new method of solving the ecological inference problem, using a mixture of contemporary statistical computing techniques, is implemented here. It can be used for multiple racial groups and candidates, and is shown to work well on randomly-generated mock election data.The requirements can be installed with the includedPipfile. Gohereorherefor more information on how to usePipenv.
Package: dvmncards
Create anki cards and export it in .apkgHow to installpip3installdvmncardsHow it worksThe first step is to create a new deck:deck- is a deck of cards.If you want to create new deck :deck=getEmptyCol()Add a new card:front- it's the front side of the cardback- it's a backside of card.answer- it's an extra field for input type card.css- it's a style of card.add_new_card(deck,front,back,css=None,explination=None)If you want to add an image, you need to:image- it's a binary format of the imagename_deck- it's a name of deck it will use for the name of the image.extension_image- it's an extension for image.add_image(deck,image,name_deck='example',extension_image='.jpeg')Export in .apkg extension:export_path- it's the path where you will upload the file.export_ankipkg(deck,export_path)Examplesdefcreate_anki_cards():#create new deckdeck=getEmptyCol()#add new baicCard to deckadd_new_card(deck,front,back)#add new inputCard to deck with new cssadd_new_card(deck,front,back,css=css,explination=explination)#upload image to media deckadd_image(deck,image,image_name='expame',extension_image='.jpeg')#export deck in .apkgexport_ankipkg(deck,export_path)