Saravanan666/pypi-org huggingface dataset:
Package: drint
the latest version of 1.0.2🎉Changes in the new version of1.0.2- Release. -drintdrintis a library that outputsdicttype objects in python to console and other applications, fully formatted and displayed. This will improve debugging, output, and other tasks.Description of drintdrintis a library that outputs dict type objects in python to console and other applications, fully formatted and displayed. In general, dict is displayed in python usingpprint, etc., but this library can output dict in a more complete form thanpprint.More about drintdrintdisplays dict types in perfect alignment.
Below is a test dict and an example of its display.fromdict_viewer.drintimportdrinttest_d3={"e":"EEE","f":"FFF","g":"GGG"}test_d2={"c":test_d3,"d":"DDD"}test_d1={"a":"AAA","b":test_d2}# drintdrint(test_d1)The result is as follows:{
    "a": AAA
    "b": {
        "c": {
            "e": EEE
            "f": FFF
            "g": GGG
        }
        "d": DDD
    }
}Compared to the output with pprint and print, it is clearly aligned.# print
{'a': 'AAA', 'b': {'c': {'e': 'EEE', 'f': 'FFF', 'g': 'GGG'}, 'd': 'DDD'}}

# pprint
{'a': 'AAA', 'b': {'c': {'e': 'EEE', 'f': 'FFF', 'g': 'GGG'}, 'd': 'DDD'}}

# drint
{
    "a": AAA
    "b": {
        "c": {
            "e": EEE
            "f": FFF
            "g": GGG
        }
        "d": DDD
    }
}Also, with drint, indentation can be specified.Optional arguments, etcThe list of arguments, etc. that can be used indrintis as follows.from dict_viewer.drint import drint

drint(
   dict,      # Required argument
   indent     # defalut value is 4
)Getting StartedInstallingLatest drint viaPyPI(pip install)pip install drintInstall by pip from githubpip install git+https://github.com/Domzou-kun/drint.gitor install via SSHpip install git+git://github.com:Domzou-kun/drint.gitAuthorsDomzoulinkThe link to PyPI is here.PyPI project linkVersion historyIf you want to know about past versions, please refer toversion history.LICENSEdrint has a MIT license, as found in theLICENSE file.
Package: drip-drip
drip_dripcontains the python package that provides a utility to controls automatic movment of files from one directory to another such that:the rate of copying can be throttled; andthe number of files in the destination directory can be limited, so that it does not become overly large.The package includes thedrip_feedcommand which can be used to execute the utility. The command take the name of aDropperplug-in that assess whether there is sufficient space at the destination and when there is the plug-in will also manage the movement of the files. The plug-in can also be specified in the environmental variableDRIP_DROPPERbut any value specified in this variable will be ignored if an argument is provided to thedrip_feedcommand.Full details for configuring the command can be foundhere.
Package: dripfeed
Create an RSS feed of a webcomic archive, for slow catchup.Ever time I discover a new webcomic that’s worth following, I lose hours (often night-time hours) to catching up with
the archives. This tool exists to avoid this problem: I can create my own dripfeed for the comic, schedule it with cron
to update two or three times a day, and add the feed to my ordinary feed reader. So long asdripfeedupdates more
often than the comic author, my dripfeed will catch up eventually, and I can switch to the official feed from then on.Example usageCreate the feed:dripfeed init gunnerkrigg  # name for dripfeed commands like "update", "remove" (commandline-friendly)
              --rss ./gunnerkrigg.rss  # rss file for output (will be created)
              --url 'http://gunnerkrigg.com/?p=1'  # where to find the first page
              --next "//img[@src='http://www.gunnerkrigg.com/images/next_a.jpg']/.."  # XPath for "next" link
              --name 'Gunnerkrigg Court'  # optional long name for output (doesn't have to be commandline-friendly)The--nextparameter is an XPath expression that extracts the<a>element whosehrefpoints to the next page.
