Saravanan666/pypi-org huggingface dataset:
Package: draw-mempool
Bitcoin Mempool InspectorA tool to inspect and filter mempool transactions and their dependencies. This currently
requires a locally running version of bitcoind and will usebitcoin-clito pull
data about the mempool and block template info.RequirementsBitcoin Core >= v0.17Python 3.4, 3.5, 3.6Matplotlib v2 dependenciesTK for PythonInstall System Dependenciessudo apt-get install python3-dev python3-tk
sudo apt-get build-dep python-matplotlibIf thebuild-depcommand does not work, you may need to enable thedeb-srcrepositoryInstallation Ubuntu & DebianTo Install Withpippip3 install draw_mempoolTo Install from Sourcegit clone https://github.com/conscott/draw_mempool
cd draw_mempool
python3 -v venv venv
source venv/bin/activate
python3 setup.py installTry it out./draw_mempool.py --helpExamples# Only show transactions with ancestor dependencies within last 60 minutes with a fee-rate
# above 20 sat/byte
./draw_mempool.py --minancestors=2 --minfeerate=20 --maxage=60  

# Show high fee transactions (above 300 sat/byte)
./draw_mempool.py --minfeerate=300

# Animate live mempool, coloring tx's to be included in next block as blue
./draw_mempool.py --maxage=10 --animate --color_bt

# Color transactions signaling RBF
./draw_mempool.py --color_rbf 

