Saravanan666/pypi-org huggingface dataset:
Package: dirstory
DIRectory hiSTORYNavigate through the directories via command line as in file manager!Have you ever wanted a back and forward button in your terminal to navigate back and forth?
Dirstory allows it!Short descriptionDirstory allows you to move in previously visited directories just like in file manager.
It's very similar to navigating back and forth between web pages in your web browser.Table of contentsRequirementsInstallationUsageContribution guidelinesRequirementsbashpipInstallationTo install dirstory, you need to firstly install the cli and then run the post-install script via
commanddirstory installto make the dirstory work properly.Installation of the cliFrom PyPi:$pipinstall--userdirstoryOr you can install dirstory from the git repository:$pipinstall--usergit+https://github.com/nikromen/dirstoryRunning the post-install scriptAfter successful installation of the cli, run this command:$dirstoryinstallNote: what dirstory's post install script doesPlease note that dirstory needs to add additional functionality to the built-in shell commandcdto trace in which directories have you been to redirect you there later.If you already added some functionality to the built-incdcommand, it's very likely that dirstory
or your script won't work. In that case, please check out theredefinition of thecdcommand that dirstory doesand you will need to merge this script with yours.How to find location of_dirstorypatchSee the location of this script in your~/.bashrcfile. There should be a block added by
dirstory with line:source /some/path/to/the/_dirstorypatch. You can edit this to make your
and dirstory's script work properly.Usagedirstory consist of two main commandsbfbGoes to a previously visited directories.

Options:
    INTEGER     Goes back by N steps.
    -l INTEGER  Show last N directiories where you were.
    --help      Show this message and exit.fGoes to a previously backed directories.

Options:
    INTEGER     Goes forward by N steps.
    -l INTEGER  Show last N directiories which you backed.
    --help      Show this message and exit.If you want to go back by one step, just simply use:$band similarly to go forward by one step:$fContribution guidelineTODO
Package: dirstuff
DirStuffSummarizationSummarize a directory recursively by file size. This tool can be used to quickly search a drive for large files taking up too much space.InstallationInstall the current PyPI release:pipinstalldirstuffUsage# Run the tree command to summarize a directory$dirstufftree<root-dir># Specify the minimum file size (default is 10MB)$dirstufftree<root-dir>--size750MB
$dirstufftree<root-dir>--size50KB# Print full absolute paths to directories instead of directory names$dirstufftree<root-dir>--absolute# Run the list command to find all directories with a matching name$dirstufflist<root-dir><dir-name># Specify the minimum file size (default is 10MB)$dirstufflist<root-dir><dir-name>--size750MB
$dirstufflist<root-dir><dir-name>--size50KBfromdirstuff.osimportPathExamplesTree# Summarize the /home/user/my_documents directory# showing only directories greater than 20MB in size$dirstufftree/home/user/my_documents--size20MB|->69.0GB>my_documents|->67.8GB>movies|->62.0GB>from_the_internet|->5.8GB>home_movies|->638.1MB>photos|->368.2MB>rock_concert|->251.6MB>vacation_2019|->18.4MB>family_photos|->521.6MB>work|->263.8MB>boring_docs|->257.7MB>reports|->22.5MB>gamesList# List all node_modules folders under the /home/user/my_code directory$dirstufflist~/Documents/Code/Projects/Currentnode_modules|->419.6MB>/user/my_code/portfolio/web/node_modules|->320.3MB>/user/my_code/fun_project/node_modules|->298.1MB>/user/my_code/simple_game/version_2/node_modules
Package: dirsum
DirSumSummarize a directory recursively by file size. This tool can be used to quickly search a drive for large files taking up too much space.InstallationInstall the current PyPI release:pipinstalldirsumUsage# Run the tree command to summarize a directory$dirsumtree<root-dir># Specify the minimum file size (default is 10MB)$dirsumtree<root-dir>--size750MB
$dirsumtree<root-dir>--size50KB# Print full absolute paths to directories instead of directory names$dirsumtree<root-dir>--absolute# Run the list command to find all directories with a matching name$dirsumlist<root-dir><dir-name># Specify the minimum file size (default is 10MB)$dirsumlist<root-dir><dir-name>--size750MB
$dirsumlist<root-dir><dir-name>--size50KBExamplesTree# Summarize the /home/user/my_documents directory# showing only directories greater than 20MB in size$dirsumtree/home/user/my_documents--size20MB|->69.0GB>my_documents|->67.8GB>movies|->62.0GB>from_the_internet|->5.8GB>home_movies|->638.1MB>photos|->368.2MB>rock_concert|->251.6MB>vacation_2019|->18.4MB>family_photos|->521.6MB>work|->263.8MB>boring_docs|->257.7MB>reports|->22.5MB>gamesList# List all node_modules folders under the /home/user/my_code directory$dirsumlist~/Documents/Code/Projects/Currentnode_modules|->419.6MB>/hume/user/my_code/portfolio/web/node_modules|->320.3MB>/hume/user/my_code/fun_project/node_modules|->298.1MB>/hume/user/my_code/simple_game/version_2/node_modules
Package: dirsync
© 2014-2019 Thomas Khyn
© 2003-2015 Anand B PillaiAdvanced directory tree synchronisation toolbased onPython robocopierby Anand B PillaiIf you like dirsync and are looking for a way to thank me and/or encourage
future development, here is my BTC or BCH donation address:1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9.UsageFrom the command line:dirsync <sourcedir> <targetdir> [options]From python:from dirsync import sync
sync(sourcedir, targetdir, action, **options)Main OptionsChosing one option among the following ones is mandatory--diff,-dOnly report difference between sourcedir and targetdir--sync,-sSynchronize content between sourcedir and targetdir--update,-uUpdate existing content between sourcedir and targetdirIf you use one of the above options (e.g.sync) most of the time, you
may consider defining theactionoption in aConfiguration fileparsed
by dirsync.Additional Options--verbose,-vProvide verbose output--purge,-pPurge files when synchronizing (does not purge by
default)--force,-fForce copying of files, by trying to change file
permissions--twoway,-2Update files in source directory from target
directory (only updates target from source by default)--create,-cCreate target directory if it does not exist (By
default, target directory should exist.)--ctimeAlso takes into account the source file's creation
time (Windows) or the source file's last metadata
change (Unix)--contentTakes into account ONLY content of files.
Synchronize ONLY different files.
At two-way synchronization source files content
have priority if destination and source are existed--ignore,-xpatternsRegex patterns to ignore--only,-opatternsRegex patterns to include (exclude every other)--exclude,-epatternsRegex patterns to exclude--include,-ipatternsRegex patterns to include (with precedence over
excludes)Configuration fileNoteConfiguration files are only used when using the command line, and ignored
when dirsync is called from within Python.If you want to use predefined options all the time, or if you need specific
options when ‘dirsyncing’ a specific source directory, dirsync looks for
two configuration files, by order or priority (the last takes precedence):~/.dirsync
source/directory/.dirsyncNoteA ~/.dirsync configuration file is automatically created the first time
dirsync is ran from the command line. It enablessyncmode by default.WarningAnysource/directory/.dirsyncfile is automatically excluded from the
files to compare. You have to explicitly include using the--includeoption it if you want it to be covered by the comparison.The command line options always override the values defined in the
configuration files.The configuration files must have adefaultssection, and the options are
as defined above. The only exception is for the optionaction, which can
take 3 valuesdiff,syncorupdate.Example config file:[defaults]
action = sync
create = TrueCustom loggerFrom python, you may not want to have the output sent tostdout. To do so,
you can simply pass your custom logger via theloggerkeyword argument of
thesyncfunction:sync(sourcedir, targetdir, action, logger=my_logger, **options)
Package: dir-sync
Sync files in the local folder with files in the remote location,
e.g. Google Drive.InstallRun the following command in your command line:pipinstalldir-syncCheck the version you installed:$dir-sync--versionVersion:X.X.XCommand OptionsOptionDescriptionRequiredDefault–src-typeSource type.Yes–dst-typeDestination
type.Yes–srcSource
directory path.
The value
depends on the
source type.Yes–dstDestination
directory path.
The value
depends on the
source type.Yes–auth-key-filePath to auth
key file.YesFilesystem AdapterDepends on the source type and destination type, the value of source
directory path and destination directory path can be vary.Local FilesystemWhen--src-typeor--dst-typeislocal, the--src/--dstmust be a valid directory path in your local
filesystem.Google DriveWhen--src-typeor--dst-typeisgoogle-drive, the--src/--dstmust be a valid Google Drive directory ID.
(reference:https://developers.google.com/drive/api/v3/reference/files)
Package: dirt
dirtprovides all the tools required to build long-running Python
applications (“services”) which can communicate over RPC.Specifically, it provides:Tools for exposing methods over RPC (using either a dirt custom protocol or
ZeroRPC, including nicities like iPython tab completion).A framework for creating long-running applications, and exposing their
methods over RPC.Tools for running multiple applications in one terminal, either for
development or in production.A simple syntax for defining applications (currently Django-stylesettings.pyfiles are best supported, but.inicould easily be
supported too).An application can be as simple as:$ cat app.py
import gevent
import logging

from dirt import DirtApp, runloop

log = logging.getLogger(__name__)

class PingAPI(object):
    def ping(self):
        return "pong"

class PingApp(DirtApp):
    def get_api(self, edge, call):
        return PingAPI()

class LongRunningApp(DirtApp):
    @runloop(log)
    def serve(self):
        ping_app = self.settings.get_api("ping")
        while True:
            result = ping_app.ping()
            log.info("ping: %r", result)
            gevent.sleep(1)

$ cat settings.py
from dirt import logging_default
USE_RELOADER = False
DIRT_APP_PIDFILE = "/tmp/dirt-example-{app_name}.pid"
LOGGING = logging_default("/tmp/dirt-example-{app_name}.log", root_level="INFO")

class PING:
    app_class = "app.PingApp"
    bind_url = "zrpc+tcp://127.0.0.1:9990"
    remote_url = bind_url

class LONG_RUNNING:
    app_class = "app.LongRunningApp"

$ ./run ping long_running
23:20:21.289 ping INFO dirt.app: binding to zrpc+tcp://127.0.0.1:9990...
23:20:21.477 long_running INFO app: ping: 'pong'
23:20:22.380 long_running INFO app: ping: 'pong'Some notes:dirtplays well with others, integrating easily into existing projects.
See theexample_project/directory for a Django project which usesdirt.dirtdepends ongevent==1.0. In theory it should be possible for
applications to use operating system threads, but this hasn’t been tested.Development Statusdirtis used by Luminautics in a production environment, and has been
incredibly stable for the last six months.That said, there will likely be some undocumented assumptions which could
affect other users, so some amount of testing should be done before trusting it
in your production environment.
Package: dirtbike
Purpose of the softwareThis is a Python program that takes packages that are already installed on a
system and converts them towheels.That is an admittedly strange goal. The deeper purpose is to help Debian
packages likepipvendor their dependencies in a way compatible with the
packaging policy for Debian, and hopefully other GNU/Linux distributions.Therefore, we am eager to see this tool discussed and/or adopted by Fedora,
Debian, Ubuntu, and any other software distributions that distribute pip as
well as other Python packages.LicenseThis software is available under the terms of the same license aspya/pip:Copyright (c) 2008-2014 The developers (see AUTHORS.txt file)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Origin of the nameThe name comes from a They Might Be Giants song:Here comes the dirt bike,
Beware of the dirt bike.
[...]
You see I never thought I'd understand.
Till that bike took me by the hand,
Now I ride.The real motivation behind the name was to find a word or two that
alludes to the idea of “wheel.”“Boat of Car” might have been too confusing.
Package: dirtempl
DirTemplDirTempl templates a whole directory, letting you swap out individual snippets
for the contents of files in the snippets directory.InstallDirTempl is typically best installed by installingpipxand then installing dirtempl using pipx.pipxinstalldirtemplExample Usagedirtemplinput/snippets/output/Anything in input folder containing {{{{ my_snippet }}}} will replace
the contents with the corresponding file in snippets/ - e.g. my_snippet.Why not use jinja2?Too complicated.
Package: dirtrace
dirtracedirtracegenerates chromium's trace event format json file from directory based on file size中文说明Installpip install dirtraceUsage(1) run commandUsage: 
dirtrace -d <directory-path>
dirtrace -d <directory-path> -o <output-json-path>

This script generates chromium's trace event format json file from directory content file size.
Visit https://github.com/everettjf/DirTrace for more information.

Options:
  -h, --help         show this help message and exit
  -d DIR, --dir=DIR  which directory do you want to trace
  -o OUT, --out=OUT  output json path(2) displayOpen Chrome browser, and drag output json file into Chrome'schrome://tracing/Directory items start withD_File items start withF_Supportpython 2.x && 3.xwish you enjoy :)
Package: dir-tree
dir_treeprint directory treeSimilar as tree in terminal.Installpip install dir-treeHow to useImport tree function:fromdir_tree.dir_treeimporttreetree('test_dir')test_dir  - 3 dirs 0 files
     sub_dir_1  - 4 dirs 0 files
         sub_dir_1_1  - 0 dirs 0 files
         sub_dir_1_2  - 0 dirs 0 files
         sub_dir_1_3  - 0 dirs 0 files
         sub_dir_1_4  - 0 dirs 0 files
     sub_dir_2  - 5 dirs 0 files
         sub_dir_2_1  - 0 dirs 0 files
         sub_dir_2_2  - 0 dirs 0 files
         sub_dir_2_3  - 0 dirs 0 files
         sub_dir_2_4  - 0 dirs 0 files
         sub_dir_2_5  - 0 dirs 0 files
     sub_dir_3  - 6 dirs 0 files
         sub_dir_3_1  - 0 dirs 0 files
         sub_dir_3_2  - 0 dirs 0 files
         sub_dir_3_3  - 0 dirs 0 files
         sub_dir_3_4  - 0 dirs 0 files
         sub_dir_3_5  - 0 dirs 0 files
         sub_dir_3_6  - 0 dirs 0 filesYou can sent string or Path object to tree function.frompathlibimportPathpath=Path('test_dir')Now we can use path:tree(path)And we can 'patch' Path as:`Path.tree = tree'Now we can use it as:path.tree()And better, if you use fastcore, you can patch it using @patch decorator.I didnt use it becouse won't use any dependences.Now it has only base functionality.In plans: ipywidgets and cl functionalitys.
Package: dirtree-chart
Descriptiondirtree-chartis a tiny tool for creating folder structure diagrams based onmermaidsmarkdown syntax.
The output will be saved in an seperate.mmdfile or may be included in aREADME.md. The idea behinddirtree-chartis to simple include it in your build tasks for generic charts in your repository.
In the future, image output (svg,png,pdf, ...) will be implemented.Installationpip install dirtree-chartUsage and ExamplesTo get information about the tool runpython -m dirtree_chart -hin the command line.For big projects it should be considered to limit the folder depth to a suitable level (e.g.-md 3).Files which should not be includes may be put into the ignore list (-il file1, file2). At the moment no wildcard definition is supported.For git project the mermaid output markdown may be written to theREADME.mdfile (-i true). Currently only the file extention .md is supported.Define the direction of the graph (-d TD). TD = Top-Down, LR = Left-Right.Scriptsfromdirtree_chartimportdiagramfromdirtree_chartimportconfig# Add files or folders to ignore listignore_list=config.ignore_list.copy()ignore_list.extend([".secrets","ect.f"])# Create diagramdiagram.DirStrucTree(ignore=ignore_list)Command linepython -m dirtree_chart [-h] [-r ROOT] [-i INCLUDE_TO_README] [-d DIRECTION] [-md MAXDEPTH] [-il IGNORELIST [IGNORELIST ...]TodosImage format (svg, png, ...) outputIgnore list should accept regexAuthorManuel Strohmaier / 2021LicenseMIT
Package: dirtreegen
dirtreegenGenerate directory tree easily.Getting StartedPrerequisitesInstall the package by pippip3 install dirtreegenHow to useOpen interactive command line toolipython, before do that, make sure you have installed thedirtreegenpackagecd yourprojectipython3
In [1]: from dirtreegen import treegen
In [2]: treegen()
IN [3]:
.
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
├── setup.cfg
├── setup.py
└── dirtreegen
    ├── __init__.py
    └── dirtreegen.pyOf course, if you don’t want to show some files or directory, you can create a list which include you don’t want to show.IN [4]: treegen([‘.gitignore’, ‘dirtreegen’])
IN [5]:
.
├── LICENSE
├── README.md
├── requirements.txt
├── setup.cfg
└── setup.py
Package: dirtreeutil
DirtreeutilA Python utility to list your directory like a tree with formatting and options.How to install and use?pip3 install dirtreeutilORpip install dirtreeutilNow run,dirtreeutil -d <PATH>This ismainlyintended for visualizing directories with clean strucutres or less files as are most other tree utilities.A demo maybe?Sure, this is what it'll look like.
Package: dirty-cat
dirty_catis a Python library
that facilitates machine-learning on dirty categorical variables.For a detailed description of the problem of encoding dirty categorical data, seeSimilarity encoding for learning with dirty categorical variables[1]andEncoding high-cardinality string categorical variables[2].If you like the package, pleasespread the word, and ⭐the repository!What candirty_catdo?dirty_catprovides tools (TableVectorizer,fuzzy_join…) and
encoders (GapEncoder,MinHashEncoder…) formorphological similarities,
for which we usually identify three common cases:similarities, typos and variationsThe first example notebookgoes in-depth on how to identify and deal with dirty data using thedirty_catlibrary.Whatdirty_catdoes notSemantic similaritiesare currently not supported.
For example, the similarity betweencarandautomobileis outside the reach
of the methods implemented here.This kind of problem is tackled byNatural Language Processingmethods.dirty_catcan still help with handling typos and variations in this kind of setting.Installationdirty_cat can be easily installed viapip:pip install dirty_catDependenciesDependencies and minimal versions are listed in thesetupfile.Related projectsAre listed on thedirty_cat’s websiteContributingIf you want to encourage development ofdirty_cat,
the best thing to do is tospread the word!If you encounter an issue while usingdirty_cat, pleaseopen an issueand/orsubmit a pull request.
Don’t hesitate, you’re helping to make this project better for everyone!Additional resourcesIntroductory video (YouTube)Overview poster for EuroSciPy 2022 (Google Drive)References[1]Patricio Cerda, Gaël Varoquaux, Balázs Kégl. Similarity encoding for learning with dirty categorical variables. 2018. Machine Learning journal, Springer.[2]Patricio Cerda, Gaël Varoquaux. Encoding high-cardinality string categorical variables. 2020. IEEE Transactions on Knowledge & Data Engineering.
Package: dirty-equals
Doing dirty (but extremely useful) things with equals.Documentation:dirty-equals.helpmanual.ioSource Code:github.com/samuelcolvin/dirty-equalsdirty-equalsis a python library that (mis)uses the__eq__method to make python code (generally unit tests)
more declarative and therefore easier to read and write.dirty-equalscan be used in whatever context you like, but it comes into its own when writing unit tests for
applications where you're commonly checking the response to API calls and the contents of a database.UsageHere's a trivial example of whatdirty-equalscan do:fromdirty_equalsimportIsPositiveassert1==IsPositiveassert-2==IsPositive# this will fail!That doesn't look very useful yet!, but consider the following unit test code usingdirty-equals:fromdirty_equalsimportIsJson,IsNow,IsPositiveInt,IsStr...# user_data is a dict returned from a database or API which we want to testassertuser_data=={# we want to check that id is a positive int'id':IsPositiveInt,# we know avatar_file should be a string, but we need a regex as we don't know whole value'avatar_file':IsStr(regex=r'/[a-z0-9\-]{10}/example\.png'),# settings_json is JSON, but it's more robust to compare the value it encodes, not strings'settings_json':IsJson({'theme':'dark','language':'en'}),# created_ts is datetime, we don't know the exact value, but we know it should be close to now'created_ts':IsNow(delta=3),}Withoutdirty-equals, you'd have to compare individual fields and/or modify some fields before comparison -
the test would not be declarative or as clear.dirty-equalscan do so much more than that, for example:IsPartialDictlets you compare a subset of a dictionaryIsStrictDictlets you confirm order in a dictionaryIsListandIsTuplelets you compare partial lists and tuples, with or without order constraintsnesting any of these types inside any othersIsInstancelets you simply confirm the type of an objectYou can even useboolean operators|and&to combine multiple conditionsand much more...InstallationSimply:pipinstalldirty-equalsdirty-equalsrequiresPython 3.7+.