Revelio
Revelio is a Python library for interacting with the file system in an object oriented manner. I know you can use os and os.path to do all of these but I find their usage hard to remember and not very object oriented.
Installation
You can use pip to install Revelio.
pip install revelio
Usage
Revelio is an object oriented interface for the file system. All files and directories (folders) are considered Path objects. Any path except the root, has a parent: the directory it is in. Directories have children, some of them are files and some are subdirectories.
Path
Usually we want to start in the current working directory:
from revelio import Path
current_directory = Path.get_current_directory()
# ls or dir:
print(current_directory.list())
# get the first subdirectory:
first_subdirectory = current_directory.directories[0]
# get the parent directory:
parent_directory = current_directory.parent_directory
Metadata
Release files for revelio 0.1.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 | |
|---|---|---|---|---|
| revelio-0.1.1.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| revelio-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / revelio-0.1.1.tar.gz
| Download URL | revelio-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b57f93a6e16b0d7f54e89204997cacee2225ae7e62c0e8951f369305317ae1ea
|
|
BLAKE2b-256 checksum How to use checksums |
ce35af5f7b2be731ac036d928cdb3bce70ea0614ab8c8fd865701d33a4edf056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Release files / revelio-0.1.1-py3-none-any.whl
| Download URL | revelio-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c75f12d16536fb79e829c5d97a8ae9afa470c897ee8471b74993108bd8ce6e59
|
|
BLAKE2b-256 checksum How to use checksums |
ae676452c03084488b3146b467ff1a8c6169166df7f40ebb4ba885b9eefe4bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Security for revelio 0.1.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.