# Draw the 2-block fee estimate as a horizontal line, as well as coloring 
# transactions to be included in the next block
./draw_mempool.py --nestimatefee=2 --color_btEventsClicking on a tx will print the tx hash and fee / size information.Double clicking on a transactions will open a browser tab, to inspect the tx on blockstream.infoClicking the 'm' button will redraw the mempool without the txs included ingetblocktemplate, to help visualize what the mempool would look like after the next block is mined (can help with fee estimates).You can zoom and pan using the buttons provided in the lower menu.Known IssuesThis program gets quite slow when there is a large mempool and does best when there are less than 10,000 transactions to draw. You can use the tx filter functions (like--maxage) to reduce the total txs drawn.When using--animate, the zoom will reset on every re-draw.
Package: drawnmr
What is drawnmr?drawnmris a module for viewing NMR data in Python. When used with thenmrglueandbokehpackages,drawnmrprovides functions to view and
interact with NMR data.drawnmris a wrapper aroundnmrgluecapabilities and provide helper functions
to show the data in bokeh, which is an interactive visualisation library.The main purpose is to show NMR data in a Jupyter Notebook.
If a Jupyter Notebook installation is not running,bokehallow
the output to be saved to static HTML files.nmrglueis used for processing nmrdata, andbokehis used
for showing and interacting. The functionget_contour_widget()create ipywidgets to easily control contour levels. The functionget_peakpick()callsnmrgluepeakpick.pick()to find peaks,
convert from data point to ppm coordinates, store in apandasdataframe for
easy inspection and add the peaks to thebokehplot.Important linksSource code:https://github.com/tlinnet/drawnmrPyPI package:https://pypi.python.org/pypi/drawnmrLink tonmrglue:https://www.nmrglue.comandhttps://github.com/jjhelmus/nmrglueLink tobokeh:https://bokeh.pydata.organdhttps://github.com/bokeh/bokehSee examplesUsenbviewer.jupyter.orgto:See default Notebook 15N/13C 2D contour:nmrglue_s4_2d_plotting.ipynbSee how to use widgets to alter contour levels:contour_widget.ipynbSee how to use nmrglue peak pick, print table and show:contour_find_peaks.ipynbLaunch interactive Jupyter Notebookmybinder.orgto try examples:How to install?If using conda, these steps will install an environment# With pip from https://pypi.python.org/pypi/drawnmrpipinstalldrawnmrDeveloper install for local conda environment:# Create environmentcondaenvcreate-fenvironment.yml# Activate environmentcondaenvlistsourceactivatedrawnmr# Enable ipywidgetsjupyternbextensionlistjupyternbextensionenable--pywidgetsnbextension--sys-prefix# Start jupyterjupyternotebookOr manual install in root environment:# Manually install packagepythonsetup.pyinstall--force#  Manually uninstallpythonsetup.pyinstall--recordfiles.txtPACK=`dirname$(head-n1files.txt)`rm-rf$PACK#cat files.txt | xargs rm -rfDeveloperGuide for upload:http://peterdowns.com/posts/first-time-with-pypi.htmlUpdated info:https://packaging.python.org/guides/migrating-to-pypi-org/#uploadingPyPI test account:http://testpypi.python.org/pypi?%3Aaction=register_formPyPI Live account:http://pypi.python.org/pypi?%3Aaction=register_form# Modify version in: drawnmr/__init__.py# Create tagVERS=`python-c"from drawnmr import __version__; print(__version__)"`# Adds a tag so that we can put this on PyPIgittag$VERS-m""gitpush--tagsoriginmaster# Upload your package to PyPI Testpythonsetup.pysdistupload-rpypitestopenhttps://testpypi.python.org/pypi/drawnmr# Upload to PyPI Live
# Once you've successfully uploaded to PyPI Test, perform the same steps but point to the live PyPI server instead.pythonsetup.pysdistupload-rpypiopenhttps://pypi.python.org/pypi/drawnmr
Package: drawnow
drawnowfor matplotlibThe scientific community often runs iterative code, often in the form of
simulation. It's often useful to see the results after each iteration.
Accordingly, MATLAB® has a nice feature that allows you to update the
figure,drawnow. This repo brings the same feature to Python's
matplotlib, with some extras.Example:This is shown withimshow, but python-drawnow allows updates of any
figure.Usage:# complete implementation of script found in test/test.pyfrompylabimport*fromdrawnowimportdrawnow,figure# if global namespace, import plt.figure before drawnow.figuredefapprox(x,k):"""Approximate x with k singular values"""...figure(figsize=(7,7/2))defdraw_fig():subplot(1,2,1)imshow(x)subplot(1,2,2)imshow(x_hat)#show()x=imread('test-data/mandrill.png').mean(axis=2)k_values=around(logspace(0,2,num=10))forkink_values:x_hat=approx(x,k)drawnow(draw_fig)DocumentationIf you want to wait for confirmation after update or the option to drop
into a debugger, calldrawnow(function_to_draw_figure, confirm=True).If you only want to show the figure once, calldrawnow(function_to_draw_figure, show_once=True). The full
documentation is included in the doc strings. Usedrawnow?orhelp(drawnow)to see these docs.Jupyter/SpyderTry running the folloowing code in a Jupyter input cell/in the
console/etc:%matplotlibThis will disable the Matplotlin inline mode and use the default
plotting backend. For more detail, see theIPython plotting
documentation.InstallationTwo options:Runpip install drawnow.Download this repository and runpython setup.py install.Option 2 assumes a working Python installation withpip. I suggest
Anaconda's distribution:https://www.anaconda.com/distribution/For
other options, seehttps://realpython.com/installing-python/.Changes to codeThis does requiresmallchanges to your code. All it should really
amount to is movingfigure(); plot(...); show()inside a function; not
much.
Package: draw-rna
draw_rnaGenerate quick secondary structures of nucleic acids via jupyter notebook or command line.A communal and continuing effort by the Das Lab, Eterna Players, M. Wu, H. Wayment-Steele.DependenciesThe default behavior is to output the secondary structure visualization to both svg and png. The png requires Inkscape, whose directory must be set by environmental variableINKSCAPEDIR.InstallClone this repository to your hard drive and install as follows:git clone git@github.com:DasLab/draw_rna.git
cd draw_rna/
python setup.py installWarningif you see errors in using the repository, it maybe due to yourdraw_rnadirectory sitting in a folder likesrc/which already is in your Python Path. in that case,renamedraw_rnatodraw_rna_directoryand/or move it to another spot in your system.Basic UsageJupyter notebookSeeexample_files/demo.ipynbfor more. In brief:Input fileAn input file is used to specify the sequence, secondary structure, and coloring of the desired drawing. The format is as followsfilename      # image will be written to filename.svg
GTGANNNNNTCAC # nucleic acid sequence
((((.....)))) # nucleic acid secondary structure in dot-bracket notation
rrrrbbbbbgggg # optional: coloring of each base (e.g. r for red, g for green, b for blue)Multiple sequences can be specified in one file as inexample_input.txt.ExecutionThe draw script can be run withpython draw_rna/draw_all.py example_files/command_line/example_input.txtYou'll get filesexample_contours.svg,example_sequence_colors.svg,example_specific_colors.svg. Example output available inexample_files/command_line/.Sample secondary structure diagrams:Notes on usageMultistrand drawingAt the moment, current practice is to include blanks between strands such as:filename     
GTGANN NNTCAC
((((.....))))
rrrrbbwbbggggAnd then remove nucleotides corresponding to blanks afterwards. (This would be a quick fix.)NOTE ON render_rna and render_rna_flip:'render_rna_flip.py' is what is currently called in the main routine and where major edits have been made.render_rna.pyrenders 3' -> 5'. TODO: handle 3' -> 5' drawing better.Extended optionsDraw a large thing with linear exterior loop and with a custom color vector:python draw_all.py covid19_5primeUTR.txt --large_mode --color_values perc_conserved_5UTR.txt --pngIf you use--color_valueswith an input file with multiple structures, the same colors will be applied to all the structures.Draw from RDAT file containing reactivityRequires RDATkit to be in working python path. Example command:python draw_from_rdat.py ETERNA_R69_0000.rdat 297 --pngMovie modeMore coming eventually. For now, if you generate a bunch of stills, say from a cotranscriptional simulation, can string them together with ImageMagick:convert -delay 25 my_stills_*.png my_great_trajectory.gif
Package: draws
draws: lightweight AWS Diagram Automationdrawsis a dependency-free tool for automating AWS architecture diagram creation.InstallpipinstalldrawsExample Usage (from cdk app)AddDiagrams.of(app)beforeapp.synth().app.py:fromaws_cdkimportAppfromdrawsimportDiagramsfrominfra.api_to_s3_stackimportApiToS3Stackfrominfra.s3_bucket_stackimportS3BucketStackapp=App()bucket_stack=S3BucketStack(app,f"draws-dev-bucket",public_prefix="public")docs_ui_stack=ApiToS3Stack(app,f"draws-dev-docs-ui",bucket=bucket_stack.bucket)# Pass the cdk app into Diagrams.of() (directory defaults to app.py location)Diagrams.of(app,directory="examples/output")app.synth()Runcdk lsto generate diagrams for each stack.output:$cdkls
Diagramsavedto:examples/output/draws-dev-bucket.diagram.svg
Diagramsavedto:examples/output/draws-dev-docs-ui.diagram.svgExample Usage (from template)importosfrompathlibimportPathfromdrawsimportDiagramif__name__=="__main__":curr_dir=Path(os.path.abspath(os.path.dirname(__file__)))templates_dir=curr_dir/"cdk.out"D=Diagram.from_template(filename=templates_dir/"my-stack.template.json",title="My AWS Stack",)D.to_svg()Example Usage (manual)importosfrompathlibimportPathfromdrawsimportDiagram,Elemif__name__=="__main__":withDiagram(title="My AWS Stack")asD:rest_api=Elem("AWS::ApiGateway::RestApi","Rest API")lambda_func=Elem("AWS::Lambda::Function","Lambda")bucket=Elem("AWS::S3::Bucket","Bucket")rest_api>>lambda_funcrest_api<<lambda_funclambda_func>>bucketD.to_svg()
Package: drawsomething
Help you guess drawsomething words by brute force all permutations.Dependspyenchantgoogle-translateInstall GuideTake OS X for example.Drawsomething depends on enchant to do spell checking.As pyenchant is only a python binding for enchant, we need to install enchant first. And we also need to install aspell with en dict because enchant use aspell as backend.$ brew install aspell --lang=en
$ brew install enchant
$ pip install pyenchant google-translateUsageOne line script to generate all possible words:>>> import drawsomething
>>> drawsomething.get_words('esttxyz', 4)
['ttys', 'sexy', 'yest', 'text', 'sett', 'zest', 'stet', 'test']To list words with translations:>>> import drawsomething
>>> words = drawsomething.get_words('esttxyz', 4)
>>> for w in words:
>>>     trans = drawsomething.translate(w, 'zh_cn').lower()
>>>     print w, transThedrawsthis a cli script to list all possible words:$ drawsth -l 4 -c esttxyz
ttys
sexy
yest
text
sett
zest
stet
test
Package: drawtable
# Drawtable (csvless)Drawtable is a python library for drawing ASCII table with text data.It also contains a command line tool called `csvless`that helps you view csv files without hassle.## Installation```pip install drawtable```## Usage### CLI toolFor details please see `csvless -h`, here are some typical examples:```$ csvless samples/foo.csv$ csvless -s markdown samples/foo.csv$ csvless -s markdown --cat samples/foo.csv$ csvless -s box -N samples/foo.csv$ csvless -s box -N -n samples/foo.csv$ csvless -H samples/foo.csv$ csvless -w 10 --no-wrap samples/foo.csv```### LibraryDraw table box for list data:```python>>> from drawbox import Table>>> tb = Table(...     margin_x=1,...     margin_y=0,...     align='left',...     col_max_width=40,... )>>> tb.draw([...     ['project', 'url'],...     ['drawbox', 'https://github.com/reorx/drawbox'],>>> ])┌─────────┬──────────────────────────────────┐│ project │ url                              │├─────────┼──────────────────────────────────┤│ drawbox │ https://github.com/reorx/drawbox │└─────────┴──────────────────────────────────┘```Draw a simple one cell box:```python>>> from drawbox import Table>>> tb = Table(...     margin_x=1,...     margin_y=0,...     align='center',...     col_max_width=40,... )>>> tb.draw([[...     """Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."""... ]])┌──────────────────────────────────────────┐│ Lorem ipsum dolor sit amet, consectetur  ││ adipiscing elit, sed do eiusmod tempor i ││ ncididunt ut labore et dolore magna aliq ││ ua. Ut enim ad minim veniam, quis nostru ││ d exercitation ullamco laboris nisi ut a ││     liquip ex ea commodo consequat.      │└──────────────────────────────────────────┘```
Package: drawtree
drawtree========.. image:: https://img.shields.io/pypi/v/drawtree.svg?style=flat-square&label=latest%20version:target: https://pypi.python.org/pypi/drawtree:alt: Latest PyPI versionDraw binary tree in plain textUsage-----Draw tree from level order traversal, '#' signifies a path terminator where no node exists below... code-block:: pythonfrom drawtree import draw_level_orderdraw_level_order('{3,9,20,#,#,15,7}')::3/ \9  20/ \15  7Draw random binary search tree.. code-block:: pythonfrom drawtree import draw_random_bstdraw_random_bst(10)::64/ \/   \4    66\     \37    70/ \8  51/ \6  12\21Draw binary search tree from integer array.. code-block:: pythonfrom drawtree import draw_bstnums = [55, 30, 10, 5, 2, 20, 15, 25, 40, 35, 70, 60, 80, 75, 95]draw_bst(nums)::55/ \/   \/     \/       \30       70/ \       / \/   \     /   \/     \   60   8010     40       / \/ \     /       /   \/   \   35      75   955    20/     / \2     /   \15   25Command line------------Flags:-p, --preorder    interpet sequence as preorder-b, --balanced    auto balance bst-l, --level-order interpet sequence as level-orderPrint a bst:.. code-block:: bash$ bst 10 5 8 4 6$ bst nodes.txt$ echo "colin eric dave" | bst$ cat nodes.txt | sort | uniq | bstPrint a balanced bst:.. code-block:: bash$ bst -b 10 5 6 9 3$ bst -b nodes.txt$ bst -b < nodes.txtPrint a bst from a preorder expression:.. code-block:: bash$ bst -p dave colin dan$ echo "1 2 3 4 5" | bst -p$ bst -p nodes.txtPrint a binary tree from a level order expression:.. code-block:: bash$ bst -l [4,#,7,5,9,#]   (leetcode format)$ bst -l {4 # 7 5}Print a random bst:.. code-block:: bash$ bst           (random bst of 10 nodes)$ bst 5         (random bst of 5 nodes)$ bst -b 7      (random balanced bst of 7 nodes)Installation------------To install drawtree, simply:.. code-block:: bash$ pip install drawtreeLicence-------MITReference---------`Draw tree <http://web.archive.org/web/20071224095835/http://www.openasthra.com/wp-content/uploads/2007/12/binary_trees1.c>`_Authors-------`drawtree` was written by `Madhusudan Banik <msbanik@gmail.com>`_.
Package: draw-with-percentage
Draw with percentagesPython library for randomizing given elements with the appropriate percentage chance.Example:Sample library usageCode:fromdraw_with_percentageimportdraw_with_percentagepercentages=[["option1","10"],["option2","20"],["option3","30"],["option4","40"]]res=draw_with_percentage(percentages)Response:Option 1 10% chance will be refunded.Option 2 20% chance will be refunded.Option 3 30% chance will be refunded.Option 4 40% chance will be refunded.Request:[
    ["name", "percent"],
    ["name", "percent"],
    ["name", "percent"],
    ["name", "percent"]
    // etc.
]Remember:In the first field we give the name of the element.In the second field we give the percentage written as a string.We write the percentage down tothree placesafter the decimal point.The sum of all percentages must be 100.
Package: draxoft.auth.pam
Provides a Python-style interface to PAM’s C API.Version 0.2 is in testing now – version 0.1.2 is a stopgap to ensure
all functionality works on Linux. v0.2 marks the transition to beta…This module supports the POSIX interface to PAM, as well as many of the
extensions provided byLinux-PAMandOpenPAM.Compatibility NotesThere is an issue with the constructor under PyPy: if an AttributeError is
raised, try calling it aspam.handle(conv=pam._conv_callback).
Package: drb-driver-csv
DRB Driver CSVdrb-driver-csvis a Python plugin forDRB, representingDRBdriverallowing to recognize and to browseCSV(Comma-Separated Values) data.Installationpipinstalldrb-driver-csvQuick Startedfromdrb.drivers.csvimportCsvNodeFactory# generate the CSV node (DRB resolver can be used also)node=CsvNodeFactory().create('url/to/csv/data.csv')# select a row first row by indexrow=node[0]# select a row first row by namerow=node['row_0']# select first value in a row by indexrow[0]# select a value in a row by namerow['header']# retrieve value from row: 5, column 1node[5][1].valueDriverThedrb-driver-csvreads aCSVdata like it having a header, so the first
row is the second line of theCSVdata.Each node defined in this driver represent a unitary part or whole content of
aCSVdata:More details in the following section.NodesCsvBaseNodeTheCsvBaseNodewraps anotherDRBnode (base_node) representing theCSVdata and allows to provide an entry point to theCSVcontent.AttributesTheCsvBaseNodehas no attribute.ChildrenEach child of theCsvBaseNoderepersenting a row of theCSVcontent. Those
children are accessible via:index (int):CSVrow indexname (str): generic name following the patternrow_N:row_is a string constantNis the row index (int)ImplementationsTheCsvBaseNodeinherits from thebase_node, plus apandas.DataFrameimplementation to see the data as array.Learn more aboutpandas.CsvRowNodeACsvRowNoderepresent a row from aCSVcontent.AttributesTheCsvRowNodehas no attribute.ChildrenA child of aCsvRowNodeis a node containing the value for the associate
header. Those children can be accessible via:index (int): using header indexname (str): using the header nameImplementationsTheCsvBaseNodehas no implementation.CsvValueNodeACsvValueNoderepresent a cell value from aCSVcontent. The associated
value is accessible via thevaluepropertyAttributesACsvValueNodehas no attribute.ChildrenACsvValueNodehas no child.ImplementationsACsvValueNodehas no implementationFactoryThedrb-driver-csvprovide a factorycsvgenerating onlyCsvBaseNode.TopicThedrb-driver-csvcomes also with aDRBtopicallowing to
resolve and to recognizeCSVdata.graph RL
    A([CSV<br/>060f724c-9334-4fd5-9378-8d83c629fd1d])uuidfromlabelcategoryfactory060f724c-9334-4fd5-9378-8d83c629fd1d∅CSVFORMATTINGcsv
Package: drb-driver-file
FileNode ImplementationThis drb-impl-file module implements file protocol access with DRB data model. It is able to navigates among the file systems.File Factory and File NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.impl.The implementation name isfile.The factory class is encoded intodrb_impl_file.drb_impl_file.The file factory creates a FileNode from an existing path only, otherwise, aDrbFileNodeFactoryExceptionexception is raised.The FileNode can be instantiated from a single path or an uri. ThePathclass and its subclassesParsedPathprovided in drb core module can help to manage these inputs.limitationsThe current version does not manage child modification and insertion.Using this moduleTo include this module into your project, thedrb-impl-filemodule shall be referenced intorequirement.txtfile, or the following pip line can be run:pip install drb-impl-fileDocumentationThe documentation of this implementation can be found herehttps://drb-python.gitlab.io/impl/file
Package: drb-driver-ftp
Ftp driverThis drb-driver-ftp module implements ftp protocol access with DRB data model.Ftp Factory and Ftp NodeThe module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The driver name isftp.The factory class is encoded intodrb.driver.ftp.The ftp signature id isd61c923a-5f1b-11ec-bf63-0242ac130002The Ftp can be instantiated from an uri. TheParsedPathclass provided in drb core module can help to manage these inputs.Using this moduleThe project is present inhttps://www.pypi.orgservice. it can be freely
loaded into projects with the following command line:pip install drb-driver-ftpAccess DataDrbFtpNodemanages the ftp protocol to access remote data. The construction
parameter is an url with the host and an authentication object. Both FTP and FTPS are supported. They allow access the
ftp content.fromdrb.drivers.ftpimportDrbFtpNodefromrequests.authimportHTTPBasicAuthnode=DrbFtpNode("URL","HOST",auth=HTTPBasicAuth("username","password"))Ftp protocol allows navigation inside the ftp server. To do so this
driver is able to provide children of the same FTP type.AuthenticationFTP node is able to manage Basic authentication based on username and
password, as well as TLS ans SSL authentication by using theFTP_TLS.auth().This method set up a secure control connection.
By default, the node will try to connect with the SSL protocol if you want to change protocol you have to give
You can find all the version of TLS and SSL supported herehttps://docs.python.org/3/library/ftplib.html#ftplib.FTP_TLS.ssl_versionLimitationsNoneDocumentationThe documentation of this driver can be found herehttps://drb-python.gitlab.io/impl/ftp