hey_dl
Directory Localizer helps you localize directories.
__doc__
Periodically, you’ll want to know where a Python source file is actually located on disk. You might want this for all sorts of reasons, and it’s always a bit messy when you do want to know.
DirectoryLocalizer solves two problems:
it lets you know where you are on disk, assuming you’re not anywhere crazy, like in a zip import, and
it lets you pass that location to other code that might want to know where you are.
Usage is extremely simple:
Make a DirectoryLocalizer object, dl (or whatever).
Call dl.set() from the file you want to locate on disk.
Any code that can access dl can now call:
dl.dir(): for the directory of the file where dl.set() was called,
dl.path(fn): for the filename of a file in the directory where dl.set() was called,
dl.file(fn): for a file object of the file in dl.path(fn), and
dl.read(fn): to get a read of the file in d.file(fn).
Release files for hey_dl 1.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 | |
|---|---|---|---|
| hey_dl-1.0.1.tar.gz | 2.5 kB | Details |
Release files / hey_dl-1.0.1.tar.gz
| Download URL | hey_dl-1.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bc76e408c30ea866cfb9da13b117ab77e7ffa2dedcd18f22f85500d3e4db7dd
|
|
BLAKE2b-256 checksum How to use checksums |
2038e36018f3f18ad5998329e662b6295ca234650c653a31da378eb2e520bf50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |