PathinBy
What is PathinBy
PathinBy is a tiny tool (used as a command line app or a Python module), that converts your directory structure into a nice formatted tree to use in your blog posts or other illustrations.
You need Python 2.7+ or Python 3.x to run this module
How to use
Imagine you have a directory structure like this:
As a Python module
>>> import pathinby
>>> tree = pathinby.create_path('Cats')
>>> print ('\n'.join(tree))
Here we’ve passed the directory name as an argument, there are also other arguments you can use to customize the behavior of the module, you can change those “|” and “-|” and specify an output file. Check function documentation in the source code for more details of the usage.
create_path() returns an array to give more freedom of use in different situations.
This gives the output:
|-Big
| |-Simba.bcat
|-Sylvester.cat
|-Tom.cat
As a commend line tool
$ pathinby -s Cats
This will traverse the “Cats” directory and print the contents tree to the terminal window, so running this command prints out the same directory tree like above.
the directory name can be a full or a relative path, like we did here.
By default, pathinby will do its work on the current directory if no directory is specified, in this case we specified “Cats”.
The s option means “show”, prints the output to the terminal.
Other option is
-o {path to file} -> writes the output to the specified file
Use pathinby -h anytime for help on using the command.
Metadata
Release files for pathinby 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pathinby-0.1.tar.gz | 3.1 kB | Without provenance | Details for pathinby-0.1.tar.gz |
Release files / pathinby-0.1.tar.gz
| Download URL | pathinby-0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
400c30c7587fb84e36f30ddeeef193fccb4de64372aec95db5db3d4545fb089e
|
|
BLAKE2b-256 checksum How to use checksums |
3cd0ab2a0980a6b7a6a6831ab3f7722448bd4a0c026d98891bd44c1253d12139
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pathinby 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.