(This expression will be used for all pages of the comic.)This places configuration forgunnerkriggin a config file at~/.dripfeed.cfg(creating the file if it doesn’t
already exist).Now running:dripfeed update gunnerkriggwill update the rss feed at./gunnerkrigg.rssand store progress in~/.dripfeed.cfg: I’d expect this command to
go in a cron job.Errors are recorded in the RSS feed, and you can rundripfeed updatewith a--debugflag to see a full stack
trace of the error.OutputThe RSS feed entries are intentionally very very simple: they contain just a link to the page, and some placeholder text
telling you which episode you’re looking at (counting from episode 1 at the initial URL).It would be possible to extend the tool to include some degree of content scraping: more XPath expressions could
optionally extract the comic image, title, commentary, etc. Ido notintend to do this; of course you’re welcome to
fork the code and make whatever changes you like, but I will not accept pull requests adding these features. The reason
is that I want you to visit the original comic pages: making a living from webcomics is tricky enough as it is, and
many comics are either directly or indirectly ad-supported. This script is not a syndication tool and is emphatically
not intended to make business any harder for the authors whose work I admire.RequirementsPython >= 2.6LicenseMIT licensed. See the bundledLICENSEfile for more details.TODONot sure when I’ll get around to these, but here are a couple things I would like to do with it (maybe more for
the learning experience than because the task really demands it):Interactiveinitthat prompts for necessary args and validates them (especially the xpath).Example config file pushing my favourite webcomics.
Package: dripostal
A tiny API client for the Pelias Libpostal REST service.Documentation:https://dribia.github.io/dripostalSource Code:https://github.com/dribia/dripostalLibpostalis a widely known C library forparsing and normalizing street addressesaround the world.Despite having its own Python bindings, getting to install the library can be quite hard and time-consuming.
A common workaround is then to use a dockerized service exposing Libpostal as a REST API,
e.g.Pelias' Libpostal REST service.Dripostalaims to provide a Python interface with such API, both in the synchronous and the asynchronous ways.Key featuresQuery Libpostal'sparseandexpandmethods.Return results asPydanticmodels.Provides a mirrorasync clientenabling asynchronous queries to the Libpostal REST service.ExampleIn order to successfully run the following example, a Libpostal service should be running locally:dockerrun-d-p4400:4400pelias/libpostal-service!!!info
The command above will be pulling thelibpostal-serviceDocker image fromPeliasand
running a container that will serve the Libpostal REST service through its port 4400.* With option `-p 4400:4400` we are mapping port 
  `4400` in the docker container to port `4400` in the docker host, i.e. your computer. 
  You could map it to another port of the host, e.g. the `8080`, changing `4400:4400` for `8080:4400`.
* With option `-d` we are running the docker container in _detached mode_, i.e. in the background.Now we should be able to run the following code:fromdripostalimportDriPostaldripostal=DriPostal(url="http://0.0.0.0:4400")dripostal.parse("Planta 3 mòdul 303, Carrer de la Llacuna, 162, 08018 Barcelona")"""Address(house='mòdul 303',house_number='162',road='carrer de la llacuna',level='planta 3',postcode='08018',city='barcelona',country=None,...)"""
Package: drippy
drippyREADMEThis package provides a plugin fornosewhich reports tempfile leaks during test runs.For example:$ /path/to/nosetests --with-drippy
.......................
   test_some_feature (yourpackage.tests.FeatureTests) -- before: 0, after: 1

  Featuretests -- before: 0, after: 1
...........
 yourpackage.tests -- before: 0, after 1

yourpackage -- before: 0, after: 1

----------------------------------------------------------------------
Ran 34 tests in 0.243sdrippyChangelog0.3.1 (2014-03-31)Change URL in ‘setup()’ to Launchpad.0.3 (2014-03-04)Un-hardcode use of ‘/tmp’ by using ‘tempfile.gettempdir()’.Allow for testing on systems w/o ‘setuptools_bzr’.0.2 (2014-03-03)Add coverage testing.Add support / tests for Python 2.6, 2.7, 3.2, 3.3, and PyPy.Specifynoseas aininstall_requiresdependency.Fix packaging error (drippy.pywas present in sdist, but not
installable.  Merges lp:~msabramo/drippy/setup_py_py_modules0.1 (2010-05-12)Initial release.
Package: driptorch
Ignition pattern simulator for prescribed firing technqiuesInstallationIf you useConda, create a new Python 3.10 enviornment and install DripTorchconda create -n myenv python=3.10
conda activate myenv
conda install -c silvxlabs -c conda-forge driptorchYou can also install fromPyPI, however you might need to manually setuppyproj.pip install driptorchDocumentationDocumentation and API Reference
Package: drishti-io
Drishti: I/O Insights for AllDrishti is a command-line tool to guide end-users in optimizing I/O in their applications by detecting typical I/O performance pitfalls and providing a set of recommendations. You can get Drishti directly from pip:pip install drishti-ioTo install Drishti from scratch, make sure you have Python 3 and first install the dependencies:pip install -r requirements.txt
pip install .You can then run Drishti with the following options:usage: drishti.py [-h] [--issues] [--html] [--svg] [--verbose] [--code] darshan

Drishti:

positional arguments:
  darshan     Input .darshan file

optional arguments:
  -h, --help  show this help message and exit
  --issues    Only displays the detected issues and hides the recommendations
  --html      Export the report as an HTML page
  --svg       Export the report as an SVG image
  --verbose   Display extended details for the recommendations
  --code      Display insights identification codeYou can also use our Docker image:docker run --rm --mount type=bind,source="$(PWD)",target=/drishti drishti sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshanYou can also use a Docker image already pre-configured with all dependencies to run Drishti:docker pull hpcio/drishtiSince we need to provide a Darshan log file as input, make sure you are mounting your current directory in the container and removing the container after using it. You can pass the same arguments described above, after the container name (drishti).docker run --rm --mount \
    type=bind,source="$(PWD)",target="/drishti" \
    drishti <FILE>.darshanBy default Drishti will generate an overview report in the console with recommendations:You can also only list the issues detected by Drishti with--issues:You can also enable the verbose mode with--verboseto visualize solution snippets:Copyright NoticeDrishti Copyright (c) 2022, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office atIPO@lbl.gov.NOTICE.  This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights.  As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
Package: driva-python-sdk
FeaturesTODORequirementsTODOInstallationYou can installDriva Python SdkviapipfromPyPI:$pipinstalldriva-python-sdkUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theGPL 3.0 license,Driva Python Sdkis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
Package: drive-ami
A python package for scripting theAMI-reduce pipeline.For a full description, seeStaley and Anderson (2015).
If you use drive-ami in work leading to a publication, we ask that you cite
the paper above, and the relevantASCL entry.RationaleFrom a radio astronomy point of view:This package makes it trivial to script reduction of raw AMI data
from python. What’s more, it provides tools to group the raw files into
datasets, outputting the UVFITS for each dataset under a single folder.
It does this by extracting the pointing information from the raw data,
resulting in fairly reliable groupings (although you can edit these manually,
see later).When processing the data, all output fromreduceis saved to an
accompanying log-file, retaining all information that would normally
be available to the user from the interactive interface.
Meanwhile, all emulated commands passed toreduceare
recorded in a separate log for each file processed, so it’s easy to
re-run the script manually and tinker with the reduction process.Additionally, when running commands listed in a script the interface
quietly parses key information such as flagging percentages,
rain modulation, and estimated noise, from thereduceoutput.
These are then stored to disk alongside the UVFITs in easily
machine readable JSON format.
(These may also be added to the UVFITS header in future.)From a software engineering point of view:Written in Fortran, with an interactive terminal interface, thereducepipeline takes a little coaxing to co-operate with calling scripts,
making automated processing of large numbers of files tricky.
Fortunately, the python librarypexpectprovides an easy mechanism
to emulate human interaction, upon which I’ve built an interface class.
Limitations such as a maximum path length of ~32 chars are circumvented
with a few careful hacks.
The python logging libraries then allow us provide the user with
minimal progress information, whilst retaining all possible information
for debugging and scientific evaluation.InstallationRequirements:You will need a working installation of AMI-reduce (naturally)pexpectFor interfacing with AMI-reduce.
(Installed automatically as part of the python setup.)astropyUsed for calculating
co-ordinate distances, etc.
(Installed automatically as part of the python setup.)From the command line (preferably within a virtualenv):git clone git://github.com/timstaley/drive-ami.git
cd drive-ami
pip install numpy #Workaround for buggy scipy/numpy combined install.
pip install .UsageCommand-line scripts are installed along with the package.
Their sourcefiles can be found athttps://github.com/timstaley/drive-ami/tree/master/bin.
For full details, run e.g.:driveami_list_rawfiles.py -hWhere-his short for ‘help’.Typical usage is to rundriveami_list_rawfiles.pyto build a full
listing of available data, followed bydriveami_filter_rawfile_listing.pyto extract the entries on a desired target.
Finally,driveami_calibrate_rawfiles.pyactually does the processing using
AMI-REDUCE.
Package: drive-catalog
Drive CatalogLibrary to recursively read and return file and directory information about drives and folders.Licensedrive-catalog is licensed under theGNU Affero General Public License v3.0InstallationTo install using pip:>pipinstalldrive-catalogUsage ExampleCall the application from the command-line without parameters returns:>pythondrive_catalog

usage:main.py[-h][--version]path[path...]main.py:error:thefollowingargumentsarerequired:pathCommand-line help is provided by using the help directive:>pythondrive_catalog--help

usage:main.py[-h][--version]path[path...]Returnformattedfileinformation

positionalarguments:pathThepathofthedriveorfoldertoprocess.

optionalarguments:-h,--helpshowthishelpmessageandexit--versionShowtheversionnumberandexit.Call the application from the command-line with path. Note the testdrive folder
contains public domain images, audio and video.>pythondrive-catalogtestdrive/
Path:/Users/bestep/3_Development/drive-catalog/testdrive
DriveInfo:{'name':'testdrive','total_files':47,'portable_drive':False,'size':499963174912,'free':60009164800,'used':423691579392,'create_date':'2020-07-01T08:43:48.161025-04:00'}p/Users/bestep/3_Development/drive-catalog/testdrive
FileInfo:[{'name':'coffee_beans_coffee_drink.jpg','size':'147.8KiB','size_bytes':151326,'type':'Image','path':'/Users/bestep/3_Development/drive-catalog/testdrive/coffee_beans_coffee_drink.jpg','thumbnail':'','create_date':'2020-06-30T23:09:33.792833-04:00','is_directory':False},{'name':'OTRR_An_Evening_With_Groucho_Singles','size':'1.3KiB','size_bytes':1312,'type':'','path':'/Users/bestep/3_Development/drive-catalog/testdrive/OTRR_An_Evening_With_Groucho_Singles','thumbnail':'','create_date':'2020-06-30T23:09:34.153570-04:00','is_directory':True},{'name':'new_york_skyline_usa.jpg','size':'141.2KiB','size_bytes':144612,'type':'Image','path':'/Users/bestep/3_Development/drive-catalog/testdrive/new_york_skyline_usa.jpg','thumbnail':'','create_date':'2020-06-30T23:09:33.793437-04:00','is_directory':False},...]
Package: drive-cli
Drive CliGet the ability to accessGoogle Drivewithout leaving your terminal.InspirationGoogle Drive has become a vital part of our day to day life. As much as non-programmers use it, so do programmers in several situations, where we need not use git/github.Drive-CLI is a command-line utility for google drive which helps you access, sync, download, upload, etc. directly to your drive without leaving the command-line. The best part being the commands are similar to git CLI so that you can easily remember them :massage:Featuresview-files: list your files; filter them by name, type.clone: download file/folder from drive using sharing link or file ID and get it linked.add-remote: upload existing local file to drive and get it linked.cat: view files contents of text format without actually downloading them.rm: remove particular file or folder.ls: list all the files present in the drive of equivalent current directory.status: list changes made to local files since last push or pull.pull: get latest changes from drive to local files.push: push the local changes to drive.DemoInstallationFor Usage#install using pip$pipinstalldrive-cliFor Developmentclone the repo$gitclonehttps://github.com/nurdtechie98/drive-cli.gitget yourclient_secret.jsonfromOauth. Make sure to enableDrive Apifor the project.rename the client secret tooauth.jsonand place it in thedrive_clidirectory.install the package:# move into package directory$cddrive-cli# install package in edit mode$pipinstall-e.#note the dotUsageCloneDownload a file or folder present in drive using its file id or its sharing link. In case it is a folder it gets tracked.# using file id note: since it is google doc it will be asked for a choice to select from$driveclone1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks
Choosetypetoexportto(ENTERtoselect,stostop):=>pdftxtdocziphtmlrtfodt
Preparing:watsonscriptfordownload
downloadingfile[####################################]  100%completeddownloadofwatsonscript# using file sharing link$driveclonehttps://docs.google.com/document/d/1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks
Choosetypetoexportto(ENTERtoselect,stostop):=>pdftxtdocziphtmlrtfodt
Preparing:watsonscriptfordownload
downloadingfile[####################################]  100%completeddownloadofwatsonscriptfor further in depth documetation checkout ourwiki.Uninstalling$pipuninstalldrive-cliContributingWe're are open toenhancements&bug-fixes:smile:. Take a lookhereto get startedFeel free to add issues and submit patchesAuthorChirag Shetty -nurdtechie98See also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT - see theLICENSEfile for details.
Package: driveconnect
Installationpip install driveconnectOr:pip install git+https:\\github.com\gwangjinkim\driveconnect.gitOr:pipenv install git+https:\\github.com\gwangjinkim\driveconnect.git#egg=driveconnectOr:poetry add driveconnect  # version number: driveconnect==0.1.8Or (from github repo):poetry add git+ssh://git@github.com/gwangjinkim/driveconnect.git#mainUsageimport driveconnect as dcn
import pycryptaes as pca
import logging as log

print(dcn.__version__)

# set better pretty print for log message on stdout:
dcn.set_pprint_width(width=81)

# instanciate encryptor
ca = pca.AES()
# for saving some typing on REPL:
home = "C:/Users/myusername"
p = lambda x: f"{home}/{x}"
args = (p(".key"), p(".user"), p(".pass"))

# set logger
log.basicConfig(filename=f"{home}/mylog.log", filemode='a', level=log.DEBUG)


# if first time using credentials, you have to enter username and password after typing:
ca.generate_key_user_pass(*args)

# otherwise comment out the previous line and collect/read the previously saved credentials:
co = ca.read_key_user_pass(*args)           # `co` = `Credential Object`

# now you can test, wether a drive e.g. 'G:' is connected:
dcn.is_drive_connected(drive_letter='G') # it works also with "G:"
## False

# connect to the server
# leading '\\' can be left out in server address and the 'M:' as well as 'M' both work
dcn.connect_drive('G:', '\\serveraddress\folder', co=co, log=log, level="info")
# or for connections where no credentials are needed:
dcn.connect_drive('G:', '\\serveraddress\folder', log=log, level="info", _print=True)
# `log=`, `level=` and `_print=` are optional.

# disconnect from the server
dcn.disconnect_drive('G:', log=log, level="info", _print=True)
# or without logger:
dcn.disconnect_drive('G:', _print=True)
Package: drivecycle
Drive CycleDrivecycle is a python package that simulates complex velocity-time profiles for vehicles while taking into account stop and intersection locations along with speed limits. Drivecycle also simulates battery state of charge given vehicle (i.e. mass, battery type/capacity, etc.) and route (i.e. elevation change) characteristics.Read the documentation for more details:https://saadiqm.com/drivecycleExamplesExample Notebook